]>
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 | |
794e88e7 | 643 | CY_ATTACH_GROUP |
66170b30 | 644 | CY_MACH |
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 |
5053a6d1 DWT |
653 | LTLIBICONV |
654 | LIBICONV | |
a243b558 JF |
655 | CY_OBJECTIVEC_FALSE |
656 | CY_OBJECTIVEC_TRUE | |
47aaa820 | 657 | GNUSTEP_CONFIG |
c823f118 | 658 | CY_OBJECTIVEC |
309b0535 | 659 | LIBFFI_LIBS |
35fa52c0 | 660 | LIBFFI_CFLAGS |
a243b558 JF |
661 | CY_EXECUTE_FALSE |
662 | CY_EXECUTE_TRUE | |
d4f27204 | 663 | LTLIBAPR |
3fd51f51 | 664 | CY_EXECUTE |
35fa52c0 DWT |
665 | WEBKIT_LIBS |
666 | WEBKIT_CFLAGS | |
a243b558 | 667 | CY_ARCH |
e9c9a47c | 668 | GNUTAR |
e9c9a47c DWT |
669 | GPERF |
670 | FLEX | |
671 | BISON | |
672 | TIME | |
66170b30 | 673 | GIT |
e9c9a47c | 674 | _BASH |
12833ad8 | 675 | GMAKE |
632b71ea | 676 | ifGNUmake |
12833ad8 JF |
677 | PKG_CONFIG_LIBDIR |
678 | PKG_CONFIG_PATH | |
3fd51f51 | 679 | PKG_CONFIG |
a243b558 | 680 | CXXCPP |
9c60689e DWT |
681 | CPP |
682 | OTOOL64 | |
683 | OTOOL | |
684 | LIPO | |
685 | NMEDIT | |
686 | DSYMUTIL | |
ee134472 | 687 | MANIFEST_TOOL |
9c60689e | 688 | RANLIB |
ee134472 | 689 | DLLTOOL |
9c60689e DWT |
690 | OBJDUMP |
691 | LN_S | |
692 | NM | |
693 | ac_ct_DUMPBIN | |
694 | DUMPBIN | |
695 | LD | |
696 | FGREP | |
697 | EGREP | |
698 | GREP | |
699 | SED | |
a243b558 JF |
700 | host_os |
701 | host_vendor | |
702 | host_cpu | |
703 | host | |
704 | build_os | |
705 | build_vendor | |
706 | build_cpu | |
707 | build | |
708 | LIBTOOL | |
66170b30 JF |
709 | am__fastdepCC_FALSE |
710 | am__fastdepCC_TRUE | |
711 | CCDEPMODE | |
a243b558 JF |
712 | ac_ct_CC |
713 | CFLAGS | |
714 | CC | |
715 | ac_ct_AR | |
716 | AR | |
717 | am__fastdepOBJCXX_FALSE | |
718 | am__fastdepOBJCXX_TRUE | |
719 | OBJCXXDEPMODE | |
720 | ac_ct_OBJCXX | |
721 | OBJCXXFLAGS | |
722 | OBJCXX | |
723 | am__fastdepCXX_FALSE | |
724 | am__fastdepCXX_TRUE | |
725 | CXXDEPMODE | |
66170b30 JF |
726 | am__nodep |
727 | AMDEPBACKSLASH | |
728 | AMDEP_FALSE | |
729 | AMDEP_TRUE | |
730 | am__quote | |
731 | am__include | |
732 | DEPDIR | |
35fa52c0 DWT |
733 | OBJEXT |
734 | EXEEXT | |
a243b558 | 735 | ac_ct_CXX |
35fa52c0 DWT |
736 | CPPFLAGS |
737 | LDFLAGS | |
a243b558 JF |
738 | CXXFLAGS |
739 | CXX | |
66170b30 JF |
740 | AM_BACKSLASH |
741 | AM_DEFAULT_VERBOSITY | |
742 | AM_DEFAULT_V | |
743 | AM_V | |
744 | am__untar | |
745 | am__tar | |
746 | AMTAR | |
747 | am__leading_dot | |
748 | SET_MAKE | |
749 | AWK | |
750 | mkdir_p | |
751 | MKDIR_P | |
752 | INSTALL_STRIP_PROGRAM | |
753 | STRIP | |
754 | install_sh | |
755 | MAKEINFO | |
756 | AUTOHEADER | |
757 | AUTOMAKE | |
758 | AUTOCONF | |
759 | ACLOCAL | |
760 | VERSION | |
761 | PACKAGE | |
762 | CYGPATH_W | |
763 | am__isrc | |
764 | INSTALL_DATA | |
765 | INSTALL_SCRIPT | |
766 | INSTALL_PROGRAM | |
dbadc56a | 767 | target_alias |
c7aa54aa DWT |
768 | host_alias |
769 | build_alias | |
770 | LIBS | |
771 | ECHO_T | |
772 | ECHO_N | |
773 | ECHO_C | |
774 | DEFS | |
775 | mandir | |
776 | localedir | |
777 | libdir | |
778 | psdir | |
779 | pdfdir | |
780 | dvidir | |
781 | htmldir | |
782 | infodir | |
783 | docdir | |
784 | oldincludedir | |
785 | includedir | |
786 | localstatedir | |
787 | sharedstatedir | |
788 | sysconfdir | |
789 | datadir | |
790 | datarootdir | |
791 | libexecdir | |
792 | sbindir | |
793 | bindir | |
794 | program_transform_name | |
795 | prefix | |
796 | exec_prefix | |
797 | PACKAGE_URL | |
798 | PACKAGE_BUGREPORT | |
799 | PACKAGE_STRING | |
800 | PACKAGE_VERSION | |
801 | PACKAGE_TARNAME | |
802 | PACKAGE_NAME | |
803 | PATH_SEPARATOR | |
804 | SHELL' | |
805 | ac_subst_files='' | |
806 | ac_user_opts=' | |
807 | enable_option_checking | |
66170b30 | 808 | enable_silent_rules |
a243b558 | 809 | enable_dependency_tracking |
9c60689e | 810 | enable_static |
549f29b5 | 811 | enable_shared |
9c60689e DWT |
812 | with_pic |
813 | enable_fast_install | |
35fa52c0 | 814 | with_gnu_ld |
ee134472 | 815 | with_sysroot |
9c60689e | 816 | enable_libtool_lock |
632b71ea | 817 | with_frameworks |
5053a6d1 | 818 | enable_javascript |
66170b30 | 819 | with_apr |
35fa52c0 DWT |
820 | enable_rpath |
821 | with_libiconv_prefix | |
c7aa54aa DWT |
822 | ' |
823 | ac_precious_vars='build_alias | |
824 | host_alias | |
dbadc56a | 825 | target_alias |
a243b558 JF |
826 | CXX |
827 | CXXFLAGS | |
dbadc56a DWT |
828 | LDFLAGS |
829 | LIBS | |
830 | CPPFLAGS | |
a243b558 JF |
831 | CCC |
832 | OBJCXX | |
833 | OBJCXXFLAGS | |
834 | CC | |
835 | CFLAGS | |
9c60689e | 836 | CPP |
a243b558 | 837 | CXXCPP |
3fd51f51 | 838 | PKG_CONFIG |
12833ad8 JF |
839 | PKG_CONFIG_PATH |
840 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
841 | BISON |
842 | FLEX | |
843 | GPERF | |
66170b30 | 844 | GNUTAR |
35fa52c0 DWT |
845 | WEBKIT_CFLAGS |
846 | WEBKIT_LIBS | |
a667869d | 847 | LIBFFI_CFLAGS |
790e5246 DWT |
848 | LIBFFI_LIBS |
849 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
850 | |
851 | ||
852 | # Initialize some variables set by options. | |
853 | ac_init_help= | |
854 | ac_init_version=false | |
855 | ac_unrecognized_opts= | |
856 | ac_unrecognized_sep= | |
857 | # The variables have the same names as the options, with | |
858 | # dashes changed to underlines. | |
859 | cache_file=/dev/null | |
860 | exec_prefix=NONE | |
861 | no_create= | |
862 | no_recursion= | |
863 | prefix=NONE | |
864 | program_prefix=NONE | |
865 | program_suffix=NONE | |
866 | program_transform_name=s,x,x, | |
867 | silent= | |
868 | site= | |
869 | srcdir= | |
870 | verbose= | |
871 | x_includes=NONE | |
872 | x_libraries=NONE | |
873 | ||
874 | # Installation directory options. | |
875 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
876 | # and all the variables that are supposed to be based on exec_prefix | |
877 | # by default will actually change. | |
878 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
879 | # (The list follows the same order as the GNU Coding Standards.) | |
880 | bindir='${exec_prefix}/bin' | |
881 | sbindir='${exec_prefix}/sbin' | |
882 | libexecdir='${exec_prefix}/libexec' | |
883 | datarootdir='${prefix}/share' | |
884 | datadir='${datarootdir}' | |
885 | sysconfdir='${prefix}/etc' | |
886 | sharedstatedir='${prefix}/com' | |
887 | localstatedir='${prefix}/var' | |
888 | includedir='${prefix}/include' | |
889 | oldincludedir='/usr/include' | |
890 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
891 | infodir='${datarootdir}/info' | |
892 | htmldir='${docdir}' | |
893 | dvidir='${docdir}' | |
894 | pdfdir='${docdir}' | |
895 | psdir='${docdir}' | |
896 | libdir='${exec_prefix}/lib' | |
897 | localedir='${datarootdir}/locale' | |
898 | mandir='${datarootdir}/man' | |
899 | ||
900 | ac_prev= | |
901 | ac_dashdash= | |
902 | for ac_option | |
903 | do | |
904 | # If the previous option needs an argument, assign it. | |
905 | if test -n "$ac_prev"; then | |
906 | eval $ac_prev=\$ac_option | |
907 | ac_prev= | |
908 | continue | |
909 | fi | |
910 | ||
911 | case $ac_option in | |
12833ad8 JF |
912 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
913 | *=) ac_optarg= ;; | |
914 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
915 | esac |
916 | ||
917 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
918 | ||
919 | case $ac_dashdash$ac_option in | |
920 | --) | |
921 | ac_dashdash=yes ;; | |
922 | ||
923 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
924 | ac_prev=bindir ;; | |
925 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
926 | bindir=$ac_optarg ;; | |
927 | ||
928 | -build | --build | --buil | --bui | --bu) | |
929 | ac_prev=build_alias ;; | |
930 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
931 | build_alias=$ac_optarg ;; | |
932 | ||
933 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
934 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
935 | ac_prev=cache_file ;; | |
936 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
937 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
938 | cache_file=$ac_optarg ;; | |
939 | ||
940 | --config-cache | -C) | |
941 | cache_file=config.cache ;; | |
942 | ||
943 | -datadir | --datadir | --datadi | --datad) | |
944 | ac_prev=datadir ;; | |
945 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
946 | datadir=$ac_optarg ;; | |
947 | ||
948 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
949 | | --dataroo | --dataro | --datar) | |
950 | ac_prev=datarootdir ;; | |
951 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
952 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
953 | datarootdir=$ac_optarg ;; | |
954 | ||
955 | -disable-* | --disable-*) | |
956 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
957 | # Reject names that are not valid shell variable names. | |
958 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 959 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
960 | ac_useropt_orig=$ac_useropt |
961 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
962 | case $ac_user_opts in | |
963 | *" | |
964 | "enable_$ac_useropt" | |
965 | "*) ;; | |
966 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
967 | ac_unrecognized_sep=', ';; | |
968 | esac | |
969 | eval enable_$ac_useropt=no ;; | |
970 | ||
971 | -docdir | --docdir | --docdi | --doc | --do) | |
972 | ac_prev=docdir ;; | |
973 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
974 | docdir=$ac_optarg ;; | |
975 | ||
976 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
977 | ac_prev=dvidir ;; | |
978 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
979 | dvidir=$ac_optarg ;; | |
980 | ||
981 | -enable-* | --enable-*) | |
982 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
983 | # Reject names that are not valid shell variable names. | |
984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 985 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
986 | ac_useropt_orig=$ac_useropt |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
994 | esac | |
995 | eval enable_$ac_useropt=\$ac_optarg ;; | |
996 | ||
997 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
998 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
999 | | --exec | --exe | --ex) | |
1000 | ac_prev=exec_prefix ;; | |
1001 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1002 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1003 | | --exec=* | --exe=* | --ex=*) | |
1004 | exec_prefix=$ac_optarg ;; | |
1005 | ||
1006 | -gas | --gas | --ga | --g) | |
1007 | # Obsolete; use --with-gas. | |
1008 | with_gas=yes ;; | |
1009 | ||
1010 | -help | --help | --hel | --he | -h) | |
1011 | ac_init_help=long ;; | |
1012 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1013 | ac_init_help=recursive ;; | |
1014 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1015 | ac_init_help=short ;; | |
1016 | ||
1017 | -host | --host | --hos | --ho) | |
1018 | ac_prev=host_alias ;; | |
1019 | -host=* | --host=* | --hos=* | --ho=*) | |
1020 | host_alias=$ac_optarg ;; | |
1021 | ||
1022 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1023 | ac_prev=htmldir ;; | |
1024 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1025 | | --ht=*) | |
1026 | htmldir=$ac_optarg ;; | |
1027 | ||
1028 | -includedir | --includedir | --includedi | --included | --include \ | |
1029 | | --includ | --inclu | --incl | --inc) | |
1030 | ac_prev=includedir ;; | |
1031 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1032 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1033 | includedir=$ac_optarg ;; | |
1034 | ||
1035 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1036 | ac_prev=infodir ;; | |
1037 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1038 | infodir=$ac_optarg ;; | |
1039 | ||
1040 | -libdir | --libdir | --libdi | --libd) | |
1041 | ac_prev=libdir ;; | |
1042 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1043 | libdir=$ac_optarg ;; | |
1044 | ||
1045 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1046 | | --libexe | --libex | --libe) | |
1047 | ac_prev=libexecdir ;; | |
1048 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1049 | | --libexe=* | --libex=* | --libe=*) | |
1050 | libexecdir=$ac_optarg ;; | |
1051 | ||
1052 | -localedir | --localedir | --localedi | --localed | --locale) | |
1053 | ac_prev=localedir ;; | |
1054 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1055 | localedir=$ac_optarg ;; | |
1056 | ||
1057 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1058 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1059 | ac_prev=localstatedir ;; | |
1060 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1061 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1062 | localstatedir=$ac_optarg ;; | |
1063 | ||
1064 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1065 | ac_prev=mandir ;; | |
1066 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1067 | mandir=$ac_optarg ;; | |
1068 | ||
1069 | -nfp | --nfp | --nf) | |
1070 | # Obsolete; use --without-fp. | |
1071 | with_fp=no ;; | |
1072 | ||
1073 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1074 | | --no-cr | --no-c | -n) | |
1075 | no_create=yes ;; | |
1076 | ||
1077 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1078 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1079 | no_recursion=yes ;; | |
1080 | ||
1081 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1082 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1083 | | --oldin | --oldi | --old | --ol | --o) | |
1084 | ac_prev=oldincludedir ;; | |
1085 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1086 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1087 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1088 | oldincludedir=$ac_optarg ;; | |
1089 | ||
1090 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1091 | ac_prev=prefix ;; | |
1092 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1093 | prefix=$ac_optarg ;; | |
1094 | ||
1095 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1096 | | --program-pre | --program-pr | --program-p) | |
1097 | ac_prev=program_prefix ;; | |
1098 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1099 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1100 | program_prefix=$ac_optarg ;; | |
1101 | ||
1102 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1103 | | --program-suf | --program-su | --program-s) | |
1104 | ac_prev=program_suffix ;; | |
1105 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1106 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1107 | program_suffix=$ac_optarg ;; | |
1108 | ||
1109 | -program-transform-name | --program-transform-name \ | |
1110 | | --program-transform-nam | --program-transform-na \ | |
1111 | | --program-transform-n | --program-transform- \ | |
1112 | | --program-transform | --program-transfor \ | |
1113 | | --program-transfo | --program-transf \ | |
1114 | | --program-trans | --program-tran \ | |
1115 | | --progr-tra | --program-tr | --program-t) | |
1116 | ac_prev=program_transform_name ;; | |
1117 | -program-transform-name=* | --program-transform-name=* \ | |
1118 | | --program-transform-nam=* | --program-transform-na=* \ | |
1119 | | --program-transform-n=* | --program-transform-=* \ | |
1120 | | --program-transform=* | --program-transfor=* \ | |
1121 | | --program-transfo=* | --program-transf=* \ | |
1122 | | --program-trans=* | --program-tran=* \ | |
1123 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1124 | program_transform_name=$ac_optarg ;; | |
1125 | ||
1126 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1127 | ac_prev=pdfdir ;; | |
1128 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1129 | pdfdir=$ac_optarg ;; | |
1130 | ||
1131 | -psdir | --psdir | --psdi | --psd | --ps) | |
1132 | ac_prev=psdir ;; | |
1133 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1134 | psdir=$ac_optarg ;; | |
1135 | ||
1136 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1137 | | -silent | --silent | --silen | --sile | --sil) | |
1138 | silent=yes ;; | |
1139 | ||
1140 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1141 | ac_prev=sbindir ;; | |
1142 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1143 | | --sbi=* | --sb=*) | |
1144 | sbindir=$ac_optarg ;; | |
1145 | ||
1146 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1147 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1148 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1149 | | --sha | --sh) | |
1150 | ac_prev=sharedstatedir ;; | |
1151 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1152 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1153 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1154 | | --sha=* | --sh=*) | |
1155 | sharedstatedir=$ac_optarg ;; | |
1156 | ||
1157 | -site | --site | --sit) | |
1158 | ac_prev=site ;; | |
1159 | -site=* | --site=* | --sit=*) | |
1160 | site=$ac_optarg ;; | |
1161 | ||
1162 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1163 | ac_prev=srcdir ;; | |
1164 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1165 | srcdir=$ac_optarg ;; | |
1166 | ||
1167 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1168 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1169 | ac_prev=sysconfdir ;; | |
1170 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1171 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1172 | sysconfdir=$ac_optarg ;; | |
1173 | ||
1174 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1175 | ac_prev=target_alias ;; | |
1176 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1177 | target_alias=$ac_optarg ;; | |
1178 | ||
1179 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1180 | verbose=yes ;; | |
1181 | ||
1182 | -version | --version | --versio | --versi | --vers | -V) | |
1183 | ac_init_version=: ;; | |
1184 | ||
1185 | -with-* | --with-*) | |
1186 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1187 | # Reject names that are not valid shell variable names. | |
1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1189 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1190 | ac_useropt_orig=$ac_useropt |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=\$ac_optarg ;; | |
1200 | ||
1201 | -without-* | --without-*) | |
1202 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1203 | # Reject names that are not valid shell variable names. | |
1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1205 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1206 | ac_useropt_orig=$ac_useropt |
1207 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1208 | case $ac_user_opts in | |
1209 | *" | |
1210 | "with_$ac_useropt" | |
1211 | "*) ;; | |
1212 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1213 | ac_unrecognized_sep=', ';; | |
1214 | esac | |
1215 | eval with_$ac_useropt=no ;; | |
1216 | ||
1217 | --x) | |
1218 | # Obsolete; use --with-x. | |
1219 | with_x=yes ;; | |
1220 | ||
1221 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1222 | | --x-incl | --x-inc | --x-in | --x-i) | |
1223 | ac_prev=x_includes ;; | |
1224 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1225 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1226 | x_includes=$ac_optarg ;; | |
1227 | ||
1228 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1229 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1230 | ac_prev=x_libraries ;; | |
1231 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1232 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1233 | x_libraries=$ac_optarg ;; | |
1234 | ||
12833ad8 JF |
1235 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1236 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1237 | ;; |
1238 | ||
1239 | *=*) | |
1240 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1241 | # Reject names that are not valid shell variable names. | |
1242 | case $ac_envvar in #( | |
1243 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1244 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1245 | esac |
1246 | eval $ac_envvar=\$ac_optarg | |
1247 | export $ac_envvar ;; | |
1248 | ||
1249 | *) | |
1250 | # FIXME: should be removed in autoconf 3.0. | |
1251 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1252 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1253 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1254 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1255 | ;; |
1256 | ||
1257 | esac | |
1258 | done | |
1259 | ||
1260 | if test -n "$ac_prev"; then | |
1261 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1262 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1263 | fi |
1264 | ||
1265 | if test -n "$ac_unrecognized_opts"; then | |
1266 | case $enable_option_checking in | |
1267 | no) ;; | |
12833ad8 | 1268 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1269 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1270 | esac | |
1271 | fi | |
1272 | ||
1273 | # Check all directory arguments for consistency. | |
1274 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1275 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1276 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1277 | libdir localedir mandir | |
1278 | do | |
1279 | eval ac_val=\$$ac_var | |
1280 | # Remove trailing slashes. | |
1281 | case $ac_val in | |
1282 | */ ) | |
1283 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1284 | eval $ac_var=\$ac_val;; | |
1285 | esac | |
1286 | # Be sure to have absolute directory names. | |
1287 | case $ac_val in | |
1288 | [\\/$]* | ?:[\\/]* ) continue;; | |
1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1290 | esac | |
12833ad8 | 1291 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1292 | done |
1293 | ||
1294 | # There might be people who depend on the old broken behavior: `$host' | |
1295 | # used to hold the argument of --host etc. | |
1296 | # FIXME: To remove some day. | |
1297 | build=$build_alias | |
1298 | host=$host_alias | |
1299 | target=$target_alias | |
1300 | ||
1301 | # FIXME: To remove some day. | |
1302 | if test "x$host_alias" != x; then | |
1303 | if test "x$build_alias" = x; then | |
1304 | cross_compiling=maybe | |
c7aa54aa DWT |
1305 | elif test "x$build_alias" != "x$host_alias"; then |
1306 | cross_compiling=yes | |
1307 | fi | |
1308 | fi | |
1309 | ||
1310 | ac_tool_prefix= | |
1311 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1312 | ||
1313 | test "$silent" = yes && exec 6>/dev/null | |
1314 | ||
1315 | ||
1316 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1317 | ac_ls_di=`ls -di .` && | |
1318 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1319 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1320 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1321 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1322 | |
1323 | ||
1324 | # Find the source files, if location was not specified. | |
1325 | if test -z "$srcdir"; then | |
1326 | ac_srcdir_defaulted=yes | |
1327 | # Try the directory containing this script, then the parent directory. | |
1328 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1329 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1330 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1331 | X"$as_myself" : 'X\(//\)$' \| \ | |
1332 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1333 | $as_echo X"$as_myself" | | |
1334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)[^/].*/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\/\)$/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\).*/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | s/.*/./; q'` | |
1351 | srcdir=$ac_confdir | |
1352 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1353 | srcdir=.. | |
1354 | fi | |
1355 | else | |
1356 | ac_srcdir_defaulted=no | |
1357 | fi | |
1358 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1359 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1360 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1361 | fi |
1362 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1363 | ac_abs_confdir=`( | |
12833ad8 | 1364 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1365 | pwd)` |
1366 | # When building in place, set srcdir=. | |
1367 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1368 | srcdir=. | |
1369 | fi | |
1370 | # Remove unnecessary trailing slashes from srcdir. | |
1371 | # Double slashes in file names in object file debugging info | |
1372 | # mess up M-x gdb in Emacs. | |
1373 | case $srcdir in | |
1374 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1375 | esac | |
1376 | for ac_var in $ac_precious_vars; do | |
1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1381 | done | |
1382 | ||
1383 | # | |
1384 | # Report the --help message. | |
1385 | # | |
1386 | if test "$ac_init_help" = "long"; then | |
1387 | # Omit some internal or obsolete options to make the list less imposing. | |
1388 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1389 | cat <<_ACEOF | |
1390 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1391 | ||
1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1393 | ||
1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1395 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1396 | ||
1397 | Defaults for the options are specified in brackets. | |
1398 | ||
1399 | Configuration: | |
1400 | -h, --help display this help and exit | |
1401 | --help=short display options specific to this package | |
1402 | --help=recursive display the short help of all the included packages | |
1403 | -V, --version display version information and exit | |
12833ad8 | 1404 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1405 | --cache-file=FILE cache test results in FILE [disabled] |
1406 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1407 | -n, --no-create do not create output files | |
1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1409 | ||
1410 | Installation directories: | |
1411 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1412 | [$ac_default_prefix] | |
1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1414 | [PREFIX] | |
1415 | ||
1416 | By default, \`make install' will install all the files in | |
1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1419 | for instance \`--prefix=\$HOME'. | |
1420 | ||
1421 | For better control, use the options below. | |
1422 | ||
1423 | Fine tuning of the installation directories: | |
1424 | --bindir=DIR user executables [EPREFIX/bin] | |
1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1426 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
1443 | _ACEOF | |
1444 | ||
1445 | cat <<\_ACEOF | |
35fa52c0 | 1446 | |
66170b30 JF |
1447 | Program names: |
1448 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1449 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1450 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1451 | ||
35fa52c0 DWT |
1452 | System types: |
1453 | --build=BUILD configure for building on BUILD [guessed] | |
1454 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1455 | _ACEOF |
1456 | fi | |
1457 | ||
1458 | if test -n "$ac_init_help"; then | |
1459 | case $ac_init_help in | |
1460 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1461 | esac | |
1462 | cat <<\_ACEOF | |
1463 | ||
35fa52c0 DWT |
1464 | Optional Features: |
1465 | --disable-option-checking ignore unrecognized --enable/--with options | |
1466 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1467 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1468 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1469 | --disable-silent-rules verbose build output (undo: "make V=0") | |
66170b30 JF |
1470 | --enable-dependency-tracking |
1471 | do not reject slow dependency extractors | |
1472 | --disable-dependency-tracking | |
1473 | speeds up one-time build | |
a243b558 JF |
1474 | --enable-static[=PKGS] build static libraries [default=no] |
1475 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1476 | --enable-fast-install[=PKGS] | |
1477 | optimize for fast installation [default=yes] | |
9c60689e | 1478 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1479 | --enable-javascript[=ENGINE] |
790e5246 | 1480 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1481 | available option for ENGINE is JavaScriptCore) |
1482 | [default=yes] | |
5053a6d1 | 1483 | --disable-rpath do not hardcode runtime library paths |
35fa52c0 DWT |
1484 | |
1485 | Optional Packages: | |
1486 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1487 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1488 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e DWT |
1489 | both] |
1490 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ee134472 JF |
1491 | --with-sysroot=DIR Search for dependent libraries within DIR |
1492 | (or the compiler's sysroot if not specified). | |
632b71ea DWT |
1493 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1494 | path for frameworks with -F | |
309b0535 DWT |
1495 | --with-apr=PATH prefix for installed APR or the full path to |
1496 | apr-config | |
53ba6704 | 1497 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
35fa52c0 DWT |
1498 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1499 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1500 | ||
dbadc56a | 1501 | Some influential environment variables: |
a243b558 JF |
1502 | CXX C++ compiler command |
1503 | CXXFLAGS C++ compiler flags | |
dbadc56a DWT |
1504 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1505 | nonstandard directory <lib dir> | |
1506 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1507 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1508 | you have headers in a nonstandard directory <include dir> |
a243b558 JF |
1509 | OBJCXX Objective C++ compiler command |
1510 | OBJCXXFLAGS Objective C++ compiler flags | |
1511 | CC C compiler command | |
1512 | CFLAGS C compiler flags | |
9c60689e | 1513 | CPP C preprocessor |
a243b558 | 1514 | CXXCPP C++ preprocessor |
3fd51f51 | 1515 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1516 | PKG_CONFIG_PATH |
1517 | directories to add to pkg-config's search path | |
1518 | PKG_CONFIG_LIBDIR | |
1519 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1520 | BISON GNU Project parser generator (yacc replacement) |
1521 | FLEX the fast lexical analyser generator | |
1522 | GPERF perfect hash function generator | |
66170b30 | 1523 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1524 | WEBKIT_CFLAGS |
1525 | C compiler flags for WEBKIT, overriding pkg-config | |
1526 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1527 | LIBFFI_CFLAGS | |
1528 | C compiler flags for LIBFFI, overriding pkg-config | |
1529 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1530 | GNUSTEP_CONFIG |
1531 | prints information about the current gnustep installation | |
dbadc56a DWT |
1532 | |
1533 | Use these variables to override the choices made by `configure' or to help | |
1534 | it to find libraries and programs with nonstandard names/locations. | |
1535 | ||
c7aa54aa DWT |
1536 | Report bugs to <saurik@saurik.com>. |
1537 | Cycript home page: <http://www.cycript.org/>. | |
1538 | _ACEOF | |
1539 | ac_status=$? | |
1540 | fi | |
1541 | ||
1542 | if test "$ac_init_help" = "recursive"; then | |
1543 | # If there are subdirs, report their specific --help. | |
1544 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1545 | test -d "$ac_dir" || | |
1546 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1547 | continue | |
1548 | ac_builddir=. | |
1549 | ||
1550 | case "$ac_dir" in | |
1551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1552 | *) | |
1553 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1554 | # A ".." for each directory in $ac_dir_suffix. | |
1555 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1556 | case $ac_top_builddir_sub in | |
1557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1559 | esac ;; | |
1560 | esac | |
1561 | ac_abs_top_builddir=$ac_pwd | |
1562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1563 | # for backward compatibility: | |
1564 | ac_top_builddir=$ac_top_build_prefix | |
1565 | ||
1566 | case $srcdir in | |
1567 | .) # We are building in place. | |
1568 | ac_srcdir=. | |
1569 | ac_top_srcdir=$ac_top_builddir_sub | |
1570 | ac_abs_top_srcdir=$ac_pwd ;; | |
1571 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1572 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1573 | ac_top_srcdir=$srcdir | |
1574 | ac_abs_top_srcdir=$srcdir ;; | |
1575 | *) # Relative name. | |
1576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1577 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1579 | esac | |
1580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1581 | ||
1582 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1583 | # Check for guested configure. | |
1584 | if test -f "$ac_srcdir/configure.gnu"; then | |
1585 | echo && | |
1586 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1587 | elif test -f "$ac_srcdir/configure"; then | |
1588 | echo && | |
1589 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1590 | else | |
1591 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1592 | fi || ac_status=$? | |
1593 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1594 | done | |
1595 | fi | |
1596 | ||
1597 | test -n "$ac_init_help" && exit $ac_status | |
1598 | if $ac_init_version; then | |
1599 | cat <<\_ACEOF | |
1600 | Cycript configure 0.9 | |
53ba6704 | 1601 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1602 | |
53ba6704 | 1603 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1604 | This configure script is free software; the Free Software Foundation |
1605 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
1606 | |
1607 | Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
1608 | _ACEOF |
1609 | exit | |
1610 | fi | |
1611 | ||
1612 | ## ------------------------ ## | |
1613 | ## Autoconf initialization. ## | |
1614 | ## ------------------------ ## | |
dbadc56a | 1615 | |
a243b558 JF |
1616 | # ac_fn_cxx_try_compile LINENO |
1617 | # ---------------------------- | |
1618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1619 | ac_fn_cxx_try_compile () | |
1620 | { | |
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1622 | rm -f conftest.$ac_objext | |
1623 | if { { ac_try="$ac_compile" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_compile") 2>conftest.err | |
1631 | ac_status=$? | |
1632 | if test -s conftest.err; then | |
1633 | grep -v '^ *+' conftest.err >conftest.er1 | |
1634 | cat conftest.er1 >&5 | |
1635 | mv -f conftest.er1 conftest.err | |
1636 | fi | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { | |
1639 | test -z "$ac_cxx_werror_flag" || | |
1640 | test ! -s conftest.err | |
1641 | } && test -s conftest.$ac_objext; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1646 | ||
1647 | ac_retval=1 | |
1648 | fi | |
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1650 | as_fn_set_status $ac_retval | |
1651 | ||
1652 | } # ac_fn_cxx_try_compile | |
1653 | ||
1654 | # ac_fn_objcxx_try_compile LINENO | |
1655 | # ------------------------------- | |
1656 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1657 | ac_fn_objcxx_try_compile () | |
1658 | { | |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | rm -f conftest.$ac_objext | |
1661 | if { { ac_try="$ac_compile" | |
1662 | case "(($ac_try" in | |
1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1664 | *) ac_try_echo=$ac_try;; | |
1665 | esac | |
1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1667 | $as_echo "$ac_try_echo"; } >&5 | |
1668 | (eval "$ac_compile") 2>conftest.err | |
1669 | ac_status=$? | |
1670 | if test -s conftest.err; then | |
1671 | grep -v '^ *+' conftest.err >conftest.er1 | |
1672 | cat conftest.er1 >&5 | |
1673 | mv -f conftest.er1 conftest.err | |
1674 | fi | |
1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1676 | test $ac_status = 0; } && { | |
1677 | test -z "$ac_objcxx_werror_flag" || | |
1678 | test ! -s conftest.err | |
1679 | } && test -s conftest.$ac_objext; then : | |
1680 | ac_retval=0 | |
1681 | else | |
1682 | $as_echo "$as_me: failed program was:" >&5 | |
1683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1684 | ||
1685 | ac_retval=1 | |
1686 | fi | |
1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1688 | as_fn_set_status $ac_retval | |
1689 | ||
1690 | } # ac_fn_objcxx_try_compile | |
1691 | ||
35fa52c0 DWT |
1692 | # ac_fn_c_try_compile LINENO |
1693 | # -------------------------- | |
1694 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1695 | ac_fn_c_try_compile () | |
1696 | { | |
1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1698 | rm -f conftest.$ac_objext | |
1699 | if { { ac_try="$ac_compile" | |
1700 | case "(($ac_try" in | |
1701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1702 | *) ac_try_echo=$ac_try;; | |
1703 | esac | |
1704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1705 | $as_echo "$ac_try_echo"; } >&5 | |
1706 | (eval "$ac_compile") 2>conftest.err | |
1707 | ac_status=$? | |
1708 | if test -s conftest.err; then | |
1709 | grep -v '^ *+' conftest.err >conftest.er1 | |
1710 | cat conftest.er1 >&5 | |
1711 | mv -f conftest.er1 conftest.err | |
1712 | fi | |
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1714 | test $ac_status = 0; } && { | |
1715 | test -z "$ac_c_werror_flag" || | |
1716 | test ! -s conftest.err | |
1717 | } && test -s conftest.$ac_objext; then : | |
1718 | ac_retval=0 | |
1719 | else | |
1720 | $as_echo "$as_me: failed program was:" >&5 | |
1721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1722 | ||
1723 | ac_retval=1 | |
1724 | fi | |
ee134472 | 1725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1726 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1727 | |
1728 | } # ac_fn_c_try_compile | |
1729 | ||
1730 | # ac_fn_c_try_link LINENO | |
1731 | # ----------------------- | |
1732 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1733 | ac_fn_c_try_link () | |
1734 | { | |
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1737 | if { { ac_try="$ac_link" | |
1738 | case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_link") 2>conftest.err | |
1745 | ac_status=$? | |
1746 | if test -s conftest.err; then | |
1747 | grep -v '^ *+' conftest.err >conftest.er1 | |
1748 | cat conftest.er1 >&5 | |
1749 | mv -f conftest.er1 conftest.err | |
1750 | fi | |
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1752 | test $ac_status = 0; } && { | |
1753 | test -z "$ac_c_werror_flag" || | |
1754 | test ! -s conftest.err | |
1755 | } && test -s conftest$ac_exeext && { | |
1756 | test "$cross_compiling" = yes || | |
53ba6704 | 1757 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1758 | }; then : |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1767 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1768 | # interfere with the next link command; also delete a directory that is | |
1769 | # left behind by Apple's compiler. We do this before executing the actions. | |
1770 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1771 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1772 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1773 | |
1774 | } # ac_fn_c_try_link | |
1775 | ||
9c60689e DWT |
1776 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1777 | # ------------------------------------------------------- | |
1778 | # Tests whether HEADER exists and can be compiled using the include files in | |
1779 | # INCLUDES, setting the cache variable VAR accordingly. | |
1780 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1781 | { |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1784 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1785 | if eval \${$3+:} false; then : |
9c60689e DWT |
1786 | $as_echo_n "(cached) " >&6 |
1787 | else | |
1788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1789 | /* end confdefs.h. */ | |
1790 | $4 | |
1791 | #include <$2> | |
1792 | _ACEOF | |
1793 | if ac_fn_c_try_compile "$LINENO"; then : | |
1794 | eval "$3=yes" | |
1795 | else | |
1796 | eval "$3=no" | |
1797 | fi | |
1798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1799 | fi | |
1800 | eval ac_res=\$$3 | |
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1802 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1804 | |
1805 | } # ac_fn_c_check_header_compile | |
1806 | ||
1807 | # ac_fn_c_try_cpp LINENO | |
1808 | # ---------------------- | |
1809 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1810 | ac_fn_c_try_cpp () | |
1811 | { | |
1812 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1813 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1814 | case "(($ac_try" in |
1815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1816 | *) ac_try_echo=$ac_try;; | |
1817 | esac | |
1818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1819 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1821 | ac_status=$? |
1822 | if test -s conftest.err; then | |
1823 | grep -v '^ *+' conftest.err >conftest.er1 | |
1824 | cat conftest.er1 >&5 | |
1825 | mv -f conftest.er1 conftest.err | |
1826 | fi | |
1827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1828 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1830 | test ! -s conftest.err |
9c60689e | 1831 | }; then : |
dbadc56a DWT |
1832 | ac_retval=0 |
1833 | else | |
1834 | $as_echo "$as_me: failed program was:" >&5 | |
1835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1836 | ||
9c60689e | 1837 | ac_retval=1 |
dbadc56a | 1838 | fi |
ee134472 | 1839 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1840 | as_fn_set_status $ac_retval |
dbadc56a | 1841 | |
9c60689e | 1842 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1843 | |
1844 | # ac_fn_c_try_run LINENO | |
1845 | # ---------------------- | |
1846 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1847 | # that executables *can* be run. | |
1848 | ac_fn_c_try_run () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | if { { ac_try="$ac_link" | |
1852 | case "(($ac_try" in | |
1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1854 | *) ac_try_echo=$ac_try;; | |
1855 | esac | |
1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1857 | $as_echo "$ac_try_echo"; } >&5 | |
1858 | (eval "$ac_link") 2>&5 | |
1859 | ac_status=$? | |
1860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1861 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1862 | { { case "(($ac_try" in | |
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1864 | *) ac_try_echo=$ac_try;; | |
1865 | esac | |
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1867 | $as_echo "$ac_try_echo"; } >&5 | |
1868 | (eval "$ac_try") 2>&5 | |
1869 | ac_status=$? | |
1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1871 | test $ac_status = 0; }; }; then : | |
1872 | ac_retval=0 | |
1873 | else | |
1874 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1875 | $as_echo "$as_me: failed program was:" >&5 | |
1876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1877 | ||
1878 | ac_retval=$ac_status | |
1879 | fi | |
1880 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1882 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1883 | |
1884 | } # ac_fn_c_try_run | |
6b66678a | 1885 | |
9c60689e DWT |
1886 | # ac_fn_c_check_func LINENO FUNC VAR |
1887 | # ---------------------------------- | |
1888 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1889 | ac_fn_c_check_func () | |
6b66678a DWT |
1890 | { |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1893 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1894 | if eval \${$3+:} false; then : |
9c60689e | 1895 | $as_echo_n "(cached) " >&6 |
6b66678a | 1896 | else |
9c60689e DWT |
1897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1898 | /* end confdefs.h. */ | |
1899 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1901 | #define $2 innocuous_$2 | |
6b66678a | 1902 | |
9c60689e DWT |
1903 | /* System header to define __stub macros and hopefully few prototypes, |
1904 | which can conflict with char $2 (); below. | |
1905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1906 | <limits.h> exists even on freestanding compilers. */ | |
1907 | ||
1908 | #ifdef __STDC__ | |
1909 | # include <limits.h> | |
1910 | #else | |
1911 | # include <assert.h> | |
1912 | #endif | |
1913 | ||
1914 | #undef $2 | |
1915 | ||
1916 | /* Override any GCC internal prototype to avoid an error. | |
1917 | Use char because int might match the return type of a GCC | |
1918 | builtin and then its argument prototype would still apply. */ | |
1919 | #ifdef __cplusplus | |
1920 | extern "C" | |
1921 | #endif | |
1922 | char $2 (); | |
1923 | /* The GNU C library defines this for functions which it implements | |
1924 | to always fail with ENOSYS. Some functions are actually named | |
1925 | something starting with __ and the normal name is an alias. */ | |
1926 | #if defined __stub_$2 || defined __stub___$2 | |
1927 | choke me | |
1928 | #endif | |
1929 | ||
1930 | int | |
1931 | main () | |
1932 | { | |
1933 | return $2 (); | |
1934 | ; | |
1935 | return 0; | |
1936 | } | |
1937 | _ACEOF | |
1938 | if ac_fn_c_try_link "$LINENO"; then : | |
1939 | eval "$3=yes" | |
1940 | else | |
1941 | eval "$3=no" | |
1942 | fi | |
1943 | rm -f core conftest.err conftest.$ac_objext \ | |
1944 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1945 | fi |
9c60689e DWT |
1946 | eval ac_res=\$$3 |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1948 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1949 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1950 | |
9c60689e | 1951 | } # ac_fn_c_check_func |
6b66678a | 1952 | |
9c60689e DWT |
1953 | # ac_fn_cxx_try_cpp LINENO |
1954 | # ------------------------ | |
1955 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1956 | ac_fn_cxx_try_cpp () | |
1957 | { | |
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1959 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1960 | case "(($ac_try" in | |
1961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1962 | *) ac_try_echo=$ac_try;; | |
1963 | esac | |
1964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1965 | $as_echo "$ac_try_echo"; } >&5 | |
1966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1967 | ac_status=$? | |
1968 | if test -s conftest.err; then | |
1969 | grep -v '^ *+' conftest.err >conftest.er1 | |
1970 | cat conftest.er1 >&5 | |
1971 | mv -f conftest.er1 conftest.err | |
1972 | fi | |
1973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1974 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1975 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1976 | test ! -s conftest.err | |
1977 | }; then : | |
1978 | ac_retval=0 | |
1979 | else | |
1980 | $as_echo "$as_me: failed program was:" >&5 | |
1981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1982 | ||
1983 | ac_retval=1 | |
1984 | fi | |
ee134472 | 1985 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1986 | as_fn_set_status $ac_retval |
1987 | ||
1988 | } # ac_fn_cxx_try_cpp | |
1989 | ||
1990 | # ac_fn_cxx_try_link LINENO | |
1991 | # ------------------------- | |
1992 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1993 | ac_fn_cxx_try_link () | |
1994 | { | |
1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1997 | if { { ac_try="$ac_link" | |
1998 | case "(($ac_try" in | |
1999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2000 | *) ac_try_echo=$ac_try;; | |
2001 | esac | |
2002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2003 | $as_echo "$ac_try_echo"; } >&5 | |
2004 | (eval "$ac_link") 2>conftest.err | |
2005 | ac_status=$? | |
2006 | if test -s conftest.err; then | |
2007 | grep -v '^ *+' conftest.err >conftest.er1 | |
2008 | cat conftest.er1 >&5 | |
2009 | mv -f conftest.er1 conftest.err | |
2010 | fi | |
2011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2012 | test $ac_status = 0; } && { | |
2013 | test -z "$ac_cxx_werror_flag" || | |
2014 | test ! -s conftest.err | |
2015 | } && test -s conftest$ac_exeext && { | |
2016 | test "$cross_compiling" = yes || | |
53ba6704 | 2017 | test -x conftest$ac_exeext |
9c60689e DWT |
2018 | }; then : |
2019 | ac_retval=0 | |
2020 | else | |
2021 | $as_echo "$as_me: failed program was:" >&5 | |
2022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2023 | ||
2024 | ac_retval=1 | |
2025 | fi | |
2026 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2027 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2028 | # interfere with the next link command; also delete a directory that is | |
2029 | # left behind by Apple's compiler. We do this before executing the actions. | |
2030 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2031 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2032 | as_fn_set_status $ac_retval |
2033 | ||
2034 | } # ac_fn_cxx_try_link | |
2035 | ||
47aaa820 DWT |
2036 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2037 | # --------------------------------------------------------- | |
2038 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2039 | # the include files in INCLUDES and setting the cache variable VAR | |
2040 | # accordingly. | |
2041 | ac_fn_cxx_check_header_mongrel () | |
2042 | { | |
2043 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2044 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2046 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2047 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2048 | $as_echo_n "(cached) " >&6 |
2049 | fi | |
2050 | eval ac_res=\$$3 | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2052 | $as_echo "$ac_res" >&6; } | |
2053 | else | |
2054 | # Is the header compilable? | |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2056 | $as_echo_n "checking $2 usability... " >&6; } | |
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2058 | /* end confdefs.h. */ | |
2059 | $4 | |
2060 | #include <$2> | |
2061 | _ACEOF | |
2062 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2063 | ac_header_compiler=yes | |
2064 | else | |
2065 | ac_header_compiler=no | |
2066 | fi | |
2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2069 | $as_echo "$ac_header_compiler" >&6; } | |
2070 | ||
2071 | # Is the header present? | |
2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2073 | $as_echo_n "checking $2 presence... " >&6; } | |
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2075 | /* end confdefs.h. */ | |
2076 | #include <$2> | |
2077 | _ACEOF | |
2078 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2079 | ac_header_preproc=yes | |
2080 | else | |
2081 | ac_header_preproc=no | |
2082 | fi | |
12833ad8 | 2083 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2085 | $as_echo "$ac_header_preproc" >&6; } | |
2086 | ||
2087 | # So? What about this header? | |
2088 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2089 | yes:no: ) | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2091 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2094 | ;; | |
2095 | no:yes:* ) | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2101 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2103 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2105 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2106 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2107 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2108 | ## -------------------------------- ##" |
47aaa820 DWT |
2109 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2110 | ;; | |
2111 | esac | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2113 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2114 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2115 | $as_echo_n "(cached) " >&6 |
2116 | else | |
2117 | eval "$3=\$ac_header_compiler" | |
2118 | fi | |
2119 | eval ac_res=\$$3 | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2121 | $as_echo "$ac_res" >&6; } | |
2122 | fi | |
ee134472 | 2123 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2124 | |
2125 | } # ac_fn_cxx_check_header_mongrel | |
2126 | ||
c823f118 DWT |
2127 | # ac_fn_objcxx_try_link LINENO |
2128 | # ---------------------------- | |
2129 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2130 | ac_fn_objcxx_try_link () | |
2131 | { | |
2132 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2134 | if { { ac_try="$ac_link" | |
2135 | case "(($ac_try" in | |
2136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2137 | *) ac_try_echo=$ac_try;; | |
2138 | esac | |
2139 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2140 | $as_echo "$ac_try_echo"; } >&5 | |
2141 | (eval "$ac_link") 2>conftest.err | |
2142 | ac_status=$? | |
2143 | if test -s conftest.err; then | |
2144 | grep -v '^ *+' conftest.err >conftest.er1 | |
2145 | cat conftest.er1 >&5 | |
2146 | mv -f conftest.er1 conftest.err | |
2147 | fi | |
2148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2149 | test $ac_status = 0; } && { | |
2150 | test -z "$ac_objcxx_werror_flag" || | |
2151 | test ! -s conftest.err | |
2152 | } && test -s conftest$ac_exeext && { | |
2153 | test "$cross_compiling" = yes || | |
53ba6704 | 2154 | test -x conftest$ac_exeext |
c823f118 DWT |
2155 | }; then : |
2156 | ac_retval=0 | |
2157 | else | |
2158 | $as_echo "$as_me: failed program was:" >&5 | |
2159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2160 | ||
2161 | ac_retval=1 | |
2162 | fi | |
2163 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2164 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2165 | # interfere with the next link command; also delete a directory that is | |
2166 | # left behind by Apple's compiler. We do this before executing the actions. | |
2167 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2168 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2169 | as_fn_set_status $ac_retval |
2170 | ||
2171 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2172 | cat >config.log <<_ACEOF |
2173 | This file contains any messages produced by compilers while | |
2174 | running configure, to aid debugging if configure makes a mistake. | |
2175 | ||
2176 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2177 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2178 | |
2179 | $ $0 $@ | |
2180 | ||
2181 | _ACEOF | |
2182 | exec 5>>config.log | |
2183 | { | |
2184 | cat <<_ASUNAME | |
2185 | ## --------- ## | |
2186 | ## Platform. ## | |
2187 | ## --------- ## | |
2188 | ||
2189 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2190 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2191 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2192 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2193 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2194 | ||
2195 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2196 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2197 | ||
2198 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2199 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2200 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2201 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2202 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2203 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2204 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2205 | ||
2206 | _ASUNAME | |
2207 | ||
2208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2209 | for as_dir in $PATH | |
2210 | do | |
2211 | IFS=$as_save_IFS | |
2212 | test -z "$as_dir" && as_dir=. | |
2213 | $as_echo "PATH: $as_dir" | |
2214 | done | |
2215 | IFS=$as_save_IFS | |
2216 | ||
2217 | } >&5 | |
2218 | ||
2219 | cat >&5 <<_ACEOF | |
2220 | ||
2221 | ||
2222 | ## ----------- ## | |
2223 | ## Core tests. ## | |
2224 | ## ----------- ## | |
2225 | ||
2226 | _ACEOF | |
2227 | ||
2228 | ||
2229 | # Keep a trace of the command line. | |
2230 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2231 | # Strip out --silent because we don't want to record it for future runs. | |
2232 | # Also quote any args containing shell meta-characters. | |
2233 | # Make two passes to allow for proper duplicate-argument suppression. | |
2234 | ac_configure_args= | |
2235 | ac_configure_args0= | |
2236 | ac_configure_args1= | |
2237 | ac_must_keep_next=false | |
2238 | for ac_pass in 1 2 | |
2239 | do | |
2240 | for ac_arg | |
2241 | do | |
2242 | case $ac_arg in | |
2243 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2245 | | -silent | --silent | --silen | --sile | --sil) | |
2246 | continue ;; | |
2247 | *\'*) | |
2248 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2249 | esac | |
2250 | case $ac_pass in | |
2251 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2252 | 2) | |
2253 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2254 | if test $ac_must_keep_next = true; then | |
2255 | ac_must_keep_next=false # Got value, back to normal. | |
2256 | else | |
2257 | case $ac_arg in | |
2258 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2259 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2260 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2261 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2262 | case "$ac_configure_args0 " in | |
2263 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2264 | esac | |
2265 | ;; | |
2266 | -* ) ac_must_keep_next=true ;; | |
2267 | esac | |
2268 | fi | |
2269 | as_fn_append ac_configure_args " '$ac_arg'" | |
2270 | ;; | |
2271 | esac | |
2272 | done | |
2273 | done | |
2274 | { ac_configure_args0=; unset ac_configure_args0;} | |
2275 | { ac_configure_args1=; unset ac_configure_args1;} | |
2276 | ||
2277 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2278 | # config.log. We remove comments because anyway the quotes in there | |
2279 | # would cause problems or look ugly. | |
2280 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2281 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2282 | trap 'exit_status=$? | |
2283 | # Save into config.log some information that might help in debugging. | |
2284 | { | |
2285 | echo | |
2286 | ||
12833ad8 | 2287 | $as_echo "## ---------------- ## |
c7aa54aa | 2288 | ## Cache variables. ## |
12833ad8 | 2289 | ## ---------------- ##" |
c7aa54aa DWT |
2290 | echo |
2291 | # The following way of writing the cache mishandles newlines in values, | |
2292 | ( | |
2293 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2294 | eval ac_val=\$$ac_var | |
2295 | case $ac_val in #( | |
2296 | *${as_nl}*) | |
2297 | case $ac_var in #( | |
2298 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2299 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2300 | esac | |
2301 | case $ac_var in #( | |
2302 | _ | IFS | as_nl) ;; #( | |
2303 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2304 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2305 | esac ;; | |
2306 | esac | |
2307 | done | |
2308 | (set) 2>&1 | | |
2309 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2310 | *${as_nl}ac_space=\ *) | |
2311 | sed -n \ | |
2312 | "s/'\''/'\''\\\\'\'''\''/g; | |
2313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2314 | ;; #( | |
2315 | *) | |
2316 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2317 | ;; | |
2318 | esac | | |
2319 | sort | |
2320 | ) | |
2321 | echo | |
2322 | ||
12833ad8 | 2323 | $as_echo "## ----------------- ## |
c7aa54aa | 2324 | ## Output variables. ## |
12833ad8 | 2325 | ## ----------------- ##" |
c7aa54aa DWT |
2326 | echo |
2327 | for ac_var in $ac_subst_vars | |
2328 | do | |
2329 | eval ac_val=\$$ac_var | |
2330 | case $ac_val in | |
2331 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2332 | esac | |
2333 | $as_echo "$ac_var='\''$ac_val'\''" | |
2334 | done | sort | |
2335 | echo | |
2336 | ||
2337 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2338 | $as_echo "## ------------------- ## |
c7aa54aa | 2339 | ## File substitutions. ## |
12833ad8 | 2340 | ## ------------------- ##" |
c7aa54aa DWT |
2341 | echo |
2342 | for ac_var in $ac_subst_files | |
2343 | do | |
2344 | eval ac_val=\$$ac_var | |
2345 | case $ac_val in | |
2346 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2347 | esac | |
2348 | $as_echo "$ac_var='\''$ac_val'\''" | |
2349 | done | sort | |
2350 | echo | |
2351 | fi | |
2352 | ||
2353 | if test -s confdefs.h; then | |
12833ad8 | 2354 | $as_echo "## ----------- ## |
c7aa54aa | 2355 | ## confdefs.h. ## |
12833ad8 | 2356 | ## ----------- ##" |
c7aa54aa DWT |
2357 | echo |
2358 | cat confdefs.h | |
2359 | echo | |
2360 | fi | |
2361 | test "$ac_signal" != 0 && | |
2362 | $as_echo "$as_me: caught signal $ac_signal" | |
2363 | $as_echo "$as_me: exit $exit_status" | |
2364 | } >&5 | |
2365 | rm -f core *.core core.conftest.* && | |
2366 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2367 | exit $exit_status | |
2368 | ' 0 | |
2369 | for ac_signal in 1 2 13 15; do | |
2370 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2371 | done | |
2372 | ac_signal=0 | |
2373 | ||
2374 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2375 | rm -f -r conftest* confdefs.h | |
2376 | ||
2377 | $as_echo "/* confdefs.h */" > confdefs.h | |
2378 | ||
2379 | # Predefined preprocessor variables. | |
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2383 | _ACEOF | |
2384 | ||
2385 | cat >>confdefs.h <<_ACEOF | |
2386 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2387 | _ACEOF | |
2388 | ||
2389 | cat >>confdefs.h <<_ACEOF | |
2390 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2391 | _ACEOF | |
2392 | ||
2393 | cat >>confdefs.h <<_ACEOF | |
2394 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2395 | _ACEOF | |
2396 | ||
2397 | cat >>confdefs.h <<_ACEOF | |
2398 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2399 | _ACEOF | |
2400 | ||
2401 | cat >>confdefs.h <<_ACEOF | |
2402 | #define PACKAGE_URL "$PACKAGE_URL" | |
2403 | _ACEOF | |
2404 | ||
2405 | ||
2406 | # Let the site file select an alternate cache file if it wants to. | |
2407 | # Prefer an explicitly selected file to automatically selected ones. | |
2408 | ac_site_file1=NONE | |
2409 | ac_site_file2=NONE | |
2410 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2411 | # We do not want a PATH search for config.site. |
2412 | case $CONFIG_SITE in #(( | |
2413 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2414 | */*) ac_site_file1=$CONFIG_SITE;; | |
2415 | *) ac_site_file1=./$CONFIG_SITE;; | |
2416 | esac | |
c7aa54aa DWT |
2417 | elif test "x$prefix" != xNONE; then |
2418 | ac_site_file1=$prefix/share/config.site | |
2419 | ac_site_file2=$prefix/etc/config.site | |
2420 | else | |
2421 | ac_site_file1=$ac_default_prefix/share/config.site | |
2422 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2423 | fi | |
2424 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2425 | do | |
2426 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2427 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2429 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2430 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2431 | . "$ac_site_file" \ |
2432 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2434 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2435 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2436 | fi |
2437 | done | |
2438 | ||
2439 | if test -r "$cache_file"; then | |
9c60689e DWT |
2440 | # Some versions of bash will fail to source /dev/null (special files |
2441 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2442 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2444 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2445 | case $cache_file in | |
2446 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2447 | *) . "./$cache_file";; | |
2448 | esac | |
2449 | fi | |
2450 | else | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2452 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2453 | >$cache_file | |
2454 | fi | |
2455 | ||
2456 | # Check that the precious variables saved in the cache have kept the same | |
2457 | # value. | |
2458 | ac_cache_corrupted=false | |
2459 | for ac_var in $ac_precious_vars; do | |
2460 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2461 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2462 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2463 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2464 | case $ac_old_set,$ac_new_set in | |
2465 | set,) | |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2467 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2468 | ac_cache_corrupted=: ;; | |
2469 | ,set) | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2471 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2472 | ac_cache_corrupted=: ;; | |
2473 | ,);; | |
2474 | *) | |
2475 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2476 | # differences in whitespace do not lead to failure. | |
2477 | ac_old_val_w=`echo x $ac_old_val` | |
2478 | ac_new_val_w=`echo x $ac_new_val` | |
2479 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2482 | ac_cache_corrupted=: | |
2483 | else | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2485 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2486 | eval $ac_var=\$ac_old_val | |
2487 | fi | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2489 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2491 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2492 | fi;; | |
2493 | esac | |
2494 | # Pass precious variables to config.status. | |
2495 | if test "$ac_new_set" = set; then | |
2496 | case $ac_new_val in | |
2497 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2499 | esac | |
2500 | case " $ac_configure_args " in | |
2501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2502 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2503 | esac | |
2504 | fi | |
2505 | done | |
2506 | if $ac_cache_corrupted; then | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2510 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2511 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2512 | fi |
2513 | ## -------------------- ## | |
2514 | ## Main body of script. ## | |
2515 | ## -------------------- ## | |
2516 | ||
2517 | ac_ext=c | |
2518 | ac_cpp='$CPP $CPPFLAGS' | |
2519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2522 | ||
2523 | ||
66170b30 JF |
2524 | |
2525 | ||
35fa52c0 | 2526 | |
6b66678a DWT |
2527 | ac_aux_dir= |
2528 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2529 | if test -f "$ac_dir/install-sh"; then |
2530 | ac_aux_dir=$ac_dir | |
2531 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2532 | break | |
2533 | elif test -f "$ac_dir/install.sh"; then | |
2534 | ac_aux_dir=$ac_dir | |
2535 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2536 | break | |
2537 | elif test -f "$ac_dir/shtool"; then | |
2538 | ac_aux_dir=$ac_dir | |
2539 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2540 | break | |
2541 | fi | |
6b66678a DWT |
2542 | done |
2543 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2544 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2545 | fi |
2546 | ||
2547 | # These three variables are undocumented and unsupported, | |
2548 | # and are intended to be withdrawn in a future Autoconf release. | |
2549 | # They can cause serious problems if a builder's source tree is in a directory | |
2550 | # whose full name contains unusual characters. | |
2551 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2552 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2553 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2554 | ||
2555 | ||
9c60689e | 2556 | |
9c60689e | 2557 | |
66170b30 | 2558 | am__api_version='1.13' |
9c60689e | 2559 | |
66170b30 JF |
2560 | # Find a good install program. We prefer a C program (faster), |
2561 | # so one script is as good as another. But avoid the broken or | |
2562 | # incompatible versions: | |
2563 | # SysV /etc/install, /usr/sbin/install | |
2564 | # SunOS /usr/etc/install | |
2565 | # IRIX /sbin/install | |
2566 | # AIX /bin/install | |
2567 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2568 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2569 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2570 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2571 | # OS/2's system install, which has a completely different semantic | |
2572 | # ./install, which can be erroneously created by make from ./install.sh. | |
2573 | # Reject install programs that cannot install multiple files. | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2575 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2576 | if test -z "$INSTALL"; then | |
2577 | if ${ac_cv_path_install+:} false; then : | |
2578 | $as_echo_n "(cached) " >&6 | |
2579 | else | |
2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2581 | for as_dir in $PATH | |
2582 | do | |
2583 | IFS=$as_save_IFS | |
2584 | test -z "$as_dir" && as_dir=. | |
2585 | # Account for people who put trailing slashes in PATH elements. | |
2586 | case $as_dir/ in #(( | |
2587 | ./ | .// | /[cC]/* | \ | |
2588 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2589 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2590 | /usr/ucb/* ) ;; | |
2591 | *) | |
2592 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2593 | # Don't use installbsd from OSF since it installs stuff as root | |
2594 | # by default. | |
2595 | for ac_prog in ginstall scoinst install; do | |
2596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2597 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2598 | if test $ac_prog = install && | |
2599 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2600 | # AIX install. It has an incompatible calling convention. | |
2601 | : | |
2602 | elif test $ac_prog = install && | |
2603 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2604 | # program-specific install script used by HP pwplus--don't use. | |
2605 | : | |
2606 | else | |
2607 | rm -rf conftest.one conftest.two conftest.dir | |
2608 | echo one > conftest.one | |
2609 | echo two > conftest.two | |
2610 | mkdir conftest.dir | |
2611 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2612 | test -s conftest.one && test -s conftest.two && | |
2613 | test -s conftest.dir/conftest.one && | |
2614 | test -s conftest.dir/conftest.two | |
2615 | then | |
2616 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2617 | break 3 | |
2618 | fi | |
2619 | fi | |
2620 | fi | |
2621 | done | |
2622 | done | |
2623 | ;; | |
2624 | esac | |
9c60689e | 2625 | |
66170b30 JF |
2626 | done |
2627 | IFS=$as_save_IFS | |
9c60689e | 2628 | |
66170b30 | 2629 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2630 | |
66170b30 JF |
2631 | fi |
2632 | if test "${ac_cv_path_install+set}" = set; then | |
2633 | INSTALL=$ac_cv_path_install | |
2634 | else | |
2635 | # As a last resort, use the slow shell script. Don't cache a | |
2636 | # value for INSTALL within a source directory, because that will | |
2637 | # break other packages using the cache if that directory is | |
2638 | # removed, or if the value is a relative name. | |
2639 | INSTALL=$ac_install_sh | |
2640 | fi | |
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2643 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2644 | |
66170b30 JF |
2645 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2646 | # It thinks the first close brace ends the variable substitution. | |
2647 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2648 | |
66170b30 | 2649 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2650 | |
66170b30 | 2651 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2652 | |
66170b30 JF |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2654 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2655 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2656 | # name. Accept space and tab only in the latter. | |
2657 | am_lf=' | |
2658 | ' | |
2659 | case `pwd` in | |
2660 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2661 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2662 | esac | |
2663 | case $srcdir in | |
2664 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2665 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2666 | esac | |
9c60689e | 2667 | |
66170b30 JF |
2668 | # Do 'set' in a subshell so we don't clobber the current shell's |
2669 | # arguments. Must try -L first in case configure is actually a | |
2670 | # symlink; some systems play weird games with the mod time of symlinks | |
2671 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2672 | # directory). | |
2673 | if ( | |
2674 | am_has_slept=no | |
2675 | for am_try in 1 2; do | |
2676 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2677 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2678 | if test "$*" = "X"; then | |
2679 | # -L didn't work. | |
2680 | set X `ls -t "$srcdir/configure" conftest.file` | |
2681 | fi | |
2682 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2683 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2684 | ||
2685 | # If neither matched, then we have a broken ls. This can happen | |
2686 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2687 | # broken ls alias from the environment. This has actually | |
2688 | # happened. Such a system could not be considered "sane". | |
2689 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2690 | alias in your environment" "$LINENO" 5 | |
2691 | fi | |
2692 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2693 | break | |
2694 | fi | |
2695 | # Just in case. | |
2696 | sleep 1 | |
2697 | am_has_slept=yes | |
2698 | done | |
2699 | test "$2" = conftest.file | |
2700 | ) | |
2701 | then | |
2702 | # Ok. | |
2703 | : | |
2704 | else | |
2705 | as_fn_error $? "newly created file is older than distributed files! | |
2706 | Check your system clock" "$LINENO" 5 | |
2707 | fi | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2709 | $as_echo "yes" >&6; } | |
2710 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2711 | # generated files are strictly newer. | |
2712 | am_sleep_pid= | |
2713 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2714 | ( sleep 1 ) & | |
2715 | am_sleep_pid=$! | |
2716 | fi | |
2717 | ||
2718 | rm -f conftest.file | |
2719 | ||
2720 | test "$program_prefix" != NONE && | |
2721 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2722 | # Use a double $ so make ignores it. | |
2723 | test "$program_suffix" != NONE && | |
2724 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2725 | # Double any \ or $. | |
2726 | # By default was `s,x,x', remove it if useless. | |
2727 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2728 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2729 | ||
2730 | # expand $ac_aux_dir to an absolute path | |
2731 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2732 | ||
2733 | if test x"${MISSING+set}" != xset; then | |
2734 | case $am_aux_dir in | |
2735 | *\ * | *\ *) | |
2736 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2737 | *) | |
2738 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2739 | esac | |
2740 | fi | |
2741 | # Use eval to expand $SHELL | |
2742 | if eval "$MISSING --is-lightweight"; then | |
2743 | am_missing_run="$MISSING " | |
2744 | else | |
2745 | am_missing_run= | |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2747 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2748 | fi | |
9c60689e | 2749 | |
66170b30 JF |
2750 | if test x"${install_sh}" != xset; then |
2751 | case $am_aux_dir in | |
2752 | *\ * | *\ *) | |
2753 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2754 | *) | |
2755 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2756 | esac | |
2757 | fi | |
9c60689e | 2758 | |
66170b30 JF |
2759 | # Installed binaries are usually stripped using 'strip' when the user |
2760 | # run "make install-strip". However 'strip' might not be the right | |
2761 | # tool to use in cross-compilation environments, therefore Automake | |
2762 | # will honor the 'STRIP' environment variable to overrule this program. | |
2763 | if test "$cross_compiling" != no; then | |
2764 | if test -n "$ac_tool_prefix"; then | |
2765 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2766 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2768 | $as_echo_n "checking for $ac_word... " >&6; } | |
2769 | if ${ac_cv_prog_STRIP+:} false; then : | |
2770 | $as_echo_n "(cached) " >&6 | |
2771 | else | |
2772 | if test -n "$STRIP"; then | |
2773 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2774 | else | |
2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2776 | for as_dir in $PATH | |
2777 | do | |
2778 | IFS=$as_save_IFS | |
2779 | test -z "$as_dir" && as_dir=. | |
2780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2782 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2784 | break 2 | |
2785 | fi | |
2786 | done | |
2787 | done | |
2788 | IFS=$as_save_IFS | |
9c60689e | 2789 | |
66170b30 JF |
2790 | fi |
2791 | fi | |
2792 | STRIP=$ac_cv_prog_STRIP | |
2793 | if test -n "$STRIP"; then | |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2795 | $as_echo "$STRIP" >&6; } | |
2796 | else | |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2798 | $as_echo "no" >&6; } | |
2799 | fi | |
9c60689e | 2800 | |
9c60689e | 2801 | |
66170b30 JF |
2802 | fi |
2803 | if test -z "$ac_cv_prog_STRIP"; then | |
2804 | ac_ct_STRIP=$STRIP | |
2805 | # Extract the first word of "strip", so it can be a program name with args. | |
2806 | set dummy strip; ac_word=$2 | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2808 | $as_echo_n "checking for $ac_word... " >&6; } | |
2809 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2810 | $as_echo_n "(cached) " >&6 |
2811 | else | |
66170b30 JF |
2812 | if test -n "$ac_ct_STRIP"; then |
2813 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2814 | else | |
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2816 | for as_dir in $PATH | |
2817 | do | |
2818 | IFS=$as_save_IFS | |
2819 | test -z "$as_dir" && as_dir=. | |
2820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2822 | ac_cv_prog_ac_ct_STRIP="strip" | |
2823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2824 | break 2 | |
2825 | fi | |
2826 | done | |
2827 | done | |
2828 | IFS=$as_save_IFS | |
9c60689e DWT |
2829 | |
2830 | fi | |
66170b30 JF |
2831 | fi |
2832 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2833 | if test -n "$ac_ct_STRIP"; then | |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2835 | $as_echo "$ac_ct_STRIP" >&6; } | |
2836 | else | |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2838 | $as_echo "no" >&6; } | |
2839 | fi | |
2840 | ||
2841 | if test "x$ac_ct_STRIP" = x; then | |
2842 | STRIP=":" | |
2843 | else | |
2844 | case $cross_compiling:$ac_tool_warned in | |
2845 | yes:) | |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2847 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2848 | ac_tool_warned=yes ;; | |
9c60689e | 2849 | esac |
66170b30 JF |
2850 | STRIP=$ac_ct_STRIP |
2851 | fi | |
2852 | else | |
2853 | STRIP="$ac_cv_prog_STRIP" | |
2854 | fi | |
9c60689e | 2855 | |
66170b30 JF |
2856 | fi |
2857 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2858 | |
66170b30 JF |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2860 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2861 | if test -z "$MKDIR_P"; then | |
2862 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2863 | $as_echo_n "(cached) " >&6 |
2864 | else | |
66170b30 JF |
2865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2866 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2867 | do | |
2868 | IFS=$as_save_IFS | |
2869 | test -z "$as_dir" && as_dir=. | |
2870 | for ac_prog in mkdir gmkdir; do | |
2871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2872 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2873 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2874 | 'mkdir (GNU coreutils) '* | \ | |
2875 | 'mkdir (coreutils) '* | \ | |
2876 | 'mkdir (fileutils) '4.1*) | |
2877 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2878 | break 3;; | |
2879 | esac | |
2880 | done | |
2881 | done | |
2882 | done | |
2883 | IFS=$as_save_IFS | |
2884 | ||
2885 | fi | |
2886 | ||
2887 | test -d ./--version && rmdir ./--version | |
2888 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2889 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2890 | else | |
2891 | # As a last resort, use the slow shell script. Don't cache a | |
2892 | # value for MKDIR_P within a source directory, because that will | |
2893 | # break other packages using the cache if that directory is | |
2894 | # removed, or if the value is a relative name. | |
2895 | MKDIR_P="$ac_install_sh -d" | |
2896 | fi | |
2897 | fi | |
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2899 | $as_echo "$MKDIR_P" >&6; } | |
2900 | ||
2901 | for ac_prog in gawk mawk nawk awk | |
2902 | do | |
2903 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2904 | set dummy $ac_prog; ac_word=$2 | |
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2906 | $as_echo_n "checking for $ac_word... " >&6; } | |
2907 | if ${ac_cv_prog_AWK+:} false; then : | |
2908 | $as_echo_n "(cached) " >&6 | |
2909 | else | |
2910 | if test -n "$AWK"; then | |
2911 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2912 | else | |
2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2914 | for as_dir in $PATH | |
2915 | do | |
2916 | IFS=$as_save_IFS | |
2917 | test -z "$as_dir" && as_dir=. | |
2918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2920 | ac_cv_prog_AWK="$ac_prog" | |
2921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2922 | break 2 | |
2923 | fi | |
2924 | done | |
2925 | done | |
2926 | IFS=$as_save_IFS | |
2927 | ||
2928 | fi | |
2929 | fi | |
2930 | AWK=$ac_cv_prog_AWK | |
2931 | if test -n "$AWK"; then | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2933 | $as_echo "$AWK" >&6; } | |
2934 | else | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2936 | $as_echo "no" >&6; } | |
2937 | fi | |
2938 | ||
2939 | ||
2940 | test -n "$AWK" && break | |
2941 | done | |
2942 | ||
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2944 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2945 | set x ${MAKE-make} | |
2946 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2947 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2948 | $as_echo_n "(cached) " >&6 | |
2949 | else | |
2950 | cat >conftest.make <<\_ACEOF | |
2951 | SHELL = /bin/sh | |
2952 | all: | |
2953 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2954 | _ACEOF | |
2955 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2956 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2957 | *@@@%%%=?*=@@@%%%*) | |
2958 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2959 | *) | |
2960 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2961 | esac | |
2962 | rm -f conftest.make | |
2963 | fi | |
2964 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2966 | $as_echo "yes" >&6; } | |
2967 | SET_MAKE= | |
2968 | else | |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2970 | $as_echo "no" >&6; } | |
2971 | SET_MAKE="MAKE=${MAKE-make}" | |
2972 | fi | |
2973 | ||
2974 | rm -rf .tst 2>/dev/null | |
2975 | mkdir .tst 2>/dev/null | |
2976 | if test -d .tst; then | |
2977 | am__leading_dot=. | |
2978 | else | |
2979 | am__leading_dot=_ | |
2980 | fi | |
2981 | rmdir .tst 2>/dev/null | |
2982 | ||
2983 | # Check whether --enable-silent-rules was given. | |
2984 | if test "${enable_silent_rules+set}" = set; then : | |
2985 | enableval=$enable_silent_rules; | |
2986 | fi | |
2987 | ||
2988 | case $enable_silent_rules in # ((( | |
2989 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2990 | no) AM_DEFAULT_VERBOSITY=1;; | |
2991 | *) AM_DEFAULT_VERBOSITY=1;; | |
2992 | esac | |
2993 | am_make=${MAKE-make} | |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2995 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2996 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2997 | $as_echo_n "(cached) " >&6 | |
2998 | else | |
2999 | if $as_echo 'TRUE=$(BAR$(V)) | |
3000 | BAR0=false | |
3001 | BAR1=true | |
3002 | V=1 | |
3003 | am__doit: | |
3004 | @$(TRUE) | |
3005 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3006 | am_cv_make_support_nested_variables=yes | |
3007 | else | |
3008 | am_cv_make_support_nested_variables=no | |
3009 | fi | |
3010 | fi | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3012 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3013 | if test $am_cv_make_support_nested_variables = yes; then | |
3014 | AM_V='$(V)' | |
3015 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3016 | else | |
3017 | AM_V=$AM_DEFAULT_VERBOSITY | |
3018 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3019 | fi | |
3020 | AM_BACKSLASH='\' | |
3021 | ||
3022 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3023 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3024 | # is not polluted with repeated "-I." | |
3025 | am__isrc=' -I$(srcdir)' | |
3026 | # test to see if srcdir already configured | |
3027 | if test -f $srcdir/config.status; then | |
3028 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3029 | fi | |
3030 | fi | |
3031 | ||
3032 | # test whether we have cygpath | |
3033 | if test -z "$CYGPATH_W"; then | |
3034 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3035 | CYGPATH_W='cygpath -w' | |
3036 | else | |
3037 | CYGPATH_W=echo | |
3038 | fi | |
3039 | fi | |
3040 | ||
3041 | ||
3042 | # Define the identity of the package. | |
3043 | PACKAGE='cycript' | |
3044 | VERSION='0.9' | |
3045 | ||
3046 | ||
3047 | cat >>confdefs.h <<_ACEOF | |
3048 | #define PACKAGE "$PACKAGE" | |
3049 | _ACEOF | |
3050 | ||
3051 | ||
3052 | cat >>confdefs.h <<_ACEOF | |
3053 | #define VERSION "$VERSION" | |
3054 | _ACEOF | |
3055 | ||
3056 | # Some tools Automake needs. | |
3057 | ||
3058 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3059 | ||
3060 | ||
3061 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3062 | ||
3063 | ||
3064 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3065 | ||
3066 | ||
3067 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3068 | ||
3069 | ||
3070 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3071 | ||
3072 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3073 | # dies out for good. For more background, see: | |
3074 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3075 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3076 | mkdir_p='$(MKDIR_P)' | |
3077 | ||
3078 | # We need awk for the "check" target. The system "awk" is bad on | |
3079 | # some platforms. | |
3080 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3081 | # in the wild :-( We should find a proper way to deprecate it ... | |
3082 | AMTAR='$${TAR-tar}' | |
3083 | ||
3084 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3085 | ||
3086 | ||
3087 | ||
3088 | ||
3089 | ||
66170b30 | 3090 | |
a243b558 JF |
3091 | ac_ext=cpp |
3092 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3096 | if test -z "$CXX"; then | |
3097 | if test -n "$CCC"; then | |
3098 | CXX=$CCC | |
3099 | else | |
3100 | if test -n "$ac_tool_prefix"; then | |
3101 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3102 | do | |
3103 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3104 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
dbadc56a DWT |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3106 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3107 | if ${ac_cv_prog_CXX+:} false; then : |
dbadc56a DWT |
3108 | $as_echo_n "(cached) " >&6 |
3109 | else | |
a243b558 JF |
3110 | if test -n "$CXX"; then |
3111 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
dbadc56a DWT |
3112 | else |
3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3114 | for as_dir in $PATH | |
3115 | do | |
3116 | IFS=$as_save_IFS | |
3117 | test -z "$as_dir" && as_dir=. | |
3118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3120 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
dbadc56a DWT |
3121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3122 | break 2 | |
3123 | fi | |
3124 | done | |
3125 | done | |
3126 | IFS=$as_save_IFS | |
3127 | ||
3128 | fi | |
3129 | fi | |
a243b558 JF |
3130 | CXX=$ac_cv_prog_CXX |
3131 | if test -n "$CXX"; then | |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3133 | $as_echo "$CXX" >&6; } | |
35fa52c0 DWT |
3134 | else |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3136 | $as_echo "no" >&6; } | |
3137 | fi | |
3138 | ||
3139 | ||
a243b558 | 3140 | test -n "$CXX" && break |
35fa52c0 DWT |
3141 | done |
3142 | fi | |
a243b558 JF |
3143 | if test -z "$CXX"; then |
3144 | ac_ct_CXX=$CXX | |
3145 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
35fa52c0 DWT |
3146 | do |
3147 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3148 | set dummy $ac_prog; ac_word=$2 | |
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3150 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3151 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
35fa52c0 DWT |
3152 | $as_echo_n "(cached) " >&6 |
3153 | else | |
a243b558 JF |
3154 | if test -n "$ac_ct_CXX"; then |
3155 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
35fa52c0 DWT |
3156 | else |
3157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3158 | for as_dir in $PATH | |
3159 | do | |
3160 | IFS=$as_save_IFS | |
3161 | test -z "$as_dir" && as_dir=. | |
3162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3164 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
35fa52c0 DWT |
3165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3166 | break 2 | |
3167 | fi | |
3168 | done | |
3169 | done | |
3170 | IFS=$as_save_IFS | |
3171 | ||
3172 | fi | |
3173 | fi | |
a243b558 JF |
3174 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3175 | if test -n "$ac_ct_CXX"; then | |
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3177 | $as_echo "$ac_ct_CXX" >&6; } | |
35fa52c0 DWT |
3178 | else |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3180 | $as_echo "no" >&6; } | |
3181 | fi | |
3182 | ||
3183 | ||
a243b558 | 3184 | test -n "$ac_ct_CXX" && break |
35fa52c0 DWT |
3185 | done |
3186 | ||
a243b558 JF |
3187 | if test "x$ac_ct_CXX" = x; then |
3188 | CXX="g++" | |
35fa52c0 DWT |
3189 | else |
3190 | case $cross_compiling:$ac_tool_warned in | |
3191 | yes:) | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3193 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3194 | ac_tool_warned=yes ;; | |
3195 | esac | |
a243b558 | 3196 | CXX=$ac_ct_CXX |
35fa52c0 DWT |
3197 | fi |
3198 | fi | |
3199 | ||
a243b558 | 3200 | fi |
35fa52c0 | 3201 | fi |
35fa52c0 | 3202 | # Provide some information about the compiler. |
a243b558 | 3203 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
35fa52c0 DWT |
3204 | set X $ac_compile |
3205 | ac_compiler=$2 | |
3206 | for ac_option in --version -v -V -qversion; do | |
3207 | { { ac_try="$ac_compiler $ac_option >&5" | |
3208 | case "(($ac_try" in | |
3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3210 | *) ac_try_echo=$ac_try;; | |
3211 | esac | |
3212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3213 | $as_echo "$ac_try_echo"; } >&5 | |
3214 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3215 | ac_status=$? | |
3216 | if test -s conftest.err; then | |
3217 | sed '10a\ | |
3218 | ... rest of stderr output deleted ... | |
3219 | 10q' conftest.err >conftest.er1 | |
3220 | cat conftest.er1 >&5 | |
35fa52c0 | 3221 | fi |
9c60689e | 3222 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3224 | test $ac_status = 0; } | |
3225 | done | |
3226 | ||
3227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3228 | /* end confdefs.h. */ | |
9c60689e | 3229 | |
35fa52c0 DWT |
3230 | int |
3231 | main () | |
3232 | { | |
35fa52c0 DWT |
3233 | |
3234 | ; | |
3235 | return 0; | |
3236 | } | |
3237 | _ACEOF | |
3238 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3239 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3240 | # Try to create an executable without -o first, disregard a.out. |
3241 | # It will help us diagnose broken compilers, and finding out an intuition | |
3242 | # of exeext. | |
a243b558 JF |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
3244 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
35fa52c0 DWT |
3245 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3246 | ||
3247 | # The possible output files: | |
3248 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3249 | ||
3250 | ac_rmfiles= | |
3251 | for ac_file in $ac_files | |
3252 | do | |
3253 | case $ac_file in | |
3254 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3255 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3256 | esac | |
3257 | done | |
3258 | rm -f $ac_rmfiles | |
3259 | ||
3260 | if { { ac_try="$ac_link_default" | |
3261 | case "(($ac_try" in | |
3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3263 | *) ac_try_echo=$ac_try;; | |
3264 | esac | |
3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3266 | $as_echo "$ac_try_echo"; } >&5 | |
3267 | (eval "$ac_link_default") 2>&5 | |
3268 | ac_status=$? | |
3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3270 | test $ac_status = 0; }; then : | |
3271 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3272 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3273 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3274 | # so that the user can short-circuit this test for compilers unknown to | |
3275 | # Autoconf. | |
3276 | for ac_file in $ac_files '' | |
3277 | do | |
3278 | test -f "$ac_file" || continue | |
3279 | case $ac_file in | |
3280 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3281 | ;; | |
3282 | [ab].out ) | |
3283 | # We found the default executable, but exeext='' is most | |
3284 | # certainly right. | |
3285 | break;; | |
3286 | *.* ) | |
3287 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3288 | then :; else | |
3289 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3290 | fi | |
3291 | # We set ac_cv_exeext here because the later test for it is not | |
3292 | # safe: cross compilers may not add the suffix if given an `-o' | |
3293 | # argument, so we may need to know it at that point already. | |
3294 | # Even if this section looks crufty: it has the advantage of | |
3295 | # actually working. | |
3296 | break;; | |
3297 | * ) | |
3298 | break;; | |
3299 | esac | |
3300 | done | |
3301 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3302 | ||
3303 | else | |
3304 | ac_file='' | |
3305 | fi | |
35fa52c0 | 3306 | if test -z "$ac_file"; then : |
9c60689e DWT |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3308 | $as_echo "no" >&6; } | |
3309 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
3311 | ||
3312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3314 | as_fn_error 77 "C++ compiler cannot create executables |
ee134472 | 3315 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3316 | else |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3318 | $as_echo "yes" >&6; } | |
35fa52c0 | 3319 | fi |
a243b558 JF |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
3321 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
9c60689e DWT |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3323 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3324 | ac_exeext=$ac_cv_exeext |
3325 | ||
9c60689e | 3326 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3327 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3329 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3330 | if { { ac_try="$ac_link" | |
3331 | case "(($ac_try" in | |
3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3333 | *) ac_try_echo=$ac_try;; | |
3334 | esac | |
3335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3336 | $as_echo "$ac_try_echo"; } >&5 | |
3337 | (eval "$ac_link") 2>&5 | |
3338 | ac_status=$? | |
3339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3340 | test $ac_status = 0; }; then : | |
3341 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3342 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3343 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3344 | # `rm'. | |
3345 | for ac_file in conftest.exe conftest conftest.*; do | |
3346 | test -f "$ac_file" || continue | |
3347 | case $ac_file in | |
3348 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3349 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3350 | break;; | |
3351 | * ) break;; | |
3352 | esac | |
3353 | done | |
3354 | else | |
3355 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3356 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3357 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3358 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3359 | fi |
9c60689e | 3360 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3362 | $as_echo "$ac_cv_exeext" >&6; } | |
3363 | ||
3364 | rm -f conftest.$ac_ext | |
3365 | EXEEXT=$ac_cv_exeext | |
3366 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3368 | /* end confdefs.h. */ | |
3369 | #include <stdio.h> | |
3370 | int | |
3371 | main () | |
3372 | { | |
3373 | FILE *f = fopen ("conftest.out", "w"); | |
3374 | return ferror (f) || fclose (f) != 0; | |
3375 | ||
3376 | ; | |
3377 | return 0; | |
3378 | } | |
3379 | _ACEOF | |
3380 | ac_clean_files="$ac_clean_files conftest.out" | |
3381 | # Check that the compiler produces executables we can run. If not, either | |
3382 | # the compiler is broken, or we cross compile. | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3384 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3385 | if test "$cross_compiling" != yes; then | |
3386 | { { ac_try="$ac_link" | |
3387 | case "(($ac_try" in | |
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3389 | *) ac_try_echo=$ac_try;; | |
3390 | esac | |
3391 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3392 | $as_echo "$ac_try_echo"; } >&5 | |
3393 | (eval "$ac_link") 2>&5 | |
3394 | ac_status=$? | |
3395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3396 | test $ac_status = 0; } | |
3397 | if { ac_try='./conftest$ac_cv_exeext' | |
3398 | { { case "(($ac_try" in | |
3399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3400 | *) ac_try_echo=$ac_try;; | |
3401 | esac | |
3402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3403 | $as_echo "$ac_try_echo"; } >&5 | |
3404 | (eval "$ac_try") 2>&5 | |
3405 | ac_status=$? | |
3406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3407 | test $ac_status = 0; }; }; then | |
3408 | cross_compiling=no | |
3409 | else | |
3410 | if test "$cross_compiling" = maybe; then | |
3411 | cross_compiling=yes | |
3412 | else | |
3413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3415 | as_fn_error $? "cannot run C++ compiled programs. |
9c60689e | 3416 | If you meant to cross compile, use \`--host'. |
ee134472 | 3417 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3418 | fi |
3419 | fi | |
3420 | fi | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3422 | $as_echo "$cross_compiling" >&6; } | |
3423 | ||
3424 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3425 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3427 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3428 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3429 | $as_echo_n "(cached) " >&6 |
3430 | else | |
3431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3432 | /* end confdefs.h. */ | |
3433 | ||
3434 | int | |
3435 | main () | |
3436 | { | |
3437 | ||
3438 | ; | |
3439 | return 0; | |
3440 | } | |
3441 | _ACEOF | |
3442 | rm -f conftest.o conftest.obj | |
3443 | if { { ac_try="$ac_compile" | |
3444 | case "(($ac_try" in | |
3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3446 | *) ac_try_echo=$ac_try;; | |
3447 | esac | |
3448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3449 | $as_echo "$ac_try_echo"; } >&5 | |
3450 | (eval "$ac_compile") 2>&5 | |
3451 | ac_status=$? | |
3452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3453 | test $ac_status = 0; }; then : | |
3454 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3455 | test -f "$ac_file" || continue; | |
3456 | case $ac_file in | |
3457 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3458 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3459 | break;; | |
3460 | esac | |
3461 | done | |
3462 | else | |
3463 | $as_echo "$as_me: failed program was:" >&5 | |
3464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3465 | ||
3466 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3468 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3469 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3470 | fi |
3471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3472 | fi | |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3474 | $as_echo "$ac_cv_objext" >&6; } | |
3475 | OBJEXT=$ac_cv_objext | |
3476 | ac_objext=$OBJEXT | |
a243b558 JF |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3478 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3479 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3480 | $as_echo_n "(cached) " >&6 |
3481 | else | |
3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3483 | /* end confdefs.h. */ | |
3484 | ||
3485 | int | |
3486 | main () | |
3487 | { | |
3488 | #ifndef __GNUC__ | |
3489 | choke me | |
3490 | #endif | |
3491 | ||
3492 | ; | |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
a243b558 | 3496 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3497 | ac_compiler_gnu=yes |
3498 | else | |
3499 | ac_compiler_gnu=no | |
3500 | fi | |
3501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3502 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3503 | |
3504 | fi | |
a243b558 JF |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
3506 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
35fa52c0 | 3507 | if test $ac_compiler_gnu = yes; then |
a243b558 | 3508 | GXX=yes |
35fa52c0 | 3509 | else |
a243b558 | 3510 | GXX= |
35fa52c0 | 3511 | fi |
a243b558 JF |
3512 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3513 | ac_save_CXXFLAGS=$CXXFLAGS | |
3514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3515 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3516 | if ${ac_cv_prog_cxx_g+:} false; then : | |
35fa52c0 DWT |
3517 | $as_echo_n "(cached) " >&6 |
3518 | else | |
a243b558 JF |
3519 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3520 | ac_cxx_werror_flag=yes | |
3521 | ac_cv_prog_cxx_g=no | |
3522 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3524 | /* end confdefs.h. */ | |
3525 | ||
3526 | int | |
3527 | main () | |
3528 | { | |
3529 | ||
3530 | ; | |
3531 | return 0; | |
3532 | } | |
3533 | _ACEOF | |
a243b558 JF |
3534 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3535 | ac_cv_prog_cxx_g=yes | |
35fa52c0 | 3536 | else |
a243b558 | 3537 | CXXFLAGS="" |
35fa52c0 DWT |
3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3539 | /* end confdefs.h. */ | |
3540 | ||
3541 | int | |
3542 | main () | |
3543 | { | |
3544 | ||
3545 | ; | |
3546 | return 0; | |
3547 | } | |
3548 | _ACEOF | |
a243b558 | 3549 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3550 | |
3551 | else | |
a243b558 JF |
3552 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3553 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3555 | /* end confdefs.h. */ | |
3556 | ||
3557 | int | |
3558 | main () | |
3559 | { | |
3560 | ||
3561 | ; | |
3562 | return 0; | |
3563 | } | |
3564 | _ACEOF | |
a243b558 JF |
3565 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3566 | ac_cv_prog_cxx_g=yes | |
35fa52c0 DWT |
3567 | fi |
3568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3569 | fi | |
3570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3571 | fi | |
3572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3573 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
35fa52c0 | 3574 | fi |
a243b558 JF |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
3576 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3577 | if test "$ac_test_CXXFLAGS" = set; then | |
3578 | CXXFLAGS=$ac_save_CXXFLAGS | |
3579 | elif test $ac_cv_prog_cxx_g = yes; then | |
3580 | if test "$GXX" = yes; then | |
3581 | CXXFLAGS="-g -O2" | |
35fa52c0 | 3582 | else |
a243b558 | 3583 | CXXFLAGS="-g" |
35fa52c0 DWT |
3584 | fi |
3585 | else | |
a243b558 JF |
3586 | if test "$GXX" = yes; then |
3587 | CXXFLAGS="-O2" | |
35fa52c0 | 3588 | else |
a243b558 | 3589 | CXXFLAGS= |
35fa52c0 DWT |
3590 | fi |
3591 | fi | |
a243b558 JF |
3592 | ac_ext=c |
3593 | ac_cpp='$CPP $CPPFLAGS' | |
3594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3597 | DEPDIR="${am__leading_dot}deps" | |
35fa52c0 | 3598 | |
a243b558 | 3599 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 3600 | |
35fa52c0 | 3601 | |
a243b558 JF |
3602 | am_make=${MAKE-make} |
3603 | cat > confinc << 'END' | |
3604 | am__doit: | |
3605 | @echo this is the am__doit target | |
3606 | .PHONY: am__doit | |
3607 | END | |
3608 | # If we don't find an include directive, just comment out the code. | |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3610 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3611 | am__include="#" | |
3612 | am__quote= | |
3613 | _am_result=none | |
3614 | # First try GNU make style include. | |
3615 | echo "include confinc" > confmf | |
3616 | # Ignore all kinds of additional output from 'make'. | |
3617 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3618 | *the\ am__doit\ target*) | |
3619 | am__include=include | |
3620 | am__quote= | |
3621 | _am_result=GNU | |
3622 | ;; | |
3623 | esac | |
3624 | # Now try BSD make style include. | |
3625 | if test "$am__include" = "#"; then | |
3626 | echo '.include "confinc"' > confmf | |
3627 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3628 | *the\ am__doit\ target*) | |
3629 | am__include=.include | |
3630 | am__quote="\"" | |
3631 | _am_result=BSD | |
3632 | ;; | |
3633 | esac | |
35fa52c0 | 3634 | fi |
35fa52c0 | 3635 | |
a243b558 JF |
3636 | |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3638 | $as_echo "$_am_result" >&6; } | |
3639 | rm -f confinc confmf | |
3640 | ||
3641 | # Check whether --enable-dependency-tracking was given. | |
3642 | if test "${enable_dependency_tracking+set}" = set; then : | |
3643 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 3644 | fi |
35fa52c0 | 3645 | |
a243b558 JF |
3646 | if test "x$enable_dependency_tracking" != xno; then |
3647 | am_depcomp="$ac_aux_dir/depcomp" | |
3648 | AMDEPBACKSLASH='\' | |
3649 | am__nodep='_no' | |
3650 | fi | |
3651 | if test "x$enable_dependency_tracking" != xno; then | |
3652 | AMDEP_TRUE= | |
3653 | AMDEP_FALSE='#' | |
3654 | else | |
3655 | AMDEP_TRUE='#' | |
3656 | AMDEP_FALSE= | |
35fa52c0 DWT |
3657 | fi |
3658 | ||
35fa52c0 | 3659 | |
a243b558 JF |
3660 | |
3661 | depcc="$CXX" am_compiler_list= | |
66170b30 JF |
3662 | |
3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3664 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a243b558 | 3665 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
66170b30 JF |
3666 | $as_echo_n "(cached) " >&6 |
3667 | else | |
3668 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3669 | # We make a subdir and do the tests there. Otherwise we can end up | |
3670 | # making bogus files that we don't know about and never remove. For | |
3671 | # instance it was reported that on HP-UX the gcc test will end up | |
3672 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3673 | # in D". | |
3674 | rm -rf conftest.dir | |
3675 | mkdir conftest.dir | |
3676 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3677 | # using a relative directory. | |
3678 | cp "$am_depcomp" conftest.dir | |
3679 | cd conftest.dir | |
3680 | # We will build objects and dependencies in a subdirectory because | |
3681 | # it helps to detect inapplicable dependency modes. For instance | |
3682 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3683 | # side effect of compilation, but ICC will put the dependencies in | |
3684 | # the current directory while Tru64 will put them in the object | |
3685 | # directory. | |
3686 | mkdir sub | |
3687 | ||
a243b558 | 3688 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3689 | if test "$am_compiler_list" = ""; then |
3690 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3691 | fi | |
3692 | am__universal=false | |
3693 | case " $depcc " in #( | |
3694 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3695 | esac | |
3696 | ||
3697 | for depmode in $am_compiler_list; do | |
3698 | # Setup a source with many dependencies, because some compilers | |
3699 | # like to wrap large dependency lists on column 80 (with \), and | |
3700 | # we should not choose a depcomp mode which is confused by this. | |
3701 | # | |
3702 | # We need to recreate these files for each test, as the compiler may | |
3703 | # overwrite some of them when testing with obscure command lines. | |
3704 | # This happens at least with the AIX C compiler. | |
3705 | : > sub/conftest.c | |
3706 | for i in 1 2 3 4 5 6; do | |
3707 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3708 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3709 | # Solaris 10 /bin/sh. | |
3710 | echo '/* dummy */' > sub/conftst$i.h | |
3711 | done | |
3712 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3713 | ||
3714 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3715 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3716 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3717 | # versions had trouble with output in subdirs. | |
3718 | am__obj=sub/conftest.${OBJEXT-o} | |
3719 | am__minus_obj="-o $am__obj" | |
3720 | case $depmode in | |
3721 | gcc) | |
3722 | # This depmode causes a compiler race in universal mode. | |
3723 | test "$am__universal" = false || continue | |
3724 | ;; | |
3725 | nosideeffect) | |
3726 | # After this tag, mechanisms are not by side-effect, so they'll | |
3727 | # only be used when explicitly requested. | |
3728 | if test "x$enable_dependency_tracking" = xyes; then | |
3729 | continue | |
3730 | else | |
3731 | break | |
3732 | fi | |
3733 | ;; | |
3734 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3735 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3736 | # not run yet. These depmodes are late enough in the game, and | |
3737 | # so weak that their functioning should not be impacted. | |
3738 | am__obj=conftest.${OBJEXT-o} | |
3739 | am__minus_obj= | |
3740 | ;; | |
3741 | none) break ;; | |
3742 | esac | |
3743 | if depmode=$depmode \ | |
3744 | source=sub/conftest.c object=$am__obj \ | |
3745 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3746 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3747 | >/dev/null 2>conftest.err && | |
3748 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3749 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3750 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3751 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3752 | # icc doesn't choke on unknown options, it will just issue warnings | |
3753 | # or remarks (even with -Werror). So we grep stderr for any message | |
3754 | # that says an option was ignored or not supported. | |
3755 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3756 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3757 | # The diagnosis changed in icc 8.0: | |
3758 | # icc: Command line remark: option '-MP' not supported | |
3759 | if (grep 'ignoring option' conftest.err || | |
3760 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a243b558 | 3761 | am_cv_CXX_dependencies_compiler_type=$depmode |
66170b30 JF |
3762 | break |
3763 | fi | |
3764 | fi | |
3765 | done | |
3766 | ||
3767 | cd .. | |
3768 | rm -rf conftest.dir | |
3769 | else | |
a243b558 | 3770 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3771 | fi |
3772 | ||
3773 | fi | |
a243b558 JF |
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3775 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
3776 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
66170b30 JF |
3777 | |
3778 | if | |
3779 | test "x$enable_dependency_tracking" != xno \ | |
a243b558 JF |
3780 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
3781 | am__fastdepCXX_TRUE= | |
3782 | am__fastdepCXX_FALSE='#' | |
66170b30 | 3783 | else |
a243b558 JF |
3784 | am__fastdepCXX_TRUE='#' |
3785 | am__fastdepCXX_FALSE= | |
66170b30 JF |
3786 | fi |
3787 | ||
3788 | ||
a243b558 JF |
3789 | ac_ext=mm |
3790 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
3791 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3792 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3793 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
3794 | if test -n "$ac_tool_prefix"; then | |
3795 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3796 | do | |
3797 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3798 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3800 | $as_echo_n "checking for $ac_word... " >&6; } | |
3801 | if ${ac_cv_prog_OBJCXX+:} false; then : | |
35fa52c0 DWT |
3802 | $as_echo_n "(cached) " >&6 |
3803 | else | |
a243b558 JF |
3804 | if test -n "$OBJCXX"; then |
3805 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
3806 | else | |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3808 | for as_dir in $PATH | |
3809 | do | |
35fa52c0 DWT |
3810 | IFS=$as_save_IFS |
3811 | test -z "$as_dir" && as_dir=. | |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 JF |
3813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3814 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
3815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3816 | break 2 | |
3817 | fi | |
3818 | done | |
9c60689e DWT |
3819 | done |
3820 | IFS=$as_save_IFS | |
35fa52c0 | 3821 | |
9c60689e | 3822 | fi |
a243b558 JF |
3823 | fi |
3824 | OBJCXX=$ac_cv_prog_OBJCXX | |
3825 | if test -n "$OBJCXX"; then | |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
3827 | $as_echo "$OBJCXX" >&6; } | |
3828 | else | |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3830 | $as_echo "no" >&6; } | |
3831 | fi | |
35fa52c0 | 3832 | |
35fa52c0 | 3833 | |
a243b558 JF |
3834 | test -n "$OBJCXX" && break |
3835 | done | |
3836 | fi | |
3837 | if test -z "$OBJCXX"; then | |
3838 | ac_ct_OBJCXX=$OBJCXX | |
3839 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3840 | do | |
3841 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3842 | set dummy $ac_prog; ac_word=$2 | |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3844 | $as_echo_n "checking for $ac_word... " >&6; } | |
3845 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : | |
9c60689e DWT |
3846 | $as_echo_n "(cached) " >&6 |
3847 | else | |
a243b558 JF |
3848 | if test -n "$ac_ct_OBJCXX"; then |
3849 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
3850 | else | |
3851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3852 | for as_dir in $PATH | |
9c60689e DWT |
3853 | do |
3854 | IFS=$as_save_IFS | |
3855 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3856 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
3857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3858 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
3859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3860 | break 2 | |
3861 | fi | |
3862 | done | |
9c60689e DWT |
3863 | done |
3864 | IFS=$as_save_IFS | |
a243b558 JF |
3865 | |
3866 | fi | |
3867 | fi | |
3868 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
3869 | if test -n "$ac_ct_OBJCXX"; then | |
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
3871 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
9c60689e | 3872 | else |
a243b558 JF |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3874 | $as_echo "no" >&6; } | |
9c60689e | 3875 | fi |
6b66678a DWT |
3876 | |
3877 | ||
a243b558 JF |
3878 | test -n "$ac_ct_OBJCXX" && break |
3879 | done | |
6b66678a | 3880 | |
a243b558 JF |
3881 | if test "x$ac_ct_OBJCXX" = x; then |
3882 | OBJCXX="g++" | |
3883 | else | |
3884 | case $cross_compiling:$ac_tool_warned in | |
3885 | yes:) | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3887 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3888 | ac_tool_warned=yes ;; | |
9c60689e | 3889 | esac |
a243b558 | 3890 | OBJCXX=$ac_ct_OBJCXX |
9c60689e | 3891 | fi |
9c60689e | 3892 | fi |
6b66678a | 3893 | |
a243b558 JF |
3894 | # Provide some information about the compiler. |
3895 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
3896 | set X $ac_compile | |
3897 | ac_compiler=$2 | |
3898 | for ac_option in --version -v -V -qversion; do | |
3899 | { { ac_try="$ac_compiler $ac_option >&5" | |
3900 | case "(($ac_try" in | |
3901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3902 | *) ac_try_echo=$ac_try;; | |
3903 | esac | |
3904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3905 | $as_echo "$ac_try_echo"; } >&5 | |
3906 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3907 | ac_status=$? | |
3908 | if test -s conftest.err; then | |
3909 | sed '10a\ | |
3910 | ... rest of stderr output deleted ... | |
3911 | 10q' conftest.err >conftest.er1 | |
3912 | cat conftest.er1 >&5 | |
3913 | fi | |
3914 | rm -f conftest.er1 conftest.err | |
3915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3916 | test $ac_status = 0; } | |
3917 | done | |
6b66678a | 3918 | |
a243b558 JF |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
3920 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
3921 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
9c60689e | 3922 | $as_echo_n "(cached) " >&6 |
6b66678a | 3923 | else |
a243b558 JF |
3924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3925 | /* end confdefs.h. */ | |
6b66678a | 3926 | |
a243b558 JF |
3927 | int |
3928 | main () | |
3929 | { | |
3930 | #ifndef __GNUC__ | |
3931 | choke me | |
3932 | #endif | |
3933 | ||
3934 | ; | |
3935 | return 0; | |
3936 | } | |
3937 | _ACEOF | |
3938 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
3939 | ac_compiler_gnu=yes | |
9c60689e | 3940 | else |
a243b558 | 3941 | ac_compiler_gnu=no |
6b66678a | 3942 | fi |
a243b558 JF |
3943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3944 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
6b66678a DWT |
3945 | |
3946 | fi | |
a243b558 JF |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
3948 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
3949 | if test $ac_compiler_gnu = yes; then | |
3950 | GOBJCXX=yes | |
3951 | else | |
3952 | GOBJCXX= | |
3953 | fi | |
3954 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
3955 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
3957 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
3958 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
3959 | $as_echo_n "(cached) " >&6 | |
3960 | else | |
3961 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
3962 | ac_objcxx_werror_flag=yes | |
3963 | ac_cv_prog_objcxx_g=no | |
3964 | OBJCXXFLAGS="-g" | |
3965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3966 | /* end confdefs.h. */ | |
309b0535 | 3967 | |
a243b558 JF |
3968 | int |
3969 | main () | |
3970 | { | |
309b0535 | 3971 | |
a243b558 JF |
3972 | ; |
3973 | return 0; | |
3974 | } | |
3975 | _ACEOF | |
3976 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
3977 | ac_cv_prog_objcxx_g=yes | |
3978 | else | |
3979 | OBJCXXFLAGS="" | |
3980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3981 | /* end confdefs.h. */ | |
309b0535 | 3982 | |
a243b558 JF |
3983 | int |
3984 | main () | |
3985 | { | |
309b0535 | 3986 | |
a243b558 JF |
3987 | ; |
3988 | return 0; | |
3989 | } | |
3990 | _ACEOF | |
3991 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
309b0535 | 3992 | |
a243b558 JF |
3993 | else |
3994 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
3995 | OBJCXXFLAGS="-g" | |
3996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3997 | /* end confdefs.h. */ | |
309b0535 | 3998 | |
a243b558 JF |
3999 | int |
4000 | main () | |
4001 | { | |
309b0535 | 4002 | |
a243b558 JF |
4003 | ; |
4004 | return 0; | |
4005 | } | |
4006 | _ACEOF | |
4007 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4008 | ac_cv_prog_objcxx_g=yes | |
9c60689e | 4009 | fi |
a243b558 | 4010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4011 | fi |
a243b558 | 4012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4013 | fi |
a243b558 JF |
4014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4015 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
9c60689e | 4016 | fi |
a243b558 JF |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
4018 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4019 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4020 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4021 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4022 | if test "$GOBJCXX" = yes; then | |
4023 | OBJCXXFLAGS="-g -O2" | |
4024 | else | |
4025 | OBJCXXFLAGS="-g" | |
4026 | fi | |
9c60689e | 4027 | else |
a243b558 JF |
4028 | if test "$GOBJCXX" = yes; then |
4029 | OBJCXXFLAGS="-O2" | |
4030 | else | |
4031 | OBJCXXFLAGS= | |
4032 | fi | |
9c60689e | 4033 | fi |
a243b558 JF |
4034 | ac_ext=c |
4035 | ac_cpp='$CPP $CPPFLAGS' | |
4036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4039 | |
a243b558 | 4040 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
309b0535 | 4041 | |
a243b558 JF |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4043 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4044 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : | |
4045 | $as_echo_n "(cached) " >&6 | |
4046 | else | |
4047 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4048 | # We make a subdir and do the tests there. Otherwise we can end up | |
4049 | # making bogus files that we don't know about and never remove. For | |
4050 | # instance it was reported that on HP-UX the gcc test will end up | |
4051 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4052 | # in D". | |
4053 | rm -rf conftest.dir | |
4054 | mkdir conftest.dir | |
4055 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4056 | # using a relative directory. | |
4057 | cp "$am_depcomp" conftest.dir | |
4058 | cd conftest.dir | |
4059 | # We will build objects and dependencies in a subdirectory because | |
4060 | # it helps to detect inapplicable dependency modes. For instance | |
4061 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4062 | # side effect of compilation, but ICC will put the dependencies in | |
4063 | # the current directory while Tru64 will put them in the object | |
4064 | # directory. | |
4065 | mkdir sub | |
309b0535 | 4066 | |
a243b558 JF |
4067 | am_cv_OBJCXX_dependencies_compiler_type=none |
4068 | if test "$am_compiler_list" = ""; then | |
4069 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4070 | fi | |
4071 | am__universal=false | |
309b0535 | 4072 | |
9c60689e | 4073 | |
a243b558 JF |
4074 | for depmode in $am_compiler_list; do |
4075 | # Setup a source with many dependencies, because some compilers | |
4076 | # like to wrap large dependency lists on column 80 (with \), and | |
4077 | # we should not choose a depcomp mode which is confused by this. | |
4078 | # | |
4079 | # We need to recreate these files for each test, as the compiler may | |
4080 | # overwrite some of them when testing with obscure command lines. | |
4081 | # This happens at least with the AIX C compiler. | |
4082 | : > sub/conftest.c | |
4083 | for i in 1 2 3 4 5 6; do | |
4084 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4085 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4086 | # Solaris 10 /bin/sh. | |
4087 | echo '/* dummy */' > sub/conftst$i.h | |
4088 | done | |
4089 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4090 | |
a243b558 JF |
4091 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4092 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4093 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4094 | # versions had trouble with output in subdirs. | |
4095 | am__obj=sub/conftest.${OBJEXT-o} | |
4096 | am__minus_obj="-o $am__obj" | |
4097 | case $depmode in | |
4098 | gcc) | |
4099 | # This depmode causes a compiler race in universal mode. | |
4100 | test "$am__universal" = false || continue | |
4101 | ;; | |
4102 | nosideeffect) | |
4103 | # After this tag, mechanisms are not by side-effect, so they'll | |
4104 | # only be used when explicitly requested. | |
4105 | if test "x$enable_dependency_tracking" = xyes; then | |
4106 | continue | |
4107 | else | |
4108 | break | |
309b0535 | 4109 | fi |
a243b558 JF |
4110 | ;; |
4111 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4112 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4113 | # not run yet. These depmodes are late enough in the game, and | |
4114 | # so weak that their functioning should not be impacted. | |
4115 | am__obj=conftest.${OBJEXT-o} | |
4116 | am__minus_obj= | |
4117 | ;; | |
4118 | none) break ;; | |
4119 | esac | |
4120 | if depmode=$depmode \ | |
4121 | source=sub/conftest.c object=$am__obj \ | |
4122 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4123 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4124 | >/dev/null 2>conftest.err && | |
4125 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4126 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4127 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4128 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4129 | # icc doesn't choke on unknown options, it will just issue warnings | |
4130 | # or remarks (even with -Werror). So we grep stderr for any message | |
4131 | # that says an option was ignored or not supported. | |
4132 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4133 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4134 | # The diagnosis changed in icc 8.0: | |
4135 | # icc: Command line remark: option '-MP' not supported | |
4136 | if (grep 'ignoring option' conftest.err || | |
4137 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4138 | am_cv_OBJCXX_dependencies_compiler_type=$depmode | |
4139 | break | |
4140 | fi | |
4141 | fi | |
309b0535 | 4142 | done |
a243b558 JF |
4143 | |
4144 | cd .. | |
4145 | rm -rf conftest.dir | |
4146 | else | |
4147 | am_cv_OBJCXX_dependencies_compiler_type=none | |
9c60689e | 4148 | fi |
a243b558 | 4149 | |
9c60689e | 4150 | fi |
a243b558 JF |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4152 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4153 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
4154 | ||
4155 | if | |
4156 | test "x$enable_dependency_tracking" != xno \ | |
4157 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then | |
4158 | am__fastdepOBJCXX_TRUE= | |
4159 | am__fastdepOBJCXX_FALSE='#' | |
9c60689e | 4160 | else |
a243b558 JF |
4161 | am__fastdepOBJCXX_TRUE='#' |
4162 | am__fastdepOBJCXX_FALSE= | |
4163 | fi | |
4164 | ||
4165 | ||
4166 | ac_ext=c | |
4167 | ac_cpp='$CPP $CPPFLAGS' | |
4168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4171 | if test -n "$ac_tool_prefix"; then | |
4172 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4173 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
35fa52c0 DWT |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4175 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4176 | if ${ac_cv_prog_CC+:} false; then : |
35fa52c0 DWT |
4177 | $as_echo_n "(cached) " >&6 |
4178 | else | |
a243b558 JF |
4179 | if test -n "$CC"; then |
4180 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
35fa52c0 DWT |
4181 | else |
4182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4183 | for as_dir in $PATH | |
4184 | do | |
4185 | IFS=$as_save_IFS | |
4186 | test -z "$as_dir" && as_dir=. | |
4187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4189 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
35fa52c0 DWT |
4190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4191 | break 2 | |
4192 | fi | |
4193 | done | |
4194 | done | |
4195 | IFS=$as_save_IFS | |
4196 | ||
4197 | fi | |
4198 | fi | |
a243b558 JF |
4199 | CC=$ac_cv_prog_CC |
4200 | if test -n "$CC"; then | |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4202 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
4203 | else |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4205 | $as_echo "no" >&6; } | |
4206 | fi | |
4207 | ||
4208 | ||
35fa52c0 | 4209 | fi |
a243b558 JF |
4210 | if test -z "$ac_cv_prog_CC"; then |
4211 | ac_ct_CC=$CC | |
4212 | # Extract the first word of "gcc", so it can be a program name with args. | |
4213 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4215 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4216 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
4217 | $as_echo_n "(cached) " >&6 |
4218 | else | |
a243b558 JF |
4219 | if test -n "$ac_ct_CC"; then |
4220 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
4221 | else |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4223 | for as_dir in $PATH | |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
4227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4229 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
4230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4231 | break 2 | |
4232 | fi | |
4233 | done | |
4234 | done | |
4235 | IFS=$as_save_IFS | |
4236 | ||
4237 | fi | |
4238 | fi | |
a243b558 JF |
4239 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4240 | if test -n "$ac_ct_CC"; then | |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4242 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
4243 | else |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4245 | $as_echo "no" >&6; } | |
4246 | fi | |
4247 | ||
a243b558 JF |
4248 | if test "x$ac_ct_CC" = x; then |
4249 | CC="" | |
35fa52c0 DWT |
4250 | else |
4251 | case $cross_compiling:$ac_tool_warned in | |
4252 | yes:) | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4255 | ac_tool_warned=yes ;; | |
4256 | esac | |
a243b558 | 4257 | CC=$ac_ct_CC |
35fa52c0 | 4258 | fi |
a243b558 JF |
4259 | else |
4260 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
4261 | fi |
4262 | ||
a243b558 JF |
4263 | if test -z "$CC"; then |
4264 | if test -n "$ac_tool_prefix"; then | |
4265 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4266 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4268 | $as_echo_n "checking for $ac_word... " >&6; } | |
4269 | if ${ac_cv_prog_CC+:} false; then : | |
4270 | $as_echo_n "(cached) " >&6 | |
4271 | else | |
4272 | if test -n "$CC"; then | |
4273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4274 | else | |
4275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4276 | for as_dir in $PATH | |
4277 | do | |
4278 | IFS=$as_save_IFS | |
4279 | test -z "$as_dir" && as_dir=. | |
4280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4282 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4284 | break 2 | |
ee134472 | 4285 | fi |
a243b558 JF |
4286 | done |
4287 | done | |
4288 | IFS=$as_save_IFS | |
9c60689e | 4289 | |
35fa52c0 | 4290 | fi |
a243b558 JF |
4291 | fi |
4292 | CC=$ac_cv_prog_CC | |
4293 | if test -n "$CC"; then | |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4295 | $as_echo "$CC" >&6; } | |
4296 | else | |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4298 | $as_echo "no" >&6; } | |
4299 | fi | |
35fa52c0 | 4300 | |
35fa52c0 | 4301 | |
a243b558 JF |
4302 | fi |
4303 | fi | |
4304 | if test -z "$CC"; then | |
4305 | # Extract the first word of "cc", so it can be a program name with args. | |
4306 | set dummy cc; ac_word=$2 | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4308 | $as_echo_n "checking for $ac_word... " >&6; } | |
4309 | if ${ac_cv_prog_CC+:} false; then : | |
4310 | $as_echo_n "(cached) " >&6 | |
4311 | else | |
4312 | if test -n "$CC"; then | |
4313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4314 | else | |
4315 | ac_prog_rejected=no | |
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4317 | for as_dir in $PATH | |
4318 | do | |
4319 | IFS=$as_save_IFS | |
4320 | test -z "$as_dir" && as_dir=. | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4323 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4324 | ac_prog_rejected=yes | |
4325 | continue | |
4326 | fi | |
4327 | ac_cv_prog_CC="cc" | |
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4329 | break 2 | |
4330 | fi | |
4331 | done | |
4332 | done | |
4333 | IFS=$as_save_IFS | |
35fa52c0 | 4334 | |
a243b558 JF |
4335 | if test $ac_prog_rejected = yes; then |
4336 | # We found a bogon in the path, so make sure we never use it. | |
4337 | set dummy $ac_cv_prog_CC | |
4338 | shift | |
4339 | if test $# != 0; then | |
4340 | # We chose a different compiler from the bogus one. | |
4341 | # However, it has the same basename, so the bogon will be chosen | |
4342 | # first if we set CC to just the basename; use the full file name. | |
4343 | shift | |
4344 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4345 | fi | |
4346 | fi | |
4347 | fi | |
4348 | fi | |
4349 | CC=$ac_cv_prog_CC | |
4350 | if test -n "$CC"; then | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4352 | $as_echo "$CC" >&6; } | |
4353 | else | |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4355 | $as_echo "no" >&6; } | |
4356 | fi | |
9c60689e DWT |
4357 | |
4358 | ||
a243b558 JF |
4359 | fi |
4360 | if test -z "$CC"; then | |
4361 | if test -n "$ac_tool_prefix"; then | |
4362 | for ac_prog in cl.exe | |
4363 | do | |
4364 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4365 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4367 | $as_echo_n "checking for $ac_word... " >&6; } | |
4368 | if ${ac_cv_prog_CC+:} false; then : | |
9c60689e DWT |
4369 | $as_echo_n "(cached) " >&6 |
4370 | else | |
a243b558 JF |
4371 | if test -n "$CC"; then |
4372 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4373 | else | |
4374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4375 | for as_dir in $PATH | |
4376 | do | |
4377 | IFS=$as_save_IFS | |
4378 | test -z "$as_dir" && as_dir=. | |
4379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4380 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4381 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4383 | break 2 | |
9c60689e | 4384 | fi |
a243b558 JF |
4385 | done |
4386 | done | |
4387 | IFS=$as_save_IFS | |
9c60689e | 4388 | |
a243b558 JF |
4389 | fi |
4390 | fi | |
4391 | CC=$ac_cv_prog_CC | |
4392 | if test -n "$CC"; then | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4394 | $as_echo "$CC" >&6; } | |
35fa52c0 | 4395 | else |
a243b558 JF |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4397 | $as_echo "no" >&6; } | |
35fa52c0 | 4398 | fi |
9c60689e | 4399 | |
a243b558 JF |
4400 | |
4401 | test -n "$CC" && break | |
4402 | done | |
4403 | fi | |
4404 | if test -z "$CC"; then | |
4405 | ac_ct_CC=$CC | |
4406 | for ac_prog in cl.exe | |
4407 | do | |
4408 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4409 | set dummy $ac_prog; ac_word=$2 | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4411 | $as_echo_n "checking for $ac_word... " >&6; } | |
4412 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
35fa52c0 DWT |
4413 | $as_echo_n "(cached) " >&6 |
4414 | else | |
a243b558 JF |
4415 | if test -n "$ac_ct_CC"; then |
4416 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4417 | else | |
4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4419 | for as_dir in $PATH | |
4420 | do | |
4421 | IFS=$as_save_IFS | |
4422 | test -z "$as_dir" && as_dir=. | |
4423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4424 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4425 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4427 | break 2 | |
4428 | fi | |
4429 | done | |
4430 | done | |
4431 | IFS=$as_save_IFS | |
9c60689e | 4432 | |
a243b558 JF |
4433 | fi |
4434 | fi | |
4435 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4436 | if test -n "$ac_ct_CC"; then | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4438 | $as_echo "$ac_ct_CC" >&6; } | |
4439 | else | |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4441 | $as_echo "no" >&6; } | |
4442 | fi | |
35fa52c0 | 4443 | |
35fa52c0 | 4444 | |
a243b558 JF |
4445 | test -n "$ac_ct_CC" && break |
4446 | done | |
35fa52c0 | 4447 | |
a243b558 JF |
4448 | if test "x$ac_ct_CC" = x; then |
4449 | CC="" | |
4450 | else | |
4451 | case $cross_compiling:$ac_tool_warned in | |
4452 | yes:) | |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4454 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4455 | ac_tool_warned=yes ;; | |
4456 | esac | |
4457 | CC=$ac_ct_CC | |
4458 | fi | |
4459 | fi | |
ee134472 | 4460 | |
a243b558 | 4461 | fi |
35fa52c0 | 4462 | |
35fa52c0 | 4463 | |
a243b558 JF |
4464 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4465 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4466 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4467 | See \`config.log' for more details" "$LINENO" 5; } | |
35fa52c0 | 4468 | |
a243b558 JF |
4469 | # Provide some information about the compiler. |
4470 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4471 | set X $ac_compile | |
4472 | ac_compiler=$2 | |
4473 | for ac_option in --version -v -V -qversion; do | |
4474 | { { ac_try="$ac_compiler $ac_option >&5" | |
4475 | case "(($ac_try" in | |
4476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4477 | *) ac_try_echo=$ac_try;; | |
4478 | esac | |
4479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4480 | $as_echo "$ac_try_echo"; } >&5 | |
4481 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4482 | ac_status=$? | |
4483 | if test -s conftest.err; then | |
4484 | sed '10a\ | |
4485 | ... rest of stderr output deleted ... | |
4486 | 10q' conftest.err >conftest.er1 | |
4487 | cat conftest.er1 >&5 | |
4488 | fi | |
4489 | rm -f conftest.er1 conftest.err | |
4490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4491 | test $ac_status = 0; } | |
4492 | done | |
53ba6704 | 4493 | |
a243b558 JF |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4495 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4496 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4497 | $as_echo_n "(cached) " >&6 | |
4498 | else | |
4499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4500 | /* end confdefs.h. */ | |
35fa52c0 | 4501 | |
a243b558 JF |
4502 | int |
4503 | main () | |
4504 | { | |
4505 | #ifndef __GNUC__ | |
4506 | choke me | |
4507 | #endif | |
9c60689e | 4508 | |
a243b558 JF |
4509 | ; |
4510 | return 0; | |
4511 | } | |
4512 | _ACEOF | |
4513 | if ac_fn_c_try_compile "$LINENO"; then : | |
4514 | ac_compiler_gnu=yes | |
35fa52c0 | 4515 | else |
a243b558 | 4516 | ac_compiler_gnu=no |
35fa52c0 | 4517 | fi |
a243b558 JF |
4518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4519 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 4520 | |
a243b558 JF |
4521 | fi |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4523 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4524 | if test $ac_compiler_gnu = yes; then | |
4525 | GCC=yes | |
35fa52c0 | 4526 | else |
a243b558 | 4527 | GCC= |
9c60689e | 4528 | fi |
a243b558 JF |
4529 | ac_test_CFLAGS=${CFLAGS+set} |
4530 | ac_save_CFLAGS=$CFLAGS | |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4532 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4533 | if ${ac_cv_prog_cc_g+:} false; then : | |
4534 | $as_echo_n "(cached) " >&6 | |
4535 | else | |
4536 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4537 | ac_c_werror_flag=yes | |
4538 | ac_cv_prog_cc_g=no | |
4539 | CFLAGS="-g" | |
4540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4541 | /* end confdefs.h. */ | |
9c60689e | 4542 | |
a243b558 JF |
4543 | int |
4544 | main () | |
4545 | { | |
9c60689e | 4546 | |
a243b558 JF |
4547 | ; |
4548 | return 0; | |
4549 | } | |
4550 | _ACEOF | |
4551 | if ac_fn_c_try_compile "$LINENO"; then : | |
4552 | ac_cv_prog_cc_g=yes | |
4553 | else | |
4554 | CFLAGS="" | |
4555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4556 | /* end confdefs.h. */ | |
9c60689e | 4557 | |
a243b558 JF |
4558 | int |
4559 | main () | |
4560 | { | |
9c60689e | 4561 | |
a243b558 JF |
4562 | ; |
4563 | return 0; | |
4564 | } | |
4565 | _ACEOF | |
4566 | if ac_fn_c_try_compile "$LINENO"; then : | |
9c60689e | 4567 | |
a243b558 JF |
4568 | else |
4569 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4570 | CFLAGS="-g" | |
4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4572 | /* end confdefs.h. */ | |
35fa52c0 | 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 | |
ee134472 | 4584 | fi |
a243b558 JF |
4585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4586 | fi | |
4587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4588 | fi | |
4589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4590 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4591 | fi | |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4593 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4594 | if test "$ac_test_CFLAGS" = set; then | |
4595 | CFLAGS=$ac_save_CFLAGS | |
4596 | elif test $ac_cv_prog_cc_g = yes; then | |
4597 | if test "$GCC" = yes; then | |
4598 | CFLAGS="-g -O2" | |
4599 | else | |
4600 | CFLAGS="-g" | |
4601 | fi | |
ee134472 | 4602 | else |
a243b558 JF |
4603 | if test "$GCC" = yes; then |
4604 | CFLAGS="-O2" | |
4605 | else | |
4606 | CFLAGS= | |
4607 | fi | |
ee134472 | 4608 | fi |
a243b558 JF |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4610 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4611 | if ${ac_cv_prog_cc_c89+:} false; then : | |
35fa52c0 DWT |
4612 | $as_echo_n "(cached) " >&6 |
4613 | else | |
a243b558 JF |
4614 | ac_cv_prog_cc_c89=no |
4615 | ac_save_CC=$CC | |
4616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4617 | /* end confdefs.h. */ | |
4618 | #include <stdarg.h> | |
4619 | #include <stdio.h> | |
4620 | struct stat; | |
4621 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4622 | struct buf { int x; }; | |
4623 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4624 | static char *e (p, i) | |
4625 | char **p; | |
4626 | int i; | |
4627 | { | |
4628 | return p[i]; | |
4629 | } | |
4630 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4631 | { | |
4632 | char *s; | |
4633 | va_list v; | |
4634 | va_start (v,p); | |
4635 | s = g (p, va_arg (v,int)); | |
4636 | va_end (v); | |
4637 | return s; | |
4638 | } | |
9c60689e | 4639 | |
a243b558 JF |
4640 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4641 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4642 | These don't provoke an error unfortunately, instead are silently treated | |
4643 | as 'x'. The following induces an error, until -std is added to get | |
4644 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4645 | array size at least. It's necessary to write '\x00'==0 to get something | |
4646 | that's true only with -std. */ | |
4647 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
9c60689e | 4648 | |
a243b558 JF |
4649 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4650 | inside strings and character constants. */ | |
4651 | #define FOO(x) 'x' | |
4652 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
9c60689e | 4653 | |
a243b558 JF |
4654 | int test (int i, double x); |
4655 | struct s1 {int (*f) (int a);}; | |
4656 | struct s2 {int (*f) (double a);}; | |
4657 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4658 | int argc; | |
4659 | char **argv; | |
4660 | int | |
4661 | main () | |
4662 | { | |
4663 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4664 | ; | |
4665 | return 0; | |
4666 | } | |
4667 | _ACEOF | |
4668 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4669 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
9c60689e | 4670 | do |
a243b558 JF |
4671 | CC="$ac_save_CC $ac_arg" |
4672 | if ac_fn_c_try_compile "$LINENO"; then : | |
4673 | ac_cv_prog_cc_c89=$ac_arg | |
4674 | fi | |
4675 | rm -f core conftest.err conftest.$ac_objext | |
4676 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
9c60689e | 4677 | done |
a243b558 JF |
4678 | rm -f conftest.$ac_ext |
4679 | CC=$ac_save_CC | |
35fa52c0 | 4680 | |
35fa52c0 | 4681 | fi |
a243b558 JF |
4682 | # AC_CACHE_VAL |
4683 | case "x$ac_cv_prog_cc_c89" in | |
4684 | x) | |
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4686 | $as_echo "none needed" >&6; } ;; | |
4687 | xno) | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4689 | $as_echo "unsupported" >&6; } ;; | |
4690 | *) | |
4691 | CC="$CC $ac_cv_prog_cc_c89" | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4693 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4694 | esac | |
4695 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4696 | ||
35fa52c0 | 4697 | fi |
9c60689e | 4698 | |
a243b558 JF |
4699 | ac_ext=c |
4700 | ac_cpp='$CPP $CPPFLAGS' | |
4701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4704 | ||
4705 | depcc="$CC" am_compiler_list= | |
9c60689e | 4706 | |
a243b558 JF |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4708 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4709 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
35fa52c0 DWT |
4710 | $as_echo_n "(cached) " >&6 |
4711 | else | |
a243b558 JF |
4712 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4713 | # We make a subdir and do the tests there. Otherwise we can end up | |
4714 | # making bogus files that we don't know about and never remove. For | |
4715 | # instance it was reported that on HP-UX the gcc test will end up | |
4716 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4717 | # in D". | |
4718 | rm -rf conftest.dir | |
4719 | mkdir conftest.dir | |
4720 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4721 | # using a relative directory. | |
4722 | cp "$am_depcomp" conftest.dir | |
4723 | cd conftest.dir | |
4724 | # We will build objects and dependencies in a subdirectory because | |
4725 | # it helps to detect inapplicable dependency modes. For instance | |
4726 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4727 | # side effect of compilation, but ICC will put the dependencies in | |
4728 | # the current directory while Tru64 will put them in the object | |
4729 | # directory. | |
4730 | mkdir sub | |
4731 | ||
4732 | am_cv_CC_dependencies_compiler_type=none | |
4733 | if test "$am_compiler_list" = ""; then | |
4734 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4735 | fi | |
4736 | am__universal=false | |
4737 | case " $depcc " in #( | |
4738 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4739 | esac | |
4740 | ||
4741 | for depmode in $am_compiler_list; do | |
4742 | # Setup a source with many dependencies, because some compilers | |
4743 | # like to wrap large dependency lists on column 80 (with \), and | |
4744 | # we should not choose a depcomp mode which is confused by this. | |
4745 | # | |
4746 | # We need to recreate these files for each test, as the compiler may | |
4747 | # overwrite some of them when testing with obscure command lines. | |
4748 | # This happens at least with the AIX C compiler. | |
4749 | : > sub/conftest.c | |
4750 | for i in 1 2 3 4 5 6; do | |
4751 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4752 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4753 | # Solaris 10 /bin/sh. | |
4754 | echo '/* dummy */' > sub/conftst$i.h | |
4755 | done | |
4756 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4757 | ||
4758 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4759 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4760 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4761 | # versions had trouble with output in subdirs. | |
4762 | am__obj=sub/conftest.${OBJEXT-o} | |
4763 | am__minus_obj="-o $am__obj" | |
4764 | case $depmode in | |
4765 | gcc) | |
4766 | # This depmode causes a compiler race in universal mode. | |
4767 | test "$am__universal" = false || continue | |
4768 | ;; | |
4769 | nosideeffect) | |
4770 | # After this tag, mechanisms are not by side-effect, so they'll | |
4771 | # only be used when explicitly requested. | |
4772 | if test "x$enable_dependency_tracking" = xyes; then | |
4773 | continue | |
4774 | else | |
4775 | break | |
4776 | fi | |
4777 | ;; | |
4778 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4779 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4780 | # not run yet. These depmodes are late enough in the game, and | |
4781 | # so weak that their functioning should not be impacted. | |
4782 | am__obj=conftest.${OBJEXT-o} | |
4783 | am__minus_obj= | |
4784 | ;; | |
4785 | none) break ;; | |
4786 | esac | |
4787 | if depmode=$depmode \ | |
4788 | source=sub/conftest.c object=$am__obj \ | |
4789 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4790 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4791 | >/dev/null 2>conftest.err && | |
4792 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4793 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4794 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4795 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4796 | # icc doesn't choke on unknown options, it will just issue warnings | |
4797 | # or remarks (even with -Werror). So we grep stderr for any message | |
4798 | # that says an option was ignored or not supported. | |
4799 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4800 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4801 | # The diagnosis changed in icc 8.0: | |
4802 | # icc: Command line remark: option '-MP' not supported | |
4803 | if (grep 'ignoring option' conftest.err || | |
4804 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4805 | am_cv_CC_dependencies_compiler_type=$depmode | |
4806 | break | |
4807 | fi | |
4808 | fi | |
4809 | done | |
9c60689e | 4810 | |
a243b558 JF |
4811 | cd .. |
4812 | rm -rf conftest.dir | |
4813 | else | |
4814 | am_cv_CC_dependencies_compiler_type=none | |
35fa52c0 | 4815 | fi |
a243b558 | 4816 | |
35fa52c0 | 4817 | fi |
a243b558 JF |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4819 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4820 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4821 | ||
4822 | if | |
4823 | test "x$enable_dependency_tracking" != xno \ | |
4824 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4825 | am__fastdepCC_TRUE= | |
4826 | am__fastdepCC_FALSE='#' | |
4827 | else | |
4828 | am__fastdepCC_TRUE='#' | |
4829 | am__fastdepCC_FALSE= | |
4830 | fi | |
4831 | ||
4832 | ||
4833 | ||
4834 | if test -n "$ac_tool_prefix"; then | |
4835 | for ac_prog in ar lib "link -lib" | |
4836 | do | |
4837 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4838 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4840 | $as_echo_n "checking for $ac_word... " >&6; } | |
4841 | if ${ac_cv_prog_AR+:} false; then : | |
4842 | $as_echo_n "(cached) " >&6 | |
4843 | else | |
4844 | if test -n "$AR"; then | |
4845 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4846 | else | |
4847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4848 | for as_dir in $PATH | |
4849 | do | |
4850 | IFS=$as_save_IFS | |
4851 | test -z "$as_dir" && as_dir=. | |
4852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4854 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4856 | break 2 | |
4857 | fi | |
4858 | done | |
4859 | done | |
4860 | IFS=$as_save_IFS | |
4861 | ||
4862 | fi | |
4863 | fi | |
4864 | AR=$ac_cv_prog_AR | |
4865 | if test -n "$AR"; then | |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4867 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
4868 | else |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4870 | $as_echo "no" >&6; } | |
4871 | fi | |
9c60689e | 4872 | |
a243b558 JF |
4873 | |
4874 | test -n "$AR" && break | |
4875 | done | |
4876 | fi | |
4877 | if test -z "$AR"; then | |
4878 | ac_ct_AR=$AR | |
4879 | for ac_prog in ar lib "link -lib" | |
4880 | do | |
4881 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4882 | set dummy $ac_prog; ac_word=$2 | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4884 | $as_echo_n "checking for $ac_word... " >&6; } | |
4885 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4886 | $as_echo_n "(cached) " >&6 | |
4887 | else | |
4888 | if test -n "$ac_ct_AR"; then | |
4889 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4890 | else | |
4891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4892 | for as_dir in $PATH | |
4893 | do | |
4894 | IFS=$as_save_IFS | |
4895 | test -z "$as_dir" && as_dir=. | |
4896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4898 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
4899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4900 | break 2 | |
4901 | fi | |
4902 | done | |
4903 | done | |
4904 | IFS=$as_save_IFS | |
4905 | ||
4906 | fi | |
4907 | fi | |
4908 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4909 | if test -n "$ac_ct_AR"; then | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4911 | $as_echo "$ac_ct_AR" >&6; } | |
4912 | else | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4914 | $as_echo "no" >&6; } | |
4915 | fi | |
4916 | ||
4917 | ||
4918 | test -n "$ac_ct_AR" && break | |
4919 | done | |
4920 | ||
4921 | if test "x$ac_ct_AR" = x; then | |
4922 | AR="false" | |
9c60689e DWT |
4923 | else |
4924 | case $cross_compiling:$ac_tool_warned in | |
4925 | yes:) | |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4927 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4928 | ac_tool_warned=yes ;; | |
35fa52c0 | 4929 | esac |
a243b558 | 4930 | AR=$ac_ct_AR |
9c60689e | 4931 | fi |
a243b558 JF |
4932 | fi |
4933 | ||
4934 | : ${AR=ar} | |
4935 | ||
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
4937 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
4938 | if ${am_cv_ar_interface+:} false; then : | |
4939 | $as_echo_n "(cached) " >&6 | |
9c60689e | 4940 | else |
a243b558 JF |
4941 | am_cv_ar_interface=ar |
4942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4943 | /* end confdefs.h. */ | |
4944 | int some_variable = 0; | |
4945 | _ACEOF | |
4946 | if ac_fn_c_try_compile "$LINENO"; then : | |
4947 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
4948 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4949 | (eval $am_ar_try) 2>&5 | |
4950 | ac_status=$? | |
4951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4952 | test $ac_status = 0; } | |
4953 | if test "$ac_status" -eq 0; then | |
4954 | am_cv_ar_interface=ar | |
4955 | else | |
4956 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
4957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4958 | (eval $am_ar_try) 2>&5 | |
4959 | ac_status=$? | |
4960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4961 | test $ac_status = 0; } | |
4962 | if test "$ac_status" -eq 0; then | |
4963 | am_cv_ar_interface=lib | |
4964 | else | |
4965 | am_cv_ar_interface=unknown | |
4966 | fi | |
4967 | fi | |
4968 | rm -f conftest.lib libconftest.a | |
4969 | ||
35fa52c0 | 4970 | fi |
a243b558 | 4971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4972 | |
a243b558 JF |
4973 | fi |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
4975 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 4976 | |
a243b558 JF |
4977 | case $am_cv_ar_interface in |
4978 | ar) | |
4979 | ;; | |
4980 | lib) | |
4981 | # Microsoft lib, so override with the ar-lib wrapper script. | |
4982 | # FIXME: It is wrong to rewrite AR. | |
4983 | # But if we don't then we get into trouble of one sort or another. | |
4984 | # A longer-term fix would be to have automake use am__AR in this case, | |
4985 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
4986 | # similar. | |
4987 | AR="$am_aux_dir/ar-lib $AR" | |
4988 | ;; | |
4989 | unknown) | |
4990 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
4991 | ;; | |
4992 | esac | |
35fa52c0 | 4993 | |
35fa52c0 | 4994 | |
35fa52c0 | 4995 | |
a243b558 JF |
4996 | case `pwd` in |
4997 | *\ * | *\ *) | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4999 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5000 | esac | |
35fa52c0 DWT |
5001 | |
5002 | ||
5003 | ||
a243b558 JF |
5004 | macro_version='2.4.2' |
5005 | macro_revision='1.3337' | |
35fa52c0 DWT |
5006 | |
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
35fa52c0 | 5015 | |
35fa52c0 | 5016 | |
ee134472 | 5017 | |
35fa52c0 | 5018 | |
a243b558 | 5019 | ltmain="$ac_aux_dir/ltmain.sh" |
35fa52c0 | 5020 | |
a243b558 JF |
5021 | # Make sure we can run config.sub. |
5022 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5023 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5024 | |
a243b558 JF |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5026 | $as_echo_n "checking build system type... " >&6; } | |
5027 | if ${ac_cv_build+:} false; then : | |
5028 | $as_echo_n "(cached) " >&6 | |
5029 | else | |
5030 | ac_build_alias=$build_alias | |
5031 | test "x$ac_build_alias" = x && | |
5032 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5033 | test "x$ac_build_alias" = x && | |
5034 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5035 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5036 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5037 | |
a243b558 JF |
5038 | fi |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5040 | $as_echo "$ac_cv_build" >&6; } | |
5041 | case $ac_cv_build in | |
5042 | *-*-*) ;; | |
5043 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5044 | esac | |
5045 | build=$ac_cv_build | |
5046 | ac_save_IFS=$IFS; IFS='-' | |
5047 | set x $ac_cv_build | |
5048 | shift | |
5049 | build_cpu=$1 | |
5050 | build_vendor=$2 | |
5051 | shift; shift | |
5052 | # Remember, the first character of IFS is used to create $*, | |
5053 | # except with old shells: | |
5054 | build_os=$* | |
5055 | IFS=$ac_save_IFS | |
5056 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5057 | |
35fa52c0 | 5058 | |
a243b558 JF |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5060 | $as_echo_n "checking host system type... " >&6; } | |
5061 | if ${ac_cv_host+:} false; then : | |
5062 | $as_echo_n "(cached) " >&6 | |
5063 | else | |
5064 | if test "x$host_alias" = x; then | |
5065 | ac_cv_host=$ac_cv_build | |
5066 | else | |
5067 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5068 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5069 | fi | |
35fa52c0 | 5070 | |
a243b558 JF |
5071 | fi |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5073 | $as_echo "$ac_cv_host" >&6; } | |
5074 | case $ac_cv_host in | |
5075 | *-*-*) ;; | |
5076 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5077 | esac | |
5078 | host=$ac_cv_host | |
5079 | ac_save_IFS=$IFS; IFS='-' | |
5080 | set x $ac_cv_host | |
5081 | shift | |
5082 | host_cpu=$1 | |
5083 | host_vendor=$2 | |
5084 | shift; shift | |
5085 | # Remember, the first character of IFS is used to create $*, | |
5086 | # except with old shells: | |
5087 | host_os=$* | |
5088 | IFS=$ac_save_IFS | |
5089 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5090 | |
9c60689e | 5091 | |
a243b558 JF |
5092 | # Backslashify metacharacters that are still active within |
5093 | # double-quoted strings. | |
5094 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5095 | |
a243b558 JF |
5096 | # Same as above, but do not quote variable references. |
5097 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5098 | |
a243b558 JF |
5099 | # Sed substitution to delay expansion of an escaped shell variable in a |
5100 | # double_quote_subst'ed string. | |
5101 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5102 | |
a243b558 JF |
5103 | # Sed substitution to delay expansion of an escaped single quote. |
5104 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5105 | |
a243b558 JF |
5106 | # Sed substitution to avoid accidental globbing in evaled expressions |
5107 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5108 | |
a243b558 JF |
5109 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5110 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5111 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5112 | |
a243b558 JF |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5114 | $as_echo_n "checking how to print strings... " >&6; } | |
5115 | # Test print first, because it will be a builtin if present. | |
5116 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5117 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5118 | ECHO='print -r --' | |
5119 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5120 | ECHO='printf %s\n' | |
5121 | else | |
5122 | # Use this function as a fallback that always works. | |
5123 | func_fallback_echo () | |
5124 | { | |
5125 | eval 'cat <<_LTECHO_EOF | |
5126 | $1 | |
5127 | _LTECHO_EOF' | |
5128 | } | |
5129 | ECHO='func_fallback_echo' | |
ee134472 JF |
5130 | fi |
5131 | ||
a243b558 JF |
5132 | # func_echo_all arg... |
5133 | # Invoke $ECHO with all args, space-separated. | |
5134 | func_echo_all () | |
5135 | { | |
5136 | $ECHO "" | |
5137 | } | |
35fa52c0 | 5138 | |
a243b558 JF |
5139 | case "$ECHO" in |
5140 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5141 | $as_echo "printf" >&6; } ;; | |
5142 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5143 | $as_echo "print -r" >&6; } ;; | |
5144 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5145 | $as_echo "cat" >&6; } ;; | |
5146 | esac | |
35fa52c0 | 5147 | |
35fa52c0 | 5148 | |
ee134472 JF |
5149 | |
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | ||
5158 | ||
35fa52c0 | 5159 | |
9c60689e | 5160 | |
a243b558 JF |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5162 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5163 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5164 | $as_echo_n "(cached) " >&6 |
5165 | else | |
a243b558 JF |
5166 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5167 | for ac_i in 1 2 3 4 5 6 7; do | |
5168 | ac_script="$ac_script$as_nl$ac_script" | |
5169 | done | |
5170 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5171 | { ac_script=; unset ac_script;} | |
5172 | if test -z "$SED"; then | |
5173 | ac_path_SED_found=false | |
5174 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5176 | for as_dir in $PATH |
5177 | do | |
5178 | IFS=$as_save_IFS | |
5179 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5180 | for ac_prog in sed gsed; do |
9c60689e | 5181 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5182 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5183 | as_fn_executable_p "$ac_path_SED" || continue | |
5184 | # Check for GNU ac_path_SED and select it if it is found. | |
5185 | # Check for GNU $ac_path_SED | |
5186 | case `"$ac_path_SED" --version 2>&1` in | |
5187 | *GNU*) | |
5188 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5189 | *) | |
5190 | ac_count=0 | |
5191 | $as_echo_n 0123456789 >"conftest.in" | |
5192 | while : | |
5193 | do | |
5194 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5195 | mv "conftest.tmp" "conftest.in" | |
5196 | cp "conftest.in" "conftest.nl" | |
5197 | $as_echo '' >> "conftest.nl" | |
5198 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5199 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5200 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5201 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5202 | # Best one so far, save it but keep looking for a better one | |
5203 | ac_cv_path_SED="$ac_path_SED" | |
5204 | ac_path_SED_max=$ac_count | |
5205 | fi | |
5206 | # 10*(2^10) chars as input seems more than enough | |
5207 | test $ac_count -gt 10 && break | |
35fa52c0 | 5208 | done |
a243b558 JF |
5209 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5210 | esac | |
9c60689e | 5211 | |
a243b558 JF |
5212 | $ac_path_SED_found && break 3 |
5213 | done | |
5214 | done | |
9c60689e DWT |
5215 | done |
5216 | IFS=$as_save_IFS | |
a243b558 JF |
5217 | if test -z "$ac_cv_path_SED"; then |
5218 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5219 | fi |
5220 | else | |
a243b558 | 5221 | ac_cv_path_SED=$SED |
9c60689e DWT |
5222 | fi |
5223 | ||
a243b558 JF |
5224 | fi |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5226 | $as_echo "$ac_cv_path_SED" >&6; } | |
5227 | SED="$ac_cv_path_SED" | |
5228 | rm -f conftest.sed | |
9c60689e | 5229 | |
a243b558 JF |
5230 | test -z "$SED" && SED=sed |
5231 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5232 | |
ee134472 | 5233 | |
ee134472 | 5234 | |
9c60689e DWT |
5235 | |
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
5241 | ||
5242 | ||
a243b558 JF |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5244 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5245 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5246 | $as_echo_n "(cached) " >&6 |
5247 | else | |
a243b558 JF |
5248 | if test -z "$GREP"; then |
5249 | ac_path_GREP_found=false | |
5250 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5252 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5253 | do |
5254 | IFS=$as_save_IFS | |
5255 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5256 | for ac_prog in grep ggrep; do |
9c60689e | 5257 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5258 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5259 | as_fn_executable_p "$ac_path_GREP" || continue | |
5260 | # Check for GNU ac_path_GREP and select it if it is found. | |
5261 | # Check for GNU $ac_path_GREP | |
5262 | case `"$ac_path_GREP" --version 2>&1` in | |
5263 | *GNU*) | |
5264 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5265 | *) | |
5266 | ac_count=0 | |
5267 | $as_echo_n 0123456789 >"conftest.in" | |
5268 | while : | |
5269 | do | |
5270 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5271 | mv "conftest.tmp" "conftest.in" | |
5272 | cp "conftest.in" "conftest.nl" | |
5273 | $as_echo 'GREP' >> "conftest.nl" | |
5274 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5275 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5276 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5277 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5278 | # Best one so far, save it but keep looking for a better one | |
5279 | ac_cv_path_GREP="$ac_path_GREP" | |
5280 | ac_path_GREP_max=$ac_count | |
5281 | fi | |
5282 | # 10*(2^10) chars as input seems more than enough | |
5283 | test $ac_count -gt 10 && break | |
5284 | done | |
5285 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5286 | esac | |
9c60689e | 5287 | |
a243b558 JF |
5288 | $ac_path_GREP_found && break 3 |
5289 | done | |
ee134472 | 5290 | done |
a243b558 JF |
5291 | done |
5292 | IFS=$as_save_IFS | |
5293 | if test -z "$ac_cv_path_GREP"; then | |
5294 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5295 | fi | |
5296 | else | |
5297 | ac_cv_path_GREP=$GREP | |
9c60689e | 5298 | fi |
a243b558 JF |
5299 | |
5300 | fi | |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5302 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5303 | GREP="$ac_cv_path_GREP" | |
5304 | ||
5305 | ||
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5307 | $as_echo_n "checking for egrep... " >&6; } | |
5308 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5309 | $as_echo_n "(cached) " >&6 |
5310 | else | |
a243b558 JF |
5311 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5312 | then ac_cv_path_EGREP="$GREP -E" | |
5313 | else | |
5314 | if test -z "$EGREP"; then | |
5315 | ac_path_EGREP_found=false | |
5316 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5318 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5319 | do |
5320 | IFS=$as_save_IFS | |
5321 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5322 | for ac_prog in egrep; do |
9c60689e | 5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5324 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5325 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5326 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5327 | # Check for GNU $ac_path_EGREP | |
5328 | case `"$ac_path_EGREP" --version 2>&1` in | |
5329 | *GNU*) | |
5330 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5331 | *) | |
5332 | ac_count=0 | |
5333 | $as_echo_n 0123456789 >"conftest.in" | |
5334 | while : | |
5335 | do | |
5336 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5337 | mv "conftest.tmp" "conftest.in" | |
5338 | cp "conftest.in" "conftest.nl" | |
5339 | $as_echo 'EGREP' >> "conftest.nl" | |
5340 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5341 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5342 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5343 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5344 | # Best one so far, save it but keep looking for a better one | |
5345 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5346 | ac_path_EGREP_max=$ac_count | |
5347 | fi | |
5348 | # 10*(2^10) chars as input seems more than enough | |
5349 | test $ac_count -gt 10 && break | |
9c60689e | 5350 | done |
a243b558 JF |
5351 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5352 | esac | |
9c60689e | 5353 | |
a243b558 JF |
5354 | $ac_path_EGREP_found && break 3 |
5355 | done | |
5356 | done | |
5357 | done | |
5358 | IFS=$as_save_IFS | |
5359 | if test -z "$ac_cv_path_EGREP"; then | |
5360 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5361 | fi | |
9c60689e | 5362 | else |
a243b558 | 5363 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5364 | fi |
5365 | ||
a243b558 JF |
5366 | fi |
5367 | fi | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5369 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5370 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5371 | |
ee134472 | 5372 | |
a243b558 JF |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5374 | $as_echo_n "checking for fgrep... " >&6; } | |
5375 | if ${ac_cv_path_FGREP+:} false; then : | |
5376 | $as_echo_n "(cached) " >&6 | |
5377 | else | |
5378 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5379 | then ac_cv_path_FGREP="$GREP -F" | |
5380 | else | |
5381 | if test -z "$FGREP"; then | |
5382 | ac_path_FGREP_found=false | |
5383 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5385 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5386 | do | |
5387 | IFS=$as_save_IFS | |
5388 | test -z "$as_dir" && as_dir=. | |
5389 | for ac_prog in fgrep; do | |
5390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5391 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5392 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5393 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5394 | # Check for GNU $ac_path_FGREP | |
5395 | case `"$ac_path_FGREP" --version 2>&1` in | |
5396 | *GNU*) | |
5397 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5398 | *) | |
5399 | ac_count=0 | |
5400 | $as_echo_n 0123456789 >"conftest.in" | |
5401 | while : | |
5402 | do | |
5403 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5404 | mv "conftest.tmp" "conftest.in" | |
5405 | cp "conftest.in" "conftest.nl" | |
5406 | $as_echo 'FGREP' >> "conftest.nl" | |
5407 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5408 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5409 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5410 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5411 | # Best one so far, save it but keep looking for a better one | |
5412 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5413 | ac_path_FGREP_max=$ac_count | |
5414 | fi | |
5415 | # 10*(2^10) chars as input seems more than enough | |
5416 | test $ac_count -gt 10 && break | |
5417 | done | |
5418 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5419 | esac |
a243b558 JF |
5420 | |
5421 | $ac_path_FGREP_found && break 3 | |
5422 | done | |
5423 | done | |
5424 | done | |
5425 | IFS=$as_save_IFS | |
5426 | if test -z "$ac_cv_path_FGREP"; then | |
5427 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5428 | fi |
a243b558 JF |
5429 | else |
5430 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5431 | fi |
5432 | ||
a243b558 JF |
5433 | fi |
5434 | fi | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5436 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5437 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5438 | |
5439 | ||
a243b558 | 5440 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5441 | |
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
ee134472 | 5448 | |
ee134472 | 5449 | |
ee134472 | 5450 | |
ee134472 | 5451 | |
ee134472 | 5452 | |
ee134472 JF |
5453 | |
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
a243b558 JF |
5460 | # Check whether --with-gnu-ld was given. |
5461 | if test "${with_gnu_ld+set}" = set; then : | |
5462 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5463 | else | |
5464 | with_gnu_ld=no | |
5465 | fi | |
5466 | ||
5467 | ac_prog=ld | |
5468 | if test "$GCC" = yes; then | |
5469 | # Check if gcc -print-prog-name=ld gives a path. | |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5471 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5472 | case $host in | |
5473 | *-*-mingw*) | |
5474 | # gcc leaves a trailing carriage return which upsets mingw | |
5475 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5476 | *) | |
5477 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5478 | esac | |
5479 | case $ac_prog in | |
5480 | # Accept absolute paths. | |
5481 | [\\/]* | ?:[\\/]*) | |
5482 | re_direlt='/[^/][^/]*/\.\./' | |
5483 | # Canonicalize the pathname of ld | |
5484 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5485 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5486 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5487 | done | |
5488 | test -z "$LD" && LD="$ac_prog" | |
5489 | ;; | |
5490 | "") | |
5491 | # If it fails, then pretend we aren't using GCC. | |
5492 | ac_prog=ld | |
5493 | ;; | |
5494 | *) | |
5495 | # If it is relative, then search for the first ld in PATH. | |
5496 | with_gnu_ld=unknown | |
5497 | ;; | |
5498 | esac | |
5499 | elif test "$with_gnu_ld" = yes; then | |
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5501 | $as_echo_n "checking for GNU ld... " >&6; } | |
5502 | else | |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5504 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5505 | fi | |
5506 | if ${lt_cv_path_LD+:} false; then : | |
5507 | $as_echo_n "(cached) " >&6 | |
5508 | else | |
5509 | if test -z "$LD"; then | |
5510 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5511 | for ac_dir in $PATH; do | |
5512 | IFS="$lt_save_ifs" | |
5513 | test -z "$ac_dir" && ac_dir=. | |
5514 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5515 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5516 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5517 | # but apparently some variants of GNU ld only accept -v. | |
5518 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5519 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5520 | *GNU* | *'with BFD'*) | |
5521 | test "$with_gnu_ld" != no && break | |
5522 | ;; | |
5523 | *) | |
5524 | test "$with_gnu_ld" != yes && break | |
5525 | ;; | |
5526 | esac | |
5527 | fi | |
5528 | done | |
5529 | IFS="$lt_save_ifs" | |
5530 | else | |
5531 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5532 | fi | |
5533 | fi | |
5534 | ||
5535 | LD="$lt_cv_path_LD" | |
5536 | if test -n "$LD"; then | |
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5538 | $as_echo "$LD" >&6; } | |
5539 | else | |
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5541 | $as_echo "no" >&6; } | |
5542 | fi | |
5543 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5545 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5546 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5547 | $as_echo_n "(cached) " >&6 | |
5548 | else | |
5549 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5550 | case `$LD -v 2>&1 </dev/null` in | |
5551 | *GNU* | *'with BFD'*) | |
5552 | lt_cv_prog_gnu_ld=yes | |
5553 | ;; | |
5554 | *) | |
5555 | lt_cv_prog_gnu_ld=no | |
5556 | ;; | |
5557 | esac | |
5558 | fi | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5560 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5561 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5572 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5573 | if ${lt_cv_path_NM+:} false; then : | |
5574 | $as_echo_n "(cached) " >&6 | |
5575 | else | |
5576 | if test -n "$NM"; then | |
5577 | # Let the user override the test. | |
5578 | lt_cv_path_NM="$NM" | |
5579 | else | |
5580 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5581 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5582 | lt_nm_to_check="$lt_nm_to_check nm" | |
5583 | fi | |
5584 | for lt_tmp_nm in $lt_nm_to_check; do | |
5585 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5586 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5587 | IFS="$lt_save_ifs" | |
5588 | test -z "$ac_dir" && ac_dir=. | |
5589 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5590 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5591 | # Check to see if the nm accepts a BSD-compat flag. | |
5592 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5593 | # nm: unknown option "B" ignored | |
5594 | # Tru64's nm complains that /dev/null is an invalid object file | |
5595 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5596 | */dev/null* | *'Invalid file or object type'*) | |
5597 | lt_cv_path_NM="$tmp_nm -B" | |
5598 | break | |
5599 | ;; | |
5600 | *) | |
5601 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5602 | */dev/null*) | |
5603 | lt_cv_path_NM="$tmp_nm -p" | |
5604 | break | |
5605 | ;; | |
5606 | *) | |
5607 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5608 | continue # so that we can try to find one that supports BSD flags | |
5609 | ;; | |
5610 | esac | |
5611 | ;; | |
5612 | esac | |
5613 | fi | |
5614 | done | |
5615 | IFS="$lt_save_ifs" | |
5616 | done | |
5617 | : ${lt_cv_path_NM=no} | |
5618 | fi | |
5619 | fi | |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5621 | $as_echo "$lt_cv_path_NM" >&6; } | |
5622 | if test "$lt_cv_path_NM" != "no"; then | |
5623 | NM="$lt_cv_path_NM" | |
5624 | else | |
5625 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5626 | if test -n "$DUMPBIN"; then : | |
5627 | # Let the user override the test. | |
5628 | else | |
5629 | if test -n "$ac_tool_prefix"; then | |
5630 | for ac_prog in dumpbin "link -dump" | |
5631 | do | |
5632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5635 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5636 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5637 | $as_echo_n "(cached) " >&6 |
5638 | else | |
a243b558 JF |
5639 | if test -n "$DUMPBIN"; then |
5640 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5641 | else |
5642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5643 | for as_dir in $PATH | |
5644 | do | |
5645 | IFS=$as_save_IFS | |
5646 | test -z "$as_dir" && as_dir=. | |
5647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5648 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5649 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5651 | break 2 | |
5652 | fi | |
5653 | done | |
5654 | done | |
5655 | IFS=$as_save_IFS | |
5656 | ||
5657 | fi | |
5658 | fi | |
a243b558 JF |
5659 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5660 | if test -n "$DUMPBIN"; then | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5662 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5663 | else |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5665 | $as_echo "no" >&6; } | |
5666 | fi | |
5667 | ||
5668 | ||
a243b558 JF |
5669 | test -n "$DUMPBIN" && break |
5670 | done | |
ee134472 | 5671 | fi |
a243b558 JF |
5672 | if test -z "$DUMPBIN"; then |
5673 | ac_ct_DUMPBIN=$DUMPBIN | |
5674 | for ac_prog in dumpbin "link -dump" | |
5675 | do | |
5676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5677 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5679 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5680 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5681 | $as_echo_n "(cached) " >&6 |
5682 | else | |
a243b558 JF |
5683 | if test -n "$ac_ct_DUMPBIN"; then |
5684 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5685 | else |
5686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5687 | for as_dir in $PATH | |
5688 | do | |
5689 | IFS=$as_save_IFS | |
5690 | test -z "$as_dir" && as_dir=. | |
5691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5693 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5695 | break 2 | |
5696 | fi | |
5697 | done | |
5698 | done | |
5699 | IFS=$as_save_IFS | |
5700 | ||
5701 | fi | |
5702 | fi | |
a243b558 JF |
5703 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5704 | if test -n "$ac_ct_DUMPBIN"; then | |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5706 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5707 | else |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5709 | $as_echo "no" >&6; } | |
5710 | fi | |
5711 | ||
a243b558 JF |
5712 | |
5713 | test -n "$ac_ct_DUMPBIN" && break | |
5714 | done | |
5715 | ||
5716 | if test "x$ac_ct_DUMPBIN" = x; then | |
5717 | DUMPBIN=":" | |
ee134472 JF |
5718 | else |
5719 | case $cross_compiling:$ac_tool_warned in | |
5720 | yes:) | |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5723 | ac_tool_warned=yes ;; | |
5724 | esac | |
a243b558 | 5725 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5726 | fi |
9c60689e DWT |
5727 | fi |
5728 | ||
a243b558 JF |
5729 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5730 | *COFF*) | |
5731 | DUMPBIN="$DUMPBIN -symbols" | |
5732 | ;; | |
5733 | *) | |
5734 | DUMPBIN=: | |
5735 | ;; | |
5736 | esac | |
5737 | fi | |
9c60689e | 5738 | |
a243b558 JF |
5739 | if test "$DUMPBIN" != ":"; then |
5740 | NM="$DUMPBIN" | |
5741 | fi | |
5742 | fi | |
5743 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5744 | |
5745 | ||
5746 | ||
5747 | ||
5748 | ||
a243b558 JF |
5749 | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5751 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5752 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5753 | $as_echo_n "(cached) " >&6 |
5754 | else | |
a243b558 JF |
5755 | lt_cv_nm_interface="BSD nm" |
5756 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5757 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5758 | (eval "$ac_compile" 2>conftest.err) | |
5759 | cat conftest.err >&5 | |
5760 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5761 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5762 | cat conftest.err >&5 | |
5763 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5764 | cat conftest.out >&5 | |
5765 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5766 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5767 | fi |
a243b558 | 5768 | rm -rf conftest* |
9c60689e | 5769 | fi |
a243b558 JF |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5771 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5772 | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5774 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5775 | LN_S=$as_ln_s | |
5776 | if test "$LN_S" = "ln -s"; then | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5778 | $as_echo "yes" >&6; } | |
9c60689e | 5779 | else |
a243b558 JF |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5781 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5782 | fi |
5783 | ||
a243b558 JF |
5784 | # find the maximum length of command line arguments |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5786 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5787 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5788 | $as_echo_n "(cached) " >&6 |
5789 | else | |
a243b558 JF |
5790 | i=0 |
5791 | teststring="ABCD" | |
9c60689e | 5792 | |
a243b558 JF |
5793 | case $build_os in |
5794 | msdosdjgpp*) | |
5795 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5796 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5797 | # during glob expansion). Even if it were fixed, the result of this | |
5798 | # check would be larger than it should be. | |
5799 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5800 | ;; | |
9c60689e | 5801 | |
a243b558 JF |
5802 | gnu*) |
5803 | # Under GNU Hurd, this test is not required because there is | |
5804 | # no limit to the length of command line arguments. | |
5805 | # Libtool will interpret -1 as no limit whatsoever | |
5806 | lt_cv_sys_max_cmd_len=-1; | |
5807 | ;; | |
9c60689e | 5808 | |
a243b558 JF |
5809 | cygwin* | mingw* | cegcc*) |
5810 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5811 | # about 5 minutes as the teststring grows exponentially. | |
5812 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5813 | # you end up with a "frozen" computer, even though with patience | |
5814 | # the test eventually succeeds (with a max line length of 256k). | |
5815 | # Instead, let's just punt: use the minimum linelength reported by | |
5816 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5817 | lt_cv_sys_max_cmd_len=8192; | |
5818 | ;; | |
9c60689e | 5819 | |
a243b558 JF |
5820 | mint*) |
5821 | # On MiNT this can take a long time and run out of memory. | |
5822 | lt_cv_sys_max_cmd_len=8192; | |
5823 | ;; | |
9c60689e | 5824 | |
a243b558 JF |
5825 | amigaos*) |
5826 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5827 | # So we just punt and use a minimum line length of 8192. | |
5828 | lt_cv_sys_max_cmd_len=8192; | |
5829 | ;; | |
9c60689e | 5830 | |
a243b558 JF |
5831 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5832 | # This has been around since 386BSD, at least. Likely further. | |
5833 | if test -x /sbin/sysctl; then | |
5834 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5835 | elif test -x /usr/sbin/sysctl; then | |
5836 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5837 | else | |
5838 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5839 | fi | |
5840 | # And add a safety zone | |
5841 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5842 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5843 | ;; | |
9c60689e | 5844 | |
a243b558 JF |
5845 | interix*) |
5846 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5847 | lt_cv_sys_max_cmd_len=196608 | |
5848 | ;; | |
9c60689e | 5849 | |
a243b558 JF |
5850 | os2*) |
5851 | # The test takes a long time on OS/2. | |
5852 | lt_cv_sys_max_cmd_len=8192 | |
5853 | ;; | |
9c60689e | 5854 | |
a243b558 JF |
5855 | osf*) |
5856 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5857 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5858 | # nice to cause kernel panics so lets avoid the loop below. | |
5859 | # First set a reasonable default. | |
5860 | lt_cv_sys_max_cmd_len=16384 | |
5861 | # | |
5862 | if test -x /sbin/sysconfig; then | |
5863 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5864 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5865 | esac | |
5866 | fi | |
5867 | ;; | |
5868 | sco3.2v5*) | |
5869 | lt_cv_sys_max_cmd_len=102400 | |
5870 | ;; | |
5871 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5872 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5873 | if test -n "$kargmax"; then | |
5874 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5875 | else | |
5876 | lt_cv_sys_max_cmd_len=32768 | |
5877 | fi | |
9c60689e DWT |
5878 | ;; |
5879 | *) | |
a243b558 JF |
5880 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5881 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5882 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5883 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5884 | else | |
5885 | # Make teststring a little bigger before we do anything with it. | |
5886 | # a 1K string should be a reasonable start. | |
5887 | for i in 1 2 3 4 5 6 7 8 ; do | |
5888 | teststring=$teststring$teststring | |
5889 | done | |
5890 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5891 | # If test is not a shell built-in, we'll probably end up computing a | |
5892 | # maximum length that is only half of the actual maximum length, but | |
5893 | # we can't tell. | |
5894 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5895 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5896 | test $i != 17 # 1/2 MB should be enough | |
5897 | do | |
5898 | i=`expr $i + 1` | |
5899 | teststring=$teststring$teststring | |
5900 | done | |
5901 | # Only check the string length outside the loop. | |
5902 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5903 | teststring= | |
5904 | # Add a significant safety factor because C++ compilers can tack on | |
5905 | # massive amounts of additional arguments before passing them to the | |
5906 | # linker. It appears as though 1/2 is a usable value. | |
5907 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5908 | fi | |
9c60689e DWT |
5909 | ;; |
5910 | esac | |
ee134472 | 5911 | |
a243b558 | 5912 | fi |
ee134472 | 5913 | |
a243b558 JF |
5914 | if test -n $lt_cv_sys_max_cmd_len ; then |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5916 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5917 | else | |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5919 | $as_echo "none" >&6; } | |
5920 | fi | |
5921 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
5922 | |
5923 | ||
9c60689e DWT |
5924 | |
5925 | ||
5926 | ||
5927 | ||
a243b558 JF |
5928 | : ${CP="cp -f"} |
5929 | : ${MV="mv -f"} | |
5930 | : ${RM="rm -f"} | |
9c60689e | 5931 | |
a243b558 JF |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5933 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5934 | # Try some XSI features | |
5935 | xsi_shell=no | |
5936 | ( _lt_dummy="a/b/c" | |
5937 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5938 | = c,a/b,b/c, \ | |
5939 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5940 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5941 | && xsi_shell=yes | |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5943 | $as_echo "$xsi_shell" >&6; } | |
9c60689e DWT |
5944 | |
5945 | ||
a243b558 JF |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5947 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5948 | lt_shell_append=no | |
5949 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5950 | >/dev/null 2>&1 \ | |
5951 | && lt_shell_append=yes | |
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5953 | $as_echo "$lt_shell_append" >&6; } | |
9c60689e DWT |
5954 | |
5955 | ||
a243b558 JF |
5956 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5957 | lt_unset=unset | |
5958 | else | |
5959 | lt_unset=false | |
5960 | fi | |
9c60689e DWT |
5961 | |
5962 | ||
5963 | ||
5964 | ||
5965 | ||
a243b558 JF |
5966 | # test EBCDIC or ASCII |
5967 | case `echo X|tr X '\101'` in | |
5968 | A) # ASCII based system | |
5969 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5970 | lt_SP2NL='tr \040 \012' | |
5971 | lt_NL2SP='tr \015\012 \040\040' | |
5972 | ;; | |
5973 | *) # EBCDIC based system | |
5974 | lt_SP2NL='tr \100 \n' | |
5975 | lt_NL2SP='tr \r\n \100\100' | |
5976 | ;; | |
5977 | esac | |
9c60689e DWT |
5978 | |
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | ||
5984 | ||
5985 | ||
5986 | ||
a243b558 JF |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5988 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5989 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5990 | $as_echo_n "(cached) " >&6 | |
5991 | else | |
5992 | case $host in | |
5993 | *-*-mingw* ) | |
5994 | case $build in | |
5995 | *-*-mingw* ) # actually msys | |
5996 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5997 | ;; | |
5998 | *-*-cygwin* ) | |
5999 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6000 | ;; | |
6001 | * ) # otherwise, assume *nix | |
6002 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6003 | ;; | |
6004 | esac | |
6005 | ;; | |
6006 | *-*-cygwin* ) | |
6007 | case $build in | |
6008 | *-*-mingw* ) # actually msys | |
6009 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6010 | ;; | |
6011 | *-*-cygwin* ) | |
6012 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6013 | ;; | |
6014 | * ) # otherwise, assume *nix | |
6015 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6016 | ;; | |
6017 | esac | |
6018 | ;; | |
6019 | * ) # unhandled hosts (and "normal" native builds) | |
6020 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6021 | ;; | |
6022 | esac | |
9c60689e | 6023 | |
a243b558 | 6024 | fi |
9c60689e | 6025 | |
a243b558 JF |
6026 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6028 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6029 | |
6030 | ||
6031 | ||
6032 | ||
6033 | ||
a243b558 JF |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6035 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6036 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6037 | $as_echo_n "(cached) " >&6 | |
6038 | else | |
6039 | #assume ordinary cross tools, or native build. | |
6040 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6041 | case $host in | |
6042 | *-*-mingw* ) | |
6043 | case $build in | |
6044 | *-*-mingw* ) # actually msys | |
6045 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6046 | ;; | |
6047 | esac | |
6048 | ;; | |
6049 | esac | |
9c60689e | 6050 | |
a243b558 | 6051 | fi |
9c60689e | 6052 | |
a243b558 JF |
6053 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6055 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6056 | |
9c60689e | 6057 | |
9c60689e | 6058 | |
9c60689e DWT |
6059 | |
6060 | ||
a243b558 JF |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6062 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6063 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6064 | $as_echo_n "(cached) " >&6 |
6065 | else | |
a243b558 JF |
6066 | lt_cv_ld_reload_flag='-r' |
6067 | fi | |
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6069 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6070 | reload_flag=$lt_cv_ld_reload_flag | |
6071 | case $reload_flag in | |
6072 | "" | " "*) ;; | |
6073 | *) reload_flag=" $reload_flag" ;; | |
6074 | esac | |
6075 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6076 | case $host_os in |
a243b558 JF |
6077 | cygwin* | mingw* | pw32* | cegcc*) |
6078 | if test "$GCC" != yes; then | |
6079 | reload_cmds=false | |
6080 | fi | |
6081 | ;; | |
6082 | darwin*) | |
6083 | if test "$GCC" = yes; then | |
6084 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6085 | else | |
6086 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6087 | fi | |
6088 | ;; | |
9c60689e DWT |
6089 | esac |
6090 | ||
9c60689e | 6091 | |
9c60689e | 6092 | |
9c60689e | 6093 | |
9c60689e | 6094 | |
9c60689e | 6095 | |
9c60689e | 6096 | |
9c60689e | 6097 | |
9c60689e | 6098 | |
a243b558 JF |
6099 | if test -n "$ac_tool_prefix"; then |
6100 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6101 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6103 | $as_echo_n "checking for $ac_word... " >&6; } | |
6104 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6105 | $as_echo_n "(cached) " >&6 | |
6106 | else | |
6107 | if test -n "$OBJDUMP"; then | |
6108 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6109 | else | |
6110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6111 | for as_dir in $PATH | |
6112 | do | |
6113 | IFS=$as_save_IFS | |
6114 | test -z "$as_dir" && as_dir=. | |
6115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6117 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6119 | break 2 | |
6120 | fi | |
6121 | done | |
6122 | done | |
6123 | IFS=$as_save_IFS | |
9c60689e | 6124 | |
a243b558 JF |
6125 | fi |
6126 | fi | |
6127 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6128 | if test -n "$OBJDUMP"; then | |
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6130 | $as_echo "$OBJDUMP" >&6; } | |
6131 | else | |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6133 | $as_echo "no" >&6; } | |
6134 | fi | |
9c60689e | 6135 | |
9c60689e | 6136 | |
a243b558 JF |
6137 | fi |
6138 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6139 | ac_ct_OBJDUMP=$OBJDUMP | |
6140 | # Extract the first word of "objdump", so it can be a program name with args. | |
6141 | set dummy objdump; ac_word=$2 | |
6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6143 | $as_echo_n "checking for $ac_word... " >&6; } | |
6144 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6145 | $as_echo_n "(cached) " >&6 | |
6146 | else | |
6147 | if test -n "$ac_ct_OBJDUMP"; then | |
6148 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6149 | else | |
6150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6151 | for as_dir in $PATH | |
6152 | do | |
6153 | IFS=$as_save_IFS | |
6154 | test -z "$as_dir" && as_dir=. | |
6155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6157 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6159 | break 2 | |
9c60689e DWT |
6160 | fi |
6161 | done | |
a243b558 JF |
6162 | done |
6163 | IFS=$as_save_IFS | |
9c60689e DWT |
6164 | |
6165 | fi | |
9c60689e | 6166 | fi |
a243b558 JF |
6167 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6168 | if test -n "$ac_ct_OBJDUMP"; then | |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6170 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6171 | else |
a243b558 JF |
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6173 | $as_echo "no" >&6; } | |
9c60689e DWT |
6174 | fi |
6175 | ||
a243b558 JF |
6176 | if test "x$ac_ct_OBJDUMP" = x; then |
6177 | OBJDUMP="false" | |
6178 | else | |
6179 | case $cross_compiling:$ac_tool_warned in | |
6180 | yes:) | |
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6182 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6183 | ac_tool_warned=yes ;; | |
6184 | esac | |
6185 | OBJDUMP=$ac_ct_OBJDUMP | |
6186 | fi | |
6187 | else | |
6188 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6189 | fi |
6190 | ||
a243b558 | 6191 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6192 | |
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | ||
a243b558 JF |
6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6202 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6203 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6204 | $as_echo_n "(cached) " >&6 | |
6205 | else | |
6206 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6207 | lt_cv_file_magic_test_file= | |
6208 | lt_cv_deplibs_check_method='unknown' | |
6209 | # Need to set the preceding variable on all platforms that support | |
6210 | # interlibrary dependencies. | |
6211 | # 'none' -- dependencies not supported. | |
6212 | # `unknown' -- same as none, but documents that we really don't know. | |
6213 | # 'pass_all' -- all dependencies passed with no checks. | |
6214 | # 'test_compile' -- check by making test program. | |
6215 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6216 | # which responds to the $file_magic_cmd with a given extended regex. | |
6217 | # If you have `file' or equivalent on your system and you're not sure | |
6218 | # whether `pass_all' will *always* work, you probably want this one. | |
9c60689e | 6219 | |
a243b558 JF |
6220 | case $host_os in |
6221 | aix[4-9]*) | |
6222 | lt_cv_deplibs_check_method=pass_all | |
6223 | ;; | |
9c60689e | 6224 | |
a243b558 JF |
6225 | beos*) |
6226 | lt_cv_deplibs_check_method=pass_all | |
6227 | ;; | |
9c60689e | 6228 | |
a243b558 JF |
6229 | bsdi[45]*) |
6230 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6231 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6232 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6233 | ;; | |
9c60689e | 6234 | |
a243b558 JF |
6235 | cygwin*) |
6236 | # func_win32_libid is a shell function defined in ltmain.sh | |
6237 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6238 | lt_cv_file_magic_cmd='func_win32_libid' | |
6239 | ;; | |
9c60689e | 6240 | |
a243b558 JF |
6241 | mingw* | pw32*) |
6242 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6243 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6244 | # unless we find 'file', for example because we are cross-compiling. | |
6245 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6246 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6247 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6248 | lt_cv_file_magic_cmd='func_win32_libid' | |
6249 | else | |
6250 | # Keep this pattern in sync with the one in func_win32_libid. | |
6251 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6252 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6253 | fi | |
6254 | ;; | |
9c60689e | 6255 | |
a243b558 JF |
6256 | cegcc*) |
6257 | # use the weaker test based on 'objdump'. See mingw*. | |
6258 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6259 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6260 | ;; | |
9c60689e | 6261 | |
a243b558 JF |
6262 | darwin* | rhapsody*) |
6263 | lt_cv_deplibs_check_method=pass_all | |
6264 | ;; | |
9c60689e | 6265 | |
a243b558 JF |
6266 | freebsd* | dragonfly*) |
6267 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6268 | case $host_cpu in | |
6269 | i*86 ) | |
6270 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6271 | # Let's accept both of them until this is cleared up. | |
6272 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6273 | lt_cv_file_magic_cmd=/usr/bin/file | |
6274 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6275 | ;; | |
6276 | esac | |
6277 | else | |
6278 | lt_cv_deplibs_check_method=pass_all | |
6279 | fi | |
6280 | ;; | |
9c60689e | 6281 | |
a243b558 JF |
6282 | gnu*) |
6283 | lt_cv_deplibs_check_method=pass_all | |
6284 | ;; | |
9c60689e | 6285 | |
a243b558 JF |
6286 | haiku*) |
6287 | lt_cv_deplibs_check_method=pass_all | |
6288 | ;; | |
9c60689e | 6289 | |
a243b558 JF |
6290 | hpux10.20* | hpux11*) |
6291 | lt_cv_file_magic_cmd=/usr/bin/file | |
6292 | case $host_cpu in | |
6293 | ia64*) | |
6294 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6295 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6296 | ;; | |
6297 | hppa*64*) | |
6298 | 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]' | |
6299 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6300 | ;; | |
6301 | *) | |
6302 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6303 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6304 | ;; | |
6305 | esac | |
6306 | ;; | |
9c60689e | 6307 | |
a243b558 JF |
6308 | interix[3-9]*) |
6309 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6310 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6311 | ;; | |
9c60689e | 6312 | |
a243b558 JF |
6313 | irix5* | irix6* | nonstopux*) |
6314 | case $LD in | |
6315 | *-32|*"-32 ") libmagic=32-bit;; | |
6316 | *-n32|*"-n32 ") libmagic=N32;; | |
6317 | *-64|*"-64 ") libmagic=64-bit;; | |
6318 | *) libmagic=never-match;; | |
6319 | esac | |
6320 | lt_cv_deplibs_check_method=pass_all | |
6321 | ;; | |
9c60689e | 6322 | |
a243b558 JF |
6323 | # This must be glibc/ELF. |
6324 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6325 | lt_cv_deplibs_check_method=pass_all | |
6326 | ;; | |
9c60689e | 6327 | |
a243b558 JF |
6328 | netbsd*) |
6329 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6330 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6331 | else | |
6332 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6333 | fi | |
6334 | ;; | |
9c60689e | 6335 | |
a243b558 JF |
6336 | newos6*) |
6337 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6338 | lt_cv_file_magic_cmd=/usr/bin/file | |
6339 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6340 | ;; | |
9c60689e | 6341 | |
a243b558 JF |
6342 | *nto* | *qnx*) |
6343 | lt_cv_deplibs_check_method=pass_all | |
6344 | ;; | |
9c60689e | 6345 | |
a243b558 JF |
6346 | openbsd*) |
6347 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6348 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6349 | else | |
6350 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6351 | fi | |
6352 | ;; | |
9c60689e | 6353 | |
a243b558 JF |
6354 | osf3* | osf4* | osf5*) |
6355 | lt_cv_deplibs_check_method=pass_all | |
6356 | ;; | |
9c60689e | 6357 | |
a243b558 JF |
6358 | rdos*) |
6359 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6360 | ;; |
a243b558 JF |
6361 | |
6362 | solaris*) | |
6363 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6364 | ;; |
6365 | ||
a243b558 JF |
6366 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6367 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6368 | ;; |
6369 | ||
a243b558 JF |
6370 | sysv4 | sysv4.3*) |
6371 | case $host_vendor in | |
6372 | motorola) | |
6373 | 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]' | |
6374 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6375 | ;; | |
6376 | ncr) | |
6377 | lt_cv_deplibs_check_method=pass_all | |
6378 | ;; | |
6379 | sequent) | |
6380 | lt_cv_file_magic_cmd='/bin/file' | |
6381 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6382 | ;; | |
6383 | sni) | |
6384 | lt_cv_file_magic_cmd='/bin/file' | |
6385 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6386 | lt_cv_file_magic_test_file=/lib/libc.so | |
6387 | ;; | |
6388 | siemens) | |
6389 | lt_cv_deplibs_check_method=pass_all | |
6390 | ;; | |
6391 | pc) | |
6392 | lt_cv_deplibs_check_method=pass_all | |
6393 | ;; | |
6394 | esac | |
6395 | ;; | |
9c60689e | 6396 | |
a243b558 JF |
6397 | tpf*) |
6398 | lt_cv_deplibs_check_method=pass_all | |
6399 | ;; | |
6400 | esac | |
9c60689e | 6401 | |
a243b558 JF |
6402 | fi |
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6404 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6405 | |
a243b558 JF |
6406 | file_magic_glob= |
6407 | want_nocaseglob=no | |
6408 | if test "$build" = "$host"; then | |
6409 | case $host_os in | |
6410 | mingw* | pw32*) | |
6411 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6412 | want_nocaseglob=yes | |
6413 | else | |
6414 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6415 | fi | |
6416 | ;; | |
6417 | esac | |
9c60689e | 6418 | fi |
9c60689e | 6419 | |
a243b558 JF |
6420 | file_magic_cmd=$lt_cv_file_magic_cmd |
6421 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6422 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
9c60689e | 6443 | |
9c60689e | 6444 | |
ee134472 | 6445 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6446 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6447 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6449 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6450 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6451 | $as_echo_n "(cached) " >&6 |
6452 | else | |
a243b558 JF |
6453 | if test -n "$DLLTOOL"; then |
6454 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6455 | else |
6456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6457 | for as_dir in $PATH | |
6458 | do | |
6459 | IFS=$as_save_IFS | |
6460 | test -z "$as_dir" && as_dir=. | |
6461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6463 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6465 | break 2 | |
6466 | fi | |
6467 | done | |
6468 | done | |
6469 | IFS=$as_save_IFS | |
6470 | ||
6471 | fi | |
6472 | fi | |
a243b558 JF |
6473 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6474 | if test -n "$DLLTOOL"; then | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6476 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6477 | else |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6479 | $as_echo "no" >&6; } | |
6480 | fi | |
6481 | ||
6482 | ||
6483 | fi | |
a243b558 JF |
6484 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6485 | ac_ct_DLLTOOL=$DLLTOOL | |
6486 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6487 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6489 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6490 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6491 | $as_echo_n "(cached) " >&6 |
6492 | else | |
a243b558 JF |
6493 | if test -n "$ac_ct_DLLTOOL"; then |
6494 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6495 | else |
6496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6497 | for as_dir in $PATH | |
6498 | do | |
6499 | IFS=$as_save_IFS | |
6500 | test -z "$as_dir" && as_dir=. | |
6501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6503 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6505 | break 2 | |
6506 | fi | |
6507 | done | |
6508 | done | |
6509 | IFS=$as_save_IFS | |
6510 | ||
6511 | fi | |
6512 | fi | |
a243b558 JF |
6513 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6514 | if test -n "$ac_ct_DLLTOOL"; then | |
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6516 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6517 | else |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6519 | $as_echo "no" >&6; } | |
6520 | fi | |
6521 | ||
a243b558 JF |
6522 | if test "x$ac_ct_DLLTOOL" = x; then |
6523 | DLLTOOL="false" | |
ee134472 JF |
6524 | else |
6525 | case $cross_compiling:$ac_tool_warned in | |
6526 | yes:) | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6528 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6529 | ac_tool_warned=yes ;; | |
6530 | esac | |
a243b558 | 6531 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6532 | fi |
6533 | else | |
a243b558 | 6534 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6535 | fi |
6536 | ||
a243b558 JF |
6537 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6549 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6550 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6551 | $as_echo_n "(cached) " >&6 |
6552 | else | |
a243b558 JF |
6553 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6554 | ||
6555 | case $host_os in | |
6556 | cygwin* | mingw* | pw32* | cegcc*) | |
6557 | # two different shell functions defined in ltmain.sh | |
6558 | # decide which to use based on capabilities of $DLLTOOL | |
6559 | case `$DLLTOOL --help 2>&1` in | |
6560 | *--identify-strict*) | |
6561 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6562 | ;; | |
6563 | *) | |
6564 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6565 | ;; | |
6566 | esac | |
6567 | ;; | |
6568 | *) | |
6569 | # fallback: assume linklib IS sharedlib | |
6570 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6571 | ;; | |
6572 | esac | |
6573 | ||
ee134472 | 6574 | fi |
a243b558 JF |
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6576 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6577 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6578 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6579 | |
6580 | ||
6581 | ||
6582 | ||
6583 | ||
9c60689e | 6584 | |
a243b558 JF |
6585 | |
6586 | if test -n "$ac_tool_prefix"; then | |
6587 | for ac_prog in ar | |
6588 | do | |
6589 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6590 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6592 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6593 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6594 | $as_echo_n "(cached) " >&6 |
6595 | else | |
a243b558 JF |
6596 | if test -n "$AR"; then |
6597 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6598 | else |
6599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6600 | for as_dir in $PATH | |
6601 | do | |
6602 | IFS=$as_save_IFS | |
6603 | test -z "$as_dir" && as_dir=. | |
6604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6606 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6608 | break 2 | |
6609 | fi | |
6610 | done | |
6611 | done | |
6612 | IFS=$as_save_IFS | |
6613 | ||
6614 | fi | |
6615 | fi | |
a243b558 JF |
6616 | AR=$ac_cv_prog_AR |
6617 | if test -n "$AR"; then | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6619 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6620 | else |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6622 | $as_echo "no" >&6; } | |
6623 | fi | |
6624 | ||
6625 | ||
a243b558 JF |
6626 | test -n "$AR" && break |
6627 | done | |
9c60689e | 6628 | fi |
a243b558 JF |
6629 | if test -z "$AR"; then |
6630 | ac_ct_AR=$AR | |
6631 | for ac_prog in ar | |
6632 | do | |
6633 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6634 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6636 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6637 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6638 | $as_echo_n "(cached) " >&6 |
6639 | else | |
a243b558 JF |
6640 | if test -n "$ac_ct_AR"; then |
6641 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6642 | else |
6643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6644 | for as_dir in $PATH | |
6645 | do | |
6646 | IFS=$as_save_IFS | |
6647 | test -z "$as_dir" && as_dir=. | |
6648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6650 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6652 | break 2 | |
6653 | fi | |
6654 | done | |
6655 | done | |
6656 | IFS=$as_save_IFS | |
6657 | ||
6658 | fi | |
6659 | fi | |
a243b558 JF |
6660 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6661 | if test -n "$ac_ct_AR"; then | |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6663 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6664 | else |
6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6666 | $as_echo "no" >&6; } | |
6667 | fi | |
6668 | ||
a243b558 JF |
6669 | |
6670 | test -n "$ac_ct_AR" && break | |
6671 | done | |
6672 | ||
6673 | if test "x$ac_ct_AR" = x; then | |
6674 | AR="false" | |
9c60689e DWT |
6675 | else |
6676 | case $cross_compiling:$ac_tool_warned in | |
6677 | yes:) | |
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6679 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6680 | ac_tool_warned=yes ;; | |
6681 | esac | |
a243b558 | 6682 | AR=$ac_ct_AR |
9c60689e | 6683 | fi |
a243b558 JF |
6684 | fi |
6685 | ||
6686 | : ${AR=ar} | |
6687 | : ${AR_FLAGS=cru} | |
6688 | ||
6689 | ||
6690 | ||
6691 | ||
6692 | ||
6693 | ||
6694 | ||
6695 | ||
6696 | ||
6697 | ||
6698 | ||
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6700 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6701 | if ${lt_cv_ar_at_file+:} false; then : | |
6702 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6703 | else |
a243b558 JF |
6704 | lt_cv_ar_at_file=no |
6705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6706 | /* end confdefs.h. */ | |
6707 | ||
6708 | int | |
6709 | main () | |
6710 | { | |
6711 | ||
6712 | ; | |
6713 | return 0; | |
6714 | } | |
6715 | _ACEOF | |
6716 | if ac_fn_c_try_compile "$LINENO"; then : | |
6717 | echo conftest.$ac_objext > conftest.lst | |
6718 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6719 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6720 | (eval $lt_ar_try) 2>&5 | |
6721 | ac_status=$? | |
6722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6723 | test $ac_status = 0; } | |
6724 | if test "$ac_status" -eq 0; then | |
6725 | # Ensure the archiver fails upon bogus file names. | |
6726 | rm -f conftest.$ac_objext libconftest.a | |
6727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6728 | (eval $lt_ar_try) 2>&5 | |
6729 | ac_status=$? | |
6730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6731 | test $ac_status = 0; } | |
6732 | if test "$ac_status" -ne 0; then | |
6733 | lt_cv_ar_at_file=@ | |
6734 | fi | |
6735 | fi | |
6736 | rm -f conftest.* libconftest.a | |
6737 | ||
9c60689e | 6738 | fi |
a243b558 | 6739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6740 | |
a243b558 JF |
6741 | fi |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6743 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6744 | ||
6745 | if test "x$lt_cv_ar_at_file" = xno; then | |
6746 | archiver_list_spec= | |
6747 | else | |
6748 | archiver_list_spec=$lt_cv_ar_at_file | |
6749 | fi | |
6750 | ||
6751 | ||
6752 | ||
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | if test -n "$ac_tool_prefix"; then | |
6758 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6759 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6761 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6762 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6763 | $as_echo_n "(cached) " >&6 |
6764 | else | |
a243b558 JF |
6765 | if test -n "$STRIP"; then |
6766 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6767 | else |
6768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6769 | for as_dir in $PATH | |
6770 | do | |
6771 | IFS=$as_save_IFS | |
6772 | test -z "$as_dir" && as_dir=. | |
6773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6775 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6777 | break 2 | |
6778 | fi | |
6779 | done | |
6780 | done | |
6781 | IFS=$as_save_IFS | |
6782 | ||
6783 | fi | |
6784 | fi | |
a243b558 JF |
6785 | STRIP=$ac_cv_prog_STRIP |
6786 | if test -n "$STRIP"; then | |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6788 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6789 | else |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6791 | $as_echo "no" >&6; } | |
6792 | fi | |
6793 | ||
6794 | ||
6795 | fi | |
a243b558 JF |
6796 | if test -z "$ac_cv_prog_STRIP"; then |
6797 | ac_ct_STRIP=$STRIP | |
6798 | # Extract the first word of "strip", so it can be a program name with args. | |
6799 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6801 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6802 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6803 | $as_echo_n "(cached) " >&6 |
6804 | else | |
a243b558 JF |
6805 | if test -n "$ac_ct_STRIP"; then |
6806 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6807 | else |
6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6809 | for as_dir in $PATH | |
6810 | do | |
6811 | IFS=$as_save_IFS | |
6812 | test -z "$as_dir" && as_dir=. | |
6813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6815 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6817 | break 2 | |
6818 | fi | |
6819 | done | |
6820 | done | |
6821 | IFS=$as_save_IFS | |
6822 | ||
6823 | fi | |
6824 | fi | |
a243b558 JF |
6825 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6826 | if test -n "$ac_ct_STRIP"; then | |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6828 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6829 | else |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6831 | $as_echo "no" >&6; } | |
6832 | fi | |
6833 | ||
a243b558 JF |
6834 | if test "x$ac_ct_STRIP" = x; then |
6835 | STRIP=":" | |
9c60689e DWT |
6836 | else |
6837 | case $cross_compiling:$ac_tool_warned in | |
6838 | yes:) | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6841 | ac_tool_warned=yes ;; | |
6842 | esac | |
a243b558 | 6843 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6844 | fi |
6845 | else | |
a243b558 | 6846 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6847 | fi |
6848 | ||
a243b558 JF |
6849 | test -z "$STRIP" && STRIP=: |
6850 | ||
6851 | ||
6852 | ||
6853 | ||
6854 | ||
6855 | ||
6856 | if test -n "$ac_tool_prefix"; then | |
6857 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6858 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6860 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6861 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
6862 | $as_echo_n "(cached) " >&6 |
6863 | else | |
a243b558 JF |
6864 | if test -n "$RANLIB"; then |
6865 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
6866 | else |
6867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6868 | for as_dir in $PATH | |
6869 | do | |
6870 | IFS=$as_save_IFS | |
6871 | test -z "$as_dir" && as_dir=. | |
6872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6874 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
6875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6876 | break 2 | |
6877 | fi | |
6878 | done | |
6879 | done | |
6880 | IFS=$as_save_IFS | |
6881 | ||
6882 | fi | |
6883 | fi | |
a243b558 JF |
6884 | RANLIB=$ac_cv_prog_RANLIB |
6885 | if test -n "$RANLIB"; then | |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6887 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
6888 | else |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6890 | $as_echo "no" >&6; } | |
6891 | fi | |
6892 | ||
6893 | ||
6894 | fi | |
a243b558 JF |
6895 | if test -z "$ac_cv_prog_RANLIB"; then |
6896 | ac_ct_RANLIB=$RANLIB | |
6897 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6898 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6900 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6901 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
6902 | $as_echo_n "(cached) " >&6 |
6903 | else | |
a243b558 JF |
6904 | if test -n "$ac_ct_RANLIB"; then |
6905 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
6906 | else |
6907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6908 | for as_dir in $PATH | |
6909 | do | |
6910 | IFS=$as_save_IFS | |
6911 | test -z "$as_dir" && as_dir=. | |
6912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6914 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
6915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6916 | break 2 | |
6917 | fi | |
6918 | done | |
6919 | done | |
6920 | IFS=$as_save_IFS | |
6921 | ||
6922 | fi | |
6923 | fi | |
a243b558 JF |
6924 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6925 | if test -n "$ac_ct_RANLIB"; then | |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6927 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
6928 | else |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6930 | $as_echo "no" >&6; } | |
6931 | fi | |
6932 | ||
a243b558 JF |
6933 | if test "x$ac_ct_RANLIB" = x; then |
6934 | RANLIB=":" | |
9c60689e DWT |
6935 | else |
6936 | case $cross_compiling:$ac_tool_warned in | |
6937 | yes:) | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6939 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6940 | ac_tool_warned=yes ;; | |
6941 | esac | |
a243b558 | 6942 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
6943 | fi |
6944 | else | |
a243b558 | 6945 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
6946 | fi |
6947 | ||
a243b558 JF |
6948 | test -z "$RANLIB" && RANLIB=: |
6949 | ||
6950 | ||
9c60689e | 6951 | |
9c60689e DWT |
6952 | |
6953 | ||
a243b558 JF |
6954 | |
6955 | # Determine commands to create old-style static archives. | |
6956 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6957 | old_postinstall_cmds='chmod 644 $oldlib' | |
6958 | old_postuninstall_cmds= | |
6959 | ||
6960 | if test -n "$RANLIB"; then | |
6961 | case $host_os in | |
6962 | openbsd*) | |
6963 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6964 | ;; | |
6965 | *) | |
6966 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6967 | ;; | |
6968 | esac | |
6969 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
6970 | fi |
6971 | ||
a243b558 JF |
6972 | case $host_os in |
6973 | darwin*) | |
6974 | lock_old_archive_extraction=yes ;; | |
6975 | *) | |
6976 | lock_old_archive_extraction=no ;; | |
9c60689e | 6977 | esac |
9c60689e | 6978 | |
9c60689e | 6979 | |
9c60689e DWT |
6980 | |
6981 | ||
9c60689e | 6982 | |
9c60689e | 6983 | |
9c60689e DWT |
6984 | |
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | ||
7009 | ||
7010 | ||
53ba6704 | 7011 | |
9c60689e | 7012 | |
9c60689e | 7013 | |
9c60689e | 7014 | |
53ba6704 | 7015 | |
a243b558 JF |
7016 | |
7017 | # If no C compiler was specified, use CC. | |
7018 | LTCC=${LTCC-"$CC"} | |
7019 | ||
7020 | # If no C compiler flags were specified, use CFLAGS. | |
7021 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7022 | ||
7023 | # Allow CC to be a program name with arguments. | |
7024 | compiler=$CC | |
7025 | ||
7026 | ||
7027 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7029 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7030 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7031 | $as_echo_n "(cached) " >&6 |
7032 | else | |
ee134472 | 7033 | |
a243b558 JF |
7034 | # These are sane defaults that work on at least a few old systems. |
7035 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7036 | |
a243b558 JF |
7037 | # Character class describing NM global symbol codes. |
7038 | symcode='[BCDEGRST]' | |
9c60689e | 7039 | |
a243b558 JF |
7040 | # Regexp to match symbols that can be accessed directly from C. |
7041 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7042 | |
a243b558 JF |
7043 | # Define system-specific variables. |
7044 | case $host_os in | |
7045 | aix*) | |
7046 | symcode='[BCDT]' | |
7047 | ;; | |
7048 | cygwin* | mingw* | pw32* | cegcc*) | |
7049 | symcode='[ABCDGISTW]' | |
7050 | ;; | |
7051 | hpux*) | |
7052 | if test "$host_cpu" = ia64; then | |
7053 | symcode='[ABCDEGRST]' | |
7054 | fi | |
7055 | ;; | |
7056 | irix* | nonstopux*) | |
7057 | symcode='[BCDEGRST]' | |
7058 | ;; | |
7059 | osf*) | |
7060 | symcode='[BCDEGQRST]' | |
7061 | ;; | |
7062 | solaris*) | |
7063 | symcode='[BDRT]' | |
7064 | ;; | |
7065 | sco3.2v5*) | |
7066 | symcode='[DT]' | |
7067 | ;; | |
7068 | sysv4.2uw2*) | |
7069 | symcode='[DT]' | |
7070 | ;; | |
7071 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7072 | symcode='[ABDT]' | |
7073 | ;; | |
7074 | sysv4) | |
7075 | symcode='[DFNSTU]' | |
7076 | ;; | |
7077 | esac | |
9c60689e | 7078 | |
a243b558 JF |
7079 | # If we're using GNU nm, then use its standard symbol codes. |
7080 | case `$NM -V 2>&1` in | |
7081 | *GNU* | *'with BFD'*) | |
7082 | symcode='[ABCDGIRSTW]' ;; | |
7083 | esac | |
9c60689e | 7084 | |
a243b558 JF |
7085 | # Transform an extracted symbol line into a proper C declaration. |
7086 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7087 | # so use this general approach. | |
7088 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7089 | |
a243b558 JF |
7090 | # Transform an extracted symbol line into symbol name and symbol address |
7091 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7092 | 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 | 7093 | |
a243b558 JF |
7094 | # Handle CRLF in mingw tool chain |
7095 | opt_cr= | |
7096 | case $build_os in | |
7097 | mingw*) | |
7098 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7099 | ;; | |
7100 | esac | |
9c60689e | 7101 | |
a243b558 JF |
7102 | # Try without a prefix underscore, then with it. |
7103 | for ac_symprfx in "" "_"; do | |
9c60689e | 7104 | |
a243b558 JF |
7105 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7106 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7107 | |
a243b558 JF |
7108 | # Write the raw and C identifiers. |
7109 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7110 | # Fake it for dumpbin and say T for any non-static function | |
7111 | # and D for any global variable. | |
7112 | # Also find C++ and __fastcall symbols from MSVC++, | |
7113 | # which start with @ or ?. | |
7114 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7115 | " {last_section=section; section=\$ 3};"\ | |
7116 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7117 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7118 | " \$ 0!~/External *\|/{next};"\ | |
7119 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7120 | " {if(hide[section]) next};"\ | |
7121 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7122 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7123 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7124 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7125 | " ' prfx=^$ac_symprfx" | |
7126 | else | |
7127 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7128 | fi | |
7129 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7130 | |
a243b558 JF |
7131 | # Check to see that the pipe works correctly. |
7132 | pipe_works=no | |
9c60689e | 7133 | |
a243b558 JF |
7134 | rm -rf conftest* |
7135 | cat > conftest.$ac_ext <<_LT_EOF | |
7136 | #ifdef __cplusplus | |
7137 | extern "C" { | |
7138 | #endif | |
7139 | char nm_test_var; | |
7140 | void nm_test_func(void); | |
7141 | void nm_test_func(void){} | |
7142 | #ifdef __cplusplus | |
7143 | } | |
7144 | #endif | |
7145 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7146 | _LT_EOF | |
9c60689e | 7147 | |
a243b558 JF |
7148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7149 | (eval $ac_compile) 2>&5 | |
7150 | ac_status=$? | |
7151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7152 | test $ac_status = 0; }; then | |
7153 | # Now try to grab the symbols. | |
7154 | nlist=conftest.nm | |
7155 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7156 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7157 | ac_status=$? | |
7158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7159 | test $ac_status = 0; } && test -s "$nlist"; then | |
7160 | # Try sorting and uniquifying the output. | |
7161 | if sort "$nlist" | uniq > "$nlist"T; then | |
7162 | mv -f "$nlist"T "$nlist" | |
7163 | else | |
7164 | rm -f "$nlist"T | |
7165 | fi | |
9c60689e | 7166 | |
a243b558 JF |
7167 | # Make sure that we snagged all the symbols we need. |
7168 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7169 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7170 | cat <<_LT_EOF > conftest.$ac_ext | |
7171 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7172 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7173 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7174 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7175 | # define LT_DLSYM_CONST | |
7176 | #elif defined(__osf__) | |
7177 | /* This system does not cope well with relocations in const data. */ | |
7178 | # define LT_DLSYM_CONST | |
7179 | #else | |
7180 | # define LT_DLSYM_CONST const | |
7181 | #endif | |
9c60689e | 7182 | |
a243b558 JF |
7183 | #ifdef __cplusplus |
7184 | extern "C" { | |
7185 | #endif | |
9c60689e | 7186 | |
a243b558 JF |
7187 | _LT_EOF |
7188 | # Now generate the symbol file. | |
7189 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7190 | |
a243b558 | 7191 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7192 | |
a243b558 JF |
7193 | /* The mapping between symbol names and symbols. */ |
7194 | LT_DLSYM_CONST struct { | |
7195 | const char *name; | |
7196 | void *address; | |
7197 | } | |
7198 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7199 | { | |
7200 | { "@PROGRAM@", (void *) 0 }, | |
7201 | _LT_EOF | |
7202 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7203 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7204 | {0, (void *) 0} | |
7205 | }; | |
9c60689e | 7206 | |
a243b558 JF |
7207 | /* This works around a problem in FreeBSD linker */ |
7208 | #ifdef FREEBSD_WORKAROUND | |
7209 | static const void *lt_preloaded_setup() { | |
7210 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7211 | } | |
7212 | #endif | |
9c60689e | 7213 | |
a243b558 JF |
7214 | #ifdef __cplusplus |
7215 | } | |
7216 | #endif | |
7217 | _LT_EOF | |
7218 | # Now try linking the two files. | |
7219 | mv conftest.$ac_objext conftstm.$ac_objext | |
7220 | lt_globsym_save_LIBS=$LIBS | |
7221 | lt_globsym_save_CFLAGS=$CFLAGS | |
7222 | LIBS="conftstm.$ac_objext" | |
7223 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7224 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7225 | (eval $ac_link) 2>&5 | |
7226 | ac_status=$? | |
7227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7228 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7229 | pipe_works=yes | |
7230 | fi | |
7231 | LIBS=$lt_globsym_save_LIBS | |
7232 | CFLAGS=$lt_globsym_save_CFLAGS | |
7233 | else | |
7234 | echo "cannot find nm_test_func in $nlist" >&5 | |
7235 | fi | |
7236 | else | |
7237 | echo "cannot find nm_test_var in $nlist" >&5 | |
7238 | fi | |
7239 | else | |
7240 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7241 | fi | |
7242 | else | |
7243 | echo "$progname: failed program was:" >&5 | |
7244 | cat conftest.$ac_ext >&5 | |
7245 | fi | |
7246 | rm -rf conftest* conftst* | |
9c60689e | 7247 | |
a243b558 JF |
7248 | # Do not use the global_symbol_pipe unless it works. |
7249 | if test "$pipe_works" = yes; then | |
7250 | break | |
7251 | else | |
7252 | lt_cv_sys_global_symbol_pipe= | |
7253 | fi | |
7254 | done | |
9c60689e | 7255 | |
9c60689e | 7256 | fi |
9c60689e | 7257 | |
a243b558 JF |
7258 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7259 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7260 | fi |
a243b558 JF |
7261 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7263 | $as_echo "failed" >&6; } | |
9c60689e | 7264 | else |
a243b558 JF |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7266 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7267 | fi |
7268 | ||
a243b558 JF |
7269 | # Response file support. |
7270 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7271 | nm_file_list_spec='@' | |
7272 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7273 | nm_file_list_spec='@' | |
9c60689e | 7274 | fi |
9c60689e | 7275 | |
9c60689e | 7276 | |
9c60689e | 7277 | |
9c60689e | 7278 | |
9c60689e | 7279 | |
9c60689e DWT |
7280 | |
7281 | ||
9c60689e | 7282 | |
9c60689e | 7283 | |
9c60689e DWT |
7284 | |
7285 | ||
7286 | ||
ee134472 JF |
7287 | |
7288 | ||
9c60689e DWT |
7289 | |
7290 | ||
7291 | ||
7292 | ||
7293 | ||
7294 | ||
7295 | ||
7296 | ||
7297 | ||
549f29b5 | 7298 | |
549f29b5 DWT |
7299 | |
7300 | ||
549f29b5 | 7301 | |
a243b558 JF |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7303 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7304 | |
a243b558 JF |
7305 | # Check whether --with-sysroot was given. |
7306 | if test "${with_sysroot+set}" = set; then : | |
7307 | withval=$with_sysroot; | |
9c60689e | 7308 | else |
a243b558 | 7309 | with_sysroot=no |
9c60689e DWT |
7310 | fi |
7311 | ||
7312 | ||
a243b558 JF |
7313 | lt_sysroot= |
7314 | case ${with_sysroot} in #( | |
7315 | yes) | |
7316 | if test "$GCC" = yes; then | |
7317 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7318 | fi | |
7319 | ;; #( | |
7320 | /*) | |
7321 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7322 | ;; #( | |
7323 | no|'') | |
7324 | ;; #( | |
7325 | *) | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7327 | $as_echo "${with_sysroot}" >&6; } | |
7328 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7329 | ;; | |
7330 | esac | |
9c60689e | 7331 | |
a243b558 JF |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7333 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7334 | |
7335 | ||
7336 | ||
7337 | ||
7338 | ||
a243b558 JF |
7339 | # Check whether --enable-libtool-lock was given. |
7340 | if test "${enable_libtool_lock+set}" = set; then : | |
7341 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7342 | fi |
7343 | ||
a243b558 | 7344 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
9c60689e | 7345 | |
a243b558 JF |
7346 | # Some flags need to be propagated to the compiler or linker for good |
7347 | # libtool support. | |
7348 | case $host in | |
7349 | ia64-*-hpux*) | |
7350 | # Find out which ABI we are using. | |
7351 | echo 'int i;' > conftest.$ac_ext | |
7352 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7353 | (eval $ac_compile) 2>&5 | |
7354 | ac_status=$? | |
7355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7356 | test $ac_status = 0; }; then | |
7357 | case `/usr/bin/file conftest.$ac_objext` in | |
7358 | *ELF-32*) | |
7359 | HPUX_IA64_MODE="32" | |
7360 | ;; | |
7361 | *ELF-64*) | |
7362 | HPUX_IA64_MODE="64" | |
7363 | ;; | |
7364 | esac | |
7365 | fi | |
7366 | rm -rf conftest* | |
7367 | ;; | |
7368 | *-*-irix6*) | |
7369 | # Find out which ABI we are using. | |
7370 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7372 | (eval $ac_compile) 2>&5 | |
7373 | ac_status=$? | |
7374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7375 | test $ac_status = 0; }; then | |
7376 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7377 | case `/usr/bin/file conftest.$ac_objext` in | |
7378 | *32-bit*) | |
7379 | LD="${LD-ld} -melf32bsmip" | |
7380 | ;; | |
7381 | *N32*) | |
7382 | LD="${LD-ld} -melf32bmipn32" | |
7383 | ;; | |
7384 | *64-bit*) | |
7385 | LD="${LD-ld} -melf64bmip" | |
7386 | ;; | |
7387 | esac | |
7388 | else | |
7389 | case `/usr/bin/file conftest.$ac_objext` in | |
7390 | *32-bit*) | |
7391 | LD="${LD-ld} -32" | |
7392 | ;; | |
7393 | *N32*) | |
7394 | LD="${LD-ld} -n32" | |
7395 | ;; | |
7396 | *64-bit*) | |
7397 | LD="${LD-ld} -64" | |
7398 | ;; | |
7399 | esac | |
7400 | fi | |
7401 | fi | |
7402 | rm -rf conftest* | |
7403 | ;; | |
9c60689e | 7404 | |
a243b558 JF |
7405 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7406 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7407 | # Find out which ABI we are using. | |
7408 | echo 'int i;' > conftest.$ac_ext | |
7409 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7410 | (eval $ac_compile) 2>&5 | |
7411 | ac_status=$? | |
7412 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7413 | test $ac_status = 0; }; then | |
7414 | case `/usr/bin/file conftest.o` in | |
7415 | *32-bit*) | |
7416 | case $host in | |
7417 | x86_64-*kfreebsd*-gnu) | |
7418 | LD="${LD-ld} -m elf_i386_fbsd" | |
7419 | ;; | |
7420 | x86_64-*linux*) | |
7421 | LD="${LD-ld} -m elf_i386" | |
7422 | ;; | |
7423 | ppc64-*linux*|powerpc64-*linux*) | |
7424 | LD="${LD-ld} -m elf32ppclinux" | |
7425 | ;; | |
7426 | s390x-*linux*) | |
7427 | LD="${LD-ld} -m elf_s390" | |
7428 | ;; | |
7429 | sparc64-*linux*) | |
7430 | LD="${LD-ld} -m elf32_sparc" | |
7431 | ;; | |
7432 | esac | |
7433 | ;; | |
7434 | *64-bit*) | |
7435 | case $host in | |
7436 | x86_64-*kfreebsd*-gnu) | |
7437 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7438 | ;; | |
7439 | x86_64-*linux*) | |
7440 | LD="${LD-ld} -m elf_x86_64" | |
7441 | ;; | |
7442 | ppc*-*linux*|powerpc*-*linux*) | |
7443 | LD="${LD-ld} -m elf64ppc" | |
7444 | ;; | |
7445 | s390*-*linux*|s390*-*tpf*) | |
7446 | LD="${LD-ld} -m elf64_s390" | |
7447 | ;; | |
7448 | sparc*-*linux*) | |
7449 | LD="${LD-ld} -m elf64_sparc" | |
7450 | ;; | |
7451 | esac | |
7452 | ;; | |
7453 | esac | |
7454 | fi | |
7455 | rm -rf conftest* | |
7456 | ;; | |
9c60689e | 7457 | |
a243b558 JF |
7458 | *-*-sco3.2v5*) |
7459 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7460 | SAVE_CFLAGS="$CFLAGS" | |
7461 | CFLAGS="$CFLAGS -belf" | |
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7463 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7464 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7465 | $as_echo_n "(cached) " >&6 | |
7466 | else | |
7467 | ac_ext=c | |
7468 | ac_cpp='$CPP $CPPFLAGS' | |
7469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7472 | |
a243b558 JF |
7473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7474 | /* end confdefs.h. */ | |
9c60689e | 7475 | |
a243b558 JF |
7476 | int |
7477 | main () | |
7478 | { | |
9c60689e | 7479 | |
a243b558 JF |
7480 | ; |
7481 | return 0; | |
7482 | } | |
7483 | _ACEOF | |
7484 | if ac_fn_c_try_link "$LINENO"; then : | |
7485 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7486 | else |
a243b558 | 7487 | lt_cv_cc_needs_belf=no |
9c60689e | 7488 | fi |
a243b558 JF |
7489 | rm -f core conftest.err conftest.$ac_objext \ |
7490 | conftest$ac_exeext conftest.$ac_ext | |
7491 | ac_ext=c | |
7492 | ac_cpp='$CPP $CPPFLAGS' | |
7493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7496 | |
a243b558 JF |
7497 | fi |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7499 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7500 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7501 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7502 | CFLAGS="$SAVE_CFLAGS" | |
7503 | fi | |
7504 | ;; | |
7505 | *-*solaris*) | |
7506 | # Find out which ABI we are using. | |
7507 | echo 'int i;' > conftest.$ac_ext | |
7508 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7509 | (eval $ac_compile) 2>&5 | |
7510 | ac_status=$? | |
7511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7512 | test $ac_status = 0; }; then | |
7513 | case `/usr/bin/file conftest.o` in | |
7514 | *64-bit*) | |
7515 | case $lt_cv_prog_gnu_ld in | |
7516 | yes*) | |
7517 | case $host in | |
7518 | i?86-*-solaris*) | |
7519 | LD="${LD-ld} -m elf_x86_64" | |
7520 | ;; | |
7521 | sparc*-*-solaris*) | |
7522 | LD="${LD-ld} -m elf64_sparc" | |
7523 | ;; | |
7524 | esac | |
7525 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7526 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7527 | LD="${LD-ld}_sol2" | |
7528 | fi | |
7529 | ;; | |
7530 | *) | |
7531 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7532 | LD="${LD-ld} -64" | |
7533 | fi | |
7534 | ;; | |
7535 | esac | |
7536 | ;; | |
7537 | esac | |
7538 | fi | |
7539 | rm -rf conftest* | |
7540 | ;; | |
7541 | esac | |
9c60689e | 7542 | |
a243b558 | 7543 | need_locks="$enable_libtool_lock" |
9c60689e | 7544 | |
a243b558 JF |
7545 | if test -n "$ac_tool_prefix"; then |
7546 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7547 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7549 | $as_echo_n "checking for $ac_word... " >&6; } | |
7550 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7551 | $as_echo_n "(cached) " >&6 | |
7552 | else | |
7553 | if test -n "$MANIFEST_TOOL"; then | |
7554 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7555 | else | |
7556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7557 | for as_dir in $PATH | |
7558 | do | |
7559 | IFS=$as_save_IFS | |
7560 | test -z "$as_dir" && as_dir=. | |
7561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7563 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7565 | break 2 | |
7566 | fi | |
7567 | done | |
7568 | done | |
7569 | IFS=$as_save_IFS | |
9c60689e | 7570 | |
a243b558 JF |
7571 | fi |
7572 | fi | |
7573 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7574 | if test -n "$MANIFEST_TOOL"; then | |
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7576 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7577 | else | |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7579 | $as_echo "no" >&6; } | |
7580 | fi | |
9c60689e DWT |
7581 | |
7582 | ||
a243b558 JF |
7583 | fi |
7584 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7585 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7586 | # Extract the first word of "mt", so it can be a program name with args. | |
7587 | set dummy mt; ac_word=$2 | |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7589 | $as_echo_n "checking for $ac_word... " >&6; } | |
7590 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7591 | $as_echo_n "(cached) " >&6 | |
7592 | else | |
7593 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7594 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7595 | else | |
7596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7597 | for as_dir in $PATH | |
7598 | do | |
7599 | IFS=$as_save_IFS | |
7600 | test -z "$as_dir" && as_dir=. | |
7601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7603 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7605 | break 2 | |
7606 | fi | |
7607 | done | |
7608 | done | |
7609 | IFS=$as_save_IFS | |
9c60689e | 7610 | |
a243b558 JF |
7611 | fi |
7612 | fi | |
7613 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7614 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7616 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7617 | else | |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7619 | $as_echo "no" >&6; } | |
7620 | fi | |
9c60689e | 7621 | |
a243b558 JF |
7622 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7623 | MANIFEST_TOOL=":" | |
7624 | else | |
7625 | case $cross_compiling:$ac_tool_warned in | |
7626 | yes:) | |
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7629 | ac_tool_warned=yes ;; | |
7630 | esac | |
7631 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7632 | fi | |
7633 | else | |
7634 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7635 | fi | |
9c60689e | 7636 | |
a243b558 JF |
7637 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7639 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7640 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7641 | $as_echo_n "(cached) " >&6 | |
7642 | else | |
7643 | lt_cv_path_mainfest_tool=no | |
7644 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7645 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7646 | cat conftest.err >&5 | |
7647 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7648 | lt_cv_path_mainfest_tool=yes | |
7649 | fi | |
7650 | rm -rf conftest* | |
7651 | fi | |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7653 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7654 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7655 | MANIFEST_TOOL=: | |
7656 | fi | |
9c60689e DWT |
7657 | |
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | ||
a243b558 JF |
7663 | case $host_os in |
7664 | rhapsody* | darwin*) | |
7665 | if test -n "$ac_tool_prefix"; then | |
7666 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7667 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7669 | $as_echo_n "checking for $ac_word... " >&6; } | |
7670 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7671 | $as_echo_n "(cached) " >&6 | |
7672 | else | |
7673 | if test -n "$DSYMUTIL"; then | |
7674 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7675 | else | |
7676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7677 | for as_dir in $PATH | |
7678 | do | |
7679 | IFS=$as_save_IFS | |
7680 | test -z "$as_dir" && as_dir=. | |
7681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7683 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7685 | break 2 | |
7686 | fi | |
7687 | done | |
7688 | done | |
7689 | IFS=$as_save_IFS | |
9c60689e | 7690 | |
a243b558 JF |
7691 | fi |
7692 | fi | |
7693 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7694 | if test -n "$DSYMUTIL"; then | |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7696 | $as_echo "$DSYMUTIL" >&6; } | |
7697 | else | |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7699 | $as_echo "no" >&6; } | |
7700 | fi | |
9c60689e DWT |
7701 | |
7702 | ||
9c60689e | 7703 | fi |
a243b558 JF |
7704 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7705 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7706 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7707 | set dummy dsymutil; ac_word=$2 | |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7709 | $as_echo_n "checking for $ac_word... " >&6; } | |
7710 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
7711 | $as_echo_n "(cached) " >&6 |
7712 | else | |
a243b558 JF |
7713 | if test -n "$ac_ct_DSYMUTIL"; then |
7714 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 7715 | else |
a243b558 JF |
7716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7717 | for as_dir in $PATH | |
7718 | do | |
7719 | IFS=$as_save_IFS | |
7720 | test -z "$as_dir" && as_dir=. | |
7721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7723 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7725 | break 2 | |
7726 | fi | |
7727 | done | |
7728 | done | |
7729 | IFS=$as_save_IFS | |
7730 | ||
9c60689e | 7731 | fi |
9c60689e | 7732 | fi |
a243b558 JF |
7733 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7734 | if test -n "$ac_ct_DSYMUTIL"; then | |
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7736 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7737 | else | |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7739 | $as_echo "no" >&6; } | |
7740 | fi | |
9c60689e | 7741 | |
a243b558 JF |
7742 | if test "x$ac_ct_DSYMUTIL" = x; then |
7743 | DSYMUTIL=":" | |
7744 | else | |
7745 | case $cross_compiling:$ac_tool_warned in | |
7746 | yes:) | |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7748 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7749 | ac_tool_warned=yes ;; | |
9c60689e | 7750 | esac |
a243b558 JF |
7751 | DSYMUTIL=$ac_ct_DSYMUTIL |
7752 | fi | |
7753 | else | |
7754 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7755 | fi | |
9c60689e | 7756 | |
a243b558 JF |
7757 | if test -n "$ac_tool_prefix"; then |
7758 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7759 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7761 | $as_echo_n "checking for $ac_word... " >&6; } | |
7762 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
7763 | $as_echo_n "(cached) " >&6 |
7764 | else | |
a243b558 JF |
7765 | if test -n "$NMEDIT"; then |
7766 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7767 | else | |
7768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7769 | for as_dir in $PATH | |
7770 | do | |
7771 | IFS=$as_save_IFS | |
7772 | test -z "$as_dir" && as_dir=. | |
7773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7775 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7777 | break 2 | |
7778 | fi | |
7779 | done | |
9c60689e | 7780 | done |
a243b558 | 7781 | IFS=$as_save_IFS |
9c60689e | 7782 | |
a243b558 JF |
7783 | fi |
7784 | fi | |
7785 | NMEDIT=$ac_cv_prog_NMEDIT | |
7786 | if test -n "$NMEDIT"; then | |
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7788 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
7789 | else |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7791 | $as_echo "no" >&6; } | |
7792 | fi | |
7793 | ||
7794 | ||
a243b558 JF |
7795 | fi |
7796 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7797 | ac_ct_NMEDIT=$NMEDIT | |
7798 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7799 | set dummy nmedit; ac_word=$2 | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7801 | $as_echo_n "checking for $ac_word... " >&6; } | |
7802 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
7803 | $as_echo_n "(cached) " >&6 |
7804 | else | |
a243b558 JF |
7805 | if test -n "$ac_ct_NMEDIT"; then |
7806 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7807 | else | |
7808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7809 | for as_dir in $PATH | |
7810 | do | |
7811 | IFS=$as_save_IFS | |
7812 | test -z "$as_dir" && as_dir=. | |
7813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7815 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7817 | break 2 | |
7818 | fi | |
7819 | done | |
9c60689e | 7820 | done |
a243b558 | 7821 | IFS=$as_save_IFS |
9c60689e | 7822 | |
a243b558 JF |
7823 | fi |
7824 | fi | |
7825 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7826 | if test -n "$ac_ct_NMEDIT"; then | |
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7828 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
7829 | else |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7831 | $as_echo "no" >&6; } | |
7832 | fi | |
7833 | ||
a243b558 JF |
7834 | if test "x$ac_ct_NMEDIT" = x; then |
7835 | NMEDIT=":" | |
9c60689e | 7836 | else |
a243b558 JF |
7837 | case $cross_compiling:$ac_tool_warned in |
7838 | yes:) | |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7841 | ac_tool_warned=yes ;; | |
7842 | esac | |
7843 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 7844 | fi |
a243b558 JF |
7845 | else |
7846 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
7847 | fi |
7848 | ||
a243b558 JF |
7849 | if test -n "$ac_tool_prefix"; then |
7850 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7851 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7853 | $as_echo_n "checking for $ac_word... " >&6; } | |
7854 | if ${ac_cv_prog_LIPO+:} false; then : | |
7855 | $as_echo_n "(cached) " >&6 | |
7856 | else | |
7857 | if test -n "$LIPO"; then | |
7858 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7859 | else | |
7860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7861 | for as_dir in $PATH | |
7862 | do | |
7863 | IFS=$as_save_IFS | |
7864 | test -z "$as_dir" && as_dir=. | |
7865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7867 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7869 | break 2 | |
7870 | fi | |
7871 | done | |
7872 | done | |
7873 | IFS=$as_save_IFS | |
9c60689e | 7874 | |
a243b558 JF |
7875 | fi |
7876 | fi | |
7877 | LIPO=$ac_cv_prog_LIPO | |
7878 | if test -n "$LIPO"; then | |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7880 | $as_echo "$LIPO" >&6; } | |
7881 | else | |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7883 | $as_echo "no" >&6; } | |
7884 | fi | |
9c60689e | 7885 | |
9c60689e | 7886 | |
a243b558 JF |
7887 | fi |
7888 | if test -z "$ac_cv_prog_LIPO"; then | |
7889 | ac_ct_LIPO=$LIPO | |
7890 | # Extract the first word of "lipo", so it can be a program name with args. | |
7891 | set dummy lipo; ac_word=$2 | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7893 | $as_echo_n "checking for $ac_word... " >&6; } | |
7894 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
7895 | $as_echo_n "(cached) " >&6 |
7896 | else | |
a243b558 JF |
7897 | if test -n "$ac_ct_LIPO"; then |
7898 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7899 | else | |
7900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7901 | for as_dir in $PATH | |
7902 | do | |
7903 | IFS=$as_save_IFS | |
7904 | test -z "$as_dir" && as_dir=. | |
7905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7907 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7909 | break 2 | |
7910 | fi | |
7911 | done | |
7912 | done | |
7913 | IFS=$as_save_IFS | |
9c60689e DWT |
7914 | |
7915 | fi | |
a243b558 JF |
7916 | fi |
7917 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7918 | if test -n "$ac_ct_LIPO"; then | |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7920 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 7921 | else |
a243b558 JF |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7923 | $as_echo "no" >&6; } | |
9c60689e DWT |
7924 | fi |
7925 | ||
a243b558 JF |
7926 | if test "x$ac_ct_LIPO" = x; then |
7927 | LIPO=":" | |
7928 | else | |
7929 | case $cross_compiling:$ac_tool_warned in | |
7930 | yes:) | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7932 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7933 | ac_tool_warned=yes ;; | |
7934 | esac | |
7935 | LIPO=$ac_ct_LIPO | |
7936 | fi | |
7937 | else | |
7938 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
7939 | fi |
7940 | ||
a243b558 JF |
7941 | if test -n "$ac_tool_prefix"; then |
7942 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7943 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7945 | $as_echo_n "checking for $ac_word... " >&6; } | |
7946 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7947 | $as_echo_n "(cached) " >&6 | |
7948 | else | |
7949 | if test -n "$OTOOL"; then | |
7950 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7951 | else | |
7952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7953 | for as_dir in $PATH | |
7954 | do | |
7955 | IFS=$as_save_IFS | |
7956 | test -z "$as_dir" && as_dir=. | |
7957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7959 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7961 | break 2 | |
7962 | fi | |
7963 | done | |
7964 | done | |
7965 | IFS=$as_save_IFS | |
9c60689e | 7966 | |
a243b558 JF |
7967 | fi |
7968 | fi | |
7969 | OTOOL=$ac_cv_prog_OTOOL | |
7970 | if test -n "$OTOOL"; then | |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7972 | $as_echo "$OTOOL" >&6; } | |
7973 | else | |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7975 | $as_echo "no" >&6; } | |
7976 | fi | |
9c60689e DWT |
7977 | |
7978 | ||
a243b558 JF |
7979 | fi |
7980 | if test -z "$ac_cv_prog_OTOOL"; then | |
7981 | ac_ct_OTOOL=$OTOOL | |
7982 | # Extract the first word of "otool", so it can be a program name with args. | |
7983 | set dummy otool; ac_word=$2 | |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7985 | $as_echo_n "checking for $ac_word... " >&6; } | |
7986 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7987 | $as_echo_n "(cached) " >&6 | |
7988 | else | |
7989 | if test -n "$ac_ct_OTOOL"; then | |
7990 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7991 | else | |
7992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7993 | for as_dir in $PATH | |
7994 | do | |
7995 | IFS=$as_save_IFS | |
7996 | test -z "$as_dir" && as_dir=. | |
7997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7999 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8001 | break 2 | |
8002 | fi | |
8003 | done | |
8004 | done | |
8005 | IFS=$as_save_IFS | |
9c60689e | 8006 | |
a243b558 JF |
8007 | fi |
8008 | fi | |
8009 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8010 | if test -n "$ac_ct_OTOOL"; then | |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8012 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8013 | else | |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8015 | $as_echo "no" >&6; } | |
8016 | fi | |
9c60689e | 8017 | |
a243b558 JF |
8018 | if test "x$ac_ct_OTOOL" = x; then |
8019 | OTOOL=":" | |
8020 | else | |
8021 | case $cross_compiling:$ac_tool_warned in | |
8022 | yes:) | |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8025 | ac_tool_warned=yes ;; | |
8026 | esac | |
8027 | OTOOL=$ac_ct_OTOOL | |
8028 | fi | |
8029 | else | |
8030 | OTOOL="$ac_cv_prog_OTOOL" | |
8031 | fi | |
9c60689e | 8032 | |
a243b558 JF |
8033 | if test -n "$ac_tool_prefix"; then |
8034 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8035 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8037 | $as_echo_n "checking for $ac_word... " >&6; } | |
8038 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8039 | $as_echo_n "(cached) " >&6 | |
8040 | else | |
8041 | if test -n "$OTOOL64"; then | |
8042 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8043 | else | |
8044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8045 | for as_dir in $PATH | |
8046 | do | |
8047 | IFS=$as_save_IFS | |
8048 | test -z "$as_dir" && as_dir=. | |
8049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8051 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8053 | break 2 | |
8054 | fi | |
8055 | done | |
8056 | done | |
8057 | IFS=$as_save_IFS | |
9c60689e | 8058 | |
a243b558 JF |
8059 | fi |
8060 | fi | |
8061 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8062 | if test -n "$OTOOL64"; then | |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8064 | $as_echo "$OTOOL64" >&6; } | |
8065 | else | |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8067 | $as_echo "no" >&6; } | |
8068 | fi | |
9c60689e | 8069 | |
9c60689e | 8070 | |
a243b558 JF |
8071 | fi |
8072 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8073 | ac_ct_OTOOL64=$OTOOL64 | |
8074 | # Extract the first word of "otool64", so it can be a program name with args. | |
8075 | set dummy otool64; ac_word=$2 | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8077 | $as_echo_n "checking for $ac_word... " >&6; } | |
8078 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
8080 | else | |
8081 | if test -n "$ac_ct_OTOOL64"; then | |
8082 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8083 | else | |
8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
8089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8091 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8093 | break 2 | |
8094 | fi | |
8095 | done | |
8096 | done | |
8097 | IFS=$as_save_IFS | |
9c60689e | 8098 | |
a243b558 JF |
8099 | fi |
8100 | fi | |
8101 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8102 | if test -n "$ac_ct_OTOOL64"; then | |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8104 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8105 | else | |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8107 | $as_echo "no" >&6; } | |
8108 | fi | |
9c60689e | 8109 | |
a243b558 JF |
8110 | if test "x$ac_ct_OTOOL64" = x; then |
8111 | OTOOL64=":" | |
8112 | else | |
8113 | case $cross_compiling:$ac_tool_warned in | |
8114 | yes:) | |
8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8116 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8117 | ac_tool_warned=yes ;; | |
8118 | esac | |
8119 | OTOOL64=$ac_ct_OTOOL64 | |
8120 | fi | |
8121 | else | |
8122 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8123 | fi | |
ee134472 | 8124 | |
9c60689e | 8125 | |
9c60689e | 8126 | |
9c60689e | 8127 | |
9c60689e | 8128 | |
9c60689e | 8129 | |
ee134472 | 8130 | |
9c60689e | 8131 | |
9c60689e | 8132 | |
9c60689e | 8133 | |
9c60689e | 8134 | |
9c60689e | 8135 | |
9c60689e | 8136 | |
9c60689e | 8137 | |
9c60689e | 8138 | |
9c60689e | 8139 | |
9c60689e | 8140 | |
9c60689e | 8141 | |
9c60689e | 8142 | |
9c60689e | 8143 | |
9c60689e | 8144 | |
9c60689e | 8145 | |
9c60689e | 8146 | |
9c60689e | 8147 | |
9c60689e | 8148 | |
a243b558 JF |
8149 | |
8150 | ||
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8152 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8153 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8154 | $as_echo_n "(cached) " >&6 |
8155 | else | |
a243b558 JF |
8156 | lt_cv_apple_cc_single_mod=no |
8157 | if test -z "${LT_MULTI_MODULE}"; then | |
8158 | # By default we will add the -single_module flag. You can override | |
8159 | # by either setting the environment variable LT_MULTI_MODULE | |
8160 | # non-empty at configure time, or by adding -multi_module to the | |
8161 | # link flags. | |
8162 | rm -rf libconftest.dylib* | |
8163 | echo "int foo(void){return 1;}" > conftest.c | |
8164 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8165 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8166 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8167 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8168 | _lt_result=$? | |
8169 | # If there is a non-empty error log, and "single_module" | |
8170 | # appears in it, assume the flag caused a linker warning | |
8171 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8172 | cat conftest.err >&5 | |
8173 | # Otherwise, if the output was created with a 0 exit code from | |
8174 | # the compiler, it worked. | |
8175 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8176 | lt_cv_apple_cc_single_mod=yes | |
8177 | else | |
8178 | cat conftest.err >&5 | |
8179 | fi | |
8180 | rm -rf libconftest.dylib* | |
8181 | rm -f conftest.* | |
8182 | fi | |
ee134472 | 8183 | fi |
a243b558 JF |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8185 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8186 | |
a243b558 JF |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8188 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8189 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8190 | $as_echo_n "(cached) " >&6 |
8191 | else | |
a243b558 JF |
8192 | lt_cv_ld_exported_symbols_list=no |
8193 | save_LDFLAGS=$LDFLAGS | |
8194 | echo "_main" > conftest.sym | |
8195 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8197 | /* end confdefs.h. */ | |
9c60689e | 8198 | |
a243b558 JF |
8199 | int |
8200 | main () | |
8201 | { | |
9c60689e | 8202 | |
a243b558 JF |
8203 | ; |
8204 | return 0; | |
8205 | } | |
8206 | _ACEOF | |
8207 | if ac_fn_c_try_link "$LINENO"; then : | |
8208 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8209 | else |
a243b558 | 8210 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8211 | fi |
a243b558 JF |
8212 | rm -f core conftest.err conftest.$ac_objext \ |
8213 | conftest$ac_exeext conftest.$ac_ext | |
8214 | LDFLAGS="$save_LDFLAGS" | |
9c60689e DWT |
8215 | |
8216 | fi | |
a243b558 JF |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8218 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8219 | |
a243b558 JF |
8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8221 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8222 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8223 | $as_echo_n "(cached) " >&6 |
8224 | else | |
a243b558 JF |
8225 | lt_cv_ld_force_load=no |
8226 | cat > conftest.c << _LT_EOF | |
8227 | int forced_loaded() { return 2;} | |
8228 | _LT_EOF | |
8229 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8230 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8231 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8232 | $AR cru libconftest.a conftest.o 2>&5 | |
8233 | echo "$RANLIB libconftest.a" >&5 | |
8234 | $RANLIB libconftest.a 2>&5 | |
8235 | cat > conftest.c << _LT_EOF | |
8236 | int main() { return 0;} | |
8237 | _LT_EOF | |
8238 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8239 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8240 | _lt_result=$? | |
8241 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8242 | cat conftest.err >&5 | |
8243 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8244 | lt_cv_ld_force_load=yes | |
8245 | else | |
8246 | cat conftest.err >&5 | |
8247 | fi | |
8248 | rm -f conftest.err libconftest.a conftest conftest.c | |
8249 | rm -rf conftest.dSYM | |
9c60689e DWT |
8250 | |
8251 | fi | |
a243b558 JF |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8253 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8254 | case $host_os in | |
8255 | rhapsody* | darwin1.[012]) | |
8256 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8257 | darwin1.*) | |
8258 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8259 | darwin*) # darwin 5.x on | |
8260 | # if running on 10.5 or later, the deployment target defaults | |
8261 | # to the OS version, if on x86, and 10.4, the deployment | |
8262 | # target defaults to 10.4. Don't you love it? | |
8263 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8264 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8265 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8266 | 10.[012]*) | |
8267 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8268 | 10.*) | |
8269 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8270 | esac | |
8271 | ;; | |
8272 | esac | |
8273 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8274 | _lt_dar_single_mod='$single_module' | |
8275 | fi | |
8276 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8277 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8278 | else | |
8279 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8280 | fi | |
8281 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8282 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8283 | else | |
8284 | _lt_dsymutil= | |
8285 | fi | |
8286 | ;; | |
8287 | esac | |
9c60689e | 8288 | |
a243b558 JF |
8289 | ac_ext=c |
8290 | ac_cpp='$CPP $CPPFLAGS' | |
8291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8295 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8296 | # On Suns, sometimes $CPP names a directory. | |
8297 | if test -n "$CPP" && test -d "$CPP"; then | |
8298 | CPP= | |
9c60689e | 8299 | fi |
a243b558 JF |
8300 | if test -z "$CPP"; then |
8301 | if ${ac_cv_prog_CPP+:} false; then : | |
8302 | $as_echo_n "(cached) " >&6 | |
8303 | else | |
8304 | # Double quotes because CPP needs to be expanded | |
8305 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8306 | do | |
8307 | ac_preproc_ok=false | |
8308 | for ac_c_preproc_warn_flag in '' yes | |
8309 | do | |
8310 | # Use a header file that comes with gcc, so configuring glibc | |
8311 | # with a fresh cross-compiler works. | |
8312 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8313 | # <limits.h> exists even on freestanding compilers. | |
8314 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8315 | # not just through cpp. "Syntax error" is here to catch this case. | |
8316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8317 | /* end confdefs.h. */ | |
8318 | #ifdef __STDC__ | |
8319 | # include <limits.h> | |
8320 | #else | |
8321 | # include <assert.h> | |
8322 | #endif | |
8323 | Syntax error | |
8324 | _ACEOF | |
8325 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8326 | |
a243b558 JF |
8327 | else |
8328 | # Broken: fails on valid input. | |
8329 | continue | |
8330 | fi | |
8331 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8332 | |
a243b558 JF |
8333 | # OK, works on sane cases. Now check whether nonexistent headers |
8334 | # can be detected and how. | |
8335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8336 | /* end confdefs.h. */ | |
8337 | #include <ac_nonexistent.h> | |
8338 | _ACEOF | |
8339 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8340 | # Broken: success on invalid input. | |
8341 | continue | |
8342 | else | |
8343 | # Passes both tests. | |
8344 | ac_preproc_ok=: | |
8345 | break | |
8346 | fi | |
8347 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8348 | |
a243b558 JF |
8349 | done |
8350 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8351 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8352 | if $ac_preproc_ok; then : | |
8353 | break | |
8354 | fi | |
9c60689e | 8355 | |
a243b558 JF |
8356 | done |
8357 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8358 | |
a243b558 JF |
8359 | fi |
8360 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8361 | else |
a243b558 JF |
8362 | ac_cv_prog_CPP=$CPP |
8363 | fi | |
8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8365 | $as_echo "$CPP" >&6; } | |
8366 | ac_preproc_ok=false | |
8367 | for ac_c_preproc_warn_flag in '' yes | |
8368 | do | |
8369 | # Use a header file that comes with gcc, so configuring glibc | |
8370 | # with a fresh cross-compiler works. | |
8371 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8372 | # <limits.h> exists even on freestanding compilers. | |
8373 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8374 | # not just through cpp. "Syntax error" is here to catch this case. | |
8375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8376 | /* end confdefs.h. */ | |
8377 | #ifdef __STDC__ | |
8378 | # include <limits.h> | |
8379 | #else | |
8380 | # include <assert.h> | |
8381 | #endif | |
8382 | Syntax error | |
8383 | _ACEOF | |
8384 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8385 | |
a243b558 JF |
8386 | else |
8387 | # Broken: fails on valid input. | |
8388 | continue | |
9c60689e | 8389 | fi |
a243b558 | 8390 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8391 | |
a243b558 JF |
8392 | # OK, works on sane cases. Now check whether nonexistent headers |
8393 | # can be detected and how. | |
8394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8395 | /* end confdefs.h. */ | |
8396 | #include <ac_nonexistent.h> | |
8397 | _ACEOF | |
8398 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8399 | # Broken: success on invalid input. | |
8400 | continue | |
8401 | else | |
8402 | # Passes both tests. | |
8403 | ac_preproc_ok=: | |
8404 | break | |
8405 | fi | |
8406 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8407 | |
a243b558 JF |
8408 | done |
8409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8410 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8411 | if $ac_preproc_ok; then : | |
9c60689e | 8412 | |
a243b558 JF |
8413 | else |
8414 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8415 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8416 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8417 | See \`config.log' for more details" "$LINENO" 5; } | |
8418 | fi | |
9c60689e | 8419 | |
a243b558 JF |
8420 | ac_ext=c |
8421 | ac_cpp='$CPP $CPPFLAGS' | |
8422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8425 | |
8426 | ||
a243b558 JF |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8428 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8429 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8430 | $as_echo_n "(cached) " >&6 |
8431 | else | |
a243b558 JF |
8432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8433 | /* end confdefs.h. */ | |
8434 | #include <stdlib.h> | |
8435 | #include <stdarg.h> | |
8436 | #include <string.h> | |
8437 | #include <float.h> | |
9c60689e | 8438 | |
a243b558 JF |
8439 | int |
8440 | main () | |
8441 | { | |
9c60689e | 8442 | |
a243b558 JF |
8443 | ; |
8444 | return 0; | |
8445 | } | |
8446 | _ACEOF | |
8447 | if ac_fn_c_try_compile "$LINENO"; then : | |
8448 | ac_cv_header_stdc=yes | |
8449 | else | |
8450 | ac_cv_header_stdc=no | |
9c60689e | 8451 | fi |
a243b558 JF |
8452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8453 | ||
8454 | if test $ac_cv_header_stdc = yes; then | |
8455 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8457 | /* end confdefs.h. */ | |
8458 | #include <string.h> | |
9c60689e | 8459 | |
a243b558 JF |
8460 | _ACEOF |
8461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8462 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8463 | |
a243b558 JF |
8464 | else |
8465 | ac_cv_header_stdc=no | |
8466 | fi | |
8467 | rm -f conftest* | |
9c60689e | 8468 | |
a243b558 JF |
8469 | fi |
8470 | ||
8471 | if test $ac_cv_header_stdc = yes; then | |
8472 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8474 | /* end confdefs.h. */ | |
8475 | #include <stdlib.h> | |
8476 | ||
8477 | _ACEOF | |
8478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8479 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8480 | |
9c60689e | 8481 | else |
a243b558 | 8482 | ac_cv_header_stdc=no |
9c60689e | 8483 | fi |
a243b558 | 8484 | rm -f conftest* |
9c60689e | 8485 | |
a243b558 | 8486 | fi |
9c60689e | 8487 | |
a243b558 JF |
8488 | if test $ac_cv_header_stdc = yes; then |
8489 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8490 | if test "$cross_compiling" = yes; then : | |
8491 | : | |
8492 | else | |
8493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8494 | /* end confdefs.h. */ | |
8495 | #include <ctype.h> | |
8496 | #include <stdlib.h> | |
8497 | #if ((' ' & 0x0FF) == 0x020) | |
8498 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8499 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8500 | #else | |
8501 | # define ISLOWER(c) \ | |
8502 | (('a' <= (c) && (c) <= 'i') \ | |
8503 | || ('j' <= (c) && (c) <= 'r') \ | |
8504 | || ('s' <= (c) && (c) <= 'z')) | |
8505 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8506 | #endif | |
9c60689e | 8507 | |
a243b558 JF |
8508 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8509 | int | |
8510 | main () | |
8511 | { | |
8512 | int i; | |
8513 | for (i = 0; i < 256; i++) | |
8514 | if (XOR (islower (i), ISLOWER (i)) | |
8515 | || toupper (i) != TOUPPER (i)) | |
8516 | return 2; | |
8517 | return 0; | |
8518 | } | |
8519 | _ACEOF | |
8520 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8521 | |
a243b558 JF |
8522 | else |
8523 | ac_cv_header_stdc=no | |
8524 | fi | |
8525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8526 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8527 | fi | |
9c60689e | 8528 | |
a243b558 JF |
8529 | fi |
8530 | fi | |
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8532 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8533 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8534 | |
a243b558 | 8535 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8536 | |
a243b558 | 8537 | fi |
9c60689e | 8538 | |
a243b558 JF |
8539 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8541 | inttypes.h stdint.h unistd.h | |
8542 | do : | |
8543 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8544 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8545 | " | |
8546 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8547 | cat >>confdefs.h <<_ACEOF | |
8548 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8549 | _ACEOF | |
9c60689e | 8550 | |
a243b558 | 8551 | fi |
ee134472 | 8552 | |
a243b558 | 8553 | done |
ee134472 | 8554 | |
9c60689e | 8555 | |
a243b558 JF |
8556 | for ac_header in dlfcn.h |
8557 | do : | |
8558 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8559 | " | |
8560 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8561 | cat >>confdefs.h <<_ACEOF | |
8562 | #define HAVE_DLFCN_H 1 | |
8563 | _ACEOF | |
9c60689e | 8564 | |
a243b558 | 8565 | fi |
9c60689e | 8566 | |
a243b558 | 8567 | done |
9c60689e | 8568 | |
9c60689e | 8569 | |
9c60689e | 8570 | |
9c60689e | 8571 | |
a243b558 JF |
8572 | func_stripname_cnf () |
8573 | { | |
8574 | case ${2} in | |
8575 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8576 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8577 | esac | |
8578 | } # func_stripname_cnf | |
9c60689e | 8579 | |
9c60689e | 8580 | |
ee134472 | 8581 | |
a243b558 JF |
8582 | |
8583 | ||
8584 | # Set options | |
8585 | # Check whether --enable-static was given. | |
8586 | if test "${enable_static+set}" = set; then : | |
8587 | enableval=$enable_static; p=${PACKAGE-default} | |
8588 | case $enableval in | |
8589 | yes) enable_static=yes ;; | |
8590 | no) enable_static=no ;; | |
8591 | *) | |
8592 | enable_static=no | |
8593 | # Look at the argument we got. We use all the common list separators. | |
8594 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8595 | for pkg in $enableval; do | |
8596 | IFS="$lt_save_ifs" | |
8597 | if test "X$pkg" = "X$p"; then | |
8598 | enable_static=yes | |
8599 | fi | |
8600 | done | |
8601 | IFS="$lt_save_ifs" | |
9c60689e | 8602 | ;; |
a243b558 JF |
8603 | esac |
8604 | else | |
8605 | enable_static=no | |
8606 | fi | |
9c60689e | 8607 | |
9c60689e | 8608 | |
9c60689e | 8609 | |
9c60689e | 8610 | |
9c60689e | 8611 | |
9c60689e | 8612 | |
9c60689e | 8613 | |
9c60689e | 8614 | |
9c60689e | 8615 | |
9c60689e | 8616 | |
a243b558 | 8617 | enable_dlopen=no |
9c60689e | 8618 | |
9c60689e | 8619 | |
a243b558 JF |
8620 | enable_win32_dll=no |
8621 | ||
8622 | ||
8623 | # Check whether --enable-shared was given. | |
8624 | if test "${enable_shared+set}" = set; then : | |
8625 | enableval=$enable_shared; p=${PACKAGE-default} | |
8626 | case $enableval in | |
8627 | yes) enable_shared=yes ;; | |
8628 | no) enable_shared=no ;; | |
9c60689e | 8629 | *) |
a243b558 JF |
8630 | enable_shared=no |
8631 | # Look at the argument we got. We use all the common list separators. | |
8632 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8633 | for pkg in $enableval; do | |
8634 | IFS="$lt_save_ifs" | |
8635 | if test "X$pkg" = "X$p"; then | |
8636 | enable_shared=yes | |
8637 | fi | |
8638 | done | |
8639 | IFS="$lt_save_ifs" | |
9c60689e DWT |
8640 | ;; |
8641 | esac | |
a243b558 JF |
8642 | else |
8643 | enable_shared=yes | |
8644 | fi | |
9c60689e | 8645 | |
9c60689e | 8646 | |
9c60689e | 8647 | |
9c60689e | 8648 | |
9c60689e | 8649 | |
9c60689e | 8650 | |
9c60689e | 8651 | |
9c60689e | 8652 | |
9c60689e | 8653 | |
9c60689e | 8654 | |
9c60689e | 8655 | |
a243b558 JF |
8656 | # Check whether --with-pic was given. |
8657 | if test "${with_pic+set}" = set; then : | |
8658 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8659 | case $withval in | |
8660 | yes|no) pic_mode=$withval ;; | |
8661 | *) | |
8662 | pic_mode=default | |
8663 | # Look at the argument we got. We use all the common list separators. | |
8664 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8665 | for lt_pkg in $withval; do | |
8666 | IFS="$lt_save_ifs" | |
8667 | if test "X$lt_pkg" = "X$lt_p"; then | |
8668 | pic_mode=yes | |
8669 | fi | |
8670 | done | |
8671 | IFS="$lt_save_ifs" | |
8672 | ;; | |
8673 | esac | |
8674 | else | |
8675 | pic_mode=default | |
9c60689e | 8676 | fi |
ee134472 | 8677 | |
ee134472 | 8678 | |
a243b558 | 8679 | test -z "$pic_mode" && pic_mode=default |
9c60689e | 8680 | |
9c60689e | 8681 | |
9c60689e | 8682 | |
9c60689e | 8683 | |
ee134472 | 8684 | |
ee134472 | 8685 | |
9c60689e | 8686 | |
a243b558 JF |
8687 | # Check whether --enable-fast-install was given. |
8688 | if test "${enable_fast_install+set}" = set; then : | |
8689 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8690 | case $enableval in | |
8691 | yes) enable_fast_install=yes ;; | |
8692 | no) enable_fast_install=no ;; | |
8693 | *) | |
8694 | enable_fast_install=no | |
8695 | # Look at the argument we got. We use all the common list separators. | |
8696 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8697 | for pkg in $enableval; do | |
8698 | IFS="$lt_save_ifs" | |
8699 | if test "X$pkg" = "X$p"; then | |
8700 | enable_fast_install=yes | |
9c60689e | 8701 | fi |
a243b558 JF |
8702 | done |
8703 | IFS="$lt_save_ifs" | |
9c60689e | 8704 | ;; |
a243b558 JF |
8705 | esac |
8706 | else | |
8707 | enable_fast_install=yes | |
8708 | fi | |
9c60689e | 8709 | |
9c60689e | 8710 | |
9c60689e | 8711 | |
9c60689e | 8712 | |
9c60689e DWT |
8713 | |
8714 | ||
53ba6704 | 8715 | |
9c60689e | 8716 | |
9c60689e | 8717 | |
9c60689e | 8718 | |
9c60689e | 8719 | |
a243b558 JF |
8720 | # This can be used to rebuild libtool when needed |
8721 | LIBTOOL_DEPS="$ltmain" | |
9c60689e | 8722 | |
a243b558 JF |
8723 | # Always use our own libtool. |
8724 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 8725 | |
9c60689e | 8726 | |
9c60689e | 8727 | |
9c60689e | 8728 | |
9c60689e | 8729 | |
ee134472 | 8730 | |
ee134472 | 8731 | |
ee134472 | 8732 | |
ee134472 | 8733 | |
9c60689e | 8734 | |
9c60689e | 8735 | |
9c60689e | 8736 | |
9c60689e | 8737 | |
9c60689e | 8738 | |
9c60689e | 8739 | |
9c60689e | 8740 | |
9c60689e | 8741 | |
9c60689e | 8742 | |
9c60689e | 8743 | |
9c60689e | 8744 | |
9c60689e | 8745 | |
9c60689e | 8746 | |
9c60689e | 8747 | |
9c60689e | 8748 | |
9c60689e | 8749 | |
9c60689e | 8750 | |
9c60689e | 8751 | |
9c60689e | 8752 | |
9c60689e | 8753 | |
9c60689e | 8754 | |
a243b558 | 8755 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
8756 | |
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | ||
8766 | ||
8767 | ||
8768 | ||
8769 | ||
a243b558 JF |
8770 | if test -n "${ZSH_VERSION+set}" ; then |
8771 | setopt NO_GLOB_SUBST | |
8772 | fi | |
9c60689e | 8773 | |
a243b558 JF |
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8775 | $as_echo_n "checking for objdir... " >&6; } | |
8776 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
8777 | $as_echo_n "(cached) " >&6 |
8778 | else | |
a243b558 JF |
8779 | rm -f .libs 2>/dev/null |
8780 | mkdir .libs 2>/dev/null | |
8781 | if test -d .libs; then | |
8782 | lt_cv_objdir=.libs | |
8783 | else | |
8784 | # MS-DOS does not allow filenames that begin with a dot. | |
8785 | lt_cv_objdir=_libs | |
ee134472 | 8786 | fi |
a243b558 JF |
8787 | rmdir .libs 2>/dev/null |
8788 | fi | |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8790 | $as_echo "$lt_cv_objdir" >&6; } | |
8791 | objdir=$lt_cv_objdir | |
9c60689e DWT |
8792 | |
8793 | ||
8794 | ||
8795 | ||
8796 | ||
a243b558 JF |
8797 | cat >>confdefs.h <<_ACEOF |
8798 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8799 | _ACEOF | |
9c60689e DWT |
8800 | |
8801 | ||
8802 | ||
8803 | ||
a243b558 JF |
8804 | case $host_os in |
8805 | aix3*) | |
8806 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8807 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8808 | # vanish in a puff of smoke. | |
8809 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8810 | COLLECT_NAMES= | |
8811 | export COLLECT_NAMES | |
8812 | fi | |
8813 | ;; | |
8814 | esac | |
9c60689e | 8815 | |
a243b558 JF |
8816 | # Global variables: |
8817 | ofile=libtool | |
8818 | can_build_shared=yes | |
9c60689e | 8819 | |
a243b558 JF |
8820 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8821 | # which needs '.lib'). | |
8822 | libext=a | |
9c60689e | 8823 | |
a243b558 | 8824 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
9c60689e | 8825 | |
a243b558 JF |
8826 | old_CC="$CC" |
8827 | old_CFLAGS="$CFLAGS" | |
9c60689e | 8828 | |
a243b558 JF |
8829 | # Set sane defaults for various variables |
8830 | test -z "$CC" && CC=cc | |
8831 | test -z "$LTCC" && LTCC=$CC | |
8832 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8833 | test -z "$LD" && LD=ld | |
8834 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 8835 | |
a243b558 JF |
8836 | for cc_temp in $compiler""; do |
8837 | case $cc_temp in | |
8838 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8839 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8840 | \-*) ;; | |
8841 | *) break;; | |
8842 | esac | |
8843 | done | |
8844 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9c60689e DWT |
8845 | |
8846 | ||
a243b558 JF |
8847 | # Only perform the check for file, if the check method requires it |
8848 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8849 | case $deplibs_check_method in | |
8850 | file_magic*) | |
8851 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8853 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8854 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8855 | $as_echo_n "(cached) " >&6 | |
8856 | else | |
8857 | case $MAGIC_CMD in | |
8858 | [\\/*] | ?:[\\/]*) | |
8859 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8860 | ;; | |
8861 | *) | |
8862 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8863 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8864 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8865 | for ac_dir in $ac_dummy; do | |
8866 | IFS="$lt_save_ifs" | |
8867 | test -z "$ac_dir" && ac_dir=. | |
8868 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8869 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8870 | if test -n "$file_magic_test_file"; then | |
8871 | case $deplibs_check_method in | |
8872 | "file_magic "*) | |
8873 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8874 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8875 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8876 | $EGREP "$file_magic_regex" > /dev/null; then | |
8877 | : | |
8878 | else | |
8879 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8880 | |
a243b558 JF |
8881 | *** Warning: the command libtool uses to detect shared libraries, |
8882 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8883 | *** The result is that libtool may fail to recognize shared libraries | |
8884 | *** as such. This will affect the creation of libtool libraries that | |
8885 | *** depend on shared libraries, but programs linked with such libtool | |
8886 | *** libraries will work regardless of this problem. Nevertheless, you | |
8887 | *** may want to report the problem to your system manager and/or to | |
8888 | *** bug-libtool@gnu.org | |
9c60689e | 8889 | |
a243b558 JF |
8890 | _LT_EOF |
8891 | fi ;; | |
8892 | esac | |
8893 | fi | |
8894 | break | |
8895 | fi | |
8896 | done | |
8897 | IFS="$lt_save_ifs" | |
8898 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8899 | ;; | |
8900 | esac | |
8901 | fi | |
9c60689e | 8902 | |
a243b558 JF |
8903 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8904 | if test -n "$MAGIC_CMD"; then | |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8906 | $as_echo "$MAGIC_CMD" >&6; } | |
8907 | else | |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8909 | $as_echo "no" >&6; } | |
8910 | fi | |
9c60689e DWT |
8911 | |
8912 | ||
8913 | ||
8914 | ||
8915 | ||
a243b558 JF |
8916 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8917 | if test -n "$ac_tool_prefix"; then | |
8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8919 | $as_echo_n "checking for file... " >&6; } | |
8920 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8921 | $as_echo_n "(cached) " >&6 | |
8922 | else | |
8923 | case $MAGIC_CMD in | |
8924 | [\\/*] | ?:[\\/]*) | |
8925 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8926 | ;; | |
8927 | *) | |
8928 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8929 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8930 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8931 | for ac_dir in $ac_dummy; do | |
8932 | IFS="$lt_save_ifs" | |
8933 | test -z "$ac_dir" && ac_dir=. | |
8934 | if test -f $ac_dir/file; then | |
8935 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8936 | if test -n "$file_magic_test_file"; then | |
8937 | case $deplibs_check_method in | |
8938 | "file_magic "*) | |
8939 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8940 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8941 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8942 | $EGREP "$file_magic_regex" > /dev/null; then | |
8943 | : | |
8944 | else | |
8945 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8946 | |
a243b558 JF |
8947 | *** Warning: the command libtool uses to detect shared libraries, |
8948 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8949 | *** The result is that libtool may fail to recognize shared libraries | |
8950 | *** as such. This will affect the creation of libtool libraries that | |
8951 | *** depend on shared libraries, but programs linked with such libtool | |
8952 | *** libraries will work regardless of this problem. Nevertheless, you | |
8953 | *** may want to report the problem to your system manager and/or to | |
8954 | *** bug-libtool@gnu.org | |
9c60689e | 8955 | |
a243b558 JF |
8956 | _LT_EOF |
8957 | fi ;; | |
8958 | esac | |
8959 | fi | |
8960 | break | |
8961 | fi | |
8962 | done | |
8963 | IFS="$lt_save_ifs" | |
8964 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8965 | ;; | |
8966 | esac | |
8967 | fi | |
9c60689e | 8968 | |
a243b558 JF |
8969 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8970 | if test -n "$MAGIC_CMD"; then | |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8972 | $as_echo "$MAGIC_CMD" >&6; } | |
8973 | else | |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8975 | $as_echo "no" >&6; } | |
8976 | fi | |
9c60689e DWT |
8977 | |
8978 | ||
a243b558 JF |
8979 | else |
8980 | MAGIC_CMD=: | |
8981 | fi | |
8982 | fi | |
9c60689e | 8983 | |
a243b558 JF |
8984 | fi |
8985 | ;; | |
8986 | esac | |
9c60689e | 8987 | |
a243b558 | 8988 | # Use C for the default configuration in the libtool script |
9c60689e | 8989 | |
a243b558 JF |
8990 | lt_save_CC="$CC" |
8991 | ac_ext=c | |
8992 | ac_cpp='$CPP $CPPFLAGS' | |
8993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8996 | |
8997 | ||
a243b558 JF |
8998 | # Source file extension for C test sources. |
8999 | ac_ext=c | |
9c60689e | 9000 | |
a243b558 JF |
9001 | # Object file extension for compiled C test sources. |
9002 | objext=o | |
9003 | objext=$objext | |
9c60689e | 9004 | |
a243b558 JF |
9005 | # Code to be used in simple compile tests |
9006 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9007 | |
a243b558 JF |
9008 | # Code to be used in simple link tests |
9009 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9010 | |
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | ||
a243b558 JF |
9017 | # If no C compiler was specified, use CC. |
9018 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9019 | |
a243b558 JF |
9020 | # If no C compiler flags were specified, use CFLAGS. |
9021 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9022 | |
a243b558 JF |
9023 | # Allow CC to be a program name with arguments. |
9024 | compiler=$CC | |
9c60689e | 9025 | |
a243b558 JF |
9026 | # Save the default compiler, since it gets overwritten when the other |
9027 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9028 | compiler_DEFAULT=$CC | |
9c60689e | 9029 | |
a243b558 JF |
9030 | # save warnings/boilerplate of simple test code |
9031 | ac_outfile=conftest.$ac_objext | |
9032 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9033 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9034 | _lt_compiler_boilerplate=`cat conftest.err` | |
9035 | $RM -r conftest* | |
9c60689e | 9036 | |
a243b558 JF |
9037 | ac_outfile=conftest.$ac_objext |
9038 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9039 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9040 | _lt_linker_boilerplate=`cat conftest.err` | |
9041 | $RM -r conftest* | |
9c60689e DWT |
9042 | |
9043 | ||
a243b558 JF |
9044 | ## CAVEAT EMPTOR: |
9045 | ## There is no encapsulation within the following macros, do not change | |
9046 | ## the running order or otherwise move them around unless you know exactly | |
9047 | ## what you are doing... | |
9048 | if test -n "$compiler"; then | |
9c60689e | 9049 | |
a243b558 | 9050 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9051 | |
a243b558 JF |
9052 | if test "$GCC" = yes; then |
9053 | case $cc_basename in | |
9054 | nvcc*) | |
9055 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9056 | *) | |
9057 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9058 | esac | |
9c60689e | 9059 | |
a243b558 JF |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9061 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9062 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9063 | $as_echo_n "(cached) " >&6 | |
9064 | else | |
9065 | lt_cv_prog_compiler_rtti_exceptions=no | |
9066 | ac_outfile=conftest.$ac_objext | |
9067 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9068 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9069 | # Insert the option either (1) after the last *FLAGS variable, or | |
9070 | # (2) before a word containing "conftest.", or (3) at the end. | |
9071 | # Note that $ac_compile itself does not contain backslashes and begins | |
9072 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9073 | # The option is referenced via a variable to avoid confusing sed. | |
9074 | lt_compile=`echo "$ac_compile" | $SED \ | |
9075 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9076 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9077 | -e 's:$: $lt_compiler_flag:'` | |
9078 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9079 | (eval "$lt_compile" 2>conftest.err) | |
9080 | ac_status=$? | |
9081 | cat conftest.err >&5 | |
9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9083 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9084 | # The compiler can only warn and ignore the option if not recognized | |
9085 | # So say no if there are warnings other than the usual output. | |
9086 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9087 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9088 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9089 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9090 | fi | |
9091 | fi | |
9092 | $RM -r conftest* | |
9c60689e | 9093 | |
a243b558 JF |
9094 | fi |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9096 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9097 | |
a243b558 JF |
9098 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9099 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9100 | else | |
9101 | : | |
9102 | fi | |
9c60689e | 9103 | |
a243b558 | 9104 | fi |
9c60689e DWT |
9105 | |
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
a243b558 JF |
9111 | lt_prog_compiler_wl= |
9112 | lt_prog_compiler_pic= | |
9113 | lt_prog_compiler_static= | |
9c60689e DWT |
9114 | |
9115 | ||
a243b558 JF |
9116 | if test "$GCC" = yes; then |
9117 | lt_prog_compiler_wl='-Wl,' | |
9118 | lt_prog_compiler_static='-static' | |
9c60689e | 9119 | |
a243b558 JF |
9120 | case $host_os in |
9121 | aix*) | |
9122 | # All AIX code is PIC. | |
9123 | if test "$host_cpu" = ia64; then | |
9124 | # AIX 5 now supports IA64 processor | |
9125 | lt_prog_compiler_static='-Bstatic' | |
9126 | fi | |
9127 | ;; | |
9c60689e | 9128 | |
a243b558 JF |
9129 | amigaos*) |
9130 | case $host_cpu in | |
9131 | powerpc) | |
9132 | # see comment about AmigaOS4 .so support | |
9133 | lt_prog_compiler_pic='-fPIC' | |
9134 | ;; | |
9135 | m68k) | |
9136 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9137 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9138 | # like `-m68040'. | |
9139 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9140 | ;; | |
9141 | esac | |
9142 | ;; | |
9c60689e | 9143 | |
a243b558 JF |
9144 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9145 | # PIC is the default for these OSes. | |
9146 | ;; | |
9c60689e | 9147 | |
a243b558 JF |
9148 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9149 | # This hack is so that the source file can tell whether it is being | |
9150 | # built for inclusion in a dll (and should export symbols for example). | |
9151 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9152 | # (--disable-auto-import) libraries | |
9153 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9154 | ;; | |
9c60689e | 9155 | |
a243b558 JF |
9156 | darwin* | rhapsody*) |
9157 | # PIC is the default on this platform | |
9158 | # Common symbols not allowed in MH_DYLIB files | |
9159 | lt_prog_compiler_pic='-fno-common' | |
9160 | ;; | |
9c60689e | 9161 | |
a243b558 JF |
9162 | haiku*) |
9163 | # PIC is the default for Haiku. | |
9164 | # The "-static" flag exists, but is broken. | |
9165 | lt_prog_compiler_static= | |
9166 | ;; | |
9c60689e | 9167 | |
a243b558 JF |
9168 | hpux*) |
9169 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9170 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9171 | # sets the default TLS model and affects inlining. | |
9172 | case $host_cpu in | |
9173 | hppa*64*) | |
9174 | # +Z the default | |
9175 | ;; | |
9176 | *) | |
9177 | lt_prog_compiler_pic='-fPIC' | |
9178 | ;; | |
9179 | esac | |
9180 | ;; | |
9c60689e | 9181 | |
a243b558 JF |
9182 | interix[3-9]*) |
9183 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9184 | # Instead, we relocate shared libraries at runtime. | |
9185 | ;; | |
9c60689e | 9186 | |
a243b558 JF |
9187 | msdosdjgpp*) |
9188 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9189 | # on systems that don't support them. | |
9190 | lt_prog_compiler_can_build_shared=no | |
9191 | enable_shared=no | |
9192 | ;; | |
9c60689e | 9193 | |
a243b558 JF |
9194 | *nto* | *qnx*) |
9195 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9196 | # it will coredump. | |
9197 | lt_prog_compiler_pic='-fPIC -shared' | |
9198 | ;; | |
9c60689e | 9199 | |
a243b558 JF |
9200 | sysv4*MP*) |
9201 | if test -d /usr/nec; then | |
9202 | lt_prog_compiler_pic=-Kconform_pic | |
9203 | fi | |
9204 | ;; | |
9c60689e | 9205 | |
a243b558 JF |
9206 | *) |
9207 | lt_prog_compiler_pic='-fPIC' | |
9208 | ;; | |
9209 | esac | |
9c60689e | 9210 | |
a243b558 JF |
9211 | case $cc_basename in |
9212 | nvcc*) # Cuda Compiler Driver 2.2 | |
9213 | lt_prog_compiler_wl='-Xlinker ' | |
9214 | if test -n "$lt_prog_compiler_pic"; then | |
9215 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9216 | fi | |
9217 | ;; | |
9218 | esac | |
9219 | else | |
9220 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9221 | case $host_os in | |
9222 | aix*) | |
9223 | lt_prog_compiler_wl='-Wl,' | |
9224 | if test "$host_cpu" = ia64; then | |
9225 | # AIX 5 now supports IA64 processor | |
9226 | lt_prog_compiler_static='-Bstatic' | |
9227 | else | |
9228 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9229 | fi | |
9230 | ;; | |
9c60689e | 9231 | |
a243b558 JF |
9232 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9233 | # This hack is so that the source file can tell whether it is being | |
9234 | # built for inclusion in a dll (and should export symbols for example). | |
9235 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9236 | ;; | |
9c60689e | 9237 | |
a243b558 JF |
9238 | hpux9* | hpux10* | hpux11*) |
9239 | lt_prog_compiler_wl='-Wl,' | |
9240 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9241 | # not for PA HP-UX. | |
9242 | case $host_cpu in | |
9243 | hppa*64*|ia64*) | |
9244 | # +Z the default | |
9245 | ;; | |
9246 | *) | |
9247 | lt_prog_compiler_pic='+Z' | |
9248 | ;; | |
9249 | esac | |
9250 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9251 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9252 | ;; | |
9c60689e | 9253 | |
a243b558 JF |
9254 | irix5* | irix6* | nonstopux*) |
9255 | lt_prog_compiler_wl='-Wl,' | |
9256 | # PIC (with -KPIC) is the default. | |
9257 | lt_prog_compiler_static='-non_shared' | |
9258 | ;; | |
9c60689e | 9259 | |
a243b558 JF |
9260 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9261 | case $cc_basename in | |
9262 | # old Intel for x86_64 which still supported -KPIC. | |
9263 | ecc*) | |
9264 | lt_prog_compiler_wl='-Wl,' | |
9265 | lt_prog_compiler_pic='-KPIC' | |
9266 | lt_prog_compiler_static='-static' | |
9267 | ;; | |
9268 | # icc used to be incompatible with GCC. | |
9269 | # ICC 10 doesn't accept -KPIC any more. | |
9270 | icc* | ifort*) | |
9271 | lt_prog_compiler_wl='-Wl,' | |
9272 | lt_prog_compiler_pic='-fPIC' | |
9273 | lt_prog_compiler_static='-static' | |
9274 | ;; | |
9275 | # Lahey Fortran 8.1. | |
9276 | lf95*) | |
9277 | lt_prog_compiler_wl='-Wl,' | |
9278 | lt_prog_compiler_pic='--shared' | |
9279 | lt_prog_compiler_static='--static' | |
9280 | ;; | |
9281 | nagfor*) | |
9282 | # NAG Fortran compiler | |
9283 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9284 | lt_prog_compiler_pic='-PIC' | |
9285 | lt_prog_compiler_static='-Bstatic' | |
9286 | ;; | |
9287 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9288 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9289 | # which looks to be a dead project) | |
9290 | lt_prog_compiler_wl='-Wl,' | |
9291 | lt_prog_compiler_pic='-fpic' | |
9292 | lt_prog_compiler_static='-Bstatic' | |
9293 | ;; | |
9294 | ccc*) | |
9295 | lt_prog_compiler_wl='-Wl,' | |
9296 | # All Alpha code is PIC. | |
9297 | lt_prog_compiler_static='-non_shared' | |
9298 | ;; | |
9299 | xl* | bgxl* | bgf* | mpixl*) | |
9300 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9301 | lt_prog_compiler_wl='-Wl,' | |
9302 | lt_prog_compiler_pic='-qpic' | |
9303 | lt_prog_compiler_static='-qstaticlink' | |
9304 | ;; | |
9305 | *) | |
9306 | case `$CC -V 2>&1 | sed 5q` in | |
9307 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9308 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9309 | lt_prog_compiler_pic='-KPIC' | |
9310 | lt_prog_compiler_static='-Bstatic' | |
9311 | lt_prog_compiler_wl='' | |
9312 | ;; | |
9313 | *Sun\ F* | *Sun*Fortran*) | |
9314 | lt_prog_compiler_pic='-KPIC' | |
9315 | lt_prog_compiler_static='-Bstatic' | |
9316 | lt_prog_compiler_wl='-Qoption ld ' | |
9317 | ;; | |
9318 | *Sun\ C*) | |
9319 | # Sun C 5.9 | |
9320 | lt_prog_compiler_pic='-KPIC' | |
9321 | lt_prog_compiler_static='-Bstatic' | |
9322 | lt_prog_compiler_wl='-Wl,' | |
9323 | ;; | |
9324 | *Intel*\ [CF]*Compiler*) | |
9325 | lt_prog_compiler_wl='-Wl,' | |
9326 | lt_prog_compiler_pic='-fPIC' | |
9327 | lt_prog_compiler_static='-static' | |
9328 | ;; | |
9329 | *Portland\ Group*) | |
9330 | lt_prog_compiler_wl='-Wl,' | |
9331 | lt_prog_compiler_pic='-fpic' | |
9332 | lt_prog_compiler_static='-Bstatic' | |
9333 | ;; | |
9334 | esac | |
9335 | ;; | |
9336 | esac | |
9337 | ;; | |
9c60689e | 9338 | |
a243b558 JF |
9339 | newsos6) |
9340 | lt_prog_compiler_pic='-KPIC' | |
9341 | lt_prog_compiler_static='-Bstatic' | |
9342 | ;; | |
9c60689e | 9343 | |
a243b558 JF |
9344 | *nto* | *qnx*) |
9345 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9346 | # it will coredump. | |
9347 | lt_prog_compiler_pic='-fPIC -shared' | |
9348 | ;; | |
9c60689e | 9349 | |
a243b558 JF |
9350 | osf3* | osf4* | osf5*) |
9351 | lt_prog_compiler_wl='-Wl,' | |
9352 | # All OSF/1 code is PIC. | |
9353 | lt_prog_compiler_static='-non_shared' | |
9354 | ;; | |
9c60689e | 9355 | |
a243b558 JF |
9356 | rdos*) |
9357 | lt_prog_compiler_static='-non_shared' | |
9358 | ;; | |
9c60689e | 9359 | |
a243b558 JF |
9360 | solaris*) |
9361 | lt_prog_compiler_pic='-KPIC' | |
9362 | lt_prog_compiler_static='-Bstatic' | |
9363 | case $cc_basename in | |
9364 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9365 | lt_prog_compiler_wl='-Qoption ld ';; | |
9366 | *) | |
9367 | lt_prog_compiler_wl='-Wl,';; | |
9368 | esac | |
9369 | ;; | |
9c60689e | 9370 | |
a243b558 JF |
9371 | sunos4*) |
9372 | lt_prog_compiler_wl='-Qoption ld ' | |
9373 | lt_prog_compiler_pic='-PIC' | |
9374 | lt_prog_compiler_static='-Bstatic' | |
9375 | ;; | |
9c60689e | 9376 | |
a243b558 JF |
9377 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9378 | lt_prog_compiler_wl='-Wl,' | |
9379 | lt_prog_compiler_pic='-KPIC' | |
9380 | lt_prog_compiler_static='-Bstatic' | |
9381 | ;; | |
9c60689e | 9382 | |
a243b558 JF |
9383 | sysv4*MP*) |
9384 | if test -d /usr/nec ;then | |
9385 | lt_prog_compiler_pic='-Kconform_pic' | |
9386 | lt_prog_compiler_static='-Bstatic' | |
9387 | fi | |
9388 | ;; | |
9c60689e | 9389 | |
a243b558 JF |
9390 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9391 | lt_prog_compiler_wl='-Wl,' | |
9392 | lt_prog_compiler_pic='-KPIC' | |
9393 | lt_prog_compiler_static='-Bstatic' | |
9394 | ;; | |
9c60689e | 9395 | |
a243b558 JF |
9396 | unicos*) |
9397 | lt_prog_compiler_wl='-Wl,' | |
9398 | lt_prog_compiler_can_build_shared=no | |
9399 | ;; | |
9c60689e | 9400 | |
a243b558 JF |
9401 | uts4*) |
9402 | lt_prog_compiler_pic='-pic' | |
9403 | lt_prog_compiler_static='-Bstatic' | |
9404 | ;; | |
9c60689e | 9405 | |
a243b558 JF |
9406 | *) |
9407 | lt_prog_compiler_can_build_shared=no | |
9408 | ;; | |
9409 | esac | |
9410 | fi | |
9c60689e | 9411 | |
a243b558 JF |
9412 | case $host_os in |
9413 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9414 | *djgpp*) | |
9415 | lt_prog_compiler_pic= | |
9416 | ;; | |
9417 | *) | |
9418 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9419 | ;; | |
9420 | esac | |
9c60689e | 9421 | |
a243b558 JF |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9423 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9424 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9425 | $as_echo_n "(cached) " >&6 | |
9426 | else | |
9427 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9428 | fi | |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9430 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9431 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9432 | |
a243b558 JF |
9433 | # |
9434 | # Check to make sure the PIC flag actually works. | |
9435 | # | |
9436 | if test -n "$lt_prog_compiler_pic"; then | |
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9438 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9439 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9440 | $as_echo_n "(cached) " >&6 | |
9441 | else | |
9442 | lt_cv_prog_compiler_pic_works=no | |
9443 | ac_outfile=conftest.$ac_objext | |
9444 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9445 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9446 | # Insert the option either (1) after the last *FLAGS variable, or | |
9447 | # (2) before a word containing "conftest.", or (3) at the end. | |
9448 | # Note that $ac_compile itself does not contain backslashes and begins | |
9449 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9450 | # The option is referenced via a variable to avoid confusing sed. | |
9451 | lt_compile=`echo "$ac_compile" | $SED \ | |
9452 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9453 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9454 | -e 's:$: $lt_compiler_flag:'` | |
9455 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9456 | (eval "$lt_compile" 2>conftest.err) | |
9457 | ac_status=$? | |
9458 | cat conftest.err >&5 | |
9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9460 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9461 | # The compiler can only warn and ignore the option if not recognized | |
9462 | # So say no if there are warnings other than the usual output. | |
9463 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9464 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9465 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9466 | lt_cv_prog_compiler_pic_works=yes | |
9467 | fi | |
9468 | fi | |
9469 | $RM -r conftest* | |
9c60689e | 9470 | |
a243b558 JF |
9471 | fi |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9473 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9474 | |
a243b558 JF |
9475 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9476 | case $lt_prog_compiler_pic in | |
9477 | "" | " "*) ;; | |
9478 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9479 | esac | |
9480 | else | |
9481 | lt_prog_compiler_pic= | |
9482 | lt_prog_compiler_can_build_shared=no | |
9483 | fi | |
9c60689e | 9484 | |
a243b558 | 9485 | fi |
9c60689e DWT |
9486 | |
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9c60689e DWT |
9492 | |
9493 | ||
9494 | ||
9495 | ||
9496 | ||
a243b558 JF |
9497 | # |
9498 | # Check to make sure the static flag actually works. | |
9499 | # | |
9500 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9502 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9503 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9504 | $as_echo_n "(cached) " >&6 | |
9505 | else | |
9506 | lt_cv_prog_compiler_static_works=no | |
9507 | save_LDFLAGS="$LDFLAGS" | |
9508 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9509 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9510 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9511 | # The linker can only warn and ignore the option if not recognized | |
9512 | # So say no if there are warnings | |
9513 | if test -s conftest.err; then | |
9514 | # Append any errors to the config.log. | |
9515 | cat conftest.err 1>&5 | |
9516 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9517 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9518 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9519 | lt_cv_prog_compiler_static_works=yes | |
9520 | fi | |
9521 | else | |
9522 | lt_cv_prog_compiler_static_works=yes | |
9523 | fi | |
9524 | fi | |
9525 | $RM -r conftest* | |
9526 | LDFLAGS="$save_LDFLAGS" | |
9c60689e | 9527 | |
a243b558 JF |
9528 | fi |
9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9530 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9531 | |
a243b558 JF |
9532 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9533 | : | |
9c60689e | 9534 | else |
a243b558 | 9535 | lt_prog_compiler_static= |
9c60689e | 9536 | fi |
9c60689e | 9537 | |
9c60689e | 9538 | |
9c60689e | 9539 | |
9c60689e | 9540 | |
9c60689e | 9541 | |
9c60689e | 9542 | |
9c60689e | 9543 | |
a243b558 JF |
9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9545 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9546 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9547 | $as_echo_n "(cached) " >&6 | |
9548 | else | |
9549 | lt_cv_prog_compiler_c_o=no | |
9550 | $RM -r conftest 2>/dev/null | |
9551 | mkdir conftest | |
9552 | cd conftest | |
9553 | mkdir out | |
9554 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9555 | |
a243b558 JF |
9556 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9557 | # Insert the option either (1) after the last *FLAGS variable, or | |
9558 | # (2) before a word containing "conftest.", or (3) at the end. | |
9559 | # Note that $ac_compile itself does not contain backslashes and begins | |
9560 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9561 | lt_compile=`echo "$ac_compile" | $SED \ | |
9562 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9563 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9564 | -e 's:$: $lt_compiler_flag:'` | |
9565 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9566 | (eval "$lt_compile" 2>out/conftest.err) | |
9567 | ac_status=$? | |
9568 | cat out/conftest.err >&5 | |
9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9570 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9571 | then | |
9572 | # The compiler can only warn and ignore the option if not recognized | |
9573 | # So say no if there are warnings | |
9574 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9575 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9576 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9577 | lt_cv_prog_compiler_c_o=yes | |
9578 | fi | |
9579 | fi | |
9580 | chmod u+w . 2>&5 | |
9581 | $RM -r conftest* | |
9582 | # SGI C++ compiler will create directory out/ii_files/ for | |
9583 | # template instantiation | |
9584 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9585 | $RM out/* && rmdir out | |
9586 | cd .. | |
9587 | $RM -r conftest | |
9588 | $RM -r conftest* | |
9c60689e | 9589 | |
a243b558 JF |
9590 | fi |
9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9592 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9593 | |
ee134472 | 9594 | |
ee134472 | 9595 | |
ee134472 | 9596 | |
ee134472 | 9597 | |
9c60689e | 9598 | |
a243b558 JF |
9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9600 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9601 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9602 | $as_echo_n "(cached) " >&6 | |
9603 | else | |
9604 | lt_cv_prog_compiler_c_o=no | |
9605 | $RM -r conftest 2>/dev/null | |
9606 | mkdir conftest | |
9607 | cd conftest | |
9608 | mkdir out | |
9609 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9610 | |
a243b558 JF |
9611 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9612 | # Insert the option either (1) after the last *FLAGS variable, or | |
9613 | # (2) before a word containing "conftest.", or (3) at the end. | |
9614 | # Note that $ac_compile itself does not contain backslashes and begins | |
9615 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9616 | lt_compile=`echo "$ac_compile" | $SED \ | |
9617 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9618 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9619 | -e 's:$: $lt_compiler_flag:'` | |
9620 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9621 | (eval "$lt_compile" 2>out/conftest.err) | |
9622 | ac_status=$? | |
9623 | cat out/conftest.err >&5 | |
9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9625 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9626 | then | |
9627 | # The compiler can only warn and ignore the option if not recognized | |
9628 | # So say no if there are warnings | |
9629 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9630 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9631 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9632 | lt_cv_prog_compiler_c_o=yes | |
9633 | fi | |
9634 | fi | |
9635 | chmod u+w . 2>&5 | |
9636 | $RM -r conftest* | |
9637 | # SGI C++ compiler will create directory out/ii_files/ for | |
9638 | # template instantiation | |
9639 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9640 | $RM out/* && rmdir out | |
9641 | cd .. | |
9642 | $RM -r conftest | |
9643 | $RM -r conftest* | |
9c60689e | 9644 | |
a243b558 JF |
9645 | fi |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9647 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9648 | |
9c60689e | 9649 | |
a243b558 JF |
9650 | |
9651 | ||
9652 | hard_links="nottested" | |
9653 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9654 | # do not overwrite the value of need_locks provided by the user | |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9656 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9657 | hard_links=yes | |
9658 | $RM -r conftest* | |
9659 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9660 | touch conftest.a | |
9661 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9662 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9664 | $as_echo "$hard_links" >&6; } | |
9665 | if test "$hard_links" = no; then | |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9667 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9668 | need_locks=warn | |
9c60689e | 9669 | fi |
a243b558 JF |
9670 | else |
9671 | need_locks=no | |
9672 | fi | |
9c60689e | 9673 | |
ee134472 | 9674 | |
9c60689e | 9675 | |
9c60689e | 9676 | |
9c60689e | 9677 | |
a243b558 JF |
9678 | |
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9680 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9681 | ||
9682 | runpath_var= | |
9683 | allow_undefined_flag= | |
9684 | always_export_symbols=no | |
9685 | archive_cmds= | |
9686 | archive_expsym_cmds= | |
9687 | compiler_needs_object=no | |
9688 | enable_shared_with_static_runtimes=no | |
9689 | export_dynamic_flag_spec= | |
9690 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9691 | hardcode_automatic=no | |
9692 | hardcode_direct=no | |
9693 | hardcode_direct_absolute=no | |
9694 | hardcode_libdir_flag_spec= | |
9695 | hardcode_libdir_separator= | |
9696 | hardcode_minus_L=no | |
9697 | hardcode_shlibpath_var=unsupported | |
9698 | inherit_rpath=no | |
9699 | link_all_deplibs=unknown | |
9700 | module_cmds= | |
9701 | module_expsym_cmds= | |
9702 | old_archive_from_new_cmds= | |
9703 | old_archive_from_expsyms_cmds= | |
9704 | thread_safe_flag_spec= | |
9705 | whole_archive_flag_spec= | |
9706 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9707 | # included in the symbol list | |
9708 | include_expsyms= | |
9709 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9710 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9711 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9712 | # as well as any symbol that contains `d'. | |
9713 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9714 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9715 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9716 | # the symbol is explicitly referenced. Since portable code cannot | |
9717 | # rely on this symbol name, it's probably fine to never include it in | |
9718 | # preloaded symbol tables. | |
9719 | # Exclude shared library initialization/finalization symbols. | |
9720 | extract_expsyms_cmds= | |
9721 | ||
9c60689e | 9722 | case $host_os in |
a243b558 JF |
9723 | cygwin* | mingw* | pw32* | cegcc*) |
9724 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9725 | # When not using gcc, we currently assume that we are using | |
9726 | # Microsoft Visual C++. | |
9727 | if test "$GCC" != yes; then | |
9728 | with_gnu_ld=no | |
9729 | fi | |
9c60689e | 9730 | ;; |
a243b558 JF |
9731 | interix*) |
9732 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9733 | with_gnu_ld=yes | |
9734 | ;; | |
9735 | openbsd*) | |
9736 | with_gnu_ld=no | |
9c60689e DWT |
9737 | ;; |
9738 | esac | |
9c60689e | 9739 | |
a243b558 | 9740 | ld_shlibs=yes |
ee134472 | 9741 | |
a243b558 JF |
9742 | # On some targets, GNU ld is compatible enough with the native linker |
9743 | # that we're better off using the native interface for both. | |
9744 | lt_use_gnu_ld_interface=no | |
9745 | if test "$with_gnu_ld" = yes; then | |
9746 | case $host_os in | |
9747 | aix*) | |
9748 | # The AIX port of GNU ld has always aspired to compatibility | |
9749 | # with the native linker. However, as the warning in the GNU ld | |
9750 | # block says, versions before 2.19.5* couldn't really create working | |
9751 | # shared libraries, regardless of the interface used. | |
9752 | case `$LD -v 2>&1` in | |
9753 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9754 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9755 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9756 | *) | |
9757 | lt_use_gnu_ld_interface=yes | |
9758 | ;; | |
9759 | esac | |
9760 | ;; | |
9761 | *) | |
9762 | lt_use_gnu_ld_interface=yes | |
9763 | ;; | |
9764 | esac | |
9765 | fi | |
9c60689e | 9766 | |
a243b558 JF |
9767 | if test "$lt_use_gnu_ld_interface" = yes; then |
9768 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9769 | wlarc='${wl}' | |
9c60689e | 9770 | |
a243b558 JF |
9771 | # Set some defaults for GNU ld with shared library support. These |
9772 | # are reset later if shared libraries are not supported. Putting them | |
9773 | # here allows them to be overridden if necessary. | |
9774 | runpath_var=LD_RUN_PATH | |
9775 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9776 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9777 | # ancient GNU ld didn't support --whole-archive et. al. | |
9778 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9779 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9780 | else | |
9781 | whole_archive_flag_spec= | |
9782 | fi | |
9783 | supports_anon_versioning=no | |
9784 | case `$LD -v 2>&1` in | |
9785 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9786 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9787 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9788 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9789 | *\ 2.11.*) ;; # other 2.11 versions | |
9790 | *) supports_anon_versioning=yes ;; | |
9791 | esac | |
ee134472 | 9792 | |
a243b558 JF |
9793 | # See if GNU ld supports shared libraries. |
9794 | case $host_os in | |
9795 | aix[3-9]*) | |
9796 | # On AIX/PPC, the GNU linker is very broken | |
9797 | if test "$host_cpu" != ia64; then | |
9798 | ld_shlibs=no | |
9799 | cat <<_LT_EOF 1>&2 | |
ee134472 | 9800 | |
a243b558 JF |
9801 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9802 | *** to be unable to reliably create shared libraries on AIX. | |
9803 | *** Therefore, libtool is disabling shared libraries support. If you | |
9804 | *** really care for shared libraries, you may want to install binutils | |
9805 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9806 | *** You will then need to restart the configuration process. | |
9c60689e | 9807 | |
a243b558 JF |
9808 | _LT_EOF |
9809 | fi | |
9810 | ;; | |
9c60689e | 9811 | |
a243b558 JF |
9812 | amigaos*) |
9813 | case $host_cpu in | |
9814 | powerpc) | |
9815 | # see comment about AmigaOS4 .so support | |
9816 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9817 | archive_expsym_cmds='' | |
9818 | ;; | |
9819 | m68k) | |
9820 | 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)' | |
9821 | hardcode_libdir_flag_spec='-L$libdir' | |
9822 | hardcode_minus_L=yes | |
9823 | ;; | |
9824 | esac | |
9825 | ;; | |
9c60689e | 9826 | |
a243b558 JF |
9827 | beos*) |
9828 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9829 | allow_undefined_flag=unsupported | |
9830 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9831 | # support --undefined. This deserves some investigation. FIXME | |
9832 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9833 | else | |
9834 | ld_shlibs=no | |
9835 | fi | |
9836 | ;; | |
9c60689e | 9837 | |
a243b558 JF |
9838 | cygwin* | mingw* | pw32* | cegcc*) |
9839 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9840 | # as there is no search path for DLLs. | |
9841 | hardcode_libdir_flag_spec='-L$libdir' | |
9842 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9843 | allow_undefined_flag=unsupported | |
9844 | always_export_symbols=no | |
9845 | enable_shared_with_static_runtimes=yes | |
9846 | 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' | |
9847 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 9848 | |
a243b558 JF |
9849 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9850 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9851 | # If the export-symbols file already is a .def file (1st line | |
9852 | # is EXPORTS), use it as is; otherwise, prepend... | |
9853 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9854 | cp $export_symbols $output_objdir/$soname.def; | |
9855 | else | |
9856 | echo EXPORTS > $output_objdir/$soname.def; | |
9857 | cat $export_symbols >> $output_objdir/$soname.def; | |
9858 | fi~ | |
9859 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9860 | else | |
9861 | ld_shlibs=no | |
9862 | fi | |
9863 | ;; | |
9c60689e | 9864 | |
a243b558 JF |
9865 | haiku*) |
9866 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9867 | link_all_deplibs=yes | |
9868 | ;; | |
9c60689e | 9869 | |
a243b558 JF |
9870 | interix[3-9]*) |
9871 | hardcode_direct=no | |
9872 | hardcode_shlibpath_var=no | |
9873 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9874 | export_dynamic_flag_spec='${wl}-E' | |
9875 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9876 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9877 | # default) and relocated if they conflict, which is a slow very memory | |
9878 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9879 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9880 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9881 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9882 | 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' | |
9883 | ;; | |
9c60689e | 9884 | |
a243b558 JF |
9885 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9886 | tmp_diet=no | |
9887 | if test "$host_os" = linux-dietlibc; then | |
9888 | case $cc_basename in | |
9889 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9890 | esac | |
9891 | fi | |
9892 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9893 | && test "$tmp_diet" = no | |
9894 | then | |
9895 | tmp_addflag=' $pic_flag' | |
9896 | tmp_sharedflag='-shared' | |
9897 | case $cc_basename,$host_cpu in | |
9898 | pgcc*) # Portland Group C compiler | |
9899 | 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' | |
9900 | tmp_addflag=' $pic_flag' | |
9901 | ;; | |
9902 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9903 | # Portland Group f77 and f90 compilers | |
9904 | 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' | |
9905 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9906 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9907 | tmp_addflag=' -i_dynamic' ;; | |
9908 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9909 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9910 | ifc* | ifort*) # Intel Fortran compiler | |
9911 | tmp_addflag=' -nofor_main' ;; | |
9912 | lf95*) # Lahey Fortran 8.1 | |
9913 | whole_archive_flag_spec= | |
9914 | tmp_sharedflag='--shared' ;; | |
9915 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9916 | tmp_sharedflag='-qmkshrobj' | |
9917 | tmp_addflag= ;; | |
9918 | nvcc*) # Cuda Compiler Driver 2.2 | |
9919 | 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' | |
9920 | compiler_needs_object=yes | |
9921 | ;; | |
9922 | esac | |
9923 | case `$CC -V 2>&1 | sed 5q` in | |
9924 | *Sun\ C*) # Sun C 5.9 | |
9925 | 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' | |
9926 | compiler_needs_object=yes | |
9927 | tmp_sharedflag='-G' ;; | |
9928 | *Sun\ F*) # Sun Fortran 8.3 | |
9929 | tmp_sharedflag='-G' ;; | |
9930 | esac | |
9931 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9c60689e | 9932 | |
a243b558 JF |
9933 | if test "x$supports_anon_versioning" = xyes; then |
9934 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9935 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9936 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9937 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9938 | fi | |
9c60689e | 9939 | |
a243b558 JF |
9940 | case $cc_basename in |
9941 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9942 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9943 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9944 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9945 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9946 | if test "x$supports_anon_versioning" = xyes; then | |
9947 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9948 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9949 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9950 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9951 | fi | |
9952 | ;; | |
9953 | esac | |
9954 | else | |
9955 | ld_shlibs=no | |
9956 | fi | |
9957 | ;; | |
9c60689e | 9958 | |
a243b558 JF |
9959 | netbsd*) |
9960 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9961 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9962 | wlarc= | |
9963 | else | |
9964 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9965 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9966 | fi | |
9967 | ;; | |
9c60689e | 9968 | |
a243b558 JF |
9969 | solaris*) |
9970 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9971 | ld_shlibs=no | |
9972 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9973 | |
a243b558 JF |
9974 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9975 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9976 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9977 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9978 | *** your PATH or compiler configuration so that the native linker is | |
9979 | *** used, and then restart. | |
9c60689e | 9980 | |
a243b558 JF |
9981 | _LT_EOF |
9982 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9983 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9984 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9985 | else | |
9986 | ld_shlibs=no | |
9987 | fi | |
9988 | ;; | |
9c60689e | 9989 | |
a243b558 JF |
9990 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9991 | case `$LD -v 2>&1` in | |
9992 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9993 | ld_shlibs=no | |
9994 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9995 | |
a243b558 JF |
9996 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9997 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9998 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9999 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10000 | *** your PATH or compiler configuration so that the native linker is | |
10001 | *** used, and then restart. | |
9c60689e | 10002 | |
a243b558 JF |
10003 | _LT_EOF |
10004 | ;; | |
10005 | *) | |
10006 | # For security reasons, it is highly recommended that you always | |
10007 | # use absolute paths for naming shared libraries, and exclude the | |
10008 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10009 | # requires that you compile everything twice, which is a pain. | |
10010 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10011 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10012 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10013 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10014 | else | |
10015 | ld_shlibs=no | |
10016 | fi | |
10017 | ;; | |
10018 | esac | |
10019 | ;; | |
9c60689e | 10020 | |
a243b558 JF |
10021 | sunos4*) |
10022 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10023 | wlarc= | |
10024 | hardcode_direct=yes | |
10025 | hardcode_shlibpath_var=no | |
10026 | ;; | |
9c60689e | 10027 | |
a243b558 JF |
10028 | *) |
10029 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10030 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10031 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10032 | else | |
10033 | ld_shlibs=no | |
10034 | fi | |
10035 | ;; | |
10036 | esac | |
9c60689e | 10037 | |
a243b558 JF |
10038 | if test "$ld_shlibs" = no; then |
10039 | runpath_var= | |
10040 | hardcode_libdir_flag_spec= | |
10041 | export_dynamic_flag_spec= | |
10042 | whole_archive_flag_spec= | |
10043 | fi | |
10044 | else | |
10045 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10046 | case $host_os in | |
10047 | aix3*) | |
10048 | allow_undefined_flag=unsupported | |
10049 | always_export_symbols=yes | |
10050 | 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' | |
10051 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10052 | # are no directories specified by -L. | |
10053 | hardcode_minus_L=yes | |
10054 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10055 | # Neither direct hardcoding nor static linking is supported with a | |
10056 | # broken collect2. | |
10057 | hardcode_direct=unsupported | |
10058 | fi | |
10059 | ;; | |
9c60689e | 10060 | |
a243b558 JF |
10061 | aix[4-9]*) |
10062 | if test "$host_cpu" = ia64; then | |
10063 | # On IA64, the linker does run time linking by default, so we don't | |
10064 | # have to do anything special. | |
10065 | aix_use_runtimelinking=no | |
10066 | exp_sym_flag='-Bexport' | |
10067 | no_entry_flag="" | |
10068 | else | |
10069 | # If we're using GNU nm, then we don't want the "-C" option. | |
10070 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10071 | # Also, AIX nm treats weak defined symbols like other global | |
10072 | # defined symbols, whereas GNU nm marks them as "W". | |
10073 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10074 | 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' | |
10075 | else | |
10076 | 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' | |
10077 | fi | |
10078 | aix_use_runtimelinking=no | |
9c60689e | 10079 | |
a243b558 JF |
10080 | # Test if we are trying to use run time linking or normal |
10081 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10082 | # need to do runtime linking. | |
10083 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10084 | for ld_flag in $LDFLAGS; do | |
10085 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10086 | aix_use_runtimelinking=yes | |
10087 | break | |
10088 | fi | |
10089 | done | |
10090 | ;; | |
10091 | esac | |
9c60689e | 10092 | |
a243b558 JF |
10093 | exp_sym_flag='-bexport' |
10094 | no_entry_flag='-bnoentry' | |
10095 | fi | |
9c60689e | 10096 | |
a243b558 JF |
10097 | # When large executables or shared objects are built, AIX ld can |
10098 | # have problems creating the table of contents. If linking a library | |
10099 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10100 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10101 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10102 | |
a243b558 JF |
10103 | archive_cmds='' |
10104 | hardcode_direct=yes | |
10105 | hardcode_direct_absolute=yes | |
10106 | hardcode_libdir_separator=':' | |
10107 | link_all_deplibs=yes | |
10108 | file_list_spec='${wl}-f,' | |
9c60689e | 10109 | |
a243b558 JF |
10110 | if test "$GCC" = yes; then |
10111 | case $host_os in aix4.[012]|aix4.[012].*) | |
10112 | # We only want to do this on AIX 4.2 and lower, the check | |
10113 | # below for broken collect2 doesn't work under 4.3+ | |
10114 | collect2name=`${CC} -print-prog-name=collect2` | |
10115 | if test -f "$collect2name" && | |
10116 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10117 | then | |
10118 | # We have reworked collect2 | |
10119 | : | |
10120 | else | |
10121 | # We have old collect2 | |
10122 | hardcode_direct=unsupported | |
10123 | # It fails to find uninstalled libraries when the uninstalled | |
10124 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10125 | # to unsupported forces relinking | |
10126 | hardcode_minus_L=yes | |
10127 | hardcode_libdir_flag_spec='-L$libdir' | |
10128 | hardcode_libdir_separator= | |
10129 | fi | |
10130 | ;; | |
10131 | esac | |
10132 | shared_flag='-shared' | |
10133 | if test "$aix_use_runtimelinking" = yes; then | |
10134 | shared_flag="$shared_flag "'${wl}-G' | |
10135 | fi | |
10136 | else | |
10137 | # not using gcc | |
10138 | if test "$host_cpu" = ia64; then | |
10139 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10140 | # chokes on -Wl,-G. The following line is correct: | |
10141 | shared_flag='-G' | |
10142 | else | |
10143 | if test "$aix_use_runtimelinking" = yes; then | |
10144 | shared_flag='${wl}-G' | |
10145 | else | |
10146 | shared_flag='${wl}-bM:SRE' | |
10147 | fi | |
10148 | fi | |
10149 | fi | |
9c60689e | 10150 | |
a243b558 JF |
10151 | export_dynamic_flag_spec='${wl}-bexpall' |
10152 | # It seems that -bexpall does not export symbols beginning with | |
10153 | # underscore (_), so it is better to generate a list of symbols to export. | |
10154 | always_export_symbols=yes | |
10155 | if test "$aix_use_runtimelinking" = yes; then | |
10156 | # Warning - without using the other runtime loading flags (-brtl), | |
10157 | # -berok will link without error, but may produce a broken library. | |
10158 | allow_undefined_flag='-berok' | |
10159 | # Determine the default libpath from the value encoded in an | |
10160 | # empty executable. | |
10161 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10162 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10163 | else |
a243b558 | 10164 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10165 | $as_echo_n "(cached) " >&6 |
10166 | else | |
a243b558 | 10167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10168 | /* end confdefs.h. */ |
10169 | ||
9c60689e DWT |
10170 | int |
10171 | main () | |
10172 | { | |
a243b558 | 10173 | |
9c60689e DWT |
10174 | ; |
10175 | return 0; | |
10176 | } | |
10177 | _ACEOF | |
10178 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10179 | |
10180 | lt_aix_libpath_sed=' | |
10181 | /Import File Strings/,/^$/ { | |
10182 | /^0/ { | |
10183 | s/^0 *\([^ ]*\) *$/\1/ | |
10184 | p | |
10185 | } | |
10186 | }' | |
10187 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10188 | # Check for a 64-bit object if we didn't find anything. | |
10189 | if test -z "$lt_cv_aix_libpath_"; then | |
10190 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10191 | fi | |
9c60689e DWT |
10192 | fi |
10193 | rm -f core conftest.err conftest.$ac_objext \ | |
10194 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10195 | if test -z "$lt_cv_aix_libpath_"; then |
10196 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10197 | fi | |
9c60689e DWT |
10198 | |
10199 | fi | |
10200 | ||
a243b558 JF |
10201 | aix_libpath=$lt_cv_aix_libpath_ |
10202 | fi | |
9c60689e | 10203 | |
a243b558 JF |
10204 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10205 | 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" | |
10206 | else | |
10207 | if test "$host_cpu" = ia64; then | |
10208 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10209 | allow_undefined_flag="-z nodefs" | |
10210 | 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" | |
10211 | else | |
10212 | # Determine the default libpath from the value encoded in an | |
10213 | # empty executable. | |
10214 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10215 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10216 | else |
a243b558 | 10217 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10218 | $as_echo_n "(cached) " >&6 |
10219 | else | |
a243b558 | 10220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10221 | /* end confdefs.h. */ |
10222 | ||
9c60689e DWT |
10223 | int |
10224 | main () | |
10225 | { | |
a243b558 | 10226 | |
9c60689e DWT |
10227 | ; |
10228 | return 0; | |
10229 | } | |
10230 | _ACEOF | |
10231 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10232 | |
a243b558 JF |
10233 | lt_aix_libpath_sed=' |
10234 | /Import File Strings/,/^$/ { | |
10235 | /^0/ { | |
10236 | s/^0 *\([^ ]*\) *$/\1/ | |
10237 | p | |
10238 | } | |
10239 | }' | |
10240 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10241 | # Check for a 64-bit object if we didn't find anything. | |
10242 | if test -z "$lt_cv_aix_libpath_"; then | |
10243 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10244 | fi | |
9c60689e DWT |
10245 | fi |
10246 | rm -f core conftest.err conftest.$ac_objext \ | |
10247 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10248 | if test -z "$lt_cv_aix_libpath_"; then |
10249 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10250 | fi | |
10251 | ||
9c60689e | 10252 | fi |
9c60689e | 10253 | |
a243b558 JF |
10254 | aix_libpath=$lt_cv_aix_libpath_ |
10255 | fi | |
10256 | ||
10257 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10258 | # Warning - without using the other run time loading flags, | |
10259 | # -berok will link without error, but may produce a broken library. | |
10260 | no_undefined_flag=' ${wl}-bernotok' | |
10261 | allow_undefined_flag=' ${wl}-berok' | |
10262 | if test "$with_gnu_ld" = yes; then | |
10263 | # We only use this code for GNU lds that support --whole-archive. | |
10264 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10265 | else | |
10266 | # Exported symbols can be pulled into shared objects from archives | |
10267 | whole_archive_flag_spec='$convenience' | |
10268 | fi | |
10269 | archive_cmds_need_lc=yes | |
10270 | # This is similar to how AIX traditionally builds its shared libraries. | |
10271 | 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' | |
10272 | fi | |
10273 | fi | |
10274 | ;; | |
10275 | ||
10276 | amigaos*) | |
10277 | case $host_cpu in | |
10278 | powerpc) | |
10279 | # see comment about AmigaOS4 .so support | |
10280 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10281 | archive_expsym_cmds='' | |
10282 | ;; | |
10283 | m68k) | |
10284 | 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)' | |
10285 | hardcode_libdir_flag_spec='-L$libdir' | |
10286 | hardcode_minus_L=yes | |
10287 | ;; | |
10288 | esac | |
10289 | ;; | |
10290 | ||
10291 | bsdi[45]*) | |
10292 | export_dynamic_flag_spec=-rdynamic | |
10293 | ;; | |
10294 | ||
10295 | cygwin* | mingw* | pw32* | cegcc*) | |
10296 | # When not using gcc, we currently assume that we are using | |
10297 | # Microsoft Visual C++. | |
10298 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10299 | # no search path for DLLs. | |
10300 | case $cc_basename in | |
10301 | cl*) | |
10302 | # Native MSVC | |
10303 | hardcode_libdir_flag_spec=' ' | |
10304 | allow_undefined_flag=unsupported | |
10305 | always_export_symbols=yes | |
10306 | file_list_spec='@' | |
10307 | # Tell ltmain to make .lib files, not .a files. | |
10308 | libext=lib | |
10309 | # Tell ltmain to make .dll files, not .so files. | |
10310 | shrext_cmds=".dll" | |
10311 | # FIXME: Setting linknames here is a bad hack. | |
10312 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10313 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10314 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10315 | else | |
10316 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10317 | fi~ | |
10318 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10319 | linknames=' | |
10320 | # The linker will not automatically build a static lib if we build a DLL. | |
10321 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10322 | enable_shared_with_static_runtimes=yes | |
10323 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10324 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10325 | # Don't use ranlib | |
10326 | old_postinstall_cmds='chmod 644 $oldlib' | |
10327 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10328 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10329 | case $lt_outputfile in | |
10330 | *.exe|*.EXE) ;; | |
10331 | *) | |
10332 | lt_outputfile="$lt_outputfile.exe" | |
10333 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10334 | ;; | |
10335 | esac~ | |
10336 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10337 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10338 | $RM "$lt_outputfile.manifest"; | |
10339 | fi' | |
10340 | ;; | |
10341 | *) | |
10342 | # Assume MSVC wrapper | |
10343 | hardcode_libdir_flag_spec=' ' | |
10344 | allow_undefined_flag=unsupported | |
10345 | # Tell ltmain to make .lib files, not .a files. | |
10346 | libext=lib | |
10347 | # Tell ltmain to make .dll files, not .so files. | |
10348 | shrext_cmds=".dll" | |
10349 | # FIXME: Setting linknames here is a bad hack. | |
10350 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10351 | # The linker will automatically build a .lib file if we build a DLL. | |
10352 | old_archive_from_new_cmds='true' | |
10353 | # FIXME: Should let the user specify the lib program. | |
10354 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10355 | enable_shared_with_static_runtimes=yes | |
10356 | ;; | |
10357 | esac | |
10358 | ;; | |
10359 | ||
10360 | darwin* | rhapsody*) | |
10361 | ||
10362 | ||
10363 | archive_cmds_need_lc=no | |
10364 | hardcode_direct=no | |
10365 | hardcode_automatic=yes | |
10366 | hardcode_shlibpath_var=unsupported | |
10367 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10368 | 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\"`' | |
10369 | ||
10370 | else | |
10371 | whole_archive_flag_spec='' | |
10372 | fi | |
10373 | link_all_deplibs=yes | |
10374 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10375 | case $cc_basename in | |
10376 | ifort*) _lt_dar_can_shared=yes ;; | |
10377 | *) _lt_dar_can_shared=$GCC ;; | |
10378 | esac | |
10379 | if test "$_lt_dar_can_shared" = "yes"; then | |
10380 | output_verbose_link_cmd=func_echo_all | |
10381 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10382 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10383 | 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}" | |
10384 | 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}" | |
10385 | ||
10386 | else | |
10387 | ld_shlibs=no | |
10388 | fi | |
10389 | ||
10390 | ;; | |
10391 | ||
10392 | dgux*) | |
10393 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10394 | hardcode_libdir_flag_spec='-L$libdir' | |
10395 | hardcode_shlibpath_var=no | |
10396 | ;; | |
10397 | ||
10398 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10399 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10400 | # does not break anything, and helps significantly (at the cost of a little | |
10401 | # extra space). | |
10402 | freebsd2.2*) | |
10403 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10404 | hardcode_libdir_flag_spec='-R$libdir' | |
10405 | hardcode_direct=yes | |
10406 | hardcode_shlibpath_var=no | |
10407 | ;; | |
10408 | ||
10409 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10410 | freebsd2.*) | |
10411 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10412 | hardcode_direct=yes | |
10413 | hardcode_minus_L=yes | |
10414 | hardcode_shlibpath_var=no | |
10415 | ;; | |
10416 | ||
10417 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10418 | freebsd* | dragonfly*) | |
10419 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10420 | hardcode_libdir_flag_spec='-R$libdir' | |
10421 | hardcode_direct=yes | |
10422 | hardcode_shlibpath_var=no | |
10423 | ;; | |
10424 | ||
10425 | hpux9*) | |
10426 | if test "$GCC" = yes; then | |
10427 | 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' | |
10428 | else | |
10429 | 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' | |
10430 | fi | |
10431 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10432 | hardcode_libdir_separator=: | |
10433 | hardcode_direct=yes | |
10434 | ||
10435 | # hardcode_minus_L: Not really in the search PATH, | |
10436 | # but as the default location of the library. | |
10437 | hardcode_minus_L=yes | |
10438 | export_dynamic_flag_spec='${wl}-E' | |
10439 | ;; | |
10440 | ||
10441 | hpux10*) | |
10442 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10443 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10444 | else | |
10445 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10446 | fi | |
10447 | if test "$with_gnu_ld" = no; then | |
10448 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10449 | hardcode_libdir_separator=: | |
10450 | hardcode_direct=yes | |
10451 | hardcode_direct_absolute=yes | |
10452 | export_dynamic_flag_spec='${wl}-E' | |
10453 | # hardcode_minus_L: Not really in the search PATH, | |
10454 | # but as the default location of the library. | |
10455 | hardcode_minus_L=yes | |
10456 | fi | |
10457 | ;; | |
10458 | ||
10459 | hpux11*) | |
10460 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10461 | case $host_cpu in | |
10462 | hppa*64*) | |
10463 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10464 | ;; | |
10465 | ia64*) | |
10466 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10467 | ;; | |
10468 | *) | |
10469 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10470 | ;; | |
10471 | esac | |
10472 | else | |
10473 | case $host_cpu in | |
10474 | hppa*64*) | |
10475 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10476 | ;; | |
10477 | ia64*) | |
10478 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10479 | ;; | |
10480 | *) | |
10481 | ||
10482 | # Older versions of the 11.00 compiler do not understand -b yet | |
10483 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10485 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10486 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10487 | $as_echo_n "(cached) " >&6 | |
10488 | else | |
10489 | lt_cv_prog_compiler__b=no | |
10490 | save_LDFLAGS="$LDFLAGS" | |
10491 | LDFLAGS="$LDFLAGS -b" | |
10492 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10493 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10494 | # The linker can only warn and ignore the option if not recognized | |
10495 | # So say no if there are warnings | |
10496 | if test -s conftest.err; then | |
10497 | # Append any errors to the config.log. | |
10498 | cat conftest.err 1>&5 | |
10499 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10500 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10501 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10502 | lt_cv_prog_compiler__b=yes | |
10503 | fi | |
10504 | else | |
10505 | lt_cv_prog_compiler__b=yes | |
10506 | fi | |
10507 | fi | |
10508 | $RM -r conftest* | |
10509 | LDFLAGS="$save_LDFLAGS" | |
10510 | ||
10511 | fi | |
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10513 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10514 | ||
10515 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10516 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10517 | else | |
10518 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10519 | fi | |
10520 | ||
10521 | ;; | |
10522 | esac | |
10523 | fi | |
10524 | if test "$with_gnu_ld" = no; then | |
10525 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10526 | hardcode_libdir_separator=: | |
10527 | ||
10528 | case $host_cpu in | |
10529 | hppa*64*|ia64*) | |
10530 | hardcode_direct=no | |
10531 | hardcode_shlibpath_var=no | |
10532 | ;; | |
10533 | *) | |
10534 | hardcode_direct=yes | |
10535 | hardcode_direct_absolute=yes | |
10536 | export_dynamic_flag_spec='${wl}-E' | |
10537 | ||
10538 | # hardcode_minus_L: Not really in the search PATH, | |
10539 | # but as the default location of the library. | |
10540 | hardcode_minus_L=yes | |
10541 | ;; | |
10542 | esac | |
10543 | fi | |
10544 | ;; | |
10545 | ||
10546 | irix5* | irix6* | nonstopux*) | |
10547 | if test "$GCC" = yes; then | |
10548 | 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' | |
10549 | # Try to use the -exported_symbol ld option, if it does not | |
10550 | # work, assume that -exports_file does not work either and | |
10551 | # implicitly export all symbols. | |
10552 | # This should be the same for all languages, so no per-tag cache variable. | |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10554 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10555 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10556 | $as_echo_n "(cached) " >&6 | |
10557 | else | |
10558 | save_LDFLAGS="$LDFLAGS" | |
10559 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10561 | /* end confdefs.h. */ | |
10562 | int foo (void) { return 0; } | |
10563 | _ACEOF | |
10564 | if ac_fn_c_try_link "$LINENO"; then : | |
10565 | lt_cv_irix_exported_symbol=yes | |
10566 | else | |
10567 | lt_cv_irix_exported_symbol=no | |
10568 | fi | |
10569 | rm -f core conftest.err conftest.$ac_objext \ | |
10570 | conftest$ac_exeext conftest.$ac_ext | |
10571 | LDFLAGS="$save_LDFLAGS" | |
10572 | fi | |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10574 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10575 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10576 | 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' | |
10577 | fi | |
10578 | else | |
10579 | 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' | |
10580 | 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' | |
10581 | fi | |
10582 | archive_cmds_need_lc='no' | |
10583 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10584 | hardcode_libdir_separator=: | |
10585 | inherit_rpath=yes | |
10586 | link_all_deplibs=yes | |
10587 | ;; | |
10588 | ||
10589 | netbsd*) | |
10590 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10591 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10592 | else | |
10593 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10594 | fi | |
10595 | hardcode_libdir_flag_spec='-R$libdir' | |
10596 | hardcode_direct=yes | |
10597 | hardcode_shlibpath_var=no | |
10598 | ;; | |
10599 | ||
10600 | newsos6) | |
10601 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10602 | hardcode_direct=yes | |
10603 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10604 | hardcode_libdir_separator=: | |
10605 | hardcode_shlibpath_var=no | |
10606 | ;; | |
10607 | ||
10608 | *nto* | *qnx*) | |
10609 | ;; | |
10610 | ||
10611 | openbsd*) | |
10612 | if test -f /usr/libexec/ld.so; then | |
10613 | hardcode_direct=yes | |
10614 | hardcode_shlibpath_var=no | |
10615 | hardcode_direct_absolute=yes | |
10616 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10617 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10618 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10619 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10620 | export_dynamic_flag_spec='${wl}-E' | |
10621 | else | |
10622 | case $host_os in | |
10623 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10624 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10625 | hardcode_libdir_flag_spec='-R$libdir' | |
10626 | ;; | |
10627 | *) | |
10628 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10629 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10630 | ;; | |
10631 | esac | |
10632 | fi | |
10633 | else | |
10634 | ld_shlibs=no | |
10635 | fi | |
10636 | ;; | |
10637 | ||
10638 | os2*) | |
10639 | hardcode_libdir_flag_spec='-L$libdir' | |
10640 | hardcode_minus_L=yes | |
10641 | allow_undefined_flag=unsupported | |
10642 | 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' | |
10643 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10644 | ;; | |
10645 | ||
10646 | osf3*) | |
10647 | if test "$GCC" = yes; then | |
10648 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10649 | 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' | |
10650 | else | |
10651 | allow_undefined_flag=' -expect_unresolved \*' | |
10652 | 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' | |
10653 | fi | |
10654 | archive_cmds_need_lc='no' | |
10655 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10656 | hardcode_libdir_separator=: | |
10657 | ;; | |
10658 | ||
10659 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10660 | if test "$GCC" = yes; then | |
10661 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10662 | 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' | |
10663 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10664 | else | |
10665 | allow_undefined_flag=' -expect_unresolved \*' | |
10666 | 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' | |
10667 | 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~ | |
10668 | $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' | |
10669 | ||
10670 | # Both c and cxx compiler support -rpath directly | |
10671 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10672 | fi | |
10673 | archive_cmds_need_lc='no' | |
10674 | hardcode_libdir_separator=: | |
10675 | ;; | |
10676 | ||
10677 | solaris*) | |
10678 | no_undefined_flag=' -z defs' | |
10679 | if test "$GCC" = yes; then | |
10680 | wlarc='${wl}' | |
10681 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10682 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10683 | $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' | |
10684 | else | |
10685 | case `$CC -V 2>&1` in | |
10686 | *"Compilers 5.0"*) | |
10687 | wlarc='' | |
10688 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10689 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10690 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10691 | ;; | |
10692 | *) | |
10693 | wlarc='${wl}' | |
10694 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10695 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10696 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10697 | ;; | |
10698 | esac | |
10699 | fi | |
10700 | hardcode_libdir_flag_spec='-R$libdir' | |
10701 | hardcode_shlibpath_var=no | |
10702 | case $host_os in | |
10703 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10704 | *) | |
10705 | # The compiler driver will combine and reorder linker options, | |
10706 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10707 | # but is careful enough not to reorder. | |
10708 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10709 | if test "$GCC" = yes; then | |
10710 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10711 | else | |
10712 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10713 | fi | |
10714 | ;; | |
10715 | esac | |
10716 | link_all_deplibs=yes | |
10717 | ;; | |
10718 | ||
10719 | sunos4*) | |
10720 | if test "x$host_vendor" = xsequent; then | |
10721 | # Use $CC to link under sequent, because it throws in some extra .o | |
10722 | # files that make .init and .fini sections work. | |
10723 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10724 | else | |
10725 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10726 | fi | |
10727 | hardcode_libdir_flag_spec='-L$libdir' | |
10728 | hardcode_direct=yes | |
10729 | hardcode_minus_L=yes | |
10730 | hardcode_shlibpath_var=no | |
10731 | ;; | |
10732 | ||
10733 | sysv4) | |
10734 | case $host_vendor in | |
10735 | sni) | |
10736 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10737 | hardcode_direct=yes # is this really true??? | |
10738 | ;; | |
10739 | siemens) | |
10740 | ## LD is ld it makes a PLAMLIB | |
10741 | ## CC just makes a GrossModule. | |
10742 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10743 | reload_cmds='$CC -r -o $output$reload_objs' | |
10744 | hardcode_direct=no | |
10745 | ;; | |
10746 | motorola) | |
10747 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10748 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10749 | ;; | |
10750 | esac | |
10751 | runpath_var='LD_RUN_PATH' | |
10752 | hardcode_shlibpath_var=no | |
10753 | ;; | |
10754 | ||
10755 | sysv4.3*) | |
10756 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10757 | hardcode_shlibpath_var=no | |
10758 | export_dynamic_flag_spec='-Bexport' | |
10759 | ;; | |
10760 | ||
10761 | sysv4*MP*) | |
10762 | if test -d /usr/nec; then | |
10763 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10764 | hardcode_shlibpath_var=no | |
10765 | runpath_var=LD_RUN_PATH | |
10766 | hardcode_runpath_var=yes | |
10767 | ld_shlibs=yes | |
10768 | fi | |
10769 | ;; | |
10770 | ||
10771 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10772 | no_undefined_flag='${wl}-z,text' | |
10773 | archive_cmds_need_lc=no | |
10774 | hardcode_shlibpath_var=no | |
10775 | runpath_var='LD_RUN_PATH' | |
10776 | ||
10777 | if test "$GCC" = yes; then | |
10778 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10779 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10780 | else | |
10781 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10782 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10783 | fi | |
10784 | ;; | |
10785 | ||
10786 | sysv5* | sco3.2v5* | sco5v6*) | |
10787 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10788 | # link with -lc, and that would cause any symbols used from libc to | |
10789 | # always be unresolved, which means just about no library would | |
10790 | # ever link correctly. If we're not using GNU ld we use -z text | |
10791 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10792 | # as -z defs. | |
10793 | no_undefined_flag='${wl}-z,text' | |
10794 | allow_undefined_flag='${wl}-z,nodefs' | |
10795 | archive_cmds_need_lc=no | |
10796 | hardcode_shlibpath_var=no | |
10797 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10798 | hardcode_libdir_separator=':' | |
10799 | link_all_deplibs=yes | |
10800 | export_dynamic_flag_spec='${wl}-Bexport' | |
10801 | runpath_var='LD_RUN_PATH' | |
10802 | ||
10803 | if test "$GCC" = yes; then | |
10804 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10805 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10806 | else | |
10807 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10808 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10809 | fi | |
10810 | ;; | |
10811 | ||
10812 | uts4*) | |
10813 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10814 | hardcode_libdir_flag_spec='-L$libdir' | |
10815 | hardcode_shlibpath_var=no | |
10816 | ;; | |
10817 | ||
10818 | *) | |
10819 | ld_shlibs=no | |
10820 | ;; | |
10821 | esac | |
10822 | ||
10823 | if test x$host_vendor = xsni; then | |
10824 | case $host in | |
10825 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10826 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10827 | ;; | |
10828 | esac | |
10829 | fi | |
10830 | fi | |
10831 | ||
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10833 | $as_echo "$ld_shlibs" >&6; } | |
10834 | test "$ld_shlibs" = no && can_build_shared=no | |
10835 | ||
10836 | with_gnu_ld=$with_gnu_ld | |
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | # | |
10853 | # Do we need to explicitly link libc? | |
10854 | # | |
10855 | case "x$archive_cmds_need_lc" in | |
10856 | x|xyes) | |
10857 | # Assume -lc should be added | |
10858 | archive_cmds_need_lc=yes | |
10859 | ||
10860 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10861 | case $archive_cmds in | |
10862 | *'~'*) | |
10863 | # FIXME: we may have to deal with multi-command sequences. | |
10864 | ;; | |
10865 | '$CC '*) | |
10866 | # Test whether the compiler implicitly links with -lc since on some | |
10867 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10868 | # to ld, don't add -lc before -lgcc. | |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10870 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10871 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10872 | $as_echo_n "(cached) " >&6 | |
10873 | else | |
10874 | $RM -r conftest* | |
10875 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10876 | ||
10877 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10878 | (eval $ac_compile) 2>&5 | |
10879 | ac_status=$? | |
10880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10881 | test $ac_status = 0; } 2>conftest.err; then | |
10882 | soname=conftest | |
10883 | lib=conftest | |
10884 | libobjs=conftest.$ac_objext | |
10885 | deplibs= | |
10886 | wl=$lt_prog_compiler_wl | |
10887 | pic_flag=$lt_prog_compiler_pic | |
10888 | compiler_flags=-v | |
10889 | linker_flags=-v | |
10890 | verstring= | |
10891 | output_objdir=. | |
10892 | libname=conftest | |
10893 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10894 | allow_undefined_flag= | |
10895 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10896 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10897 | ac_status=$? | |
10898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10899 | test $ac_status = 0; } | |
10900 | then | |
10901 | lt_cv_archive_cmds_need_lc=no | |
10902 | else | |
10903 | lt_cv_archive_cmds_need_lc=yes | |
10904 | fi | |
10905 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10906 | else | |
10907 | cat conftest.err 1>&5 | |
10908 | fi | |
10909 | $RM -r conftest* | |
10910 | ||
10911 | fi | |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10913 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10914 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10915 | ;; | |
10916 | esac | |
10917 | fi | |
10918 | ;; | |
10919 | esac | |
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11073 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11074 | ||
11075 | if test "$GCC" = yes; then | |
11076 | case $host_os in | |
11077 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11078 | *) lt_awk_arg="/^libraries:/" ;; | |
11079 | esac | |
11080 | case $host_os in | |
11081 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11082 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11083 | esac | |
11084 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11085 | case $lt_search_path_spec in | |
11086 | *\;*) | |
11087 | # if the path contains ";" then we assume it to be the separator | |
11088 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11089 | # assumed that no part of a normal pathname contains ";" but that should | |
11090 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11091 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11092 | ;; | |
11093 | *) | |
11094 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11095 | ;; | |
11096 | esac | |
11097 | # Ok, now we have the path, separated by spaces, we can step through it | |
11098 | # and add multilib dir if necessary. | |
11099 | lt_tmp_lt_search_path_spec= | |
11100 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11101 | for lt_sys_path in $lt_search_path_spec; do | |
11102 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11103 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11104 | else | |
11105 | test -d "$lt_sys_path" && \ | |
11106 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11107 | fi | |
11108 | done | |
11109 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11110 | BEGIN {RS=" "; FS="/|\n";} { | |
11111 | lt_foo=""; | |
11112 | lt_count=0; | |
11113 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11114 | if ($lt_i != "" && $lt_i != ".") { | |
11115 | if ($lt_i == "..") { | |
11116 | lt_count++; | |
11117 | } else { | |
11118 | if (lt_count == 0) { | |
11119 | lt_foo="/" $lt_i lt_foo; | |
11120 | } else { | |
11121 | lt_count--; | |
11122 | } | |
11123 | } | |
11124 | } | |
11125 | } | |
11126 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11127 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11128 | }'` | |
11129 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11130 | # for these hosts. | |
11131 | case $host_os in | |
11132 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11133 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11134 | esac | |
11135 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11136 | else | |
11137 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11138 | fi | |
11139 | library_names_spec= | |
11140 | libname_spec='lib$name' | |
11141 | soname_spec= | |
11142 | shrext_cmds=".so" | |
11143 | postinstall_cmds= | |
11144 | postuninstall_cmds= | |
11145 | finish_cmds= | |
11146 | finish_eval= | |
11147 | shlibpath_var= | |
11148 | shlibpath_overrides_runpath=unknown | |
11149 | version_type=none | |
11150 | dynamic_linker="$host_os ld.so" | |
11151 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11152 | need_lib_prefix=unknown | |
11153 | hardcode_into_libs=no | |
11154 | ||
11155 | # when you set need_version to no, make sure it does not cause -set_version | |
11156 | # flags to be left without arguments | |
11157 | need_version=unknown | |
11158 | ||
11159 | case $host_os in | |
11160 | aix3*) | |
11161 | version_type=linux # correct to gnu/linux during the next big refactor | |
11162 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11163 | shlibpath_var=LIBPATH | |
11164 | ||
11165 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11166 | soname_spec='${libname}${release}${shared_ext}$major' | |
11167 | ;; | |
11168 | ||
11169 | aix[4-9]*) | |
11170 | version_type=linux # correct to gnu/linux during the next big refactor | |
11171 | need_lib_prefix=no | |
11172 | need_version=no | |
11173 | hardcode_into_libs=yes | |
11174 | if test "$host_cpu" = ia64; then | |
11175 | # AIX 5 supports IA64 | |
11176 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11177 | shlibpath_var=LD_LIBRARY_PATH | |
11178 | else | |
11179 | # With GCC up to 2.95.x, collect2 would create an import file | |
11180 | # for dependence libraries. The import file would start with | |
11181 | # the line `#! .'. This would cause the generated library to | |
11182 | # depend on `.', always an invalid library. This was fixed in | |
11183 | # development snapshots of GCC prior to 3.0. | |
11184 | case $host_os in | |
11185 | aix4 | aix4.[01] | aix4.[01].*) | |
11186 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11187 | echo ' yes ' | |
11188 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11189 | : | |
11190 | else | |
11191 | can_build_shared=no | |
11192 | fi | |
11193 | ;; | |
11194 | esac | |
11195 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11196 | # soname into executable. Probably we can add versioning support to | |
11197 | # collect2, so additional links can be useful in future. | |
11198 | if test "$aix_use_runtimelinking" = yes; then | |
11199 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11200 | # instead of lib<name>.a to let people know that these are not | |
11201 | # typical AIX shared libraries. | |
11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11203 | else | |
11204 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11205 | # and later when we are not doing run time linking. | |
11206 | library_names_spec='${libname}${release}.a $libname.a' | |
11207 | soname_spec='${libname}${release}${shared_ext}$major' | |
11208 | fi | |
11209 | shlibpath_var=LIBPATH | |
11210 | fi | |
11211 | ;; | |
11212 | ||
11213 | amigaos*) | |
11214 | case $host_cpu in | |
11215 | powerpc) | |
11216 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11217 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11219 | ;; | |
11220 | m68k) | |
11221 | library_names_spec='$libname.ixlibrary $libname.a' | |
11222 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11223 | 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' | |
11224 | ;; | |
11225 | esac | |
11226 | ;; | |
11227 | ||
11228 | beos*) | |
11229 | library_names_spec='${libname}${shared_ext}' | |
11230 | dynamic_linker="$host_os ld.so" | |
11231 | shlibpath_var=LIBRARY_PATH | |
11232 | ;; | |
11233 | ||
11234 | bsdi[45]*) | |
11235 | version_type=linux # correct to gnu/linux during the next big refactor | |
11236 | need_version=no | |
11237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11238 | soname_spec='${libname}${release}${shared_ext}$major' | |
11239 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11240 | shlibpath_var=LD_LIBRARY_PATH | |
11241 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11242 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11243 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11244 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11245 | # libtool to hard-code these into programs | |
11246 | ;; | |
11247 | ||
11248 | cygwin* | mingw* | pw32* | cegcc*) | |
11249 | version_type=windows | |
11250 | shrext_cmds=".dll" | |
11251 | need_version=no | |
11252 | need_lib_prefix=no | |
9c60689e | 11253 | |
a243b558 JF |
11254 | case $GCC,$cc_basename in |
11255 | yes,*) | |
11256 | # gcc | |
11257 | library_names_spec='$libname.dll.a' | |
11258 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11259 | postinstall_cmds='base_file=`basename \${file}`~ | |
11260 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11261 | dldir=$destdir/`dirname \$dlpath`~ | |
11262 | test -d \$dldir || mkdir -p \$dldir~ | |
11263 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11264 | chmod a+x \$dldir/$dlname~ | |
11265 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11266 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11267 | fi' | |
11268 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11269 | dlpath=$dir/\$dldll~ | |
11270 | $RM \$dlpath' | |
11271 | shlibpath_overrides_runpath=yes | |
9c60689e | 11272 | |
a243b558 JF |
11273 | case $host_os in |
11274 | cygwin*) | |
11275 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11276 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9c60689e | 11277 | |
a243b558 JF |
11278 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11279 | ;; | |
11280 | mingw* | cegcc*) | |
11281 | # MinGW DLLs use traditional 'lib' prefix | |
11282 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11283 | ;; | |
11284 | pw32*) | |
11285 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11286 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11287 | ;; | |
11288 | esac | |
11289 | dynamic_linker='Win32 ld.exe' | |
11290 | ;; | |
9c60689e | 11291 | |
a243b558 JF |
11292 | *,cl*) |
11293 | # Native MSVC | |
11294 | libname_spec='$name' | |
11295 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11296 | library_names_spec='${libname}.dll.lib' | |
9c60689e | 11297 | |
a243b558 JF |
11298 | case $build_os in |
11299 | mingw*) | |
11300 | sys_lib_search_path_spec= | |
11301 | lt_save_ifs=$IFS | |
11302 | IFS=';' | |
11303 | for lt_path in $LIB | |
11304 | do | |
11305 | IFS=$lt_save_ifs | |
11306 | # Let DOS variable expansion print the short 8.3 style file name. | |
11307 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11308 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11309 | done | |
11310 | IFS=$lt_save_ifs | |
11311 | # Convert to MSYS style. | |
11312 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11313 | ;; | |
11314 | cygwin*) | |
11315 | # Convert to unix form, then to dos form, then back to unix form | |
11316 | # but this time dos style (no spaces!) so that the unix form looks | |
11317 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11318 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11319 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11320 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11321 | ;; | |
11322 | *) | |
11323 | sys_lib_search_path_spec="$LIB" | |
11324 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11325 | # It is most probably a Windows format PATH. | |
11326 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11327 | else | |
11328 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11329 | fi | |
11330 | # FIXME: find the short name or the path components, as spaces are | |
11331 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11332 | ;; | |
11333 | esac | |
11334 | ||
11335 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11336 | postinstall_cmds='base_file=`basename \${file}`~ | |
11337 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11338 | dldir=$destdir/`dirname \$dlpath`~ | |
11339 | test -d \$dldir || mkdir -p \$dldir~ | |
11340 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11341 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11342 | dlpath=$dir/\$dldll~ | |
11343 | $RM \$dlpath' | |
11344 | shlibpath_overrides_runpath=yes | |
11345 | dynamic_linker='Win32 link.exe' | |
11346 | ;; | |
9c60689e | 11347 | |
a243b558 JF |
11348 | *) |
11349 | # Assume MSVC wrapper | |
11350 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11351 | dynamic_linker='Win32 ld.exe' | |
11352 | ;; | |
11353 | esac | |
11354 | # FIXME: first we should search . and the directory the executable is in | |
11355 | shlibpath_var=PATH | |
11356 | ;; | |
9c60689e | 11357 | |
a243b558 JF |
11358 | darwin* | rhapsody*) |
11359 | dynamic_linker="$host_os dyld" | |
11360 | version_type=darwin | |
11361 | need_lib_prefix=no | |
11362 | need_version=no | |
11363 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11364 | soname_spec='${libname}${release}${major}$shared_ext' | |
11365 | shlibpath_overrides_runpath=yes | |
11366 | shlibpath_var=DYLD_LIBRARY_PATH | |
11367 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11368 | |
a243b558 JF |
11369 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11370 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11371 | ;; | |
9c60689e | 11372 | |
a243b558 JF |
11373 | dgux*) |
11374 | version_type=linux # correct to gnu/linux during the next big refactor | |
11375 | need_lib_prefix=no | |
11376 | need_version=no | |
11377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11378 | soname_spec='${libname}${release}${shared_ext}$major' | |
11379 | shlibpath_var=LD_LIBRARY_PATH | |
11380 | ;; | |
11381 | ||
11382 | freebsd* | dragonfly*) | |
11383 | # DragonFly does not have aout. When/if they implement a new | |
11384 | # versioning mechanism, adjust this. | |
11385 | if test -x /usr/bin/objformat; then | |
11386 | objformat=`/usr/bin/objformat` | |
11387 | else | |
11388 | case $host_os in | |
11389 | freebsd[23].*) objformat=aout ;; | |
11390 | *) objformat=elf ;; | |
11391 | esac | |
11392 | fi | |
11393 | version_type=freebsd-$objformat | |
11394 | case $version_type in | |
11395 | freebsd-elf*) | |
11396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11397 | need_version=no | |
11398 | need_lib_prefix=no | |
11399 | ;; | |
11400 | freebsd-*) | |
11401 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11402 | need_version=yes | |
11403 | ;; | |
11404 | esac | |
11405 | shlibpath_var=LD_LIBRARY_PATH | |
11406 | case $host_os in | |
11407 | freebsd2.*) | |
11408 | shlibpath_overrides_runpath=yes | |
11409 | ;; | |
11410 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11411 | shlibpath_overrides_runpath=yes | |
11412 | hardcode_into_libs=yes | |
11413 | ;; | |
11414 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11415 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11416 | shlibpath_overrides_runpath=no | |
11417 | hardcode_into_libs=yes | |
11418 | ;; | |
11419 | *) # from 4.6 on, and DragonFly | |
11420 | shlibpath_overrides_runpath=yes | |
11421 | hardcode_into_libs=yes | |
11422 | ;; | |
11423 | esac | |
11424 | ;; | |
9c60689e | 11425 | |
a243b558 JF |
11426 | gnu*) |
11427 | version_type=linux # correct to gnu/linux during the next big refactor | |
11428 | need_lib_prefix=no | |
11429 | need_version=no | |
11430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11431 | soname_spec='${libname}${release}${shared_ext}$major' | |
11432 | shlibpath_var=LD_LIBRARY_PATH | |
11433 | shlibpath_overrides_runpath=no | |
11434 | hardcode_into_libs=yes | |
11435 | ;; | |
9c60689e | 11436 | |
a243b558 JF |
11437 | haiku*) |
11438 | version_type=linux # correct to gnu/linux during the next big refactor | |
11439 | need_lib_prefix=no | |
11440 | need_version=no | |
11441 | dynamic_linker="$host_os runtime_loader" | |
11442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11443 | soname_spec='${libname}${release}${shared_ext}$major' | |
11444 | shlibpath_var=LIBRARY_PATH | |
11445 | shlibpath_overrides_runpath=yes | |
11446 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11447 | hardcode_into_libs=yes | |
11448 | ;; | |
9c60689e | 11449 | |
a243b558 JF |
11450 | hpux9* | hpux10* | hpux11*) |
11451 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11452 | # link against other versions. | |
11453 | version_type=sunos | |
11454 | need_lib_prefix=no | |
11455 | need_version=no | |
11456 | case $host_cpu in | |
11457 | ia64*) | |
11458 | shrext_cmds='.so' | |
11459 | hardcode_into_libs=yes | |
11460 | dynamic_linker="$host_os dld.so" | |
11461 | shlibpath_var=LD_LIBRARY_PATH | |
11462 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11464 | soname_spec='${libname}${release}${shared_ext}$major' | |
11465 | if test "X$HPUX_IA64_MODE" = X32; then | |
11466 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11467 | else | |
11468 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11469 | fi | |
11470 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11471 | ;; | |
11472 | hppa*64*) | |
11473 | shrext_cmds='.sl' | |
11474 | hardcode_into_libs=yes | |
11475 | dynamic_linker="$host_os dld.sl" | |
11476 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11477 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11479 | soname_spec='${libname}${release}${shared_ext}$major' | |
11480 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11481 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11482 | ;; | |
11483 | *) | |
11484 | shrext_cmds='.sl' | |
11485 | dynamic_linker="$host_os dld.sl" | |
11486 | shlibpath_var=SHLIB_PATH | |
11487 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11489 | soname_spec='${libname}${release}${shared_ext}$major' | |
9c60689e DWT |
11490 | ;; |
11491 | esac | |
a243b558 JF |
11492 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11493 | postinstall_cmds='chmod 555 $lib' | |
11494 | # or fails outright, so override atomically: | |
11495 | install_override_mode=555 | |
11496 | ;; | |
9c60689e | 11497 | |
a243b558 JF |
11498 | interix[3-9]*) |
11499 | version_type=linux # correct to gnu/linux during the next big refactor | |
11500 | need_lib_prefix=no | |
11501 | need_version=no | |
11502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11503 | soname_spec='${libname}${release}${shared_ext}$major' | |
11504 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11505 | shlibpath_var=LD_LIBRARY_PATH | |
11506 | shlibpath_overrides_runpath=no | |
11507 | hardcode_into_libs=yes | |
11508 | ;; | |
9c60689e | 11509 | |
a243b558 JF |
11510 | irix5* | irix6* | nonstopux*) |
11511 | case $host_os in | |
11512 | nonstopux*) version_type=nonstopux ;; | |
11513 | *) | |
11514 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11515 | version_type=linux # correct to gnu/linux during the next big refactor | |
11516 | else | |
11517 | version_type=irix | |
11518 | fi ;; | |
11519 | esac | |
11520 | need_lib_prefix=no | |
11521 | need_version=no | |
11522 | soname_spec='${libname}${release}${shared_ext}$major' | |
11523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11524 | case $host_os in | |
11525 | irix5* | nonstopux*) | |
11526 | libsuff= shlibsuff= | |
11527 | ;; | |
11528 | *) | |
11529 | case $LD in # libtool.m4 will add one of these switches to LD | |
11530 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11531 | libsuff= shlibsuff= libmagic=32-bit;; | |
11532 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11533 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11534 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11535 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11536 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11537 | esac | |
11538 | ;; | |
11539 | esac | |
11540 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11541 | shlibpath_overrides_runpath=no | |
11542 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11543 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11544 | hardcode_into_libs=yes | |
11545 | ;; | |
9c60689e | 11546 | |
a243b558 JF |
11547 | # No shared lib support for Linux oldld, aout, or coff. |
11548 | linux*oldld* | linux*aout* | linux*coff*) | |
11549 | dynamic_linker=no | |
11550 | ;; | |
9c60689e | 11551 | |
a243b558 JF |
11552 | # This must be glibc/ELF. |
11553 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11554 | version_type=linux # correct to gnu/linux during the next big refactor | |
11555 | need_lib_prefix=no | |
11556 | need_version=no | |
11557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11558 | soname_spec='${libname}${release}${shared_ext}$major' | |
11559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11560 | shlibpath_var=LD_LIBRARY_PATH | |
11561 | shlibpath_overrides_runpath=no | |
9c60689e | 11562 | |
a243b558 JF |
11563 | # Some binutils ld are patched to set DT_RUNPATH |
11564 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
11565 | $as_echo_n "(cached) " >&6 |
11566 | else | |
a243b558 JF |
11567 | lt_cv_shlibpath_overrides_runpath=no |
11568 | save_LDFLAGS=$LDFLAGS | |
11569 | save_libdir=$libdir | |
11570 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11571 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11573 | /* end confdefs.h. */ | |
ee134472 | 11574 | |
a243b558 JF |
11575 | int |
11576 | main () | |
9c60689e | 11577 | { |
9c60689e | 11578 | |
a243b558 JF |
11579 | ; |
11580 | return 0; | |
11581 | } | |
11582 | _ACEOF | |
11583 | if ac_fn_c_try_link "$LINENO"; then : | |
11584 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11585 | lt_cv_shlibpath_overrides_runpath=yes | |
11586 | fi | |
11587 | fi | |
11588 | rm -f core conftest.err conftest.$ac_objext \ | |
11589 | conftest$ac_exeext conftest.$ac_ext | |
11590 | LDFLAGS=$save_LDFLAGS | |
11591 | libdir=$save_libdir | |
9c60689e | 11592 | |
a243b558 | 11593 | fi |
9c60689e | 11594 | |
a243b558 | 11595 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 11596 | |
a243b558 JF |
11597 | # This implies no fast_install, which is unacceptable. |
11598 | # Some rework will be needed to allow for fast_install | |
11599 | # before this can be enabled. | |
11600 | hardcode_into_libs=yes | |
9c60689e | 11601 | |
a243b558 JF |
11602 | # Append ld.so.conf contents to the search path |
11603 | if test -f /etc/ld.so.conf; then | |
11604 | 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' ' '` | |
11605 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11606 | fi | |
ee134472 | 11607 | |
a243b558 JF |
11608 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11609 | # powerpc, because MkLinux only supported shared libraries with the | |
11610 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11611 | # most powerpc-linux boxes support dynamic linking these days and | |
11612 | # people can always --disable-shared, the test was removed, and we | |
11613 | # assume the GNU/Linux dynamic linker is in use. | |
11614 | dynamic_linker='GNU/Linux ld.so' | |
11615 | ;; | |
9c60689e | 11616 | |
a243b558 JF |
11617 | netbsd*) |
11618 | version_type=sunos | |
11619 | need_lib_prefix=no | |
11620 | need_version=no | |
11621 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11623 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11624 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 11625 | else |
a243b558 JF |
11626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11627 | soname_spec='${libname}${release}${shared_ext}$major' | |
11628 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 11629 | fi |
a243b558 JF |
11630 | shlibpath_var=LD_LIBRARY_PATH |
11631 | shlibpath_overrides_runpath=yes | |
11632 | hardcode_into_libs=yes | |
11633 | ;; | |
9c60689e | 11634 | |
a243b558 JF |
11635 | newsos6) |
11636 | version_type=linux # correct to gnu/linux during the next big refactor | |
11637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11638 | shlibpath_var=LD_LIBRARY_PATH | |
11639 | shlibpath_overrides_runpath=yes | |
11640 | ;; | |
9c60689e | 11641 | |
a243b558 JF |
11642 | *nto* | *qnx*) |
11643 | version_type=qnx | |
11644 | need_lib_prefix=no | |
11645 | need_version=no | |
11646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11647 | soname_spec='${libname}${release}${shared_ext}$major' | |
11648 | shlibpath_var=LD_LIBRARY_PATH | |
11649 | shlibpath_overrides_runpath=no | |
11650 | hardcode_into_libs=yes | |
11651 | dynamic_linker='ldqnx.so' | |
11652 | ;; | |
9c60689e | 11653 | |
a243b558 JF |
11654 | openbsd*) |
11655 | version_type=sunos | |
11656 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11657 | need_lib_prefix=no | |
11658 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11659 | case $host_os in | |
11660 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11661 | *) need_version=no ;; | |
9c60689e | 11662 | esac |
a243b558 JF |
11663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11664 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11665 | shlibpath_var=LD_LIBRARY_PATH | |
11666 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11667 | case $host_os in | |
11668 | openbsd2.[89] | openbsd2.[89].*) | |
11669 | shlibpath_overrides_runpath=no | |
11670 | ;; | |
11671 | *) | |
11672 | shlibpath_overrides_runpath=yes | |
11673 | ;; | |
11674 | esac | |
11675 | else | |
11676 | shlibpath_overrides_runpath=yes | |
11677 | fi | |
11678 | ;; | |
9c60689e | 11679 | |
a243b558 JF |
11680 | os2*) |
11681 | libname_spec='$name' | |
11682 | shrext_cmds=".dll" | |
11683 | need_lib_prefix=no | |
11684 | library_names_spec='$libname${shared_ext} $libname.a' | |
11685 | dynamic_linker='OS/2 ld.exe' | |
11686 | shlibpath_var=LIBPATH | |
11687 | ;; | |
9c60689e | 11688 | |
a243b558 JF |
11689 | osf3* | osf4* | osf5*) |
11690 | version_type=osf | |
11691 | need_lib_prefix=no | |
11692 | need_version=no | |
11693 | soname_spec='${libname}${release}${shared_ext}$major' | |
11694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11695 | shlibpath_var=LD_LIBRARY_PATH | |
11696 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11697 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11698 | ;; | |
11699 | ||
11700 | rdos*) | |
11701 | dynamic_linker=no | |
11702 | ;; | |
11703 | ||
11704 | solaris*) | |
11705 | version_type=linux # correct to gnu/linux during the next big refactor | |
11706 | need_lib_prefix=no | |
11707 | need_version=no | |
11708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11709 | soname_spec='${libname}${release}${shared_ext}$major' | |
11710 | shlibpath_var=LD_LIBRARY_PATH | |
11711 | shlibpath_overrides_runpath=yes | |
11712 | hardcode_into_libs=yes | |
11713 | # ldd complains unless libraries are executable | |
11714 | postinstall_cmds='chmod +x $lib' | |
11715 | ;; | |
9c60689e | 11716 | |
a243b558 JF |
11717 | sunos4*) |
11718 | version_type=sunos | |
11719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11720 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11721 | shlibpath_var=LD_LIBRARY_PATH | |
11722 | shlibpath_overrides_runpath=yes | |
11723 | if test "$with_gnu_ld" = yes; then | |
11724 | need_lib_prefix=no | |
11725 | fi | |
11726 | need_version=yes | |
11727 | ;; | |
9c60689e | 11728 | |
a243b558 JF |
11729 | sysv4 | sysv4.3*) |
11730 | version_type=linux # correct to gnu/linux during the next big refactor | |
11731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11732 | soname_spec='${libname}${release}${shared_ext}$major' | |
11733 | shlibpath_var=LD_LIBRARY_PATH | |
11734 | case $host_vendor in | |
11735 | sni) | |
11736 | shlibpath_overrides_runpath=no | |
11737 | need_lib_prefix=no | |
11738 | runpath_var=LD_RUN_PATH | |
11739 | ;; | |
11740 | siemens) | |
11741 | need_lib_prefix=no | |
11742 | ;; | |
11743 | motorola) | |
11744 | need_lib_prefix=no | |
11745 | need_version=no | |
11746 | shlibpath_overrides_runpath=no | |
11747 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11748 | ;; | |
11749 | esac | |
11750 | ;; | |
9c60689e | 11751 | |
a243b558 JF |
11752 | sysv4*MP*) |
11753 | if test -d /usr/nec ;then | |
11754 | version_type=linux # correct to gnu/linux during the next big refactor | |
11755 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11756 | soname_spec='$libname${shared_ext}.$major' | |
11757 | shlibpath_var=LD_LIBRARY_PATH | |
11758 | fi | |
11759 | ;; | |
9c60689e | 11760 | |
a243b558 JF |
11761 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11762 | version_type=freebsd-elf | |
11763 | need_lib_prefix=no | |
11764 | need_version=no | |
11765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11766 | soname_spec='${libname}${release}${shared_ext}$major' | |
11767 | shlibpath_var=LD_LIBRARY_PATH | |
11768 | shlibpath_overrides_runpath=yes | |
11769 | hardcode_into_libs=yes | |
11770 | if test "$with_gnu_ld" = yes; then | |
11771 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11772 | else | |
11773 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11774 | case $host_os in | |
11775 | sco3.2v5*) | |
11776 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11777 | ;; | |
11778 | esac | |
11779 | fi | |
11780 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11781 | ;; | |
9c60689e | 11782 | |
a243b558 JF |
11783 | tpf*) |
11784 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11785 | version_type=linux # correct to gnu/linux during the next big refactor | |
11786 | need_lib_prefix=no | |
11787 | need_version=no | |
11788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11789 | shlibpath_var=LD_LIBRARY_PATH | |
11790 | shlibpath_overrides_runpath=no | |
11791 | hardcode_into_libs=yes | |
11792 | ;; | |
9c60689e | 11793 | |
a243b558 JF |
11794 | uts4*) |
11795 | version_type=linux # correct to gnu/linux during the next big refactor | |
11796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11797 | soname_spec='${libname}${release}${shared_ext}$major' | |
11798 | shlibpath_var=LD_LIBRARY_PATH | |
11799 | ;; | |
9c60689e | 11800 | |
a243b558 JF |
11801 | *) |
11802 | dynamic_linker=no | |
11803 | ;; | |
11804 | esac | |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11806 | $as_echo "$dynamic_linker" >&6; } | |
11807 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 11808 | |
a243b558 JF |
11809 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11810 | if test "$GCC" = yes; then | |
11811 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11812 | fi | |
9c60689e | 11813 | |
a243b558 JF |
11814 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11815 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11816 | fi | |
11817 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11818 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11819 | fi | |
9c60689e DWT |
11820 | |
11821 | ||
11822 | ||
11823 | ||
11824 | ||
11825 | ||
11826 | ||
11827 | ||
9c60689e DWT |
11828 | |
11829 | ||
11830 | ||
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | ||
11836 | ||
11837 | ||
11838 | ||
11839 | ||
9c60689e | 11840 | |
9c60689e | 11841 | |
9c60689e | 11842 | |
9c60689e | 11843 | |
9c60689e DWT |
11844 | |
11845 | ||
11846 | ||
11847 | ||
9c60689e | 11848 | |
9c60689e DWT |
11849 | |
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | ||
11860 | ||
11861 | ||
53ba6704 JF |
11862 | |
11863 | ||
9c60689e DWT |
11864 | |
11865 | ||
11866 | ||
11867 | ||
9c60689e DWT |
11868 | |
11869 | ||
3fd51f51 | 11870 | |
66170b30 JF |
11871 | |
11872 | ||
11873 | ||
3fd51f51 | 11874 | |
12833ad8 JF |
11875 | |
11876 | ||
11877 | ||
11878 | ||
3fd51f51 | 11879 | |
3fd51f51 DWT |
11880 | |
11881 | ||
3fd51f51 | 11882 | |
3fd51f51 | 11883 | |
3fd51f51 | 11884 | |
66170b30 | 11885 | |
632b71ea | 11886 | |
632b71ea DWT |
11887 | |
11888 | ||
790e5246 | 11889 | |
66170b30 | 11890 | |
9c60689e | 11891 | |
9c60689e DWT |
11892 | |
11893 | ||
9c60689e | 11894 | |
9c60689e DWT |
11895 | |
11896 | ||
66170b30 | 11897 | |
66170b30 | 11898 | |
9c60689e | 11899 | |
e9c9a47c DWT |
11900 | |
11901 | ||
11902 | ||
66170b30 JF |
11903 | |
11904 | ||
66170b30 | 11905 | |
e9c9a47c | 11906 | |
a243b558 JF |
11907 | |
11908 | ||
11909 | ||
11910 | ||
11911 | ||
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11913 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11914 | hardcode_action= | |
11915 | if test -n "$hardcode_libdir_flag_spec" || | |
11916 | test -n "$runpath_var" || | |
11917 | test "X$hardcode_automatic" = "Xyes" ; then | |
11918 | ||
11919 | # We can hardcode non-existent directories. | |
11920 | if test "$hardcode_direct" != no && | |
11921 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11922 | # have to relink, otherwise we might link with an installed library | |
11923 | # when we should be linking with a yet-to-be-installed one | |
11924 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11925 | test "$hardcode_minus_L" != no; then | |
11926 | # Linking always hardcodes the temporary library directory. | |
11927 | hardcode_action=relink | |
11928 | else | |
11929 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11930 | hardcode_action=immediate | |
9c60689e | 11931 | fi |
e9c9a47c | 11932 | else |
a243b558 JF |
11933 | # We cannot hardcode anything, or else we can only hardcode existing |
11934 | # directories. | |
11935 | hardcode_action=unsupported | |
11936 | fi | |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11938 | $as_echo "$hardcode_action" >&6; } | |
11939 | ||
11940 | if test "$hardcode_action" = relink || | |
11941 | test "$inherit_rpath" = yes; then | |
11942 | # Fast installation is not supported | |
11943 | enable_fast_install=no | |
11944 | elif test "$shlibpath_overrides_runpath" = yes || | |
11945 | test "$enable_shared" = no; then | |
11946 | # Fast installation is not necessary | |
11947 | enable_fast_install=needless | |
9c60689e | 11948 | fi |
9c60689e | 11949 | |
9c60689e | 11950 | |
66170b30 | 11951 | |
66170b30 | 11952 | |
9c60689e | 11953 | |
a243b558 JF |
11954 | |
11955 | if test "x$enable_dlopen" != xyes; then | |
11956 | enable_dlopen=unknown | |
11957 | enable_dlopen_self=unknown | |
11958 | enable_dlopen_self_static=unknown | |
66170b30 | 11959 | else |
a243b558 JF |
11960 | lt_cv_dlopen=no |
11961 | lt_cv_dlopen_libs= | |
66170b30 | 11962 | |
a243b558 JF |
11963 | case $host_os in |
11964 | beos*) | |
11965 | lt_cv_dlopen="load_add_on" | |
11966 | lt_cv_dlopen_libs= | |
11967 | lt_cv_dlopen_self=yes | |
11968 | ;; | |
66170b30 | 11969 | |
a243b558 JF |
11970 | mingw* | pw32* | cegcc*) |
11971 | lt_cv_dlopen="LoadLibrary" | |
11972 | lt_cv_dlopen_libs= | |
11973 | ;; | |
66170b30 | 11974 | |
a243b558 JF |
11975 | cygwin*) |
11976 | lt_cv_dlopen="dlopen" | |
11977 | lt_cv_dlopen_libs= | |
11978 | ;; | |
66170b30 | 11979 | |
a243b558 JF |
11980 | darwin*) |
11981 | # if libdl is installed we need to link against it | |
11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11983 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11984 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11985 | $as_echo_n "(cached) " >&6 | |
11986 | else | |
11987 | ac_check_lib_save_LIBS=$LIBS | |
11988 | LIBS="-ldl $LIBS" | |
11989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11990 | /* end confdefs.h. */ | |
66170b30 | 11991 | |
a243b558 JF |
11992 | /* Override any GCC internal prototype to avoid an error. |
11993 | Use char because int might match the return type of a GCC | |
11994 | builtin and then its argument prototype would still apply. */ | |
11995 | #ifdef __cplusplus | |
11996 | extern "C" | |
11997 | #endif | |
11998 | char dlopen (); | |
11999 | int | |
12000 | main () | |
12001 | { | |
12002 | return dlopen (); | |
12003 | ; | |
12004 | return 0; | |
12005 | } | |
12006 | _ACEOF | |
12007 | if ac_fn_c_try_link "$LINENO"; then : | |
12008 | ac_cv_lib_dl_dlopen=yes | |
12009 | else | |
12010 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12011 | fi |
a243b558 JF |
12012 | rm -f core conftest.err conftest.$ac_objext \ |
12013 | conftest$ac_exeext conftest.$ac_ext | |
12014 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12015 | fi |
a243b558 JF |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12017 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12018 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12019 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12020 | else | |
66170b30 | 12021 | |
a243b558 JF |
12022 | lt_cv_dlopen="dyld" |
12023 | lt_cv_dlopen_libs= | |
12024 | lt_cv_dlopen_self=yes | |
66170b30 | 12025 | |
a243b558 | 12026 | fi |
9c60689e | 12027 | |
a243b558 | 12028 | ;; |
9c60689e | 12029 | |
a243b558 JF |
12030 | *) |
12031 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12032 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12033 | lt_cv_dlopen="shl_load" | |
12034 | else | |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12036 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12037 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12038 | $as_echo_n "(cached) " >&6 | |
12039 | else | |
12040 | ac_check_lib_save_LIBS=$LIBS | |
12041 | LIBS="-ldld $LIBS" | |
12042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12043 | /* end confdefs.h. */ | |
66170b30 | 12044 | |
a243b558 JF |
12045 | /* Override any GCC internal prototype to avoid an error. |
12046 | Use char because int might match the return type of a GCC | |
12047 | builtin and then its argument prototype would still apply. */ | |
12048 | #ifdef __cplusplus | |
12049 | extern "C" | |
12050 | #endif | |
12051 | char shl_load (); | |
12052 | int | |
12053 | main () | |
12054 | { | |
12055 | return shl_load (); | |
12056 | ; | |
12057 | return 0; | |
12058 | } | |
12059 | _ACEOF | |
12060 | if ac_fn_c_try_link "$LINENO"; then : | |
12061 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12062 | else |
a243b558 JF |
12063 | ac_cv_lib_dld_shl_load=no |
12064 | fi | |
12065 | rm -f core conftest.err conftest.$ac_objext \ | |
12066 | conftest$ac_exeext conftest.$ac_ext | |
12067 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12068 | fi |
a243b558 JF |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12070 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12071 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12072 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12073 | else | |
12074 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12075 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12076 | lt_cv_dlopen="dlopen" | |
12077 | else | |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12079 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12080 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12081 | $as_echo_n "(cached) " >&6 | |
12082 | else | |
12083 | ac_check_lib_save_LIBS=$LIBS | |
12084 | LIBS="-ldl $LIBS" | |
12085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12086 | /* end confdefs.h. */ | |
e9c9a47c | 12087 | |
a243b558 JF |
12088 | /* Override any GCC internal prototype to avoid an error. |
12089 | Use char because int might match the return type of a GCC | |
12090 | builtin and then its argument prototype would still apply. */ | |
12091 | #ifdef __cplusplus | |
12092 | extern "C" | |
12093 | #endif | |
12094 | char dlopen (); | |
12095 | int | |
12096 | main () | |
12097 | { | |
12098 | return dlopen (); | |
12099 | ; | |
12100 | return 0; | |
12101 | } | |
12102 | _ACEOF | |
12103 | if ac_fn_c_try_link "$LINENO"; then : | |
12104 | ac_cv_lib_dl_dlopen=yes | |
12105 | else | |
12106 | ac_cv_lib_dl_dlopen=no | |
12107 | fi | |
12108 | rm -f core conftest.err conftest.$ac_objext \ | |
12109 | conftest$ac_exeext conftest.$ac_ext | |
12110 | LIBS=$ac_check_lib_save_LIBS | |
12111 | fi | |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12113 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12114 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12115 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12116 | else | |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12118 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12119 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12120 | $as_echo_n "(cached) " >&6 | |
12121 | else | |
12122 | ac_check_lib_save_LIBS=$LIBS | |
12123 | LIBS="-lsvld $LIBS" | |
12124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12125 | /* end confdefs.h. */ | |
12126 | ||
12127 | /* Override any GCC internal prototype to avoid an error. | |
12128 | Use char because int might match the return type of a GCC | |
12129 | builtin and then its argument prototype would still apply. */ | |
12130 | #ifdef __cplusplus | |
12131 | extern "C" | |
12132 | #endif | |
12133 | char dlopen (); | |
12134 | int | |
12135 | main () | |
12136 | { | |
12137 | return dlopen (); | |
12138 | ; | |
12139 | return 0; | |
12140 | } | |
12141 | _ACEOF | |
12142 | if ac_fn_c_try_link "$LINENO"; then : | |
12143 | ac_cv_lib_svld_dlopen=yes | |
12144 | else | |
12145 | ac_cv_lib_svld_dlopen=no | |
12146 | fi | |
12147 | rm -f core conftest.err conftest.$ac_objext \ | |
12148 | conftest$ac_exeext conftest.$ac_ext | |
12149 | LIBS=$ac_check_lib_save_LIBS | |
12150 | fi | |
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12152 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12153 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12154 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12155 | else | |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12157 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12158 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12159 | $as_echo_n "(cached) " >&6 | |
12160 | else | |
12161 | ac_check_lib_save_LIBS=$LIBS | |
12162 | LIBS="-ldld $LIBS" | |
12163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12164 | /* end confdefs.h. */ | |
12165 | ||
12166 | /* Override any GCC internal prototype to avoid an error. | |
12167 | Use char because int might match the return type of a GCC | |
12168 | builtin and then its argument prototype would still apply. */ | |
12169 | #ifdef __cplusplus | |
12170 | extern "C" | |
12171 | #endif | |
12172 | char dld_link (); | |
12173 | int | |
12174 | main () | |
12175 | { | |
12176 | return dld_link (); | |
12177 | ; | |
12178 | return 0; | |
12179 | } | |
12180 | _ACEOF | |
12181 | if ac_fn_c_try_link "$LINENO"; then : | |
12182 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12183 | else |
a243b558 JF |
12184 | ac_cv_lib_dld_dld_link=no |
12185 | fi | |
12186 | rm -f core conftest.err conftest.$ac_objext \ | |
12187 | conftest$ac_exeext conftest.$ac_ext | |
12188 | LIBS=$ac_check_lib_save_LIBS | |
12189 | fi | |
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12191 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12192 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12193 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9c60689e DWT |
12194 | fi |
12195 | ||
12196 | ||
a243b558 | 12197 | fi |
66170b30 | 12198 | |
66170b30 | 12199 | |
a243b558 | 12200 | fi |
66170b30 | 12201 | |
66170b30 JF |
12202 | |
12203 | fi | |
e9c9a47c | 12204 | |
66170b30 | 12205 | |
a243b558 | 12206 | fi |
66170b30 | 12207 | |
66170b30 | 12208 | |
66170b30 | 12209 | fi |
e9c9a47c | 12210 | |
a243b558 JF |
12211 | ;; |
12212 | esac | |
9c60689e | 12213 | |
a243b558 JF |
12214 | if test "x$lt_cv_dlopen" != xno; then |
12215 | enable_dlopen=yes | |
12216 | else | |
12217 | enable_dlopen=no | |
12218 | fi | |
9c60689e | 12219 | |
a243b558 JF |
12220 | case $lt_cv_dlopen in |
12221 | dlopen) | |
12222 | save_CPPFLAGS="$CPPFLAGS" | |
12223 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12224 | |
a243b558 JF |
12225 | save_LDFLAGS="$LDFLAGS" |
12226 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
66170b30 | 12227 | |
a243b558 JF |
12228 | save_LIBS="$LIBS" |
12229 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
3fd51f51 | 12230 | |
a243b558 JF |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12232 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12233 | if ${lt_cv_dlopen_self+:} false; then : | |
12234 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12235 | else |
a243b558 JF |
12236 | if test "$cross_compiling" = yes; then : |
12237 | lt_cv_dlopen_self=cross | |
12238 | else | |
12239 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12240 | lt_status=$lt_dlunknown | |
12241 | cat > conftest.$ac_ext <<_LT_EOF | |
12242 | #line $LINENO "configure" | |
12243 | #include "confdefs.h" | |
e9c9a47c | 12244 | |
a243b558 JF |
12245 | #if HAVE_DLFCN_H |
12246 | #include <dlfcn.h> | |
12247 | #endif | |
e9c9a47c | 12248 | |
a243b558 | 12249 | #include <stdio.h> |
66170b30 | 12250 | |
a243b558 JF |
12251 | #ifdef RTLD_GLOBAL |
12252 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12253 | #else | |
12254 | # ifdef DL_GLOBAL | |
12255 | # define LT_DLGLOBAL DL_GLOBAL | |
12256 | # else | |
12257 | # define LT_DLGLOBAL 0 | |
12258 | # endif | |
12259 | #endif | |
66170b30 | 12260 | |
a243b558 JF |
12261 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12262 | find out it does not work in some platform. */ | |
12263 | #ifndef LT_DLLAZY_OR_NOW | |
12264 | # ifdef RTLD_LAZY | |
12265 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12266 | # else | |
12267 | # ifdef DL_LAZY | |
12268 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12269 | # else | |
12270 | # ifdef RTLD_NOW | |
12271 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12272 | # else | |
12273 | # ifdef DL_NOW | |
12274 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12275 | # else | |
12276 | # define LT_DLLAZY_OR_NOW 0 | |
12277 | # endif | |
12278 | # endif | |
12279 | # endif | |
12280 | # endif | |
12281 | #endif | |
e9c9a47c | 12282 | |
a243b558 JF |
12283 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12284 | correspondingly for the symbols needed. */ | |
12285 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12286 | int fnord () __attribute__((visibility("default"))); | |
12287 | #endif | |
e9c9a47c | 12288 | |
a243b558 JF |
12289 | int fnord () { return 42; } |
12290 | int main () | |
12291 | { | |
12292 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12293 | int status = $lt_dlunknown; | |
e9c9a47c | 12294 | |
a243b558 JF |
12295 | if (self) |
12296 | { | |
12297 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12298 | else | |
12299 | { | |
12300 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12301 | else puts (dlerror ()); | |
12302 | } | |
12303 | /* dlclose (self); */ | |
12304 | } | |
12305 | else | |
12306 | puts (dlerror ()); | |
e9c9a47c | 12307 | |
a243b558 JF |
12308 | return status; |
12309 | } | |
12310 | _LT_EOF | |
12311 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12312 | (eval $ac_link) 2>&5 | |
12313 | ac_status=$? | |
12314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12315 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12316 | (./conftest; exit; ) >&5 2>/dev/null | |
12317 | lt_status=$? | |
12318 | case x$lt_status in | |
12319 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12320 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12321 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12322 | esac | |
12323 | else : | |
12324 | # compilation failed | |
12325 | lt_cv_dlopen_self=no | |
12326 | fi | |
12327 | fi | |
12328 | rm -fr conftest* | |
e9c9a47c | 12329 | |
e9c9a47c | 12330 | |
e9c9a47c | 12331 | fi |
a243b558 JF |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12333 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12334 | |
a243b558 JF |
12335 | if test "x$lt_cv_dlopen_self" = xyes; then |
12336 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12338 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12339 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12340 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12341 | else |
a243b558 JF |
12342 | if test "$cross_compiling" = yes; then : |
12343 | lt_cv_dlopen_self_static=cross | |
12344 | else | |
12345 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12346 | lt_status=$lt_dlunknown | |
12347 | cat > conftest.$ac_ext <<_LT_EOF | |
12348 | #line $LINENO "configure" | |
12349 | #include "confdefs.h" | |
12350 | ||
12351 | #if HAVE_DLFCN_H | |
12352 | #include <dlfcn.h> | |
12353 | #endif | |
12354 | ||
12355 | #include <stdio.h> | |
e9c9a47c | 12356 | |
a243b558 JF |
12357 | #ifdef RTLD_GLOBAL |
12358 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12359 | #else | |
12360 | # ifdef DL_GLOBAL | |
12361 | # define LT_DLGLOBAL DL_GLOBAL | |
12362 | # else | |
12363 | # define LT_DLGLOBAL 0 | |
12364 | # endif | |
12365 | #endif | |
e9c9a47c | 12366 | |
a243b558 JF |
12367 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12368 | find out it does not work in some platform. */ | |
12369 | #ifndef LT_DLLAZY_OR_NOW | |
12370 | # ifdef RTLD_LAZY | |
12371 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12372 | # else | |
12373 | # ifdef DL_LAZY | |
12374 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12375 | # else | |
12376 | # ifdef RTLD_NOW | |
12377 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12378 | # else | |
12379 | # ifdef DL_NOW | |
12380 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12381 | # else | |
12382 | # define LT_DLLAZY_OR_NOW 0 | |
12383 | # endif | |
12384 | # endif | |
12385 | # endif | |
12386 | # endif | |
12387 | #endif | |
66170b30 | 12388 | |
a243b558 JF |
12389 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12390 | correspondingly for the symbols needed. */ | |
12391 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12392 | int fnord () __attribute__((visibility("default"))); | |
12393 | #endif | |
e9c9a47c | 12394 | |
a243b558 JF |
12395 | int fnord () { return 42; } |
12396 | int main () | |
12397 | { | |
12398 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12399 | int status = $lt_dlunknown; | |
e9c9a47c | 12400 | |
a243b558 JF |
12401 | if (self) |
12402 | { | |
12403 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12404 | else | |
12405 | { | |
12406 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12407 | else puts (dlerror ()); | |
12408 | } | |
12409 | /* dlclose (self); */ | |
12410 | } | |
12411 | else | |
12412 | puts (dlerror ()); | |
e9c9a47c | 12413 | |
a243b558 JF |
12414 | return status; |
12415 | } | |
12416 | _LT_EOF | |
12417 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12418 | (eval $ac_link) 2>&5 | |
12419 | ac_status=$? | |
12420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12421 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12422 | (./conftest; exit; ) >&5 2>/dev/null | |
12423 | lt_status=$? | |
12424 | case x$lt_status in | |
12425 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12426 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12427 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12428 | esac | |
12429 | else : | |
12430 | # compilation failed | |
12431 | lt_cv_dlopen_self_static=no | |
12432 | fi | |
12433 | fi | |
12434 | rm -fr conftest* | |
e9c9a47c | 12435 | |
b65019fe | 12436 | |
a243b558 JF |
12437 | fi |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12439 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12440 | fi | |
66170b30 | 12441 | |
a243b558 JF |
12442 | CPPFLAGS="$save_CPPFLAGS" |
12443 | LDFLAGS="$save_LDFLAGS" | |
12444 | LIBS="$save_LIBS" | |
12445 | ;; | |
12446 | esac | |
66170b30 | 12447 | |
a243b558 JF |
12448 | case $lt_cv_dlopen_self in |
12449 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12450 | *) enable_dlopen_self=unknown ;; | |
12451 | esac | |
12452 | ||
12453 | case $lt_cv_dlopen_self_static in | |
12454 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12455 | *) enable_dlopen_self_static=unknown ;; | |
12456 | esac | |
b65019fe DWT |
12457 | fi |
12458 | ||
12459 | ||
66170b30 | 12460 | |
b65019fe | 12461 | |
e9c9a47c | 12462 | |
e9c9a47c DWT |
12463 | |
12464 | ||
e9c9a47c | 12465 | |
e9c9a47c DWT |
12466 | |
12467 | ||
e9c9a47c | 12468 | |
e9c9a47c | 12469 | |
3530897b | 12470 | |
47aaa820 | 12471 | |
47aaa820 | 12472 | |
a243b558 JF |
12473 | |
12474 | ||
12475 | striplib= | |
12476 | old_striplib= | |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12478 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12479 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12480 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12481 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12483 | $as_echo "yes" >&6; } | |
47aaa820 | 12484 | else |
a243b558 JF |
12485 | # FIXME - insert some real tests, host_os isn't really good enough |
12486 | case $host_os in | |
12487 | darwin*) | |
12488 | if test -n "$STRIP" ; then | |
12489 | striplib="$STRIP -x" | |
12490 | old_striplib="$STRIP -S" | |
12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12492 | $as_echo "yes" >&6; } | |
12493 | else | |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12495 | $as_echo "no" >&6; } | |
12496 | fi | |
12497 | ;; | |
12498 | *) | |
12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12500 | $as_echo "no" >&6; } | |
12501 | ;; | |
12502 | esac | |
3530897b | 12503 | fi |
47aaa820 | 12504 | |
3530897b DWT |
12505 | |
12506 | ||
9c60689e | 12507 | |
9c60689e | 12508 | |
9c60689e | 12509 | |
9c60689e | 12510 | |
9c60689e | 12511 | |
66170b30 | 12512 | |
66170b30 | 12513 | |
66170b30 | 12514 | |
66170b30 | 12515 | |
a243b558 JF |
12516 | # Report which library types will actually be built |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12518 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12520 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 12521 | |
a243b558 JF |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12523 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12524 | test "$can_build_shared" = "no" && enable_shared=no | |
66170b30 | 12525 | |
a243b558 JF |
12526 | # On AIX, shared libraries and static libraries use the same namespace, and |
12527 | # are all built from PIC. | |
12528 | case $host_os in | |
12529 | aix3*) | |
12530 | test "$enable_shared" = yes && enable_static=no | |
12531 | if test -n "$RANLIB"; then | |
12532 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12533 | postinstall_cmds='$RANLIB $lib' | |
12534 | fi | |
12535 | ;; | |
66170b30 | 12536 | |
a243b558 JF |
12537 | aix[4-9]*) |
12538 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12539 | test "$enable_shared" = yes && enable_static=no | |
12540 | fi | |
12541 | ;; | |
12542 | esac | |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12544 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 12545 | |
a243b558 JF |
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12547 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12548 | # Make sure either enable_shared or enable_static is yes. | |
12549 | test "$enable_shared" = yes || enable_static=yes | |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12551 | $as_echo "$enable_static" >&6; } | |
66170b30 | 12552 | |
9c60689e | 12553 | |
e9c9a47c | 12554 | |
9c60689e | 12555 | |
a243b558 JF |
12556 | fi |
12557 | ac_ext=c | |
12558 | ac_cpp='$CPP $CPPFLAGS' | |
12559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12562 | ||
12563 | CC="$lt_save_CC" | |
e9c9a47c | 12564 | |
ee134472 | 12565 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
e9c9a47c DWT |
12566 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
12567 | (test "X$CXX" != "Xg++"))) ; then | |
12568 | ac_ext=cpp | |
12569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12574 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12575 | if test -z "$CXXCPP"; then | |
ee134472 | 12576 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
12577 | $as_echo_n "(cached) " >&6 |
12578 | else | |
12579 | # Double quotes because CXXCPP needs to be expanded | |
12580 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12581 | do | |
12582 | ac_preproc_ok=false | |
12583 | for ac_cxx_preproc_warn_flag in '' yes | |
12584 | do | |
12585 | # Use a header file that comes with gcc, so configuring glibc | |
12586 | # with a fresh cross-compiler works. | |
12587 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12588 | # <limits.h> exists even on freestanding compilers. | |
12589 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12590 | # not just through cpp. "Syntax error" is here to catch this case. | |
12591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12592 | /* end confdefs.h. */ | |
12593 | #ifdef __STDC__ | |
12594 | # include <limits.h> | |
12595 | #else | |
12596 | # include <assert.h> | |
12597 | #endif | |
12598 | Syntax error | |
12599 | _ACEOF | |
12600 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12601 | ||
12602 | else | |
12603 | # Broken: fails on valid input. | |
12604 | continue | |
12605 | fi | |
12833ad8 | 12606 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12607 | |
12608 | # OK, works on sane cases. Now check whether nonexistent headers | |
12609 | # can be detected and how. | |
12610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12611 | /* end confdefs.h. */ | |
12612 | #include <ac_nonexistent.h> | |
12613 | _ACEOF | |
12614 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12615 | # Broken: success on invalid input. | |
12616 | continue | |
12617 | else | |
12618 | # Passes both tests. | |
12619 | ac_preproc_ok=: | |
12620 | break | |
12621 | fi | |
12833ad8 | 12622 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12623 | |
12624 | done | |
12625 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12626 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12627 | if $ac_preproc_ok; then : |
12628 | break | |
12629 | fi | |
12630 | ||
12631 | done | |
12632 | ac_cv_prog_CXXCPP=$CXXCPP | |
12633 | ||
12634 | fi | |
12635 | CXXCPP=$ac_cv_prog_CXXCPP | |
12636 | else | |
12637 | ac_cv_prog_CXXCPP=$CXXCPP | |
12638 | fi | |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12640 | $as_echo "$CXXCPP" >&6; } | |
12641 | ac_preproc_ok=false | |
12642 | for ac_cxx_preproc_warn_flag in '' yes | |
12643 | do | |
12644 | # Use a header file that comes with gcc, so configuring glibc | |
12645 | # with a fresh cross-compiler works. | |
12646 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12647 | # <limits.h> exists even on freestanding compilers. | |
12648 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12649 | # not just through cpp. "Syntax error" is here to catch this case. | |
12650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12651 | /* end confdefs.h. */ | |
12652 | #ifdef __STDC__ | |
12653 | # include <limits.h> | |
12654 | #else | |
12655 | # include <assert.h> | |
12656 | #endif | |
12657 | Syntax error | |
12658 | _ACEOF | |
12659 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12660 | ||
12661 | else | |
12662 | # Broken: fails on valid input. | |
12663 | continue | |
12664 | fi | |
12833ad8 | 12665 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12666 | |
12667 | # OK, works on sane cases. Now check whether nonexistent headers | |
12668 | # can be detected and how. | |
12669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12670 | /* end confdefs.h. */ | |
12671 | #include <ac_nonexistent.h> | |
12672 | _ACEOF | |
12673 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12674 | # Broken: success on invalid input. | |
12675 | continue | |
12676 | else | |
12677 | # Passes both tests. | |
12678 | ac_preproc_ok=: | |
12679 | break | |
12680 | fi | |
12833ad8 | 12681 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12682 | |
12683 | done | |
12684 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12685 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12686 | if $ac_preproc_ok; then : |
12687 | ||
12688 | else | |
12689 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
12691 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12692 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
12693 | fi |
12694 | ||
a243b558 JF |
12695 | ac_ext=c |
12696 | ac_cpp='$CPP $CPPFLAGS' | |
12697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
12700 | |
12701 | else | |
e9c9a47c DWT |
12702 | _lt_caught_CXX_error=yes |
12703 | fi | |
12704 | ||
9c60689e DWT |
12705 | ac_ext=cpp |
12706 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12707 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12708 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12709 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 12710 | |
47aaa820 DWT |
12711 | archive_cmds_need_lc_CXX=no |
12712 | allow_undefined_flag_CXX= | |
12713 | always_export_symbols_CXX=no | |
12714 | archive_expsym_cmds_CXX= | |
12715 | compiler_needs_object_CXX=no | |
12716 | export_dynamic_flag_spec_CXX= | |
12717 | hardcode_direct_CXX=no | |
12718 | hardcode_direct_absolute_CXX=no | |
12719 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
12720 | hardcode_libdir_separator_CXX= |
12721 | hardcode_minus_L_CXX=no | |
12722 | hardcode_shlibpath_var_CXX=unsupported | |
12723 | hardcode_automatic_CXX=no | |
12724 | inherit_rpath_CXX=no | |
12725 | module_cmds_CXX= | |
12726 | module_expsym_cmds_CXX= | |
12727 | link_all_deplibs_CXX=unknown | |
12728 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
12729 | reload_flag_CXX=$reload_flag |
12730 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
12731 | no_undefined_flag_CXX= |
12732 | whole_archive_flag_spec_CXX= | |
12733 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 12734 | |
47aaa820 DWT |
12735 | # Source file extension for C++ test sources. |
12736 | ac_ext=cpp | |
9c60689e | 12737 | |
47aaa820 DWT |
12738 | # Object file extension for compiled C++ test sources. |
12739 | objext=o | |
12740 | objext_CXX=$objext | |
9c60689e | 12741 | |
47aaa820 DWT |
12742 | # No sense in running all these tests if we already determined that |
12743 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12744 | # are currently assumed to apply to all compilers on this platform, | |
12745 | # and will be corrupted by setting them based on a non-working compiler. | |
12746 | if test "$_lt_caught_CXX_error" != yes; then | |
12747 | # Code to be used in simple compile tests | |
12748 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 12749 | |
47aaa820 DWT |
12750 | # Code to be used in simple link tests |
12751 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 12752 | |
47aaa820 | 12753 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 12754 | |
9c60689e | 12755 | |
9c60689e | 12756 | |
9c60689e | 12757 | |
9c60689e | 12758 | |
9c60689e | 12759 | |
47aaa820 DWT |
12760 | # If no C compiler was specified, use CC. |
12761 | LTCC=${LTCC-"$CC"} | |
9c60689e | 12762 | |
47aaa820 DWT |
12763 | # If no C compiler flags were specified, use CFLAGS. |
12764 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 12765 | |
47aaa820 DWT |
12766 | # Allow CC to be a program name with arguments. |
12767 | compiler=$CC | |
9c60689e | 12768 | |
9c60689e | 12769 | |
47aaa820 DWT |
12770 | # save warnings/boilerplate of simple test code |
12771 | ac_outfile=conftest.$ac_objext | |
12772 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12773 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12774 | _lt_compiler_boilerplate=`cat conftest.err` | |
53ba6704 | 12775 | $RM -r conftest* |
9c60689e | 12776 | |
47aaa820 DWT |
12777 | ac_outfile=conftest.$ac_objext |
12778 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12779 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12780 | _lt_linker_boilerplate=`cat conftest.err` | |
12781 | $RM -r conftest* | |
9c60689e | 12782 | |
9c60689e | 12783 | |
47aaa820 DWT |
12784 | # Allow CC to be a program name with arguments. |
12785 | lt_save_CC=$CC | |
ee134472 | 12786 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
12787 | lt_save_LD=$LD |
12788 | lt_save_GCC=$GCC | |
12789 | GCC=$GXX | |
12790 | lt_save_with_gnu_ld=$with_gnu_ld | |
12791 | lt_save_path_LD=$lt_cv_path_LD | |
12792 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12793 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 12794 | else |
47aaa820 | 12795 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 12796 | fi |
47aaa820 DWT |
12797 | if test -n "${lt_cv_path_LDCXX+set}"; then |
12798 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 12799 | else |
47aaa820 | 12800 | $as_unset lt_cv_path_LD |
9c60689e | 12801 | fi |
47aaa820 DWT |
12802 | test -z "${LDCXX+set}" || LD=$LDCXX |
12803 | CC=${CXX-"c++"} | |
ee134472 | 12804 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
12805 | compiler=$CC |
12806 | compiler_CXX=$CC | |
12807 | for cc_temp in $compiler""; do | |
12808 | case $cc_temp in | |
12809 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12810 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12811 | \-*) ;; | |
12812 | *) break;; | |
12813 | esac | |
12814 | done | |
ee134472 | 12815 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
9c60689e DWT |
12816 | |
12817 | ||
47aaa820 DWT |
12818 | if test -n "$compiler"; then |
12819 | # We don't want -fno-exception when compiling C++ code, so set the | |
12820 | # no_builtin_flag separately | |
12821 | if test "$GXX" = yes; then | |
12822 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12823 | else | |
12824 | lt_prog_compiler_no_builtin_flag_CXX= | |
12825 | fi | |
9c60689e | 12826 | |
47aaa820 DWT |
12827 | if test "$GXX" = yes; then |
12828 | # Set up default GNU C++ configuration | |
12829 | ||
12830 | ||
12831 | ||
12832 | # Check whether --with-gnu-ld was given. | |
12833 | if test "${with_gnu_ld+set}" = set; then : | |
12834 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 12835 | else |
47aaa820 | 12836 | with_gnu_ld=no |
9c60689e DWT |
12837 | fi |
12838 | ||
47aaa820 DWT |
12839 | ac_prog=ld |
12840 | if test "$GCC" = yes; then | |
12841 | # Check if gcc -print-prog-name=ld gives a path. | |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12843 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12844 | case $host in | |
12845 | *-*-mingw*) | |
12846 | # gcc leaves a trailing carriage return which upsets mingw | |
12847 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12848 | *) | |
12849 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12850 | esac | |
12851 | case $ac_prog in | |
12852 | # Accept absolute paths. | |
12853 | [\\/]* | ?:[\\/]*) | |
12854 | re_direlt='/[^/][^/]*/\.\./' | |
12855 | # Canonicalize the pathname of ld | |
12856 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12857 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12858 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12859 | done | |
12860 | test -z "$LD" && LD="$ac_prog" | |
12861 | ;; | |
12862 | "") | |
12863 | # If it fails, then pretend we aren't using GCC. | |
12864 | ac_prog=ld | |
12865 | ;; | |
12866 | *) | |
12867 | # If it is relative, then search for the first ld in PATH. | |
12868 | with_gnu_ld=unknown | |
12869 | ;; | |
12870 | esac | |
12871 | elif test "$with_gnu_ld" = yes; then | |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12873 | $as_echo_n "checking for GNU ld... " >&6; } | |
12874 | else | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12876 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 12877 | fi |
ee134472 | 12878 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
12879 | $as_echo_n "(cached) " >&6 |
12880 | else | |
47aaa820 DWT |
12881 | if test -z "$LD"; then |
12882 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12883 | for ac_dir in $PATH; do | |
12884 | IFS="$lt_save_ifs" | |
12885 | test -z "$ac_dir" && ac_dir=. | |
12886 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12887 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12888 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12889 | # but apparently some variants of GNU ld only accept -v. | |
12890 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12891 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12892 | *GNU* | *'with BFD'*) | |
12893 | test "$with_gnu_ld" != no && break | |
12894 | ;; | |
12895 | *) | |
12896 | test "$with_gnu_ld" != yes && break | |
12897 | ;; | |
12898 | esac | |
12899 | fi | |
9c60689e | 12900 | done |
47aaa820 DWT |
12901 | IFS="$lt_save_ifs" |
12902 | else | |
12903 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
12904 | fi |
12905 | fi | |
47aaa820 DWT |
12906 | |
12907 | LD="$lt_cv_path_LD" | |
12908 | if test -n "$LD"; then | |
12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12910 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
12911 | else |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12913 | $as_echo "no" >&6; } | |
12914 | fi | |
12833ad8 | 12915 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12917 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 12918 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
12919 | $as_echo_n "(cached) " >&6 |
12920 | else | |
12921 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12922 | case `$LD -v 2>&1 </dev/null` in | |
12923 | *GNU* | *'with BFD'*) | |
12924 | lt_cv_prog_gnu_ld=yes | |
12925 | ;; | |
12926 | *) | |
12927 | lt_cv_prog_gnu_ld=no | |
12928 | ;; | |
12929 | esac | |
12930 | fi | |
12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12932 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12933 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
12934 | |
12935 | ||
9c60689e | 12936 | |
9c60689e | 12937 | |
9c60689e | 12938 | |
9c60689e | 12939 | |
9c60689e | 12940 | |
47aaa820 DWT |
12941 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
12942 | # archiving commands below assume that GNU ld is being used. | |
12943 | if test "$with_gnu_ld" = yes; then | |
ee134472 JF |
12944 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12945 | 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 | 12946 | |
47aaa820 DWT |
12947 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12948 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12949 | |
47aaa820 DWT |
12950 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12951 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12952 | # investigate it a little bit more. (MM) | |
12953 | wlarc='${wl}' | |
9c60689e | 12954 | |
47aaa820 DWT |
12955 | # ancient GNU ld didn't support --whole-archive et. al. |
12956 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12957 | $GREP 'no-whole-archive' > /dev/null; then | |
12958 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12959 | else | |
12960 | whole_archive_flag_spec_CXX= | |
12961 | fi | |
12962 | else | |
12963 | with_gnu_ld=no | |
12964 | wlarc= | |
12965 | ||
12966 | # A generic and very simple default shared library creation | |
12967 | # command for GNU C++ for the case where it uses the native | |
12968 | # linker, instead of GNU ld. If possible, this setting should | |
12969 | # overridden to take advantage of the native linker features on | |
12970 | # the platform it is being used on. | |
12971 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12972 | fi | |
12973 | ||
12974 | # Commands to make compiler produce verbose output that lists | |
12975 | # what "hidden" libraries, object files and flags are used when | |
12976 | # linking a shared library. | |
ee134472 | 12977 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
12978 | |
12979 | else | |
12980 | GXX=no | |
12981 | with_gnu_ld=no | |
12982 | wlarc= | |
12983 | fi | |
12984 | ||
12985 | # PORTME: fill in a description of your system's C++ link characteristics | |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12987 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12988 | ld_shlibs_CXX=yes | |
12989 | case $host_os in | |
12990 | aix3*) | |
12991 | # FIXME: insert proper C++ library support | |
12992 | ld_shlibs_CXX=no | |
12993 | ;; | |
12994 | aix[4-9]*) | |
12995 | if test "$host_cpu" = ia64; then | |
12996 | # On IA64, the linker does run time linking by default, so we don't | |
12997 | # have to do anything special. | |
12998 | aix_use_runtimelinking=no | |
12999 | exp_sym_flag='-Bexport' | |
13000 | no_entry_flag="" | |
13001 | else | |
13002 | aix_use_runtimelinking=no | |
13003 | ||
13004 | # Test if we are trying to use run time linking or normal | |
13005 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13006 | # need to do runtime linking. | |
13007 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13008 | for ld_flag in $LDFLAGS; do | |
13009 | case $ld_flag in | |
13010 | *-brtl*) | |
13011 | aix_use_runtimelinking=yes | |
13012 | break | |
13013 | ;; | |
13014 | esac | |
13015 | done | |
13016 | ;; | |
13017 | esac | |
13018 | ||
13019 | exp_sym_flag='-bexport' | |
13020 | no_entry_flag='-bnoentry' | |
13021 | fi | |
13022 | ||
13023 | # When large executables or shared objects are built, AIX ld can | |
13024 | # have problems creating the table of contents. If linking a library | |
13025 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13026 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13027 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13028 | ||
13029 | archive_cmds_CXX='' | |
13030 | hardcode_direct_CXX=yes | |
13031 | hardcode_direct_absolute_CXX=yes | |
13032 | hardcode_libdir_separator_CXX=':' | |
13033 | link_all_deplibs_CXX=yes | |
13034 | file_list_spec_CXX='${wl}-f,' | |
13035 | ||
13036 | if test "$GXX" = yes; then | |
13037 | case $host_os in aix4.[012]|aix4.[012].*) | |
13038 | # We only want to do this on AIX 4.2 and lower, the check | |
13039 | # below for broken collect2 doesn't work under 4.3+ | |
13040 | collect2name=`${CC} -print-prog-name=collect2` | |
13041 | if test -f "$collect2name" && | |
13042 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13043 | then | |
13044 | # We have reworked collect2 | |
13045 | : | |
13046 | else | |
13047 | # We have old collect2 | |
13048 | hardcode_direct_CXX=unsupported | |
13049 | # It fails to find uninstalled libraries when the uninstalled | |
13050 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13051 | # to unsupported forces relinking | |
13052 | hardcode_minus_L_CXX=yes | |
13053 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13054 | hardcode_libdir_separator_CXX= | |
13055 | fi | |
13056 | esac | |
13057 | shared_flag='-shared' | |
13058 | if test "$aix_use_runtimelinking" = yes; then | |
13059 | shared_flag="$shared_flag "'${wl}-G' | |
13060 | fi | |
13061 | else | |
13062 | # not using gcc | |
13063 | if test "$host_cpu" = ia64; then | |
13064 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13065 | # chokes on -Wl,-G. The following line is correct: | |
13066 | shared_flag='-G' | |
13067 | else | |
13068 | if test "$aix_use_runtimelinking" = yes; then | |
13069 | shared_flag='${wl}-G' | |
13070 | else | |
13071 | shared_flag='${wl}-bM:SRE' | |
13072 | fi | |
13073 | fi | |
13074 | fi | |
13075 | ||
13076 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13077 | # It seems that -bexpall does not export symbols beginning with | |
13078 | # underscore (_), so it is better to generate a list of symbols to | |
13079 | # export. | |
13080 | always_export_symbols_CXX=yes | |
13081 | if test "$aix_use_runtimelinking" = yes; then | |
13082 | # Warning - without using the other runtime loading flags (-brtl), | |
13083 | # -berok will link without error, but may produce a broken library. | |
13084 | allow_undefined_flag_CXX='-berok' | |
13085 | # Determine the default libpath from the value encoded in an empty | |
13086 | # executable. | |
ee134472 JF |
13087 | if test "${lt_cv_aix_libpath+set}" = set; then |
13088 | aix_libpath=$lt_cv_aix_libpath | |
13089 | else | |
13090 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13091 | $as_echo_n "(cached) " >&6 | |
13092 | else | |
13093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13094 | /* end confdefs.h. */ |
13095 | ||
13096 | int | |
13097 | main () | |
13098 | { | |
13099 | ||
13100 | ; | |
13101 | return 0; | |
13102 | } | |
13103 | _ACEOF | |
47aaa820 | 13104 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13105 | |
ee134472 JF |
13106 | lt_aix_libpath_sed=' |
13107 | /Import File Strings/,/^$/ { | |
13108 | /^0/ { | |
13109 | s/^0 *\([^ ]*\) *$/\1/ | |
13110 | p | |
13111 | } | |
13112 | }' | |
13113 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13114 | # Check for a 64-bit object if we didn't find anything. | |
13115 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13116 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13117 | fi | |
47aaa820 DWT |
13118 | fi |
13119 | rm -f core conftest.err conftest.$ac_objext \ | |
13120 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13121 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13122 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13123 | fi | |
13124 | ||
13125 | fi | |
13126 | ||
13127 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13128 | fi | |
47aaa820 DWT |
13129 | |
13130 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13131 | ||
ee134472 | 13132 | 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 |
13133 | else |
13134 | if test "$host_cpu" = ia64; then | |
13135 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13136 | allow_undefined_flag_CXX="-z nodefs" | |
13137 | 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" | |
13138 | else | |
13139 | # Determine the default libpath from the value encoded in an | |
13140 | # empty executable. | |
ee134472 JF |
13141 | if test "${lt_cv_aix_libpath+set}" = set; then |
13142 | aix_libpath=$lt_cv_aix_libpath | |
13143 | else | |
13144 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13145 | $as_echo_n "(cached) " >&6 | |
13146 | else | |
13147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13148 | /* end confdefs.h. */ |
13149 | ||
13150 | int | |
13151 | main () | |
13152 | { | |
13153 | ||
13154 | ; | |
13155 | return 0; | |
13156 | } | |
13157 | _ACEOF | |
47aaa820 | 13158 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13159 | |
ee134472 JF |
13160 | lt_aix_libpath_sed=' |
13161 | /Import File Strings/,/^$/ { | |
13162 | /^0/ { | |
13163 | s/^0 *\([^ ]*\) *$/\1/ | |
13164 | p | |
13165 | } | |
13166 | }' | |
13167 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13168 | # Check for a 64-bit object if we didn't find anything. | |
13169 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13170 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13171 | fi | |
9c60689e | 13172 | fi |
47aaa820 DWT |
13173 | rm -f core conftest.err conftest.$ac_objext \ |
13174 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13175 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13176 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13177 | fi | |
13178 | ||
13179 | fi | |
13180 | ||
13181 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13182 | fi | |
9c60689e | 13183 | |
47aaa820 DWT |
13184 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13185 | # Warning - without using the other run time loading flags, | |
13186 | # -berok will link without error, but may produce a broken library. | |
13187 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13188 | allow_undefined_flag_CXX=' ${wl}-berok' | |
ee134472 JF |
13189 | if test "$with_gnu_ld" = yes; then |
13190 | # We only use this code for GNU lds that support --whole-archive. | |
13191 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13192 | else | |
13193 | # Exported symbols can be pulled into shared objects from archives | |
13194 | whole_archive_flag_spec_CXX='$convenience' | |
13195 | fi | |
47aaa820 DWT |
13196 | archive_cmds_need_lc_CXX=yes |
13197 | # This is similar to how AIX traditionally builds its shared | |
13198 | # libraries. | |
13199 | 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' | |
13200 | fi | |
13201 | fi | |
13202 | ;; | |
9c60689e | 13203 | |
47aaa820 DWT |
13204 | beos*) |
13205 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13206 | allow_undefined_flag_CXX=unsupported | |
13207 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13208 | # support --undefined. This deserves some investigation. FIXME | |
13209 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13210 | else | |
13211 | ld_shlibs_CXX=no | |
13212 | fi | |
13213 | ;; | |
9c60689e | 13214 | |
47aaa820 DWT |
13215 | chorus*) |
13216 | case $cc_basename in | |
13217 | *) | |
13218 | # FIXME: insert proper C++ library support | |
13219 | ld_shlibs_CXX=no | |
13220 | ;; | |
13221 | esac | |
13222 | ;; | |
9c60689e | 13223 | |
47aaa820 | 13224 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13225 | case $GXX,$cc_basename in |
13226 | ,cl* | no,cl*) | |
13227 | # Native MSVC | |
13228 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13229 | # no search path for DLLs. | |
13230 | hardcode_libdir_flag_spec_CXX=' ' | |
13231 | allow_undefined_flag_CXX=unsupported | |
13232 | always_export_symbols_CXX=yes | |
13233 | file_list_spec_CXX='@' | |
13234 | # Tell ltmain to make .lib files, not .a files. | |
13235 | libext=lib | |
13236 | # Tell ltmain to make .dll files, not .so files. | |
13237 | shrext_cmds=".dll" | |
13238 | # FIXME: Setting linknames here is a bad hack. | |
13239 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
13240 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13241 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
13242 | else | |
13243 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
13244 | fi~ | |
13245 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13246 | linknames=' | |
13247 | # The linker will not automatically build a static lib if we build a DLL. | |
13248 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13249 | enable_shared_with_static_runtimes_CXX=yes | |
13250 | # Don't use ranlib | |
13251 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13252 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13253 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13254 | case $lt_outputfile in | |
13255 | *.exe|*.EXE) ;; | |
13256 | *) | |
13257 | lt_outputfile="$lt_outputfile.exe" | |
13258 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
13259 | ;; | |
13260 | esac~ | |
13261 | func_to_tool_file "$lt_outputfile"~ | |
13262 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
13263 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13264 | $RM "$lt_outputfile.manifest"; | |
13265 | fi' | |
13266 | ;; | |
13267 | *) | |
13268 | # g++ | |
13269 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13270 | # as there is no search path for DLLs. | |
13271 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13272 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13273 | allow_undefined_flag_CXX=unsupported | |
13274 | always_export_symbols_CXX=no | |
13275 | enable_shared_with_static_runtimes_CXX=yes | |
13276 | ||
13277 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13278 | 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' | |
13279 | # If the export-symbols file already is a .def file (1st line | |
13280 | # is EXPORTS), use it as is; otherwise, prepend... | |
13281 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13282 | cp $export_symbols $output_objdir/$soname.def; | |
13283 | else | |
13284 | echo EXPORTS > $output_objdir/$soname.def; | |
13285 | cat $export_symbols >> $output_objdir/$soname.def; | |
13286 | fi~ | |
13287 | $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' | |
13288 | else | |
13289 | ld_shlibs_CXX=no | |
13290 | fi | |
13291 | ;; | |
13292 | esac | |
13293 | ;; | |
47aaa820 | 13294 | darwin* | rhapsody*) |
9c60689e | 13295 | |
9c60689e | 13296 | |
47aaa820 DWT |
13297 | archive_cmds_need_lc_CXX=no |
13298 | hardcode_direct_CXX=no | |
13299 | hardcode_automatic_CXX=yes | |
13300 | hardcode_shlibpath_var_CXX=unsupported | |
ee134472 JF |
13301 | if test "$lt_cv_ld_force_load" = "yes"; then |
13302 | 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 | 13303 | |
ee134472 JF |
13304 | else |
13305 | whole_archive_flag_spec_CXX='' | |
13306 | fi | |
47aaa820 DWT |
13307 | link_all_deplibs_CXX=yes |
13308 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13309 | case $cc_basename in | |
13310 | ifort*) _lt_dar_can_shared=yes ;; | |
13311 | *) _lt_dar_can_shared=$GCC ;; | |
13312 | esac | |
13313 | if test "$_lt_dar_can_shared" = "yes"; then | |
ee134472 | 13314 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13315 | 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}" |
13316 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13317 | 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}" | |
13318 | 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}" | |
13319 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13320 | 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}" | |
13321 | 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}" | |
13322 | fi | |
9c60689e | 13323 | |
47aaa820 DWT |
13324 | else |
13325 | ld_shlibs_CXX=no | |
13326 | fi | |
9c60689e | 13327 | |
47aaa820 | 13328 | ;; |
9c60689e | 13329 | |
47aaa820 DWT |
13330 | dgux*) |
13331 | case $cc_basename in | |
13332 | ec++*) | |
13333 | # FIXME: insert proper C++ library support | |
13334 | ld_shlibs_CXX=no | |
13335 | ;; | |
13336 | ghcx*) | |
13337 | # Green Hills C++ Compiler | |
13338 | # FIXME: insert proper C++ library support | |
13339 | ld_shlibs_CXX=no | |
13340 | ;; | |
13341 | *) | |
13342 | # FIXME: insert proper C++ library support | |
13343 | ld_shlibs_CXX=no | |
13344 | ;; | |
13345 | esac | |
13346 | ;; | |
9c60689e | 13347 | |
53ba6704 | 13348 | freebsd2.*) |
47aaa820 DWT |
13349 | # C++ shared libraries reported to be fairly broken before |
13350 | # switch to ELF | |
13351 | ld_shlibs_CXX=no | |
13352 | ;; | |
9c60689e | 13353 | |
47aaa820 DWT |
13354 | freebsd-elf*) |
13355 | archive_cmds_need_lc_CXX=no | |
13356 | ;; | |
9c60689e | 13357 | |
47aaa820 DWT |
13358 | freebsd* | dragonfly*) |
13359 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13360 | # conventions | |
13361 | ld_shlibs_CXX=yes | |
13362 | ;; | |
9c60689e | 13363 | |
47aaa820 DWT |
13364 | gnu*) |
13365 | ;; | |
9c60689e | 13366 | |
ee134472 JF |
13367 | haiku*) |
13368 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13369 | link_all_deplibs_CXX=yes | |
13370 | ;; | |
13371 | ||
47aaa820 DWT |
13372 | hpux9*) |
13373 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13374 | hardcode_libdir_separator_CXX=: | |
13375 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13376 | hardcode_direct_CXX=yes | |
13377 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13378 | # but as the default | |
13379 | # location of the library. | |
9c60689e | 13380 | |
47aaa820 DWT |
13381 | case $cc_basename in |
13382 | CC*) | |
13383 | # FIXME: insert proper C++ library support | |
13384 | ld_shlibs_CXX=no | |
13385 | ;; | |
13386 | aCC*) | |
13387 | 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' | |
13388 | # Commands to make compiler produce verbose output that lists | |
13389 | # what "hidden" libraries, object files and flags are used when | |
13390 | # linking a shared library. | |
13391 | # | |
13392 | # There doesn't appear to be a way to prevent this compiler from | |
13393 | # explicitly linking system object files so we need to strip them | |
13394 | # from the output so that they don't get included in the library | |
13395 | # dependencies. | |
ee134472 | 13396 | 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 |
13397 | ;; |
13398 | *) | |
13399 | if test "$GXX" = yes; then | |
ee134472 | 13400 | 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 |
13401 | else |
13402 | # FIXME: insert proper C++ library support | |
13403 | ld_shlibs_CXX=no | |
13404 | fi | |
13405 | ;; | |
13406 | esac | |
13407 | ;; | |
9c60689e | 13408 | |
47aaa820 DWT |
13409 | hpux10*|hpux11*) |
13410 | if test $with_gnu_ld = no; then | |
13411 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13412 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13413 | |
47aaa820 DWT |
13414 | case $host_cpu in |
13415 | hppa*64*|ia64*) | |
13416 | ;; | |
13417 | *) | |
13418 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13419 | ;; | |
13420 | esac | |
13421 | fi | |
13422 | case $host_cpu in | |
13423 | hppa*64*|ia64*) | |
13424 | hardcode_direct_CXX=no | |
13425 | hardcode_shlibpath_var_CXX=no | |
13426 | ;; | |
13427 | *) | |
13428 | hardcode_direct_CXX=yes | |
13429 | hardcode_direct_absolute_CXX=yes | |
13430 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13431 | # but as the default | |
13432 | # location of the library. | |
13433 | ;; | |
13434 | esac | |
9c60689e | 13435 | |
47aaa820 DWT |
13436 | case $cc_basename in |
13437 | CC*) | |
13438 | # FIXME: insert proper C++ library support | |
13439 | ld_shlibs_CXX=no | |
13440 | ;; | |
13441 | aCC*) | |
13442 | case $host_cpu in | |
13443 | hppa*64*) | |
13444 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13445 | ;; | |
13446 | ia64*) | |
13447 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13448 | ;; | |
13449 | *) | |
13450 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13451 | ;; | |
13452 | esac | |
13453 | # Commands to make compiler produce verbose output that lists | |
13454 | # what "hidden" libraries, object files and flags are used when | |
13455 | # linking a shared library. | |
13456 | # | |
13457 | # There doesn't appear to be a way to prevent this compiler from | |
13458 | # explicitly linking system object files so we need to strip them | |
13459 | # from the output so that they don't get included in the library | |
13460 | # dependencies. | |
ee134472 | 13461 | 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 |
13462 | ;; |
13463 | *) | |
13464 | if test "$GXX" = yes; then | |
13465 | if test $with_gnu_ld = no; then | |
13466 | case $host_cpu in | |
13467 | hppa*64*) | |
13468 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13469 | ;; | |
13470 | ia64*) | |
ee134472 | 13471 | 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 |
13472 | ;; |
13473 | *) | |
ee134472 | 13474 | 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 |
13475 | ;; |
13476 | esac | |
13477 | fi | |
13478 | else | |
13479 | # FIXME: insert proper C++ library support | |
13480 | ld_shlibs_CXX=no | |
13481 | fi | |
13482 | ;; | |
13483 | esac | |
13484 | ;; | |
9c60689e | 13485 | |
47aaa820 DWT |
13486 | interix[3-9]*) |
13487 | hardcode_direct_CXX=no | |
13488 | hardcode_shlibpath_var_CXX=no | |
13489 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13490 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13491 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13492 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13493 | # default) and relocated if they conflict, which is a slow very memory | |
13494 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13495 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13496 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13497 | 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' | |
13498 | 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' | |
13499 | ;; | |
13500 | irix5* | irix6*) | |
13501 | case $cc_basename in | |
13502 | CC*) | |
13503 | # SGI C++ | |
ee134472 | 13504 | 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 | 13505 | |
47aaa820 DWT |
13506 | # Archives containing C++ object files must be created using |
13507 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13508 | # necessary to make sure instantiated templates are included | |
13509 | # in the archive. | |
13510 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13511 | ;; | |
13512 | *) | |
13513 | if test "$GXX" = yes; then | |
13514 | if test "$with_gnu_ld" = no; then | |
ee134472 | 13515 | 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 | 13516 | else |
ee134472 | 13517 | 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 |
13518 | fi |
13519 | fi | |
13520 | link_all_deplibs_CXX=yes | |
13521 | ;; | |
13522 | esac | |
13523 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13524 | hardcode_libdir_separator_CXX=: | |
13525 | inherit_rpath_CXX=yes | |
13526 | ;; | |
9c60689e | 13527 | |
1504c9b8 | 13528 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13529 | case $cc_basename in |
13530 | KCC*) | |
13531 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13532 | |
47aaa820 DWT |
13533 | # KCC will only create a shared library if the output file |
13534 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13535 | # to its proper name (with version) after linking. | |
13536 | 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' | |
13537 | 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' | |
13538 | # Commands to make compiler produce verbose output that lists | |
13539 | # what "hidden" libraries, object files and flags are used when | |
13540 | # linking a shared library. | |
13541 | # | |
13542 | # There doesn't appear to be a way to prevent this compiler from | |
13543 | # explicitly linking system object files so we need to strip them | |
13544 | # from the output so that they don't get included in the library | |
13545 | # dependencies. | |
ee134472 | 13546 | 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 | 13547 | |
47aaa820 DWT |
13548 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13549 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13550 | |
47aaa820 DWT |
13551 | # Archives containing C++ object files must be created using |
13552 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13553 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13554 | ;; | |
13555 | icpc* | ecpc* ) | |
13556 | # Intel C++ | |
13557 | with_gnu_ld=yes | |
13558 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13559 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13560 | # earlier do not add the objects themselves. | |
13561 | case `$CC -V 2>&1` in | |
13562 | *"Version 7."*) | |
13563 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13564 | 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' | |
13565 | ;; | |
13566 | *) # Version 8.0 or newer | |
13567 | tmp_idyn= | |
13568 | case $host_cpu in | |
13569 | ia64*) tmp_idyn=' -i_dynamic';; | |
13570 | esac | |
13571 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13572 | 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' | |
13573 | ;; | |
13574 | esac | |
13575 | archive_cmds_need_lc_CXX=no | |
13576 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13577 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13578 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13579 | ;; | |
13580 | pgCC* | pgcpp*) | |
13581 | # Portland Group C++ compiler | |
13582 | case `$CC -V` in | |
ee134472 | 13583 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 DWT |
13584 | prelink_cmds_CXX='tpldir=Template.dir~ |
13585 | rm -rf $tpldir~ | |
13586 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
ee134472 | 13587 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
47aaa820 DWT |
13588 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13589 | rm -rf $tpldir~ | |
13590 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
ee134472 | 13591 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
47aaa820 DWT |
13592 | $RANLIB $oldlib' |
13593 | archive_cmds_CXX='tpldir=Template.dir~ | |
13594 | rm -rf $tpldir~ | |
13595 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13596 | $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 |
13597 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13598 | rm -rf $tpldir~ | |
13599 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13600 | $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 | 13601 | ;; |
ee134472 | 13602 | *) # Version 6 and above use weak symbols |
47aaa820 DWT |
13603 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13604 | 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' | |
13605 | ;; | |
13606 | esac | |
9c60689e | 13607 | |
47aaa820 DWT |
13608 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13609 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
ee134472 | 13610 | 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 |
13611 | ;; |
13612 | cxx*) | |
13613 | # Compaq C++ | |
13614 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13615 | 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 | 13616 | |
47aaa820 DWT |
13617 | runpath_var=LD_RUN_PATH |
13618 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13619 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13620 | |
47aaa820 DWT |
13621 | # Commands to make compiler produce verbose output that lists |
13622 | # what "hidden" libraries, object files and flags are used when | |
13623 | # linking a shared library. | |
13624 | # | |
13625 | # There doesn't appear to be a way to prevent this compiler from | |
13626 | # explicitly linking system object files so we need to strip them | |
13627 | # from the output so that they don't get included in the library | |
13628 | # dependencies. | |
ee134472 | 13629 | 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 | 13630 | ;; |
ee134472 | 13631 | xl* | mpixl* | bgxl*) |
47aaa820 DWT |
13632 | # IBM XL 8.0 on PPC, with GNU ld |
13633 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13634 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13635 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13636 | if test "x$supports_anon_versioning" = xyes; then | |
13637 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13638 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13639 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13640 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13641 | fi | |
13642 | ;; | |
13643 | *) | |
13644 | case `$CC -V 2>&1 | sed 5q` in | |
13645 | *Sun\ C*) | |
13646 | # Sun C++ 5.9 | |
13647 | no_undefined_flag_CXX=' -zdefs' | |
13648 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13649 | 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' | |
13650 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
ee134472 | 13651 | 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 | 13652 | compiler_needs_object_CXX=yes |
9c60689e | 13653 | |
47aaa820 DWT |
13654 | # Not sure whether something based on |
13655 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13656 | # would be better. | |
ee134472 | 13657 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13658 | |
47aaa820 DWT |
13659 | # Archives containing C++ object files must be created using |
13660 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13661 | # necessary to make sure instantiated templates are included | |
13662 | # in the archive. | |
13663 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13664 | ;; | |
13665 | esac | |
13666 | ;; | |
13667 | esac | |
13668 | ;; | |
9c60689e | 13669 | |
47aaa820 DWT |
13670 | lynxos*) |
13671 | # FIXME: insert proper C++ library support | |
13672 | ld_shlibs_CXX=no | |
13673 | ;; | |
9c60689e | 13674 | |
47aaa820 DWT |
13675 | m88k*) |
13676 | # FIXME: insert proper C++ library support | |
13677 | ld_shlibs_CXX=no | |
13678 | ;; | |
9c60689e | 13679 | |
47aaa820 DWT |
13680 | mvs*) |
13681 | case $cc_basename in | |
13682 | cxx*) | |
13683 | # FIXME: insert proper C++ library support | |
13684 | ld_shlibs_CXX=no | |
13685 | ;; | |
13686 | *) | |
13687 | # FIXME: insert proper C++ library support | |
13688 | ld_shlibs_CXX=no | |
13689 | ;; | |
13690 | esac | |
13691 | ;; | |
9c60689e | 13692 | |
47aaa820 DWT |
13693 | netbsd*) |
13694 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13695 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13696 | wlarc= | |
13697 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13698 | hardcode_direct_CXX=yes | |
13699 | hardcode_shlibpath_var_CXX=no | |
13700 | fi | |
13701 | # Workaround some broken pre-1.5 toolchains | |
13702 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 13703 | ;; |
47aaa820 DWT |
13704 | |
13705 | *nto* | *qnx*) | |
13706 | ld_shlibs_CXX=yes | |
9c60689e | 13707 | ;; |
9c60689e | 13708 | |
47aaa820 DWT |
13709 | openbsd2*) |
13710 | # C++ shared libraries are fairly broken | |
13711 | ld_shlibs_CXX=no | |
13712 | ;; | |
9c60689e | 13713 | |
47aaa820 DWT |
13714 | openbsd*) |
13715 | if test -f /usr/libexec/ld.so; then | |
13716 | hardcode_direct_CXX=yes | |
13717 | hardcode_shlibpath_var_CXX=no | |
13718 | hardcode_direct_absolute_CXX=yes | |
13719 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13720 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13721 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13722 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13723 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13724 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13725 | fi | |
ee134472 | 13726 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13727 | else |
13728 | ld_shlibs_CXX=no | |
13729 | fi | |
13730 | ;; | |
9c60689e | 13731 | |
47aaa820 DWT |
13732 | osf3* | osf4* | osf5*) |
13733 | case $cc_basename in | |
13734 | KCC*) | |
13735 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13736 | |
47aaa820 DWT |
13737 | # KCC will only create a shared library if the output file |
13738 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13739 | # to its proper name (with version) after linking. | |
13740 | 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 | 13741 | |
47aaa820 DWT |
13742 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13743 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13744 | |
47aaa820 DWT |
13745 | # Archives containing C++ object files must be created using |
13746 | # the KAI C++ compiler. | |
13747 | case $host in | |
13748 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13749 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13750 | esac | |
13751 | ;; | |
13752 | RCC*) | |
13753 | # Rational C++ 2.4.1 | |
13754 | # FIXME: insert proper C++ library support | |
13755 | ld_shlibs_CXX=no | |
13756 | ;; | |
13757 | cxx*) | |
13758 | case $host in | |
13759 | osf3*) | |
13760 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
ee134472 | 13761 | 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 |
13762 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13763 | ;; | |
13764 | *) | |
13765 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
ee134472 | 13766 | 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 |
13767 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13768 | echo "-hidden">> $lib.exp~ | |
ee134472 | 13769 | $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 |
13770 | $RM $lib.exp' |
13771 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13772 | ;; | |
13773 | esac | |
9c60689e | 13774 | |
47aaa820 | 13775 | hardcode_libdir_separator_CXX=: |
9c60689e | 13776 | |
47aaa820 DWT |
13777 | # Commands to make compiler produce verbose output that lists |
13778 | # what "hidden" libraries, object files and flags are used when | |
13779 | # linking a shared library. | |
13780 | # | |
13781 | # There doesn't appear to be a way to prevent this compiler from | |
13782 | # explicitly linking system object files so we need to strip them | |
13783 | # from the output so that they don't get included in the library | |
13784 | # dependencies. | |
ee134472 | 13785 | 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 |
13786 | ;; |
13787 | *) | |
13788 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13789 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13790 | case $host in | |
13791 | osf3*) | |
ee134472 | 13792 | 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 |
13793 | ;; |
13794 | *) | |
ee134472 | 13795 | 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 |
13796 | ;; |
13797 | esac | |
9c60689e | 13798 | |
47aaa820 DWT |
13799 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13800 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13801 | |
47aaa820 DWT |
13802 | # Commands to make compiler produce verbose output that lists |
13803 | # what "hidden" libraries, object files and flags are used when | |
13804 | # linking a shared library. | |
ee134472 | 13805 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 13806 | |
47aaa820 DWT |
13807 | else |
13808 | # FIXME: insert proper C++ library support | |
13809 | ld_shlibs_CXX=no | |
13810 | fi | |
13811 | ;; | |
13812 | esac | |
13813 | ;; | |
9c60689e | 13814 | |
47aaa820 | 13815 | psos*) |
9c60689e DWT |
13816 | # FIXME: insert proper C++ library support |
13817 | ld_shlibs_CXX=no | |
13818 | ;; | |
9c60689e | 13819 | |
47aaa820 DWT |
13820 | sunos4*) |
13821 | case $cc_basename in | |
13822 | CC*) | |
13823 | # Sun C++ 4.x | |
13824 | # FIXME: insert proper C++ library support | |
13825 | ld_shlibs_CXX=no | |
9c60689e | 13826 | ;; |
47aaa820 DWT |
13827 | lcc*) |
13828 | # Lucid | |
13829 | # FIXME: insert proper C++ library support | |
13830 | ld_shlibs_CXX=no | |
13831 | ;; | |
13832 | *) | |
13833 | # FIXME: insert proper C++ library support | |
13834 | ld_shlibs_CXX=no | |
13835 | ;; | |
13836 | esac | |
13837 | ;; | |
9c60689e | 13838 | |
47aaa820 DWT |
13839 | solaris*) |
13840 | case $cc_basename in | |
ee134472 | 13841 | CC* | sunCC*) |
47aaa820 DWT |
13842 | # Sun C++ 4.2, 5.x and Centerline C++ |
13843 | archive_cmds_need_lc_CXX=yes | |
13844 | no_undefined_flag_CXX=' -zdefs' | |
13845 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13846 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13847 | $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 | 13848 | |
47aaa820 DWT |
13849 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13850 | hardcode_shlibpath_var_CXX=no | |
13851 | case $host_os in | |
13852 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13853 | *) | |
13854 | # The compiler driver will combine and reorder linker options, | |
13855 | # but understands `-z linker_flag'. | |
13856 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13857 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13858 | ;; | |
13859 | esac | |
13860 | link_all_deplibs_CXX=yes | |
9c60689e | 13861 | |
ee134472 | 13862 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13863 | |
47aaa820 DWT |
13864 | # Archives containing C++ object files must be created using |
13865 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13866 | # necessary to make sure instantiated templates are included | |
13867 | # in the archive. | |
13868 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13869 | ;; | |
13870 | gcx*) | |
13871 | # Green Hills C++ Compiler | |
13872 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 13873 | |
47aaa820 DWT |
13874 | # The C++ compiler must be used to create the archive. |
13875 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13876 | ;; | |
13877 | *) | |
13878 | # GNU C++ compiler with Solaris linker | |
13879 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13880 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13881 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
ee134472 | 13882 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
47aaa820 | 13883 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
ee134472 | 13884 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 13885 | |
47aaa820 DWT |
13886 | # Commands to make compiler produce verbose output that lists |
13887 | # what "hidden" libraries, object files and flags are used when | |
13888 | # linking a shared library. | |
ee134472 | 13889 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13890 | else |
13891 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13892 | # platform. | |
13893 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13894 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13895 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 13896 | |
47aaa820 DWT |
13897 | # Commands to make compiler produce verbose output that lists |
13898 | # what "hidden" libraries, object files and flags are used when | |
13899 | # linking a shared library. | |
ee134472 | 13900 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 13901 | fi |
9c60689e | 13902 | |
47aaa820 DWT |
13903 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
13904 | case $host_os in | |
13905 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13906 | *) | |
13907 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13908 | ;; | |
13909 | esac | |
13910 | fi | |
13911 | ;; | |
13912 | esac | |
13913 | ;; | |
9c60689e | 13914 | |
47aaa820 DWT |
13915 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
13916 | no_undefined_flag_CXX='${wl}-z,text' | |
13917 | archive_cmds_need_lc_CXX=no | |
13918 | hardcode_shlibpath_var_CXX=no | |
13919 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13920 | |
47aaa820 DWT |
13921 | case $cc_basename in |
13922 | CC*) | |
13923 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13924 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13925 | ;; | |
13926 | *) | |
13927 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13928 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13929 | ;; | |
13930 | esac | |
13931 | ;; | |
9c60689e | 13932 | |
47aaa820 DWT |
13933 | sysv5* | sco3.2v5* | sco5v6*) |
13934 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13935 | # link with -lc, and that would cause any symbols used from libc to | |
13936 | # always be unresolved, which means just about no library would | |
13937 | # ever link correctly. If we're not using GNU ld we use -z text | |
13938 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13939 | # as -z defs. | |
13940 | no_undefined_flag_CXX='${wl}-z,text' | |
13941 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13942 | archive_cmds_need_lc_CXX=no | |
13943 | hardcode_shlibpath_var_CXX=no | |
13944 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13945 | hardcode_libdir_separator_CXX=':' | |
13946 | link_all_deplibs_CXX=yes | |
13947 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13948 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13949 | |
47aaa820 DWT |
13950 | case $cc_basename in |
13951 | CC*) | |
13952 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13953 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 JF |
13954 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
13955 | '"$old_archive_cmds_CXX" | |
13956 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13957 | '"$reload_cmds_CXX" | |
47aaa820 DWT |
13958 | ;; |
13959 | *) | |
13960 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13961 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13962 | ;; | |
13963 | esac | |
13964 | ;; | |
9c60689e | 13965 | |
47aaa820 | 13966 | tandem*) |
9c60689e | 13967 | case $cc_basename in |
47aaa820 DWT |
13968 | NCC*) |
13969 | # NonStop-UX NCC 3.20 | |
13970 | # FIXME: insert proper C++ library support | |
13971 | ld_shlibs_CXX=no | |
13972 | ;; | |
9c60689e | 13973 | *) |
47aaa820 DWT |
13974 | # FIXME: insert proper C++ library support |
13975 | ld_shlibs_CXX=no | |
13976 | ;; | |
9c60689e DWT |
13977 | esac |
13978 | ;; | |
13979 | ||
47aaa820 DWT |
13980 | vxworks*) |
13981 | # FIXME: insert proper C++ library support | |
13982 | ld_shlibs_CXX=no | |
13983 | ;; | |
9c60689e | 13984 | |
47aaa820 DWT |
13985 | *) |
13986 | # FIXME: insert proper C++ library support | |
13987 | ld_shlibs_CXX=no | |
9c60689e | 13988 | ;; |
47aaa820 | 13989 | esac |
9c60689e | 13990 | |
47aaa820 DWT |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
13992 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13993 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 13994 | |
47aaa820 DWT |
13995 | GCC_CXX="$GXX" |
13996 | LD_CXX="$LD" | |
9c60689e | 13997 | |
47aaa820 DWT |
13998 | ## CAVEAT EMPTOR: |
13999 | ## There is no encapsulation within the following macros, do not change | |
14000 | ## the running order or otherwise move them around unless you know exactly | |
14001 | ## what you are doing... | |
14002 | # Dependencies to place before and after the object being linked: | |
14003 | predep_objects_CXX= | |
14004 | postdep_objects_CXX= | |
14005 | predeps_CXX= | |
14006 | postdeps_CXX= | |
14007 | compiler_lib_search_path_CXX= | |
9c60689e | 14008 | |
47aaa820 DWT |
14009 | cat > conftest.$ac_ext <<_LT_EOF |
14010 | class Foo | |
14011 | { | |
14012 | public: | |
14013 | Foo (void) { a = 0; } | |
14014 | private: | |
14015 | int a; | |
14016 | }; | |
14017 | _LT_EOF | |
9c60689e | 14018 | |
ee134472 JF |
14019 | |
14020 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14021 | case "$CC $CFLAGS " in #( | |
14022 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14023 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14024 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14025 | esac |
14026 | ||
47aaa820 DWT |
14027 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14028 | (eval $ac_compile) 2>&5 | |
14029 | ac_status=$? | |
14030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14031 | test $ac_status = 0; }; then | |
14032 | # Parse the compiler output and extract the necessary | |
14033 | # objects, libraries and library flags. | |
9c60689e | 14034 | |
47aaa820 DWT |
14035 | # Sentinel used to keep track of whether or not we are before |
14036 | # the conftest object file. | |
14037 | pre_test_object_deps_done=no | |
9c60689e | 14038 | |
47aaa820 | 14039 | for p in `eval "$output_verbose_link_cmd"`; do |
ee134472 | 14040 | case ${prev}${p} in |
9c60689e | 14041 | |
47aaa820 DWT |
14042 | -L* | -R* | -l*) |
14043 | # Some compilers place space between "-{L,R}" and the path. | |
14044 | # Remove the space. | |
14045 | if test $p = "-L" || | |
14046 | test $p = "-R"; then | |
14047 | prev=$p | |
14048 | continue | |
47aaa820 | 14049 | fi |
9c60689e | 14050 | |
ee134472 JF |
14051 | # Expand the sysroot to ease extracting the directories later. |
14052 | if test -z "$prev"; then | |
14053 | case $p in | |
14054 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14055 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14056 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14057 | esac | |
14058 | fi | |
14059 | case $p in | |
14060 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14061 | esac | |
47aaa820 | 14062 | if test "$pre_test_object_deps_done" = no; then |
ee134472 JF |
14063 | case ${prev} in |
14064 | -L | -R) | |
47aaa820 DWT |
14065 | # Internal compiler library paths should come after those |
14066 | # provided the user. The postdeps already come after the | |
14067 | # user supplied libs so there is no need to process them. | |
14068 | if test -z "$compiler_lib_search_path_CXX"; then | |
14069 | compiler_lib_search_path_CXX="${prev}${p}" | |
14070 | else | |
14071 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14072 | fi | |
14073 | ;; | |
14074 | # The "-l" case would never come before the object being | |
14075 | # linked, so don't bother handling this case. | |
14076 | esac | |
14077 | else | |
14078 | if test -z "$postdeps_CXX"; then | |
14079 | postdeps_CXX="${prev}${p}" | |
14080 | else | |
14081 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14082 | fi | |
14083 | fi | |
ee134472 | 14084 | prev= |
47aaa820 | 14085 | ;; |
9c60689e | 14086 | |
ee134472 | 14087 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14088 | *.$objext) |
14089 | # This assumes that the test object file only shows up | |
14090 | # once in the compiler output. | |
14091 | if test "$p" = "conftest.$objext"; then | |
14092 | pre_test_object_deps_done=yes | |
14093 | continue | |
14094 | fi | |
9c60689e | 14095 | |
47aaa820 DWT |
14096 | if test "$pre_test_object_deps_done" = no; then |
14097 | if test -z "$predep_objects_CXX"; then | |
14098 | predep_objects_CXX="$p" | |
14099 | else | |
14100 | predep_objects_CXX="$predep_objects_CXX $p" | |
14101 | fi | |
14102 | else | |
14103 | if test -z "$postdep_objects_CXX"; then | |
14104 | postdep_objects_CXX="$p" | |
14105 | else | |
14106 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14107 | fi | |
14108 | fi | |
14109 | ;; | |
9c60689e | 14110 | |
47aaa820 | 14111 | *) ;; # Ignore the rest. |
9c60689e | 14112 | |
47aaa820 DWT |
14113 | esac |
14114 | done | |
9c60689e | 14115 | |
47aaa820 DWT |
14116 | # Clean up. |
14117 | rm -f a.out a.exe | |
14118 | else | |
14119 | echo "libtool.m4: error: problem compiling CXX test program" | |
14120 | fi | |
9c60689e | 14121 | |
47aaa820 | 14122 | $RM -f confest.$objext |
ee134472 | 14123 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14124 | |
47aaa820 DWT |
14125 | # PORTME: override above test on systems where it is broken |
14126 | case $host_os in | |
14127 | interix[3-9]*) | |
14128 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14129 | # hack all around it, let's just trust "g++" to DTRT. | |
14130 | predep_objects_CXX= | |
14131 | postdep_objects_CXX= | |
14132 | postdeps_CXX= | |
14133 | ;; | |
9c60689e | 14134 | |
47aaa820 DWT |
14135 | linux*) |
14136 | case `$CC -V 2>&1 | sed 5q` in | |
14137 | *Sun\ C*) | |
14138 | # Sun C++ 5.9 | |
9c60689e | 14139 | |
47aaa820 DWT |
14140 | # The more standards-conforming stlport4 library is |
14141 | # incompatible with the Cstd library. Avoid specifying | |
14142 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14143 | # -library=stlport4 depends on it. | |
14144 | case " $CXX $CXXFLAGS " in | |
14145 | *" -library=stlport4 "*) | |
14146 | solaris_use_stlport4=yes | |
14147 | ;; | |
14148 | esac | |
9c60689e | 14149 | |
47aaa820 DWT |
14150 | if test "$solaris_use_stlport4" != yes; then |
14151 | postdeps_CXX='-library=Cstd -library=Crun' | |
14152 | fi | |
14153 | ;; | |
14154 | esac | |
14155 | ;; | |
9c60689e | 14156 | |
47aaa820 DWT |
14157 | solaris*) |
14158 | case $cc_basename in | |
ee134472 | 14159 | CC* | sunCC*) |
47aaa820 DWT |
14160 | # The more standards-conforming stlport4 library is |
14161 | # incompatible with the Cstd library. Avoid specifying | |
14162 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14163 | # -library=stlport4 depends on it. | |
14164 | case " $CXX $CXXFLAGS " in | |
14165 | *" -library=stlport4 "*) | |
14166 | solaris_use_stlport4=yes | |
14167 | ;; | |
14168 | esac | |
9c60689e | 14169 | |
47aaa820 DWT |
14170 | # Adding this requires a known-good setup of shared libraries for |
14171 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14172 | # archive will be linked into the output, leading to subtle bugs. | |
14173 | if test "$solaris_use_stlport4" != yes; then | |
14174 | postdeps_CXX='-library=Cstd -library=Crun' | |
14175 | fi | |
14176 | ;; | |
14177 | esac | |
14178 | ;; | |
14179 | esac | |
9c60689e | 14180 | |
9c60689e | 14181 | |
47aaa820 DWT |
14182 | case " $postdeps_CXX " in |
14183 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14184 | esac | |
14185 | compiler_lib_search_dirs_CXX= | |
14186 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14187 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14188 | fi | |
9c60689e | 14189 | |
9c60689e | 14190 | |
9c60689e | 14191 | |
9c60689e | 14192 | |
9c60689e | 14193 | |
9c60689e | 14194 | |
9c60689e | 14195 | |
9c60689e | 14196 | |
9c60689e | 14197 | |
9c60689e | 14198 | |
9c60689e | 14199 | |
9c60689e | 14200 | |
9c60689e | 14201 | |
9c60689e | 14202 | |
9c60689e | 14203 | |
9c60689e | 14204 | |
9c60689e | 14205 | |
9c60689e | 14206 | |
9c60689e | 14207 | |
9c60689e | 14208 | |
9c60689e | 14209 | |
9c60689e | 14210 | |
9c60689e | 14211 | |
9c60689e | 14212 | |
9c60689e | 14213 | |
9c60689e | 14214 | |
9c60689e | 14215 | |
9c60689e | 14216 | |
9c60689e | 14217 | |
9c60689e | 14218 | |
9c60689e | 14219 | |
47aaa820 DWT |
14220 | lt_prog_compiler_wl_CXX= |
14221 | lt_prog_compiler_pic_CXX= | |
14222 | lt_prog_compiler_static_CXX= | |
9c60689e | 14223 | |
9c60689e DWT |
14224 | |
14225 | # C++ specific cases for pic, static, wl, etc. | |
14226 | if test "$GXX" = yes; then | |
14227 | lt_prog_compiler_wl_CXX='-Wl,' | |
14228 | lt_prog_compiler_static_CXX='-static' | |
14229 | ||
14230 | case $host_os in | |
14231 | aix*) | |
14232 | # All AIX code is PIC. | |
14233 | if test "$host_cpu" = ia64; then | |
14234 | # AIX 5 now supports IA64 processor | |
14235 | lt_prog_compiler_static_CXX='-Bstatic' | |
14236 | fi | |
14237 | ;; | |
14238 | ||
14239 | amigaos*) | |
14240 | case $host_cpu in | |
14241 | powerpc) | |
14242 | # see comment about AmigaOS4 .so support | |
14243 | lt_prog_compiler_pic_CXX='-fPIC' | |
14244 | ;; | |
14245 | m68k) | |
14246 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14247 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14248 | # like `-m68040'. | |
14249 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14250 | ;; | |
14251 | esac | |
14252 | ;; | |
14253 | ||
14254 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14255 | # PIC is the default for these OSes. | |
14256 | ;; | |
14257 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14258 | # This hack is so that the source file can tell whether it is being | |
14259 | # built for inclusion in a dll (and should export symbols for example). | |
14260 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14261 | # (--disable-auto-import) libraries | |
14262 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14263 | ;; | |
14264 | darwin* | rhapsody*) | |
14265 | # PIC is the default on this platform | |
14266 | # Common symbols not allowed in MH_DYLIB files | |
14267 | lt_prog_compiler_pic_CXX='-fno-common' | |
14268 | ;; | |
14269 | *djgpp*) | |
14270 | # DJGPP does not support shared libraries at all | |
14271 | lt_prog_compiler_pic_CXX= | |
14272 | ;; | |
ee134472 JF |
14273 | haiku*) |
14274 | # PIC is the default for Haiku. | |
14275 | # The "-static" flag exists, but is broken. | |
14276 | lt_prog_compiler_static_CXX= | |
14277 | ;; | |
9c60689e DWT |
14278 | interix[3-9]*) |
14279 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14280 | # Instead, we relocate shared libraries at runtime. | |
14281 | ;; | |
14282 | sysv4*MP*) | |
14283 | if test -d /usr/nec; then | |
14284 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14285 | fi | |
14286 | ;; | |
14287 | hpux*) | |
14288 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14289 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14290 | # sets the default TLS model and affects inlining. | |
14291 | case $host_cpu in | |
14292 | hppa*64*) | |
14293 | ;; | |
14294 | *) | |
14295 | lt_prog_compiler_pic_CXX='-fPIC' | |
14296 | ;; | |
14297 | esac | |
14298 | ;; | |
14299 | *qnx* | *nto*) | |
14300 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14301 | # it will coredump. | |
14302 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14303 | ;; | |
14304 | *) | |
14305 | lt_prog_compiler_pic_CXX='-fPIC' | |
14306 | ;; | |
14307 | esac | |
14308 | else | |
14309 | case $host_os in | |
14310 | aix[4-9]*) | |
14311 | # All AIX code is PIC. | |
14312 | if test "$host_cpu" = ia64; then | |
14313 | # AIX 5 now supports IA64 processor | |
14314 | lt_prog_compiler_static_CXX='-Bstatic' | |
14315 | else | |
14316 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14317 | fi | |
14318 | ;; | |
14319 | chorus*) | |
14320 | case $cc_basename in | |
14321 | cxch68*) | |
14322 | # Green Hills C++ Compiler | |
14323 | # _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" | |
14324 | ;; | |
14325 | esac | |
14326 | ;; | |
ee134472 JF |
14327 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14328 | # This hack is so that the source file can tell whether it is being | |
14329 | # built for inclusion in a dll (and should export symbols for example). | |
14330 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14331 | ;; | |
9c60689e DWT |
14332 | dgux*) |
14333 | case $cc_basename in | |
14334 | ec++*) | |
14335 | lt_prog_compiler_pic_CXX='-KPIC' | |
14336 | ;; | |
14337 | ghcx*) | |
14338 | # Green Hills C++ Compiler | |
14339 | lt_prog_compiler_pic_CXX='-pic' | |
14340 | ;; | |
14341 | *) | |
14342 | ;; | |
14343 | esac | |
14344 | ;; | |
14345 | freebsd* | dragonfly*) | |
14346 | # FreeBSD uses GNU C++ | |
14347 | ;; | |
14348 | hpux9* | hpux10* | hpux11*) | |
14349 | case $cc_basename in | |
14350 | CC*) | |
14351 | lt_prog_compiler_wl_CXX='-Wl,' | |
14352 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14353 | if test "$host_cpu" != ia64; then | |
14354 | lt_prog_compiler_pic_CXX='+Z' | |
14355 | fi | |
14356 | ;; | |
14357 | aCC*) | |
14358 | lt_prog_compiler_wl_CXX='-Wl,' | |
14359 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14360 | case $host_cpu in | |
14361 | hppa*64*|ia64*) | |
14362 | # +Z the default | |
14363 | ;; | |
14364 | *) | |
14365 | lt_prog_compiler_pic_CXX='+Z' | |
14366 | ;; | |
14367 | esac | |
14368 | ;; | |
14369 | *) | |
14370 | ;; | |
14371 | esac | |
14372 | ;; | |
14373 | interix*) | |
14374 | # This is c89, which is MS Visual C++ (no shared libs) | |
14375 | # Anyone wants to do a port? | |
14376 | ;; | |
14377 | irix5* | irix6* | nonstopux*) | |
14378 | case $cc_basename in | |
14379 | CC*) | |
14380 | lt_prog_compiler_wl_CXX='-Wl,' | |
14381 | lt_prog_compiler_static_CXX='-non_shared' | |
14382 | # CC pic flag -KPIC is the default. | |
14383 | ;; | |
14384 | *) | |
14385 | ;; | |
14386 | esac | |
14387 | ;; | |
1504c9b8 | 14388 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
14389 | case $cc_basename in |
14390 | KCC*) | |
14391 | # KAI C++ Compiler | |
14392 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14393 | lt_prog_compiler_pic_CXX='-fPIC' | |
14394 | ;; | |
14395 | ecpc* ) | |
14396 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14397 | lt_prog_compiler_wl_CXX='-Wl,' | |
14398 | lt_prog_compiler_pic_CXX='-KPIC' | |
14399 | lt_prog_compiler_static_CXX='-static' | |
14400 | ;; | |
14401 | icpc* ) | |
14402 | # Intel C++, used to be incompatible with GCC. | |
14403 | # ICC 10 doesn't accept -KPIC any more. | |
14404 | lt_prog_compiler_wl_CXX='-Wl,' | |
14405 | lt_prog_compiler_pic_CXX='-fPIC' | |
14406 | lt_prog_compiler_static_CXX='-static' | |
14407 | ;; | |
14408 | pgCC* | pgcpp*) | |
14409 | # Portland Group C++ compiler | |
14410 | lt_prog_compiler_wl_CXX='-Wl,' | |
14411 | lt_prog_compiler_pic_CXX='-fpic' | |
14412 | lt_prog_compiler_static_CXX='-Bstatic' | |
14413 | ;; | |
14414 | cxx*) | |
14415 | # Compaq C++ | |
14416 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14417 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14418 | lt_prog_compiler_pic_CXX= | |
14419 | lt_prog_compiler_static_CXX='-non_shared' | |
14420 | ;; | |
ee134472 JF |
14421 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
14422 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
14423 | lt_prog_compiler_wl_CXX='-Wl,' |
14424 | lt_prog_compiler_pic_CXX='-qpic' | |
14425 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14426 | ;; | |
14427 | *) | |
14428 | case `$CC -V 2>&1 | sed 5q` in | |
14429 | *Sun\ C*) | |
14430 | # Sun C++ 5.9 | |
14431 | lt_prog_compiler_pic_CXX='-KPIC' | |
14432 | lt_prog_compiler_static_CXX='-Bstatic' | |
14433 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14434 | ;; | |
14435 | esac | |
14436 | ;; | |
14437 | esac | |
14438 | ;; | |
14439 | lynxos*) | |
14440 | ;; | |
14441 | m88k*) | |
14442 | ;; | |
14443 | mvs*) | |
14444 | case $cc_basename in | |
14445 | cxx*) | |
14446 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14447 | ;; | |
14448 | *) | |
14449 | ;; | |
14450 | esac | |
14451 | ;; | |
53ba6704 | 14452 | netbsd*) |
9c60689e DWT |
14453 | ;; |
14454 | *qnx* | *nto*) | |
14455 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14456 | # it will coredump. | |
14457 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14458 | ;; | |
14459 | osf3* | osf4* | osf5*) | |
14460 | case $cc_basename in | |
14461 | KCC*) | |
14462 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14463 | ;; | |
14464 | RCC*) | |
14465 | # Rational C++ 2.4.1 | |
14466 | lt_prog_compiler_pic_CXX='-pic' | |
14467 | ;; | |
14468 | cxx*) | |
14469 | # Digital/Compaq C++ | |
14470 | lt_prog_compiler_wl_CXX='-Wl,' | |
14471 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14472 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14473 | lt_prog_compiler_pic_CXX= | |
14474 | lt_prog_compiler_static_CXX='-non_shared' | |
14475 | ;; | |
14476 | *) | |
14477 | ;; | |
14478 | esac | |
14479 | ;; | |
14480 | psos*) | |
14481 | ;; | |
14482 | solaris*) | |
14483 | case $cc_basename in | |
ee134472 | 14484 | CC* | sunCC*) |
9c60689e DWT |
14485 | # Sun C++ 4.2, 5.x and Centerline C++ |
14486 | lt_prog_compiler_pic_CXX='-KPIC' | |
14487 | lt_prog_compiler_static_CXX='-Bstatic' | |
14488 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14489 | ;; | |
14490 | gcx*) | |
14491 | # Green Hills C++ Compiler | |
14492 | lt_prog_compiler_pic_CXX='-PIC' | |
14493 | ;; | |
14494 | *) | |
14495 | ;; | |
14496 | esac | |
14497 | ;; | |
14498 | sunos4*) | |
14499 | case $cc_basename in | |
14500 | CC*) | |
14501 | # Sun C++ 4.x | |
14502 | lt_prog_compiler_pic_CXX='-pic' | |
14503 | lt_prog_compiler_static_CXX='-Bstatic' | |
14504 | ;; | |
14505 | lcc*) | |
14506 | # Lucid | |
14507 | lt_prog_compiler_pic_CXX='-pic' | |
14508 | ;; | |
14509 | *) | |
14510 | ;; | |
14511 | esac | |
14512 | ;; | |
14513 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14514 | case $cc_basename in | |
14515 | CC*) | |
14516 | lt_prog_compiler_wl_CXX='-Wl,' | |
14517 | lt_prog_compiler_pic_CXX='-KPIC' | |
14518 | lt_prog_compiler_static_CXX='-Bstatic' | |
14519 | ;; | |
14520 | esac | |
14521 | ;; | |
14522 | tandem*) | |
14523 | case $cc_basename in | |
14524 | NCC*) | |
14525 | # NonStop-UX NCC 3.20 | |
14526 | lt_prog_compiler_pic_CXX='-KPIC' | |
14527 | ;; | |
14528 | *) | |
14529 | ;; | |
14530 | esac | |
14531 | ;; | |
14532 | vxworks*) | |
14533 | ;; | |
14534 | *) | |
14535 | lt_prog_compiler_can_build_shared_CXX=no | |
14536 | ;; | |
14537 | esac | |
14538 | fi | |
14539 | ||
14540 | case $host_os in | |
14541 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14542 | *djgpp*) | |
14543 | lt_prog_compiler_pic_CXX= | |
14544 | ;; | |
14545 | *) | |
14546 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14547 | ;; | |
14548 | esac | |
9c60689e | 14549 | |
ee134472 JF |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
14551 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14552 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14553 | $as_echo_n "(cached) " >&6 | |
14554 | else | |
14555 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14556 | fi | |
14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14558 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14559 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
14560 | |
14561 | # | |
14562 | # Check to make sure the PIC flag actually works. | |
14563 | # | |
14564 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14566 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 14567 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
14568 | $as_echo_n "(cached) " >&6 |
14569 | else | |
14570 | lt_cv_prog_compiler_pic_works_CXX=no | |
14571 | ac_outfile=conftest.$ac_objext | |
14572 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14573 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14574 | # Insert the option either (1) after the last *FLAGS variable, or | |
14575 | # (2) before a word containing "conftest.", or (3) at the end. | |
14576 | # Note that $ac_compile itself does not contain backslashes and begins | |
14577 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14578 | # The option is referenced via a variable to avoid confusing sed. | |
14579 | lt_compile=`echo "$ac_compile" | $SED \ | |
14580 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14581 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14582 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14583 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
14584 | (eval "$lt_compile" 2>conftest.err) |
14585 | ac_status=$? | |
14586 | cat conftest.err >&5 | |
ee134472 | 14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
14588 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14589 | # The compiler can only warn and ignore the option if not recognized | |
14590 | # So say no if there are warnings other than the usual output. | |
ee134472 | 14591 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
14592 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14593 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14594 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14595 | fi | |
14596 | fi | |
53ba6704 | 14597 | $RM -r conftest* |
9c60689e DWT |
14598 | |
14599 | fi | |
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14601 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14602 | ||
14603 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14604 | case $lt_prog_compiler_pic_CXX in | |
14605 | "" | " "*) ;; | |
14606 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14607 | esac | |
14608 | else | |
14609 | lt_prog_compiler_pic_CXX= | |
14610 | lt_prog_compiler_can_build_shared_CXX=no | |
14611 | fi | |
14612 | ||
14613 | fi | |
14614 | ||
14615 | ||
14616 | ||
ee134472 JF |
14617 | |
14618 | ||
47aaa820 DWT |
14619 | # |
14620 | # Check to make sure the static flag actually works. | |
14621 | # | |
14622 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14624 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 14625 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
14626 | $as_echo_n "(cached) " >&6 |
14627 | else | |
14628 | lt_cv_prog_compiler_static_works_CXX=no | |
14629 | save_LDFLAGS="$LDFLAGS" | |
14630 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14631 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14632 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14633 | # The linker can only warn and ignore the option if not recognized | |
14634 | # So say no if there are warnings | |
14635 | if test -s conftest.err; then | |
14636 | # Append any errors to the config.log. | |
14637 | cat conftest.err 1>&5 | |
ee134472 | 14638 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
14639 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14640 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14641 | lt_cv_prog_compiler_static_works_CXX=yes | |
14642 | fi | |
14643 | else | |
14644 | lt_cv_prog_compiler_static_works_CXX=yes | |
14645 | fi | |
14646 | fi | |
14647 | $RM -r conftest* | |
14648 | LDFLAGS="$save_LDFLAGS" | |
14649 | ||
14650 | fi | |
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14652 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14653 | ||
14654 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14655 | : | |
14656 | else | |
14657 | lt_prog_compiler_static_CXX= | |
14658 | fi | |
14659 | ||
14660 | ||
14661 | ||
14662 | ||
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14664 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14665 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14666 | $as_echo_n "(cached) " >&6 |
14667 | else | |
14668 | lt_cv_prog_compiler_c_o_CXX=no | |
14669 | $RM -r conftest 2>/dev/null | |
14670 | mkdir conftest | |
14671 | cd conftest | |
14672 | mkdir out | |
14673 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14674 | ||
14675 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14676 | # Insert the option either (1) after the last *FLAGS variable, or | |
14677 | # (2) before a word containing "conftest.", or (3) at the end. | |
14678 | # Note that $ac_compile itself does not contain backslashes and begins | |
14679 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14680 | lt_compile=`echo "$ac_compile" | $SED \ | |
14681 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14682 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14683 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14684 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14685 | (eval "$lt_compile" 2>out/conftest.err) |
14686 | ac_status=$? | |
14687 | cat out/conftest.err >&5 | |
ee134472 | 14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14689 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14690 | then | |
14691 | # The compiler can only warn and ignore the option if not recognized | |
14692 | # So say no if there are warnings | |
ee134472 | 14693 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14694 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14695 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14696 | lt_cv_prog_compiler_c_o_CXX=yes | |
14697 | fi | |
14698 | fi | |
14699 | chmod u+w . 2>&5 | |
53ba6704 | 14700 | $RM -r conftest* |
47aaa820 DWT |
14701 | # SGI C++ compiler will create directory out/ii_files/ for |
14702 | # template instantiation | |
14703 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14704 | $RM out/* && rmdir out | |
14705 | cd .. | |
14706 | $RM -r conftest | |
53ba6704 | 14707 | $RM -r conftest* |
47aaa820 DWT |
14708 | |
14709 | fi | |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14711 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14712 | ||
14713 | ||
14714 | ||
14715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14716 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14717 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14718 | $as_echo_n "(cached) " >&6 |
14719 | else | |
14720 | lt_cv_prog_compiler_c_o_CXX=no | |
14721 | $RM -r conftest 2>/dev/null | |
14722 | mkdir conftest | |
14723 | cd conftest | |
14724 | mkdir out | |
14725 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14726 | ||
14727 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14728 | # Insert the option either (1) after the last *FLAGS variable, or | |
14729 | # (2) before a word containing "conftest.", or (3) at the end. | |
14730 | # Note that $ac_compile itself does not contain backslashes and begins | |
14731 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14732 | lt_compile=`echo "$ac_compile" | $SED \ | |
14733 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14734 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14735 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14736 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14737 | (eval "$lt_compile" 2>out/conftest.err) |
14738 | ac_status=$? | |
14739 | cat out/conftest.err >&5 | |
ee134472 | 14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14741 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14742 | then | |
14743 | # The compiler can only warn and ignore the option if not recognized | |
14744 | # So say no if there are warnings | |
ee134472 | 14745 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14746 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14747 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14748 | lt_cv_prog_compiler_c_o_CXX=yes | |
14749 | fi | |
14750 | fi | |
14751 | chmod u+w . 2>&5 | |
53ba6704 | 14752 | $RM -r conftest* |
47aaa820 DWT |
14753 | # SGI C++ compiler will create directory out/ii_files/ for |
14754 | # template instantiation | |
14755 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14756 | $RM out/* && rmdir out | |
14757 | cd .. | |
14758 | $RM -r conftest | |
53ba6704 | 14759 | $RM -r conftest* |
47aaa820 DWT |
14760 | |
14761 | fi | |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14763 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14764 | ||
14765 | ||
14766 | ||
14767 | ||
14768 | hard_links="nottested" | |
14769 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14770 | # do not overwrite the value of need_locks provided by the user | |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14772 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14773 | hard_links=yes | |
53ba6704 | 14774 | $RM -r conftest* |
47aaa820 DWT |
14775 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14776 | touch conftest.a | |
14777 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14778 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14780 | $as_echo "$hard_links" >&6; } | |
14781 | if test "$hard_links" = no; then | |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14783 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14784 | need_locks=warn | |
14785 | fi | |
14786 | else | |
14787 | need_locks=no | |
14788 | fi | |
14789 | ||
14790 | ||
14791 | ||
14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14793 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14794 | ||
14795 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14796 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
14797 | case $host_os in |
14798 | aix[4-9]*) | |
14799 | # If we're using GNU nm, then we don't want the "-C" option. | |
14800 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
ee134472 JF |
14801 | # Also, AIX nm treats weak defined symbols like other global defined |
14802 | # symbols, whereas GNU nm marks them as "W". | |
47aaa820 | 14803 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
ee134472 | 14804 | 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 |
14805 | else |
14806 | 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' | |
14807 | fi | |
14808 | ;; | |
14809 | pw32*) | |
14810 | export_symbols_cmds_CXX="$ltdll_cmds" | |
ee134472 | 14811 | ;; |
47aaa820 | 14812 | cygwin* | mingw* | cegcc*) |
ee134472 | 14813 | case $cc_basename in |
53ba6704 JF |
14814 | cl*) |
14815 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14816 | ;; | |
ee134472 JF |
14817 | *) |
14818 | 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' | |
14819 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14820 | ;; | |
14821 | esac | |
14822 | ;; | |
47aaa820 DWT |
14823 | *) |
14824 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14825 | ;; |
47aaa820 | 14826 | esac |
47aaa820 DWT |
14827 | |
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14829 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14830 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14831 | ||
14832 | with_gnu_ld_CXX=$with_gnu_ld | |
14833 | ||
14834 | ||
14835 | ||
14836 | ||
14837 | ||
14838 | ||
14839 | # | |
14840 | # Do we need to explicitly link libc? | |
14841 | # | |
14842 | case "x$archive_cmds_need_lc_CXX" in | |
14843 | x|xyes) | |
14844 | # Assume -lc should be added | |
14845 | archive_cmds_need_lc_CXX=yes | |
14846 | ||
14847 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14848 | case $archive_cmds_CXX in | |
14849 | *'~'*) | |
14850 | # FIXME: we may have to deal with multi-command sequences. | |
14851 | ;; | |
14852 | '$CC '*) | |
14853 | # Test whether the compiler implicitly links with -lc since on some | |
14854 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14855 | # to ld, don't add -lc before -lgcc. | |
14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14857 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
14858 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
14859 | $as_echo_n "(cached) " >&6 | |
14860 | else | |
53ba6704 | 14861 | $RM -r conftest* |
ee134472 | 14862 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 14863 | |
ee134472 | 14864 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
14865 | (eval $ac_compile) 2>&5 |
14866 | ac_status=$? | |
14867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14868 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
14869 | soname=conftest |
14870 | lib=conftest | |
14871 | libobjs=conftest.$ac_objext | |
14872 | deplibs= | |
14873 | wl=$lt_prog_compiler_wl_CXX | |
14874 | pic_flag=$lt_prog_compiler_pic_CXX | |
14875 | compiler_flags=-v | |
14876 | linker_flags=-v | |
14877 | verstring= | |
14878 | output_objdir=. | |
14879 | libname=conftest | |
14880 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14881 | allow_undefined_flag_CXX= | |
14882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
14883 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14884 | ac_status=$? | |
14885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14886 | test $ac_status = 0; } | |
ee134472 JF |
14887 | then |
14888 | lt_cv_archive_cmds_need_lc_CXX=no | |
14889 | else | |
14890 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14891 | fi | |
14892 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14893 | else | |
14894 | cat conftest.err 1>&5 | |
14895 | fi | |
53ba6704 | 14896 | $RM -r conftest* |
ee134472 JF |
14897 | |
14898 | fi | |
14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14900 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14901 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
14902 | ;; |
14903 | esac | |
14904 | fi | |
14905 | ;; | |
14906 | esac | |
14907 | ||
14908 | ||
14909 | ||
14910 | ||
14911 | ||
14912 | ||
14913 | ||
14914 | ||
14915 | ||
14916 | ||
14917 | ||
14918 | ||
14919 | ||
14920 | ||
14921 | ||
14922 | ||
14923 | ||
14924 | ||
14925 | ||
14926 | ||
14927 | ||
14928 | ||
14929 | ||
14930 | ||
14931 | ||
14932 | ||
14933 | ||
14934 | ||
14935 | ||
14936 | ||
14937 | ||
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 | ||
47aaa820 DWT |
14966 | |
14967 | ||
14968 | ||
14969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14970 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14971 | ||
14972 | library_names_spec= | |
14973 | libname_spec='lib$name' | |
14974 | soname_spec= | |
14975 | shrext_cmds=".so" | |
14976 | postinstall_cmds= | |
14977 | postuninstall_cmds= | |
14978 | finish_cmds= | |
14979 | finish_eval= | |
14980 | shlibpath_var= | |
14981 | shlibpath_overrides_runpath=unknown | |
14982 | version_type=none | |
14983 | dynamic_linker="$host_os ld.so" | |
14984 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14985 | need_lib_prefix=unknown | |
14986 | hardcode_into_libs=no | |
14987 | ||
14988 | # when you set need_version to no, make sure it does not cause -set_version | |
14989 | # flags to be left without arguments | |
14990 | need_version=unknown | |
14991 | ||
14992 | case $host_os in | |
14993 | aix3*) | |
53ba6704 | 14994 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
14995 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14996 | shlibpath_var=LIBPATH | |
14997 | ||
14998 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14999 | soname_spec='${libname}${release}${shared_ext}$major' | |
15000 | ;; | |
15001 | ||
15002 | aix[4-9]*) | |
53ba6704 | 15003 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15004 | need_lib_prefix=no |
15005 | need_version=no | |
15006 | hardcode_into_libs=yes | |
15007 | if test "$host_cpu" = ia64; then | |
15008 | # AIX 5 supports IA64 | |
15009 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15010 | shlibpath_var=LD_LIBRARY_PATH | |
15011 | else | |
15012 | # With GCC up to 2.95.x, collect2 would create an import file | |
15013 | # for dependence libraries. The import file would start with | |
15014 | # the line `#! .'. This would cause the generated library to | |
15015 | # depend on `.', always an invalid library. This was fixed in | |
15016 | # development snapshots of GCC prior to 3.0. | |
15017 | case $host_os in | |
15018 | aix4 | aix4.[01] | aix4.[01].*) | |
15019 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15020 | echo ' yes ' | |
15021 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15022 | : | |
15023 | else | |
15024 | can_build_shared=no | |
15025 | fi | |
15026 | ;; | |
15027 | esac | |
15028 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15029 | # soname into executable. Probably we can add versioning support to | |
15030 | # collect2, so additional links can be useful in future. | |
15031 | if test "$aix_use_runtimelinking" = yes; then | |
15032 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15033 | # instead of lib<name>.a to let people know that these are not | |
15034 | # typical AIX shared libraries. | |
15035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15036 | else | |
15037 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15038 | # and later when we are not doing run time linking. | |
15039 | library_names_spec='${libname}${release}.a $libname.a' | |
15040 | soname_spec='${libname}${release}${shared_ext}$major' | |
15041 | fi | |
15042 | shlibpath_var=LIBPATH | |
15043 | fi | |
15044 | ;; | |
15045 | ||
15046 | amigaos*) | |
15047 | case $host_cpu in | |
15048 | powerpc) | |
15049 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15050 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15052 | ;; | |
15053 | m68k) | |
15054 | library_names_spec='$libname.ixlibrary $libname.a' | |
15055 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
ee134472 | 15056 | 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 |
15057 | ;; |
15058 | esac | |
15059 | ;; | |
15060 | ||
15061 | beos*) | |
15062 | library_names_spec='${libname}${shared_ext}' | |
15063 | dynamic_linker="$host_os ld.so" | |
15064 | shlibpath_var=LIBRARY_PATH | |
15065 | ;; | |
15066 | ||
15067 | bsdi[45]*) | |
53ba6704 | 15068 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15069 | need_version=no |
15070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15071 | soname_spec='${libname}${release}${shared_ext}$major' | |
15072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15073 | shlibpath_var=LD_LIBRARY_PATH | |
15074 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15075 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15076 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15077 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15078 | # libtool to hard-code these into programs | |
15079 | ;; | |
9c60689e | 15080 | |
47aaa820 DWT |
15081 | cygwin* | mingw* | pw32* | cegcc*) |
15082 | version_type=windows | |
15083 | shrext_cmds=".dll" | |
15084 | need_version=no | |
15085 | need_lib_prefix=no | |
9c60689e | 15086 | |
ee134472 JF |
15087 | case $GCC,$cc_basename in |
15088 | yes,*) | |
15089 | # gcc | |
47aaa820 DWT |
15090 | library_names_spec='$libname.dll.a' |
15091 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15092 | postinstall_cmds='base_file=`basename \${file}`~ | |
15093 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15094 | dldir=$destdir/`dirname \$dlpath`~ | |
15095 | test -d \$dldir || mkdir -p \$dldir~ | |
15096 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15097 | chmod a+x \$dldir/$dlname~ | |
15098 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15099 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15100 | fi' | |
15101 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15102 | dlpath=$dir/\$dldll~ | |
15103 | $RM \$dlpath' | |
15104 | shlibpath_overrides_runpath=yes | |
9c60689e | 15105 | |
47aaa820 DWT |
15106 | case $host_os in |
15107 | cygwin*) | |
15108 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15109 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ee134472 | 15110 | |
47aaa820 DWT |
15111 | ;; |
15112 | mingw* | cegcc*) | |
15113 | # MinGW DLLs use traditional 'lib' prefix | |
15114 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
47aaa820 DWT |
15115 | ;; |
15116 | pw32*) | |
15117 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15118 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15119 | ;; | |
15120 | esac | |
ee134472 JF |
15121 | dynamic_linker='Win32 ld.exe' |
15122 | ;; | |
15123 | ||
15124 | *,cl*) | |
15125 | # Native MSVC | |
15126 | libname_spec='$name' | |
15127 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15128 | library_names_spec='${libname}.dll.lib' | |
15129 | ||
15130 | case $build_os in | |
15131 | mingw*) | |
15132 | sys_lib_search_path_spec= | |
15133 | lt_save_ifs=$IFS | |
15134 | IFS=';' | |
15135 | for lt_path in $LIB | |
15136 | do | |
15137 | IFS=$lt_save_ifs | |
15138 | # Let DOS variable expansion print the short 8.3 style file name. | |
15139 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15140 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15141 | done | |
15142 | IFS=$lt_save_ifs | |
15143 | # Convert to MSYS style. | |
15144 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15145 | ;; | |
15146 | cygwin*) | |
15147 | # Convert to unix form, then to dos form, then back to unix form | |
15148 | # but this time dos style (no spaces!) so that the unix form looks | |
15149 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15150 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15151 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15152 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15153 | ;; | |
15154 | *) | |
15155 | sys_lib_search_path_spec="$LIB" | |
15156 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15157 | # It is most probably a Windows format PATH. | |
15158 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15159 | else | |
15160 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15161 | fi | |
15162 | # FIXME: find the short name or the path components, as spaces are | |
15163 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15164 | ;; | |
15165 | esac | |
15166 | ||
15167 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15168 | postinstall_cmds='base_file=`basename \${file}`~ | |
15169 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15170 | dldir=$destdir/`dirname \$dlpath`~ | |
15171 | test -d \$dldir || mkdir -p \$dldir~ | |
15172 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15173 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15174 | dlpath=$dir/\$dldll~ | |
15175 | $RM \$dlpath' | |
15176 | shlibpath_overrides_runpath=yes | |
15177 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15178 | ;; |
9c60689e | 15179 | |
47aaa820 | 15180 | *) |
ee134472 | 15181 | # Assume MSVC wrapper |
47aaa820 | 15182 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
ee134472 | 15183 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15184 | ;; |
15185 | esac | |
47aaa820 DWT |
15186 | # FIXME: first we should search . and the directory the executable is in |
15187 | shlibpath_var=PATH | |
15188 | ;; | |
9c60689e | 15189 | |
47aaa820 DWT |
15190 | darwin* | rhapsody*) |
15191 | dynamic_linker="$host_os dyld" | |
15192 | version_type=darwin | |
15193 | need_lib_prefix=no | |
15194 | need_version=no | |
15195 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15196 | soname_spec='${libname}${release}${major}$shared_ext' | |
15197 | shlibpath_overrides_runpath=yes | |
15198 | shlibpath_var=DYLD_LIBRARY_PATH | |
15199 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15200 | |
47aaa820 DWT |
15201 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15202 | ;; | |
9c60689e | 15203 | |
47aaa820 | 15204 | dgux*) |
53ba6704 | 15205 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15206 | need_lib_prefix=no |
15207 | need_version=no | |
15208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15209 | soname_spec='${libname}${release}${shared_ext}$major' | |
15210 | shlibpath_var=LD_LIBRARY_PATH | |
15211 | ;; | |
9c60689e | 15212 | |
47aaa820 DWT |
15213 | freebsd* | dragonfly*) |
15214 | # DragonFly does not have aout. When/if they implement a new | |
15215 | # versioning mechanism, adjust this. | |
15216 | if test -x /usr/bin/objformat; then | |
15217 | objformat=`/usr/bin/objformat` | |
15218 | else | |
15219 | case $host_os in | |
53ba6704 | 15220 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15221 | *) objformat=elf ;; |
15222 | esac | |
15223 | fi | |
15224 | version_type=freebsd-$objformat | |
15225 | case $version_type in | |
15226 | freebsd-elf*) | |
15227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15228 | need_version=no | |
15229 | need_lib_prefix=no | |
15230 | ;; | |
15231 | freebsd-*) | |
15232 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15233 | need_version=yes | |
15234 | ;; | |
15235 | esac | |
15236 | shlibpath_var=LD_LIBRARY_PATH | |
15237 | case $host_os in | |
53ba6704 | 15238 | freebsd2.*) |
47aaa820 DWT |
15239 | shlibpath_overrides_runpath=yes |
15240 | ;; | |
15241 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15242 | shlibpath_overrides_runpath=yes | |
15243 | hardcode_into_libs=yes | |
15244 | ;; | |
15245 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15246 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15247 | shlibpath_overrides_runpath=no | |
15248 | hardcode_into_libs=yes | |
15249 | ;; | |
15250 | *) # from 4.6 on, and DragonFly | |
15251 | shlibpath_overrides_runpath=yes | |
15252 | hardcode_into_libs=yes | |
15253 | ;; | |
15254 | esac | |
15255 | ;; | |
9c60689e | 15256 | |
47aaa820 | 15257 | gnu*) |
53ba6704 | 15258 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15259 | need_lib_prefix=no |
15260 | need_version=no | |
15261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15262 | soname_spec='${libname}${release}${shared_ext}$major' | |
15263 | shlibpath_var=LD_LIBRARY_PATH | |
ee134472 JF |
15264 | shlibpath_overrides_runpath=no |
15265 | hardcode_into_libs=yes | |
15266 | ;; | |
15267 | ||
15268 | haiku*) | |
53ba6704 | 15269 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15270 | need_lib_prefix=no |
15271 | need_version=no | |
15272 | dynamic_linker="$host_os runtime_loader" | |
15273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15274 | soname_spec='${libname}${release}${shared_ext}$major' | |
15275 | shlibpath_var=LIBRARY_PATH | |
15276 | shlibpath_overrides_runpath=yes | |
15277 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
47aaa820 DWT |
15278 | hardcode_into_libs=yes |
15279 | ;; | |
9c60689e | 15280 | |
47aaa820 DWT |
15281 | hpux9* | hpux10* | hpux11*) |
15282 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15283 | # link against other versions. | |
15284 | version_type=sunos | |
15285 | need_lib_prefix=no | |
15286 | need_version=no | |
15287 | case $host_cpu in | |
15288 | ia64*) | |
15289 | shrext_cmds='.so' | |
15290 | hardcode_into_libs=yes | |
15291 | dynamic_linker="$host_os dld.so" | |
15292 | shlibpath_var=LD_LIBRARY_PATH | |
15293 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15294 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15295 | soname_spec='${libname}${release}${shared_ext}$major' | |
15296 | if test "X$HPUX_IA64_MODE" = X32; then | |
15297 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15298 | else | |
15299 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15300 | fi | |
15301 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15302 | ;; | |
15303 | hppa*64*) | |
15304 | shrext_cmds='.sl' | |
15305 | hardcode_into_libs=yes | |
15306 | dynamic_linker="$host_os dld.sl" | |
15307 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15308 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15310 | soname_spec='${libname}${release}${shared_ext}$major' | |
15311 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15312 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15313 | ;; | |
15314 | *) | |
15315 | shrext_cmds='.sl' | |
15316 | dynamic_linker="$host_os dld.sl" | |
15317 | shlibpath_var=SHLIB_PATH | |
15318 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15320 | soname_spec='${libname}${release}${shared_ext}$major' | |
15321 | ;; | |
15322 | esac | |
ee134472 | 15323 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 15324 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
15325 | # or fails outright, so override atomically: |
15326 | install_override_mode=555 | |
47aaa820 | 15327 | ;; |
9c60689e | 15328 | |
47aaa820 | 15329 | interix[3-9]*) |
53ba6704 | 15330 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15331 | need_lib_prefix=no |
15332 | need_version=no | |
15333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15334 | soname_spec='${libname}${release}${shared_ext}$major' | |
15335 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15336 | shlibpath_var=LD_LIBRARY_PATH | |
15337 | shlibpath_overrides_runpath=no | |
15338 | hardcode_into_libs=yes | |
15339 | ;; | |
9c60689e | 15340 | |
47aaa820 DWT |
15341 | irix5* | irix6* | nonstopux*) |
15342 | case $host_os in | |
15343 | nonstopux*) version_type=nonstopux ;; | |
15344 | *) | |
15345 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
53ba6704 | 15346 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15347 | else |
15348 | version_type=irix | |
15349 | fi ;; | |
15350 | esac | |
15351 | need_lib_prefix=no | |
15352 | need_version=no | |
15353 | soname_spec='${libname}${release}${shared_ext}$major' | |
15354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15355 | case $host_os in | |
15356 | irix5* | nonstopux*) | |
15357 | libsuff= shlibsuff= | |
15358 | ;; | |
15359 | *) | |
15360 | case $LD in # libtool.m4 will add one of these switches to LD | |
15361 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15362 | libsuff= shlibsuff= libmagic=32-bit;; | |
15363 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15364 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15365 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15366 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15367 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15368 | esac | |
15369 | ;; | |
15370 | esac | |
15371 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15372 | shlibpath_overrides_runpath=no | |
15373 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15374 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15375 | hardcode_into_libs=yes | |
15376 | ;; | |
9c60689e | 15377 | |
47aaa820 DWT |
15378 | # No shared lib support for Linux oldld, aout, or coff. |
15379 | linux*oldld* | linux*aout* | linux*coff*) | |
15380 | dynamic_linker=no | |
15381 | ;; | |
9c60689e | 15382 | |
53ba6704 | 15383 | # This must be glibc/ELF. |
1504c9b8 | 15384 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
53ba6704 | 15385 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15386 | need_lib_prefix=no |
15387 | need_version=no | |
15388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15389 | soname_spec='${libname}${release}${shared_ext}$major' | |
15390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15391 | shlibpath_var=LD_LIBRARY_PATH | |
15392 | shlibpath_overrides_runpath=no | |
ee134472 | 15393 | |
47aaa820 | 15394 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
15395 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
15396 | $as_echo_n "(cached) " >&6 | |
15397 | else | |
15398 | lt_cv_shlibpath_overrides_runpath=no | |
15399 | save_LDFLAGS=$LDFLAGS | |
15400 | save_libdir=$libdir | |
15401 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15402 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 15404 | /* end confdefs.h. */ |
9c60689e | 15405 | |
47aaa820 DWT |
15406 | int |
15407 | main () | |
15408 | { | |
9c60689e | 15409 | |
47aaa820 DWT |
15410 | ; |
15411 | return 0; | |
15412 | } | |
15413 | _ACEOF | |
15414 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15415 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 15416 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 15417 | fi |
47aaa820 DWT |
15418 | fi |
15419 | rm -f core conftest.err conftest.$ac_objext \ | |
15420 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
15421 | LDFLAGS=$save_LDFLAGS |
15422 | libdir=$save_libdir | |
15423 | ||
15424 | fi | |
15425 | ||
15426 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 15427 | |
47aaa820 DWT |
15428 | # This implies no fast_install, which is unacceptable. |
15429 | # Some rework will be needed to allow for fast_install | |
15430 | # before this can be enabled. | |
15431 | hardcode_into_libs=yes | |
9c60689e | 15432 | |
47aaa820 DWT |
15433 | # Append ld.so.conf contents to the search path |
15434 | if test -f /etc/ld.so.conf; then | |
ee134472 | 15435 | 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 |
15436 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15437 | fi | |
9c60689e | 15438 | |
47aaa820 DWT |
15439 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15440 | # powerpc, because MkLinux only supported shared libraries with the | |
15441 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15442 | # most powerpc-linux boxes support dynamic linking these days and | |
15443 | # people can always --disable-shared, the test was removed, and we | |
15444 | # assume the GNU/Linux dynamic linker is in use. | |
15445 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 15446 | ;; |
47aaa820 | 15447 | |
47aaa820 DWT |
15448 | netbsd*) |
15449 | version_type=sunos | |
15450 | need_lib_prefix=no | |
15451 | need_version=no | |
15452 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15455 | dynamic_linker='NetBSD (a.out) ld.so' | |
15456 | else | |
15457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15458 | soname_spec='${libname}${release}${shared_ext}$major' | |
15459 | dynamic_linker='NetBSD ld.elf_so' | |
15460 | fi | |
15461 | shlibpath_var=LD_LIBRARY_PATH | |
15462 | shlibpath_overrides_runpath=yes | |
15463 | hardcode_into_libs=yes | |
9c60689e | 15464 | ;; |
9c60689e | 15465 | |
47aaa820 | 15466 | newsos6) |
53ba6704 | 15467 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15469 | shlibpath_var=LD_LIBRARY_PATH | |
15470 | shlibpath_overrides_runpath=yes | |
15471 | ;; | |
9c60689e | 15472 | |
47aaa820 DWT |
15473 | *nto* | *qnx*) |
15474 | version_type=qnx | |
15475 | need_lib_prefix=no | |
15476 | need_version=no | |
15477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15478 | soname_spec='${libname}${release}${shared_ext}$major' | |
15479 | shlibpath_var=LD_LIBRARY_PATH | |
15480 | shlibpath_overrides_runpath=no | |
15481 | hardcode_into_libs=yes | |
15482 | dynamic_linker='ldqnx.so' | |
15483 | ;; | |
9c60689e | 15484 | |
47aaa820 DWT |
15485 | openbsd*) |
15486 | version_type=sunos | |
15487 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15488 | need_lib_prefix=no | |
15489 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15490 | case $host_os in | |
15491 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15492 | *) need_version=no ;; | |
15493 | esac | |
15494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15495 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15496 | shlibpath_var=LD_LIBRARY_PATH | |
15497 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15498 | case $host_os in | |
15499 | openbsd2.[89] | openbsd2.[89].*) | |
15500 | shlibpath_overrides_runpath=no | |
15501 | ;; | |
15502 | *) | |
15503 | shlibpath_overrides_runpath=yes | |
15504 | ;; | |
15505 | esac | |
15506 | else | |
15507 | shlibpath_overrides_runpath=yes | |
15508 | fi | |
15509 | ;; | |
9c60689e | 15510 | |
47aaa820 DWT |
15511 | os2*) |
15512 | libname_spec='$name' | |
15513 | shrext_cmds=".dll" | |
15514 | need_lib_prefix=no | |
15515 | library_names_spec='$libname${shared_ext} $libname.a' | |
15516 | dynamic_linker='OS/2 ld.exe' | |
15517 | shlibpath_var=LIBPATH | |
15518 | ;; | |
9c60689e | 15519 | |
47aaa820 DWT |
15520 | osf3* | osf4* | osf5*) |
15521 | version_type=osf | |
15522 | need_lib_prefix=no | |
15523 | need_version=no | |
15524 | soname_spec='${libname}${release}${shared_ext}$major' | |
15525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15526 | shlibpath_var=LD_LIBRARY_PATH | |
15527 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15528 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15529 | ;; | |
9c60689e | 15530 | |
47aaa820 DWT |
15531 | rdos*) |
15532 | dynamic_linker=no | |
15533 | ;; | |
9c60689e | 15534 | |
47aaa820 | 15535 | solaris*) |
53ba6704 | 15536 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15537 | need_lib_prefix=no |
15538 | need_version=no | |
15539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15540 | soname_spec='${libname}${release}${shared_ext}$major' | |
15541 | shlibpath_var=LD_LIBRARY_PATH | |
15542 | shlibpath_overrides_runpath=yes | |
15543 | hardcode_into_libs=yes | |
15544 | # ldd complains unless libraries are executable | |
15545 | postinstall_cmds='chmod +x $lib' | |
15546 | ;; | |
9c60689e | 15547 | |
47aaa820 DWT |
15548 | sunos4*) |
15549 | version_type=sunos | |
15550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15551 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15552 | shlibpath_var=LD_LIBRARY_PATH | |
15553 | shlibpath_overrides_runpath=yes | |
15554 | if test "$with_gnu_ld" = yes; then | |
15555 | need_lib_prefix=no | |
15556 | fi | |
15557 | need_version=yes | |
15558 | ;; | |
9c60689e | 15559 | |
47aaa820 | 15560 | sysv4 | sysv4.3*) |
53ba6704 | 15561 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15563 | soname_spec='${libname}${release}${shared_ext}$major' | |
15564 | shlibpath_var=LD_LIBRARY_PATH | |
15565 | case $host_vendor in | |
15566 | sni) | |
15567 | shlibpath_overrides_runpath=no | |
15568 | need_lib_prefix=no | |
15569 | runpath_var=LD_RUN_PATH | |
9c60689e | 15570 | ;; |
47aaa820 DWT |
15571 | siemens) |
15572 | need_lib_prefix=no | |
9c60689e | 15573 | ;; |
47aaa820 DWT |
15574 | motorola) |
15575 | need_lib_prefix=no | |
15576 | need_version=no | |
15577 | shlibpath_overrides_runpath=no | |
15578 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15579 | ;; | |
15580 | esac | |
9c60689e | 15581 | ;; |
9c60689e | 15582 | |
47aaa820 DWT |
15583 | sysv4*MP*) |
15584 | if test -d /usr/nec ;then | |
53ba6704 | 15585 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15586 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15587 | soname_spec='$libname${shared_ext}.$major' | |
15588 | shlibpath_var=LD_LIBRARY_PATH | |
15589 | fi | |
15590 | ;; | |
9c60689e | 15591 | |
47aaa820 DWT |
15592 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15593 | version_type=freebsd-elf | |
15594 | need_lib_prefix=no | |
15595 | need_version=no | |
15596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15597 | soname_spec='${libname}${release}${shared_ext}$major' | |
15598 | shlibpath_var=LD_LIBRARY_PATH | |
15599 | shlibpath_overrides_runpath=yes | |
15600 | hardcode_into_libs=yes | |
15601 | if test "$with_gnu_ld" = yes; then | |
15602 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15603 | else | |
15604 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15605 | case $host_os in | |
15606 | sco3.2v5*) | |
15607 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15608 | ;; | |
15609 | esac | |
15610 | fi | |
15611 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15612 | ;; | |
9c60689e | 15613 | |
47aaa820 DWT |
15614 | tpf*) |
15615 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 15616 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15617 | need_lib_prefix=no |
15618 | need_version=no | |
15619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15620 | shlibpath_var=LD_LIBRARY_PATH | |
15621 | shlibpath_overrides_runpath=no | |
15622 | hardcode_into_libs=yes | |
15623 | ;; | |
9c60689e | 15624 | |
47aaa820 | 15625 | uts4*) |
53ba6704 | 15626 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15628 | soname_spec='${libname}${release}${shared_ext}$major' | |
15629 | shlibpath_var=LD_LIBRARY_PATH | |
15630 | ;; | |
9c60689e | 15631 | |
47aaa820 DWT |
15632 | *) |
15633 | dynamic_linker=no | |
e9c9a47c DWT |
15634 | ;; |
15635 | esac | |
15636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15637 | $as_echo "$dynamic_linker" >&6; } | |
15638 | test "$dynamic_linker" = no && can_build_shared=no | |
15639 | ||
15640 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15641 | if test "$GCC" = yes; then | |
15642 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 15643 | fi |
9c60689e | 15644 | |
e9c9a47c DWT |
15645 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15646 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 15647 | fi |
e9c9a47c DWT |
15648 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
15649 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 15650 | fi |
9c60689e | 15651 | |
9c60689e | 15652 | |
9c60689e | 15653 | |
9c60689e | 15654 | |
47aaa820 | 15655 | |
47aaa820 | 15656 | |
47aaa820 | 15657 | |
9c60689e | 15658 | |
9c60689e | 15659 | |
47aaa820 | 15660 | |
47aaa820 | 15661 | |
47aaa820 | 15662 | |
47aaa820 | 15663 | |
47aaa820 | 15664 | |
47aaa820 | 15665 | |
47aaa820 | 15666 | |
47aaa820 | 15667 | |
9c60689e | 15668 | |
9c60689e | 15669 | |
9c60689e | 15670 | |
9c60689e | 15671 | |
9c60689e | 15672 | |
e9c9a47c DWT |
15673 | |
15674 | ||
15675 | ||
15676 | ||
15677 | ||
15678 | ||
15679 | ||
15680 | ||
15681 | ||
15682 | ||
15683 | ||
ee134472 JF |
15684 | |
15685 | ||
e9c9a47c DWT |
15686 | |
15687 | ||
15688 | ||
15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15690 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15691 | hardcode_action_CXX= | |
15692 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15693 | test -n "$runpath_var_CXX" || | |
15694 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15695 | ||
15696 | # We can hardcode non-existent directories. | |
15697 | if test "$hardcode_direct_CXX" != no && | |
15698 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15699 | # have to relink, otherwise we might link with an installed library | |
15700 | # when we should be linking with a yet-to-be-installed one | |
15701 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15702 | test "$hardcode_minus_L_CXX" != no; then | |
15703 | # Linking always hardcodes the temporary library directory. | |
15704 | hardcode_action_CXX=relink | |
15705 | else | |
15706 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15707 | hardcode_action_CXX=immediate | |
15708 | fi | |
15709 | else | |
15710 | # We cannot hardcode anything, or else we can only hardcode existing | |
15711 | # directories. | |
15712 | hardcode_action_CXX=unsupported | |
15713 | fi | |
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15715 | $as_echo "$hardcode_action_CXX" >&6; } | |
15716 | ||
15717 | if test "$hardcode_action_CXX" = relink || | |
15718 | test "$inherit_rpath_CXX" = yes; then | |
15719 | # Fast installation is not supported | |
15720 | enable_fast_install=no | |
15721 | elif test "$shlibpath_overrides_runpath" = yes || | |
15722 | test "$enable_shared" = no; then | |
15723 | # Fast installation is not necessary | |
15724 | enable_fast_install=needless | |
47aaa820 | 15725 | fi |
9c60689e | 15726 | |
47aaa820 | 15727 | |
47aaa820 | 15728 | |
e9c9a47c DWT |
15729 | |
15730 | ||
15731 | ||
15732 | ||
a243b558 JF |
15733 | fi # test -n "$compiler" |
15734 | ||
15735 | CC=$lt_save_CC | |
15736 | CFLAGS=$lt_save_CFLAGS | |
15737 | LDCXX=$LD | |
15738 | LD=$lt_save_LD | |
15739 | GCC=$lt_save_GCC | |
15740 | with_gnu_ld=$lt_save_with_gnu_ld | |
15741 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15742 | lt_cv_path_LD=$lt_save_path_LD | |
15743 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15744 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15745 | fi # test "$_lt_caught_CXX_error" != yes | |
15746 | ||
15747 | ac_ext=c | |
15748 | ac_cpp='$CPP $CPPFLAGS' | |
15749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15752 | ||
15753 | ||
15754 | ||
15755 | ||
15756 | ||
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | ||
15767 | ac_config_commands="$ac_config_commands libtool" | |
15768 | ||
15769 | ||
15770 | ||
15771 | ||
15772 | # Only expand once: | |
15773 | ||
15774 | ||
15775 | ||
15776 | ac_ext=cpp | |
15777 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15778 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15779 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15780 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15781 | ||
15782 | ||
15783 | ||
15784 | ||
15785 | ||
15786 | ||
15787 | ||
15788 | ||
15789 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15790 | if test -n "$ac_tool_prefix"; then | |
15791 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15792 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15794 | $as_echo_n "checking for $ac_word... " >&6; } | |
15795 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15796 | $as_echo_n "(cached) " >&6 | |
15797 | else | |
15798 | case $PKG_CONFIG in | |
15799 | [\\/]* | ?:[\\/]*) | |
15800 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15801 | ;; | |
15802 | *) | |
15803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15804 | for as_dir in $PATH | |
15805 | do | |
15806 | IFS=$as_save_IFS | |
15807 | test -z "$as_dir" && as_dir=. | |
15808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15810 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15812 | break 2 | |
15813 | fi | |
15814 | done | |
15815 | done | |
15816 | IFS=$as_save_IFS | |
15817 | ||
15818 | ;; | |
15819 | esac | |
15820 | fi | |
15821 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15822 | if test -n "$PKG_CONFIG"; then | |
15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15824 | $as_echo "$PKG_CONFIG" >&6; } | |
15825 | else | |
15826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15827 | $as_echo "no" >&6; } | |
15828 | fi | |
15829 | ||
15830 | ||
15831 | fi | |
15832 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15833 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15834 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15835 | set dummy pkg-config; ac_word=$2 | |
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15837 | $as_echo_n "checking for $ac_word... " >&6; } | |
15838 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15839 | $as_echo_n "(cached) " >&6 | |
15840 | else | |
15841 | case $ac_pt_PKG_CONFIG in | |
15842 | [\\/]* | ?:[\\/]*) | |
15843 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15844 | ;; | |
15845 | *) | |
15846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15847 | for as_dir in $PATH | |
15848 | do | |
15849 | IFS=$as_save_IFS | |
15850 | test -z "$as_dir" && as_dir=. | |
15851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15853 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15855 | break 2 | |
15856 | fi | |
15857 | done | |
15858 | done | |
15859 | IFS=$as_save_IFS | |
15860 | ||
15861 | ;; | |
15862 | esac | |
15863 | fi | |
15864 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15865 | if test -n "$ac_pt_PKG_CONFIG"; then | |
15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15867 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15868 | else | |
15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15870 | $as_echo "no" >&6; } | |
15871 | fi | |
15872 | ||
15873 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15874 | PKG_CONFIG="" | |
15875 | else | |
15876 | case $cross_compiling:$ac_tool_warned in | |
15877 | yes:) | |
15878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15880 | ac_tool_warned=yes ;; | |
15881 | esac | |
15882 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15883 | fi | |
15884 | else | |
15885 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15886 | fi | |
15887 | ||
15888 | fi | |
15889 | if test -n "$PKG_CONFIG"; then | |
15890 | _pkg_min_version=0.22 | |
15891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15892 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15893 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15895 | $as_echo "yes" >&6; } | |
15896 | else | |
15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15898 | $as_echo "no" >&6; } | |
15899 | PKG_CONFIG="" | |
15900 | fi | |
15901 | fi | |
15902 | ||
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
15904 | $as_echo_n "checking for GNU make... " >&6; } | |
15905 | if ${_cv_gnu_make_command+:} false; then : | |
15906 | $as_echo_n "(cached) " >&6 | |
15907 | else | |
15908 | _cv_gnu_make_command='' ; | |
15909 | for a in "$MAKE" make gmake gnumake ; do | |
15910 | if test -z "$a" ; then continue ; fi ; | |
15911 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
15912 | _cv_gnu_make_command=$a ; | |
15913 | break; | |
15914 | fi | |
15915 | done ; | |
15916 | ||
15917 | fi | |
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
15919 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
15920 | if test "x$_cv_gnu_make_command" != "x" ; then | |
15921 | ifGNUmake='' ; | |
15922 | else | |
15923 | ifGNUmake='#' ; | |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
15925 | $as_echo "\"Not found\"" >&6; }; | |
15926 | fi | |
15927 | ||
15928 | ||
15929 | GMAKE=$_cv_gnu_make_command | |
15930 | ||
15931 | if test "x$GMAKE" = x; then : | |
15932 | as_fn_error $? "You need GNU make" "$LINENO" 5 | |
15933 | fi | |
15934 | ||
15935 | # Extract the first word of "bash", so it can be a program name with args. | |
15936 | set dummy bash; ac_word=$2 | |
15937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15938 | $as_echo_n "checking for $ac_word... " >&6; } | |
15939 | if ${ac_cv_path__BASH+:} false; then : | |
15940 | $as_echo_n "(cached) " >&6 | |
15941 | else | |
15942 | case $_BASH in | |
15943 | [\\/]* | ?:[\\/]*) | |
15944 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
15945 | ;; | |
15946 | *) | |
15947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15948 | for as_dir in $PATH | |
15949 | do | |
15950 | IFS=$as_save_IFS | |
15951 | test -z "$as_dir" && as_dir=. | |
15952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15954 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" | |
15955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15956 | break 2 | |
15957 | fi | |
15958 | done | |
15959 | done | |
15960 | IFS=$as_save_IFS | |
15961 | ||
15962 | test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5" | |
15963 | ;; | |
15964 | esac | |
15965 | fi | |
15966 | _BASH=$ac_cv_path__BASH | |
15967 | if test -n "$_BASH"; then | |
15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
15969 | $as_echo "$_BASH" >&6; } | |
15970 | else | |
15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15972 | $as_echo "no" >&6; } | |
15973 | fi | |
15974 | ||
e9c9a47c | 15975 | |
a243b558 JF |
15976 | # Extract the first word of "git", so it can be a program name with args. |
15977 | set dummy git; ac_word=$2 | |
15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15979 | $as_echo_n "checking for $ac_word... " >&6; } | |
15980 | if ${ac_cv_path_GIT+:} false; then : | |
15981 | $as_echo_n "(cached) " >&6 | |
15982 | else | |
15983 | case $GIT in | |
15984 | [\\/]* | ?:[\\/]*) | |
15985 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
15986 | ;; | |
15987 | *) | |
15988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15989 | for as_dir in $PATH | |
15990 | do | |
15991 | IFS=$as_save_IFS | |
15992 | test -z "$as_dir" && as_dir=. | |
15993 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15995 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
15996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15997 | break 2 | |
15998 | fi | |
15999 | done | |
16000 | done | |
16001 | IFS=$as_save_IFS | |
e9c9a47c | 16002 | |
a243b558 JF |
16003 | ;; |
16004 | esac | |
16005 | fi | |
16006 | GIT=$ac_cv_path_GIT | |
16007 | if test -n "$GIT"; then | |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16009 | $as_echo "$GIT" >&6; } | |
16010 | else | |
16011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16012 | $as_echo "no" >&6; } | |
16013 | fi | |
e9c9a47c DWT |
16014 | |
16015 | ||
a243b558 JF |
16016 | # Extract the first word of "time", so it can be a program name with args. |
16017 | set dummy time; ac_word=$2 | |
632b71ea DWT |
16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16019 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 16020 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
16021 | $as_echo_n "(cached) " >&6 |
16022 | else | |
a243b558 JF |
16023 | case $TIME in |
16024 | [\\/]* | ?:[\\/]*) | |
16025 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16026 | ;; | |
16027 | *) | |
16028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
16029 | for as_dir in $PATH |
16030 | do | |
16031 | IFS=$as_save_IFS | |
16032 | test -z "$as_dir" && as_dir=. | |
16033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16035 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16037 | break 2 | |
16038 | fi | |
16039 | done | |
16040 | done | |
16041 | IFS=$as_save_IFS | |
16042 | ||
a243b558 JF |
16043 | ;; |
16044 | esac | |
632b71ea | 16045 | fi |
a243b558 JF |
16046 | TIME=$ac_cv_path_TIME |
16047 | if test -n "$TIME"; then | |
16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16049 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16050 | else |
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16052 | $as_echo "no" >&6; } | |
16053 | fi | |
16054 | ||
16055 | ||
a243b558 JF |
16056 | |
16057 | ||
16058 | ||
16059 | ||
16060 | ||
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
16062 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
16063 | if test -z "$BISON"; then | |
16064 | ac_path_BISON_found=false | |
16065 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16067 | for as_dir in $PATH | |
16068 | do | |
16069 | IFS=$as_save_IFS | |
16070 | test -z "$as_dir" && as_dir=. | |
16071 | for ac_prog in bison; do | |
16072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16073 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16074 | as_fn_executable_p "$ac_path_BISON" || continue | |
16075 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16076 | if ${version:+false} :; then : | |
16077 | ||
16078 | else | |
16079 | as_awk_strverscmp=' | |
16080 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16081 | # My, what an old awk you have, Mr. Solaris! | |
16082 | END { | |
16083 | while (length(v1) && length(v2)) { | |
16084 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16085 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16086 | # compare them as integers and fractions as strverscmp does. | |
16087 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16088 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16089 | # and advance v1 and v2 past the leading digit strings. | |
16090 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16091 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16092 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16093 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16094 | if (d1 ~ /^0/) { | |
16095 | if (d2 ~ /^0/) { | |
16096 | # Compare two fractions. | |
16097 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16098 | d1 = substr(d1, 2); len1-- | |
16099 | d2 = substr(d2, 2); len2-- | |
16100 | } | |
16101 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16102 | # The two components differ in length, and the common prefix | |
16103 | # contains only leading zeros. Consider the longer to be less. | |
16104 | d1 = -len1 | |
16105 | d2 = -len2 | |
16106 | } else { | |
16107 | # Otherwise, compare as strings. | |
16108 | d1 = "x" d1 | |
16109 | d2 = "x" d2 | |
16110 | } | |
16111 | } else { | |
16112 | # A fraction is less than an integer. | |
16113 | exit 1 | |
16114 | } | |
16115 | } else { | |
16116 | if (d2 ~ /^0/) { | |
16117 | # An integer is greater than a fraction. | |
16118 | exit 2 | |
16119 | } else { | |
16120 | # Compare two integers. | |
16121 | d1 += 0 | |
16122 | d2 += 0 | |
16123 | } | |
16124 | } | |
16125 | } else { | |
16126 | # The normal case, without worrying about digits. | |
16127 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16128 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16129 | } | |
16130 | if (d1 < d2) exit 1 | |
16131 | if (d1 > d2) exit 2 | |
16132 | } | |
16133 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16134 | # which mishandles some comparisons of empty strings to integers. | |
16135 | if (length(v2)) exit 1 | |
16136 | if (length(v1)) exit 2 | |
16137 | } | |
16138 | ' | |
16139 | as_arg_v1=$version | |
16140 | as_arg_v2=2.3 | |
16141 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16142 | case $? in #( | |
16143 | 1) : | |
16144 | ;; #( | |
16145 | 0) : | |
16146 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16147 | 2) : | |
16148 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16149 | *) : | |
16150 | ;; | |
16151 | esac | |
16152 | fi | |
16153 | ||
16154 | $ac_path_BISON_found && break 3 | |
16155 | done | |
16156 | done | |
e9c9a47c | 16157 | done |
a243b558 JF |
16158 | IFS=$as_save_IFS |
16159 | if test -z "$ac_cv_path_BISON"; then | |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16161 | $as_echo "no" >&6; } | |
16162 | fi | |
16163 | else | |
16164 | ac_cv_path_BISON=$BISON | |
632b71ea | 16165 | fi |
a243b558 JF |
16166 | |
16167 | ||
16168 | if true; then : | |
16169 | ||
16170 | BISON=$ac_cv_path_BISON | |
16171 | ||
16172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16173 | $as_echo "$BISON" >&6; } | |
16174 | ||
47aaa820 | 16175 | else |
a243b558 JF |
16176 | if true; then : |
16177 | ||
16178 | as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5 | |
16179 | ||
47aaa820 | 16180 | else |
a243b558 JF |
16181 | |
16182 | BISON=: | |
16183 | ||
16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16185 | $as_echo "no" >&6; } | |
16186 | ||
16187 | fi | |
16188 | fi | |
16189 | ||
16190 | ||
16191 | ||
16192 | ||
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
16194 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
16195 | if test -z "$FLEX"; then | |
16196 | ac_path_FLEX_found=false | |
16197 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
16199 | for as_dir in $PATH |
16200 | do | |
16201 | IFS=$as_save_IFS | |
16202 | test -z "$as_dir" && as_dir=. | |
a243b558 | 16203 | for ac_prog in flex; do |
47aaa820 | 16204 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
16205 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
16206 | as_fn_executable_p "$ac_path_FLEX" || continue | |
16207 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
16208 | if ${version:+false} :; then : | |
9c60689e | 16209 | |
47aaa820 | 16210 | else |
a243b558 JF |
16211 | as_arg_v1=$version |
16212 | as_arg_v2=2.5.33 | |
16213 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16214 | case $? in #( | |
16215 | 1) : | |
16216 | ;; #( | |
16217 | 0) : | |
16218 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16219 | 2) : | |
16220 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16221 | *) : | |
16222 | ;; | |
16223 | esac | |
16224 | fi | |
16225 | ||
16226 | $ac_path_FLEX_found && break 3 | |
16227 | done | |
16228 | done | |
16229 | done | |
16230 | IFS=$as_save_IFS | |
16231 | if test -z "$ac_cv_path_FLEX"; then | |
16232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 16233 | $as_echo "no" >&6; } |
a243b558 JF |
16234 | fi |
16235 | else | |
16236 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
16237 | fi |
16238 | ||
16239 | ||
a243b558 | 16240 | if true; then : |
e9c9a47c | 16241 | |
a243b558 | 16242 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 16243 | |
a243b558 JF |
16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
16245 | $as_echo "$FLEX" >&6; } | |
9c60689e | 16246 | |
632b71ea | 16247 | else |
a243b558 | 16248 | if true; then : |
e9c9a47c | 16249 | |
a243b558 | 16250 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 16251 | |
e9c9a47c | 16252 | else |
a243b558 JF |
16253 | |
16254 | FLEX=: | |
16255 | ||
16256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16257 | $as_echo "no" >&6; } | |
9c60689e | 16258 | |
632b71ea | 16259 | fi |
a243b558 JF |
16260 | fi |
16261 | ||
16262 | ||
16263 | ||
16264 | ||
16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
16266 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
16267 | if test -z "$GPERF"; then | |
16268 | ac_path_GPERF_found=false | |
16269 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16271 | for as_dir in $PATH | |
16272 | do | |
16273 | IFS=$as_save_IFS | |
16274 | test -z "$as_dir" && as_dir=. | |
16275 | for ac_prog in gperf; do | |
16276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16277 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
16278 | as_fn_executable_p "$ac_path_GPERF" || continue | |
16279 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
16280 | if ${version:+false} :; then : | |
16281 | ||
e9c9a47c | 16282 | else |
a243b558 JF |
16283 | as_arg_v1=$version |
16284 | as_arg_v2=3.0.3 | |
16285 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16286 | case $? in #( | |
16287 | 1) : | |
16288 | ;; #( | |
16289 | 0) : | |
16290 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16291 | 2) : | |
16292 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16293 | *) : | |
16294 | ;; | |
16295 | esac | |
632b71ea | 16296 | fi |
a243b558 JF |
16297 | |
16298 | $ac_path_GPERF_found && break 3 | |
16299 | done | |
16300 | done | |
16301 | done | |
16302 | IFS=$as_save_IFS | |
16303 | if test -z "$ac_cv_path_GPERF"; then | |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16305 | $as_echo "no" >&6; } | |
16306 | fi | |
47aaa820 | 16307 | else |
a243b558 JF |
16308 | ac_cv_path_GPERF=$GPERF |
16309 | fi | |
9c60689e DWT |
16310 | |
16311 | ||
a243b558 | 16312 | if true; then : |
9c60689e | 16313 | |
a243b558 | 16314 | GPERF=$ac_cv_path_GPERF |
9c60689e | 16315 | |
a243b558 JF |
16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
16317 | $as_echo "$GPERF" >&6; } | |
9c60689e | 16318 | |
47aaa820 | 16319 | else |
a243b558 | 16320 | if true; then : |
9c60689e | 16321 | |
a243b558 JF |
16322 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
16323 | ||
16324 | else | |
16325 | ||
16326 | GPERF=: | |
16327 | ||
16328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16329 | $as_echo "no" >&6; } | |
9c60689e | 16330 | |
47aaa820 | 16331 | fi |
47aaa820 | 16332 | fi |
a243b558 JF |
16333 | |
16334 | ||
16335 | ||
16336 | ||
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
16338 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
16339 | if test -z "$GNUTAR"; then | |
16340 | ac_path_GNUTAR_found=false | |
16341 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16343 | for as_dir in $PATH | |
16344 | do | |
16345 | IFS=$as_save_IFS | |
16346 | test -z "$as_dir" && as_dir=. | |
16347 | for ac_prog in tar gtar gnutar; do | |
16348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16349 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
16350 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
16351 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
16352 | if ${version:+false} :; then : | |
16353 | ||
16354 | else | |
16355 | as_arg_v1=$version | |
16356 | as_arg_v2=1.19 | |
16357 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16358 | case $? in #( | |
16359 | 1) : | |
16360 | ;; #( | |
16361 | 0) : | |
16362 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16363 | 2) : | |
16364 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16365 | *) : | |
16366 | ;; | |
16367 | esac | |
790e5246 | 16368 | fi |
a243b558 JF |
16369 | |
16370 | $ac_path_GNUTAR_found && break 3 | |
16371 | done | |
16372 | done | |
16373 | done | |
16374 | IFS=$as_save_IFS | |
16375 | if test -z "$ac_cv_path_GNUTAR"; then | |
16376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16377 | $as_echo "no" >&6; } | |
632b71ea | 16378 | fi |
632b71ea | 16379 | else |
a243b558 | 16380 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 16381 | fi |
66170b30 | 16382 | |
66170b30 | 16383 | |
a243b558 | 16384 | if true; then : |
66170b30 | 16385 | |
a243b558 | 16386 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 16387 | |
a243b558 JF |
16388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
16389 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 16390 | |
a243b558 JF |
16391 | else |
16392 | if true; then : | |
66170b30 | 16393 | |
a243b558 | 16394 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 16395 | |
66170b30 | 16396 | else |
66170b30 | 16397 | |
a243b558 | 16398 | GNUTAR=: |
66170b30 | 16399 | |
a243b558 JF |
16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16401 | $as_echo "no" >&6; } | |
66170b30 | 16402 | |
a243b558 JF |
16403 | fi |
16404 | fi | |
66170b30 JF |
16405 | |
16406 | ||
16407 | ||
16408 | ||
16409 | ||
16410 | ||
16411 | ||
16412 | ||
16413 | ||
16414 | ||
16415 | if ${CFLAGS+:} false; then : | |
16416 | case " $CFLAGS " in | |
16417 | *" "*) | |
16418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 | |
16419 | (: CFLAGS already contains ) 2>&5 | |
16420 | ac_status=$? | |
16421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16422 | test $ac_status = 0; } | |
16423 | ;; | |
16424 | *) | |
16425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5 | |
16426 | (: CFLAGS="$CFLAGS ") 2>&5 | |
16427 | ac_status=$? | |
16428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16429 | test $ac_status = 0; } | |
16430 | CFLAGS="$CFLAGS " | |
16431 | ;; | |
16432 | esac | |
16433 | else | |
16434 | CFLAGS="" | |
16435 | fi | |
16436 | ||
e9c9a47c DWT |
16437 | ac_ext=c |
16438 | ac_cpp='$CPP $CPPFLAGS' | |
16439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 16442 | |
66170b30 JF |
16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
16444 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
16445 | if ${ac_cv_cflags_warn_all+:} false; then : | |
16446 | $as_echo_n "(cached) " >&6 | |
16447 | else | |
16448 | ac_cv_cflags_warn_all="no, unknown" | |
16449 | ac_save_CFLAGS="$CFLAGS" | |
16450 | 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" # | |
16451 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16453 | /* end confdefs.h. */ | |
16454 | ||
16455 | int | |
16456 | main () | |
16457 | { | |
16458 | ||
16459 | ; | |
16460 | return 0; | |
16461 | } | |
16462 | _ACEOF | |
16463 | if ac_fn_c_try_compile "$LINENO"; then : | |
16464 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16465 | fi | |
16466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16467 | done | |
16468 | CFLAGS="$ac_save_CFLAGS" | |
16469 | ||
16470 | fi | |
16471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
16472 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
16473 | ||
16474 | case ".$ac_cv_cflags_warn_all" in | |
16475 | .ok|.ok,*) ;; | |
16476 | .|.no|.no,*) ;; | |
16477 | *) if ${CFLAGS+:} false; then : | |
16478 | case " $CFLAGS " in | |
16479 | *" $ac_cv_cflags_warn_all "*) | |
16480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
16481 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
16482 | ac_status=$? | |
16483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16484 | test $ac_status = 0; } | |
16485 | ;; | |
16486 | *) | |
16487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
16488 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
16489 | ac_status=$? | |
16490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16491 | test $ac_status = 0; } | |
16492 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
16493 | ;; | |
16494 | esac | |
16495 | else | |
16496 | CFLAGS="$ac_cv_cflags_warn_all" | |
16497 | fi | |
16498 | ;; | |
16499 | esac | |
16500 | ||
b816329d JF |
16501 | ac_ext=cpp |
16502 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16503 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16504 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16505 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16506 | ||
9c60689e | 16507 | |
66170b30 JF |
16508 | ac_ext=cpp |
16509 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 16513 | |
66170b30 JF |
16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16515 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16516 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16517 | $as_echo_n "(cached) " >&6 | |
16518 | else | |
16519 | ac_cv_cxxflags_warn_all="no, unknown" | |
16520 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16521 | 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" # | |
16522 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16524 | /* end confdefs.h. */ | |
1504c9b8 | 16525 | |
66170b30 JF |
16526 | int |
16527 | main () | |
16528 | { | |
1504c9b8 | 16529 | |
66170b30 JF |
16530 | ; |
16531 | return 0; | |
16532 | } | |
16533 | _ACEOF | |
16534 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16535 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16536 | fi | |
16537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16538 | done | |
16539 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 16540 | |
66170b30 JF |
16541 | fi |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16543 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16544 | ||
16545 | case ".$ac_cv_cxxflags_warn_all" in | |
16546 | .ok|.ok,*) ;; | |
16547 | .|.no|.no,*) ;; | |
16548 | *) if ${CXXFLAGS+:} false; then : | |
16549 | case " $CXXFLAGS " in | |
16550 | *" $ac_cv_cxxflags_warn_all "*) | |
16551 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16552 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16553 | ac_status=$? | |
16554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16555 | test $ac_status = 0; } | |
16556 | ;; | |
16557 | *) | |
16558 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16559 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16560 | ac_status=$? | |
16561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16562 | test $ac_status = 0; } | |
16563 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16564 | ;; | |
16565 | esac | |
16566 | else | |
16567 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16568 | fi | |
16569 | ;; | |
16570 | esac | |
16571 | ||
16572 | ac_ext=cpp | |
16573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16577 | ||
16578 | ||
16579 | ||
16580 | ||
16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5 | |
16582 | $as_echo_n "checking for -Wno-overloaded-virtual... " >&6; } | |
16583 | ||
16584 | cy_save=$CXXFLAGS | |
16585 | ||
16586 | for element in -Wno-overloaded-virtual; do | |
1504c9b8 DWT |
16587 | haveit= |
16588 | for x in $CXXFLAGS; do | |
16589 | ||
16590 | acl_save_prefix="$prefix" | |
16591 | prefix="$acl_final_prefix" | |
16592 | acl_save_exec_prefix="$exec_prefix" | |
16593 | exec_prefix="$acl_final_exec_prefix" | |
16594 | eval x=\"$x\" | |
16595 | exec_prefix="$acl_save_exec_prefix" | |
16596 | prefix="$acl_save_prefix" | |
16597 | ||
16598 | if test "X$x" = "X$element"; then | |
16599 | haveit=yes | |
16600 | break | |
16601 | fi | |
16602 | done | |
16603 | if test -z "$haveit"; then | |
16604 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16605 | fi | |
16606 | done | |
16607 | ||
66170b30 JF |
16608 | |
16609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
16610 | /* end confdefs.h. */ |
16611 | ||
66170b30 JF |
16612 | _ACEOF |
16613 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16614 | cy_good=1 | |
16615 | else | |
16616 | cy_good=0 | |
16617 | fi | |
16618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16619 | ||
16620 | CXXFLAGS=$cy_save | |
16621 | if test "x$cy_good" = x1; then : | |
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16623 | $as_echo "yes" >&6; } | |
16624 | ||
16625 | ||
16626 | for element in -Wno-overloaded-virtual; do | |
16627 | haveit= | |
16628 | for x in $CFLAGS; do | |
16629 | ||
16630 | acl_save_prefix="$prefix" | |
16631 | prefix="$acl_final_prefix" | |
16632 | acl_save_exec_prefix="$exec_prefix" | |
16633 | exec_prefix="$acl_final_exec_prefix" | |
16634 | eval x=\"$x\" | |
16635 | exec_prefix="$acl_save_exec_prefix" | |
16636 | prefix="$acl_save_prefix" | |
16637 | ||
16638 | if test "X$x" = "X$element"; then | |
16639 | haveit=yes | |
16640 | break | |
16641 | fi | |
16642 | done | |
16643 | if test -z "$haveit"; then | |
16644 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16645 | fi | |
16646 | done | |
16647 | ||
16648 | ||
16649 | for element in -Wno-overloaded-virtual; do | |
16650 | haveit= | |
16651 | for x in $CXXFLAGS; do | |
16652 | ||
16653 | acl_save_prefix="$prefix" | |
16654 | prefix="$acl_final_prefix" | |
16655 | acl_save_exec_prefix="$exec_prefix" | |
16656 | exec_prefix="$acl_final_exec_prefix" | |
16657 | eval x=\"$x\" | |
16658 | exec_prefix="$acl_save_exec_prefix" | |
16659 | prefix="$acl_save_prefix" | |
16660 | ||
16661 | if test "X$x" = "X$element"; then | |
16662 | haveit=yes | |
16663 | break | |
16664 | fi | |
16665 | done | |
16666 | if test -z "$haveit"; then | |
16667 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16668 | fi | |
16669 | done | |
16670 | ||
16671 | ||
16672 | for element in -Wno-overloaded-virtual; do | |
16673 | haveit= | |
16674 | for x in $OBJCCXXFLAGS; do | |
16675 | ||
16676 | acl_save_prefix="$prefix" | |
16677 | prefix="$acl_final_prefix" | |
16678 | acl_save_exec_prefix="$exec_prefix" | |
16679 | exec_prefix="$acl_final_exec_prefix" | |
16680 | eval x=\"$x\" | |
16681 | exec_prefix="$acl_save_exec_prefix" | |
16682 | prefix="$acl_save_prefix" | |
16683 | ||
16684 | if test "X$x" = "X$element"; then | |
16685 | haveit=yes | |
16686 | break | |
16687 | fi | |
16688 | done | |
16689 | if test -z "$haveit"; then | |
16690 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
16691 | fi | |
16692 | done | |
16693 | ||
16694 | ||
16695 | ||
16696 | else | |
16697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16698 | $as_echo "no" >&6; } | |
16699 | fi | |
16700 | ||
16701 | ||
16702 | ||
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5 | |
16704 | $as_echo_n "checking for -Wno-parentheses... " >&6; } | |
16705 | ||
16706 | cy_save=$CXXFLAGS | |
16707 | ||
16708 | for element in -Wno-parentheses; do | |
16709 | haveit= | |
16710 | for x in $CXXFLAGS; do | |
16711 | ||
16712 | acl_save_prefix="$prefix" | |
16713 | prefix="$acl_final_prefix" | |
16714 | acl_save_exec_prefix="$exec_prefix" | |
16715 | exec_prefix="$acl_final_exec_prefix" | |
16716 | eval x=\"$x\" | |
16717 | exec_prefix="$acl_save_exec_prefix" | |
16718 | prefix="$acl_save_prefix" | |
16719 | ||
16720 | if test "X$x" = "X$element"; then | |
16721 | haveit=yes | |
16722 | break | |
16723 | fi | |
16724 | done | |
16725 | if test -z "$haveit"; then | |
16726 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16727 | fi | |
16728 | done | |
16729 | ||
16730 | ||
16731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16732 | /* end confdefs.h. */ | |
1504c9b8 | 16733 | |
1504c9b8 | 16734 | _ACEOF |
66170b30 JF |
16735 | if ac_fn_cxx_try_compile "$LINENO"; then : |
16736 | cy_good=1 | |
16737 | else | |
16738 | cy_good=0 | |
16739 | fi | |
16740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16741 | ||
16742 | CXXFLAGS=$cy_save | |
16743 | if test "x$cy_good" = x1; then : | |
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16745 | $as_echo "yes" >&6; } | |
1504c9b8 DWT |
16746 | |
16747 | ||
66170b30 | 16748 | for element in -Wno-parentheses; do |
1504c9b8 | 16749 | haveit= |
66170b30 | 16750 | for x in $CFLAGS; do |
1504c9b8 DWT |
16751 | |
16752 | acl_save_prefix="$prefix" | |
16753 | prefix="$acl_final_prefix" | |
16754 | acl_save_exec_prefix="$exec_prefix" | |
16755 | exec_prefix="$acl_final_exec_prefix" | |
16756 | eval x=\"$x\" | |
16757 | exec_prefix="$acl_save_exec_prefix" | |
16758 | prefix="$acl_save_prefix" | |
16759 | ||
16760 | if test "X$x" = "X$element"; then | |
16761 | haveit=yes | |
16762 | break | |
16763 | fi | |
16764 | done | |
16765 | if test -z "$haveit"; then | |
66170b30 | 16766 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
16767 | fi |
16768 | done | |
16769 | ||
16770 | ||
66170b30 JF |
16771 | for element in -Wno-parentheses; do |
16772 | haveit= | |
16773 | for x in $CXXFLAGS; do | |
16774 | ||
16775 | acl_save_prefix="$prefix" | |
16776 | prefix="$acl_final_prefix" | |
16777 | acl_save_exec_prefix="$exec_prefix" | |
16778 | exec_prefix="$acl_final_exec_prefix" | |
16779 | eval x=\"$x\" | |
16780 | exec_prefix="$acl_save_exec_prefix" | |
16781 | prefix="$acl_save_prefix" | |
16782 | ||
16783 | if test "X$x" = "X$element"; then | |
16784 | haveit=yes | |
16785 | break | |
16786 | fi | |
16787 | done | |
16788 | if test -z "$haveit"; then | |
16789 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16790 | fi | |
16791 | done | |
16792 | ||
16793 | ||
16794 | for element in -Wno-parentheses; do | |
16795 | haveit= | |
16796 | for x in $OBJCCXXFLAGS; do | |
16797 | ||
16798 | acl_save_prefix="$prefix" | |
16799 | prefix="$acl_final_prefix" | |
16800 | acl_save_exec_prefix="$exec_prefix" | |
16801 | exec_prefix="$acl_final_exec_prefix" | |
16802 | eval x=\"$x\" | |
16803 | exec_prefix="$acl_save_exec_prefix" | |
16804 | prefix="$acl_save_prefix" | |
16805 | ||
16806 | if test "X$x" = "X$element"; then | |
16807 | haveit=yes | |
16808 | break | |
16809 | fi | |
16810 | done | |
16811 | if test -z "$haveit"; then | |
16812 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
16813 | fi | |
16814 | done | |
16815 | ||
16816 | ||
16817 | ||
16818 | else | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16820 | $as_echo "no" >&6; } | |
16821 | fi | |
16822 | ||
16823 | ||
16824 | ||
16825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5 | |
16826 | $as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; } | |
16827 | ||
16828 | cy_save=$CXXFLAGS | |
16829 | ||
16830 | for element in -Wno-unneeded-internal-declaration; do | |
16831 | haveit= | |
16832 | for x in $CXXFLAGS; do | |
16833 | ||
16834 | acl_save_prefix="$prefix" | |
16835 | prefix="$acl_final_prefix" | |
16836 | acl_save_exec_prefix="$exec_prefix" | |
16837 | exec_prefix="$acl_final_exec_prefix" | |
16838 | eval x=\"$x\" | |
16839 | exec_prefix="$acl_save_exec_prefix" | |
16840 | prefix="$acl_save_prefix" | |
16841 | ||
16842 | if test "X$x" = "X$element"; then | |
16843 | haveit=yes | |
16844 | break | |
16845 | fi | |
16846 | done | |
16847 | if test -z "$haveit"; then | |
16848 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16849 | fi | |
16850 | done | |
16851 | ||
16852 | ||
16853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16854 | /* end confdefs.h. */ | |
16855 | ||
16856 | _ACEOF | |
16857 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16858 | cy_good=1 | |
16859 | else | |
16860 | cy_good=0 | |
16861 | fi | |
16862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16863 | ||
16864 | CXXFLAGS=$cy_save | |
16865 | if test "x$cy_good" = x1; then : | |
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16867 | $as_echo "yes" >&6; } | |
16868 | ||
16869 | ||
16870 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 DWT |
16871 | haveit= |
16872 | for x in $CFLAGS; do | |
16873 | ||
16874 | acl_save_prefix="$prefix" | |
16875 | prefix="$acl_final_prefix" | |
16876 | acl_save_exec_prefix="$exec_prefix" | |
16877 | exec_prefix="$acl_final_exec_prefix" | |
16878 | eval x=\"$x\" | |
16879 | exec_prefix="$acl_save_exec_prefix" | |
16880 | prefix="$acl_save_prefix" | |
16881 | ||
16882 | if test "X$x" = "X$element"; then | |
16883 | haveit=yes | |
16884 | break | |
16885 | fi | |
16886 | done | |
16887 | if test -z "$haveit"; then | |
16888 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16889 | fi | |
16890 | done | |
16891 | ||
16892 | ||
66170b30 | 16893 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 16894 | haveit= |
66170b30 | 16895 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
16896 | |
16897 | acl_save_prefix="$prefix" | |
16898 | prefix="$acl_final_prefix" | |
16899 | acl_save_exec_prefix="$exec_prefix" | |
16900 | exec_prefix="$acl_final_exec_prefix" | |
16901 | eval x=\"$x\" | |
16902 | exec_prefix="$acl_save_exec_prefix" | |
16903 | prefix="$acl_save_prefix" | |
16904 | ||
16905 | if test "X$x" = "X$element"; then | |
16906 | haveit=yes | |
16907 | break | |
16908 | fi | |
16909 | done | |
16910 | if test -z "$haveit"; then | |
66170b30 | 16911 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
16912 | fi |
16913 | done | |
16914 | ||
16915 | ||
66170b30 | 16916 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 16917 | haveit= |
66170b30 | 16918 | for x in $OBJCCXXFLAGS; do |
1504c9b8 DWT |
16919 | |
16920 | acl_save_prefix="$prefix" | |
16921 | prefix="$acl_final_prefix" | |
16922 | acl_save_exec_prefix="$exec_prefix" | |
16923 | exec_prefix="$acl_final_exec_prefix" | |
16924 | eval x=\"$x\" | |
16925 | exec_prefix="$acl_save_exec_prefix" | |
16926 | prefix="$acl_save_prefix" | |
16927 | ||
16928 | if test "X$x" = "X$element"; then | |
16929 | haveit=yes | |
16930 | break | |
16931 | fi | |
16932 | done | |
16933 | if test -z "$haveit"; then | |
66170b30 | 16934 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" |
1504c9b8 DWT |
16935 | fi |
16936 | done | |
16937 | ||
16938 | ||
1504c9b8 | 16939 | |
66170b30 JF |
16940 | else |
16941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16942 | $as_echo "no" >&6; } | |
1504c9b8 | 16943 | fi |
1504c9b8 | 16944 | |
1504c9b8 | 16945 | |
1504c9b8 | 16946 | |
66170b30 JF |
16947 | for cy_arch in ppc ppc64 i386 x86_64 armv6; do |
16948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5 | |
16949 | $as_echo_n "checking for -arch $cy_arch... " >&6; } | |
1504c9b8 | 16950 | |
66170b30 | 16951 | cy_save=$CXXFLAGS |
1504c9b8 DWT |
16952 | |
16953 | for element in "-arch $cy_arch"; do | |
16954 | haveit= | |
16955 | for x in $CXXFLAGS; do | |
16956 | ||
16957 | acl_save_prefix="$prefix" | |
16958 | prefix="$acl_final_prefix" | |
16959 | acl_save_exec_prefix="$exec_prefix" | |
16960 | exec_prefix="$acl_final_exec_prefix" | |
16961 | eval x=\"$x\" | |
16962 | exec_prefix="$acl_save_exec_prefix" | |
16963 | prefix="$acl_save_prefix" | |
16964 | ||
16965 | if test "X$x" = "X$element"; then | |
16966 | haveit=yes | |
16967 | break | |
16968 | fi | |
16969 | done | |
16970 | if test -z "$haveit"; then | |
16971 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16972 | fi | |
16973 | done | |
16974 | ||
66170b30 JF |
16975 | |
16976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
16977 | /* end confdefs.h. */ |
16978 | ||
16979 | int | |
16980 | main () | |
16981 | { | |
16982 | ||
16983 | ; | |
16984 | return 0; | |
a243b558 JF |
16985 | } |
16986 | _ACEOF | |
16987 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16988 | cy_good=1 | |
16989 | else | |
16990 | cy_good=0 | |
16991 | fi | |
16992 | rm -f core conftest.err conftest.$ac_objext \ | |
16993 | conftest$ac_exeext conftest.$ac_ext | |
1504c9b8 | 16994 | |
a243b558 JF |
16995 | CXXFLAGS=$cy_save |
16996 | if test "x$cy_good" = x1; then : | |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16998 | $as_echo "yes" >&6; } | |
66170b30 | 16999 | |
1504c9b8 DWT |
17000 | for element in "-arch $cy_arch"; do |
17001 | haveit= | |
a243b558 | 17002 | for x in $CY_ARCH; do |
1504c9b8 DWT |
17003 | |
17004 | acl_save_prefix="$prefix" | |
17005 | prefix="$acl_final_prefix" | |
17006 | acl_save_exec_prefix="$exec_prefix" | |
17007 | exec_prefix="$acl_final_exec_prefix" | |
17008 | eval x=\"$x\" | |
17009 | exec_prefix="$acl_save_exec_prefix" | |
17010 | prefix="$acl_save_prefix" | |
17011 | ||
17012 | if test "X$x" = "X$element"; then | |
17013 | haveit=yes | |
17014 | break | |
17015 | fi | |
17016 | done | |
17017 | if test -z "$haveit"; then | |
a243b558 | 17018 | CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element" |
1504c9b8 DWT |
17019 | fi |
17020 | done | |
17021 | ||
17022 | ||
17023 | else | |
66170b30 JF |
17024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17025 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
17026 | fi |
17027 | ||
66170b30 | 17028 | done |
1504c9b8 | 17029 | |
a243b558 JF |
17030 | |
17031 | ||
e9c9a47c DWT |
17032 | # Check whether --with-frameworks was given. |
17033 | if test "${with_frameworks+set}" = set; then : | |
17034 | withval=$with_frameworks; | |
66170b30 JF |
17035 | for cy_framework in $withval; do |
17036 | ||
9c60689e | 17037 | |
1504c9b8 | 17038 | for element in -F$cy_framework; do |
e9c9a47c DWT |
17039 | haveit= |
17040 | for x in $CFLAGS; do | |
9c60689e | 17041 | |
e9c9a47c DWT |
17042 | acl_save_prefix="$prefix" |
17043 | prefix="$acl_final_prefix" | |
17044 | acl_save_exec_prefix="$exec_prefix" | |
17045 | exec_prefix="$acl_final_exec_prefix" | |
17046 | eval x=\"$x\" | |
17047 | exec_prefix="$acl_save_exec_prefix" | |
17048 | prefix="$acl_save_prefix" | |
17049 | ||
17050 | if test "X$x" = "X$element"; then | |
17051 | haveit=yes | |
17052 | break | |
17053 | fi | |
17054 | done | |
17055 | if test -z "$haveit"; then | |
17056 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17057 | fi | |
9c60689e | 17058 | done |
9c60689e | 17059 | |
94690cff | 17060 | |
1504c9b8 | 17061 | for element in -F$cy_framework; do |
e9c9a47c DWT |
17062 | haveit= |
17063 | for x in $CXXFLAGS; do | |
9c60689e | 17064 | |
e9c9a47c DWT |
17065 | acl_save_prefix="$prefix" |
17066 | prefix="$acl_final_prefix" | |
17067 | acl_save_exec_prefix="$exec_prefix" | |
17068 | exec_prefix="$acl_final_exec_prefix" | |
17069 | eval x=\"$x\" | |
17070 | exec_prefix="$acl_save_exec_prefix" | |
17071 | prefix="$acl_save_prefix" | |
9c60689e | 17072 | |
e9c9a47c DWT |
17073 | if test "X$x" = "X$element"; then |
17074 | haveit=yes | |
17075 | break | |
17076 | fi | |
17077 | done | |
17078 | if test -z "$haveit"; then | |
17079 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17080 | fi | |
17081 | done | |
9c60689e | 17082 | |
e9c9a47c | 17083 | |
1504c9b8 | 17084 | for element in -F$cy_framework; do |
e9c9a47c DWT |
17085 | haveit= |
17086 | for x in $OBJCCXXFLAGS; do | |
17087 | ||
17088 | acl_save_prefix="$prefix" | |
17089 | prefix="$acl_final_prefix" | |
17090 | acl_save_exec_prefix="$exec_prefix" | |
17091 | exec_prefix="$acl_final_exec_prefix" | |
17092 | eval x=\"$x\" | |
17093 | exec_prefix="$acl_save_exec_prefix" | |
17094 | prefix="$acl_save_prefix" | |
17095 | ||
17096 | if test "X$x" = "X$element"; then | |
17097 | haveit=yes | |
17098 | break | |
17099 | fi | |
17100 | done | |
17101 | if test -z "$haveit"; then | |
17102 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
17103 | fi | |
9c60689e | 17104 | done |
632b71ea | 17105 | |
9c60689e | 17106 | |
632b71ea | 17107 | done |
9c60689e | 17108 | |
632b71ea | 17109 | fi |
9c60689e | 17110 | |
9c60689e | 17111 | |
632b71ea DWT |
17112 | |
17113 | ||
5053a6d1 DWT |
17114 | # Check whether --enable-javascript was given. |
17115 | if test "${enable_javascript+set}" = set; then : | |
17116 | enableval=$enable_javascript; | |
66170b30 | 17117 | case $enableval in #( |
5053a6d1 | 17118 | yes) : |
9c60689e DWT |
17119 | |
17120 | ||
9c60689e | 17121 | |
66170b30 | 17122 | |
5053a6d1 DWT |
17123 | pkg_failed=no |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17125 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17126 | ||
12833ad8 JF |
17127 | if test -n "$WEBKIT_CFLAGS"; then |
17128 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17129 | elif test -n "$PKG_CONFIG"; then | |
17130 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
17132 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17133 | ac_status=$? | |
17134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17135 | test $ac_status = 0; }; then | |
17136 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 17137 | else |
5053a6d1 | 17138 | pkg_failed=yes |
9c60689e | 17139 | fi |
12833ad8 JF |
17140 | else |
17141 | pkg_failed=untried | |
632b71ea | 17142 | fi |
12833ad8 JF |
17143 | if test -n "$WEBKIT_LIBS"; then |
17144 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17145 | elif test -n "$PKG_CONFIG"; then | |
17146 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17147 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
17148 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17149 | ac_status=$? | |
17150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17151 | test $ac_status = 0; }; then | |
17152 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
9c60689e | 17153 | else |
5053a6d1 | 17154 | pkg_failed=yes |
9c60689e | 17155 | fi |
12833ad8 JF |
17156 | else |
17157 | pkg_failed=untried | |
9c60689e DWT |
17158 | fi |
17159 | ||
17160 | ||
17161 | ||
5053a6d1 | 17162 | if test $pkg_failed = yes; then |
12833ad8 JF |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17164 | $as_echo "no" >&6; } | |
9c60689e | 17165 | |
5053a6d1 DWT |
17166 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
17167 | _pkg_short_errors_supported=yes | |
9c60689e | 17168 | else |
5053a6d1 DWT |
17169 | _pkg_short_errors_supported=no |
17170 | fi | |
17171 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 17172 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
5053a6d1 | 17173 | else |
53ba6704 | 17174 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
5053a6d1 DWT |
17175 | fi |
17176 | # Put the nasty error message in config.log where it belongs | |
17177 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
632b71ea | 17178 | |
5053a6d1 DWT |
17179 | |
17180 | ||
17181 | pkg_failed=no | |
17182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17183 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 17184 | |
12833ad8 JF |
17185 | if test -n "$WEBKIT_CFLAGS"; then |
17186 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17187 | elif test -n "$PKG_CONFIG"; then | |
17188 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17190 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17191 | ac_status=$? | |
17192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17193 | test $ac_status = 0; }; then | |
17194 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
17195 | else | |
17196 | pkg_failed=yes | |
9c60689e | 17197 | fi |
12833ad8 JF |
17198 | else |
17199 | pkg_failed=untried | |
5053a6d1 | 17200 | fi |
12833ad8 JF |
17201 | if test -n "$WEBKIT_LIBS"; then |
17202 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17203 | elif test -n "$PKG_CONFIG"; then | |
17204 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17205 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17206 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17207 | ac_status=$? | |
17208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17209 | test $ac_status = 0; }; then | |
17210 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17211 | else | |
17212 | pkg_failed=yes | |
17213 | fi | |
12833ad8 JF |
17214 | else |
17215 | pkg_failed=untried | |
632b71ea DWT |
17216 | fi |
17217 | ||
17218 | ||
17219 | ||
5053a6d1 | 17220 | if test $pkg_failed = yes; then |
12833ad8 JF |
17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17222 | $as_echo "no" >&6; } | |
5053a6d1 DWT |
17223 | |
17224 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17225 | _pkg_short_errors_supported=yes | |
17226 | else | |
17227 | _pkg_short_errors_supported=no | |
17228 | fi | |
17229 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 17230 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
5053a6d1 | 17231 | else |
53ba6704 | 17232 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
5053a6d1 DWT |
17233 | fi |
17234 | # Put the nasty error message in config.log where it belongs | |
17235 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
17236 | ||
5053a6d1 | 17237 | |
632b71ea | 17238 | |
5053a6d1 DWT |
17239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
17240 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17241 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
5053a6d1 DWT |
17242 | $as_echo_n "(cached) " >&6 |
17243 | else | |
632b71ea | 17244 | |
5053a6d1 DWT |
17245 | ac_check_framework_save_LIBS=$LIBS |
17246 | LIBS="-framework JavaScriptCore $LIBS" | |
17247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17248 | /* end confdefs.h. */ | |
632b71ea | 17249 | |
66170b30 | 17250 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 17251 | |
5053a6d1 DWT |
17252 | int |
17253 | main () | |
17254 | { | |
66170b30 JF |
17255 | |
17256 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17257 | ||
5053a6d1 DWT |
17258 | ; |
17259 | return 0; | |
17260 | } | |
17261 | _ACEOF | |
17262 | if ac_fn_cxx_try_link "$LINENO"; then : | |
632b71ea | 17263 | |
5053a6d1 | 17264 | ac_cv_framework_JavaScriptCore=yes |
632b71ea | 17265 | |
5053a6d1 DWT |
17266 | else |
17267 | ac_cv_framework_JavaScriptCore=no | |
17268 | fi | |
17269 | rm -f core conftest.err conftest.$ac_objext \ | |
17270 | conftest$ac_exeext conftest.$ac_ext | |
17271 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 17272 | |
5053a6d1 DWT |
17273 | fi |
17274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17275 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17276 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
632b71ea DWT |
17277 | |
17278 | ||
5053a6d1 DWT |
17279 | for element in "-framework JavaScriptCore $LIBS"; do |
17280 | haveit= | |
17281 | for x in $LIBS; do | |
632b71ea DWT |
17282 | |
17283 | acl_save_prefix="$prefix" | |
17284 | prefix="$acl_final_prefix" | |
17285 | acl_save_exec_prefix="$exec_prefix" | |
17286 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 17287 | eval x=\"$x\" |
632b71ea DWT |
17288 | exec_prefix="$acl_save_exec_prefix" |
17289 | prefix="$acl_save_prefix" | |
17290 | ||
5053a6d1 DWT |
17291 | if test "X$x" = "X$element"; then |
17292 | haveit=yes | |
17293 | break | |
17294 | fi | |
17295 | done | |
17296 | if test -z "$haveit"; then | |
17297 | LIBS="${LIBS}${LIBS:+ }$element" | |
17298 | fi | |
17299 | done | |
17300 | ||
66170b30 JF |
17301 | |
17302 | CY_EXECUTE=1 | |
17303 | ||
17304 | ||
632b71ea | 17305 | |
5053a6d1 DWT |
17306 | fi |
17307 | ||
17308 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
17309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17310 | $as_echo "no" >&6; } | |
5053a6d1 DWT |
17311 | |
17312 | ||
17313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17314 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17315 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
5053a6d1 DWT |
17316 | $as_echo_n "(cached) " >&6 |
17317 | else | |
17318 | ||
17319 | ac_check_framework_save_LIBS=$LIBS | |
17320 | LIBS="-framework JavaScriptCore $LIBS" | |
17321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17322 | /* end confdefs.h. */ | |
17323 | ||
66170b30 | 17324 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 DWT |
17325 | |
17326 | int | |
17327 | main () | |
17328 | { | |
66170b30 JF |
17329 | |
17330 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17331 | ||
5053a6d1 DWT |
17332 | ; |
17333 | return 0; | |
17334 | } | |
17335 | _ACEOF | |
17336 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17337 | ||
17338 | ac_cv_framework_JavaScriptCore=yes | |
17339 | ||
17340 | else | |
17341 | ac_cv_framework_JavaScriptCore=no | |
17342 | fi | |
17343 | rm -f core conftest.err conftest.$ac_objext \ | |
17344 | conftest$ac_exeext conftest.$ac_ext | |
17345 | LIBS=$ac_check_framework_save_LIBS | |
17346 | ||
17347 | fi | |
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17349 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17350 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17351 | ||
17352 | ||
17353 | for element in "-framework JavaScriptCore $LIBS"; do | |
17354 | haveit= | |
17355 | for x in $LIBS; do | |
632b71ea DWT |
17356 | |
17357 | acl_save_prefix="$prefix" | |
17358 | prefix="$acl_final_prefix" | |
17359 | acl_save_exec_prefix="$exec_prefix" | |
17360 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
17361 | eval x=\"$x\" |
17362 | exec_prefix="$acl_save_exec_prefix" | |
17363 | prefix="$acl_save_prefix" | |
632b71ea | 17364 | |
5053a6d1 DWT |
17365 | if test "X$x" = "X$element"; then |
17366 | haveit=yes | |
17367 | break | |
17368 | fi | |
17369 | done | |
17370 | if test -z "$haveit"; then | |
17371 | LIBS="${LIBS}${LIBS:+ }$element" | |
17372 | fi | |
17373 | done | |
17374 | ||
66170b30 JF |
17375 | |
17376 | CY_EXECUTE=1 | |
17377 | ||
17378 | ||
5053a6d1 DWT |
17379 | |
17380 | fi | |
17381 | ||
17382 | else | |
17383 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17384 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17386 | $as_echo "yes" >&6; } | |
17387 | ||
66170b30 JF |
17388 | CY_EXECUTE=1 |
17389 | ||
5053a6d1 DWT |
17390 | |
17391 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
17392 | haveit= | |
17393 | for x in $CXXFLAGS; do | |
632b71ea | 17394 | |
5053a6d1 DWT |
17395 | acl_save_prefix="$prefix" |
17396 | prefix="$acl_final_prefix" | |
17397 | acl_save_exec_prefix="$exec_prefix" | |
17398 | exec_prefix="$acl_final_exec_prefix" | |
17399 | eval x=\"$x\" | |
632b71ea DWT |
17400 | exec_prefix="$acl_save_exec_prefix" |
17401 | prefix="$acl_save_prefix" | |
17402 | ||
5053a6d1 DWT |
17403 | if test "X$x" = "X$element"; then |
17404 | haveit=yes | |
17405 | break | |
632b71ea | 17406 | fi |
5053a6d1 DWT |
17407 | done |
17408 | if test -z "$haveit"; then | |
17409 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
632b71ea | 17410 | fi |
5053a6d1 | 17411 | done |
632b71ea | 17412 | |
632b71ea | 17413 | |
5053a6d1 DWT |
17414 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
17415 | haveit= | |
17416 | for x in $LIBS; do | |
632b71ea DWT |
17417 | |
17418 | acl_save_prefix="$prefix" | |
17419 | prefix="$acl_final_prefix" | |
17420 | acl_save_exec_prefix="$exec_prefix" | |
17421 | exec_prefix="$acl_final_exec_prefix" | |
17422 | eval x=\"$x\" | |
17423 | exec_prefix="$acl_save_exec_prefix" | |
17424 | prefix="$acl_save_prefix" | |
17425 | ||
5053a6d1 DWT |
17426 | if test "X$x" = "X$element"; then |
17427 | haveit=yes | |
17428 | break | |
17429 | fi | |
17430 | done | |
17431 | if test -z "$haveit"; then | |
17432 | LIBS="${LIBS}${LIBS:+ }$element" | |
17433 | fi | |
17434 | done | |
632b71ea | 17435 | |
632b71ea | 17436 | |
5053a6d1 | 17437 | fi |
632b71ea | 17438 | |
5053a6d1 | 17439 | elif test $pkg_failed = untried; then |
12833ad8 JF |
17440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17441 | $as_echo "no" >&6; } | |
632b71ea | 17442 | |
632b71ea | 17443 | |
5053a6d1 DWT |
17444 | pkg_failed=no |
17445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17446 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 17447 | |
12833ad8 JF |
17448 | if test -n "$WEBKIT_CFLAGS"; then |
17449 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17450 | elif test -n "$PKG_CONFIG"; then | |
17451 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17453 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17454 | ac_status=$? | |
17455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17456 | test $ac_status = 0; }; then | |
17457 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
17458 | else | |
17459 | pkg_failed=yes | |
17460 | fi | |
12833ad8 JF |
17461 | else |
17462 | pkg_failed=untried | |
5053a6d1 | 17463 | fi |
12833ad8 JF |
17464 | if test -n "$WEBKIT_LIBS"; then |
17465 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17466 | elif test -n "$PKG_CONFIG"; then | |
17467 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
17468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17469 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17470 | ac_status=$? | |
17471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17472 | test $ac_status = 0; }; then | |
17473 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17474 | else | |
17475 | pkg_failed=yes | |
17476 | fi | |
12833ad8 JF |
17477 | else |
17478 | pkg_failed=untried | |
5053a6d1 | 17479 | fi |
9c60689e | 17480 | |
9c60689e DWT |
17481 | |
17482 | ||
5053a6d1 | 17483 | if test $pkg_failed = yes; then |
12833ad8 JF |
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17485 | $as_echo "no" >&6; } | |
5053a6d1 DWT |
17486 | |
17487 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17488 | _pkg_short_errors_supported=yes | |
17489 | else | |
17490 | _pkg_short_errors_supported=no | |
17491 | fi | |
17492 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 17493 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
5053a6d1 | 17494 | else |
53ba6704 | 17495 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
5053a6d1 DWT |
17496 | fi |
17497 | # Put the nasty error message in config.log where it belongs | |
17498 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
17499 | ||
9c60689e | 17500 | |
9c60689e | 17501 | |
5053a6d1 DWT |
17502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
17503 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17504 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
5053a6d1 DWT |
17505 | $as_echo_n "(cached) " >&6 |
17506 | else | |
9c60689e | 17507 | |
5053a6d1 DWT |
17508 | ac_check_framework_save_LIBS=$LIBS |
17509 | LIBS="-framework JavaScriptCore $LIBS" | |
17510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17511 | /* end confdefs.h. */ | |
9c60689e | 17512 | |
66170b30 | 17513 | #include <JavaScriptCore/JSBase.h> |
9c60689e | 17514 | |
5053a6d1 DWT |
17515 | int |
17516 | main () | |
17517 | { | |
66170b30 JF |
17518 | |
17519 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17520 | ||
5053a6d1 DWT |
17521 | ; |
17522 | return 0; | |
17523 | } | |
17524 | _ACEOF | |
17525 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17526 | ||
17527 | ac_cv_framework_JavaScriptCore=yes | |
17528 | ||
17529 | else | |
17530 | ac_cv_framework_JavaScriptCore=no | |
17531 | fi | |
17532 | rm -f core conftest.err conftest.$ac_objext \ | |
17533 | conftest$ac_exeext conftest.$ac_ext | |
17534 | LIBS=$ac_check_framework_save_LIBS | |
17535 | ||
17536 | fi | |
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17538 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17539 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17540 | ||
17541 | ||
17542 | for element in "-framework JavaScriptCore $LIBS"; do | |
632b71ea | 17543 | haveit= |
5053a6d1 | 17544 | for x in $LIBS; do |
9c60689e | 17545 | |
632b71ea DWT |
17546 | acl_save_prefix="$prefix" |
17547 | prefix="$acl_final_prefix" | |
17548 | acl_save_exec_prefix="$exec_prefix" | |
17549 | exec_prefix="$acl_final_exec_prefix" | |
17550 | eval x=\"$x\" | |
17551 | exec_prefix="$acl_save_exec_prefix" | |
17552 | prefix="$acl_save_prefix" | |
17553 | ||
17554 | if test "X$x" = "X$element"; then | |
17555 | haveit=yes | |
17556 | break | |
17557 | fi | |
17558 | done | |
17559 | if test -z "$haveit"; then | |
5053a6d1 | 17560 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
17561 | fi |
17562 | done | |
b128dfee | 17563 | |
66170b30 JF |
17564 | |
17565 | CY_EXECUTE=1 | |
17566 | ||
17567 | ||
5053a6d1 DWT |
17568 | |
17569 | fi | |
c823f118 | 17570 | |
5053a6d1 | 17571 | elif test $pkg_failed = untried; then |
12833ad8 JF |
17572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17573 | $as_echo "no" >&6; } | |
5053a6d1 DWT |
17574 | |
17575 | ||
17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17577 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17578 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
17579 | $as_echo_n "(cached) " >&6 |
17580 | else | |
17581 | ||
5053a6d1 DWT |
17582 | ac_check_framework_save_LIBS=$LIBS |
17583 | LIBS="-framework JavaScriptCore $LIBS" | |
17584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 17585 | /* end confdefs.h. */ |
5053a6d1 | 17586 | |
66170b30 | 17587 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 17588 | |
632b71ea DWT |
17589 | int |
17590 | main () | |
17591 | { | |
66170b30 JF |
17592 | |
17593 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17594 | ||
632b71ea DWT |
17595 | ; |
17596 | return 0; | |
17597 | } | |
17598 | _ACEOF | |
5053a6d1 DWT |
17599 | if ac_fn_cxx_try_link "$LINENO"; then : |
17600 | ||
17601 | ac_cv_framework_JavaScriptCore=yes | |
17602 | ||
17603 | else | |
17604 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
17605 | fi |
17606 | rm -f core conftest.err conftest.$ac_objext \ | |
17607 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 17608 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 17609 | |
c823f118 | 17610 | fi |
5053a6d1 DWT |
17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
17612 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17613 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
17614 | |
17615 | ||
5053a6d1 DWT |
17616 | for element in "-framework JavaScriptCore $LIBS"; do |
17617 | haveit= | |
17618 | for x in $LIBS; do | |
17619 | ||
17620 | acl_save_prefix="$prefix" | |
17621 | prefix="$acl_final_prefix" | |
17622 | acl_save_exec_prefix="$exec_prefix" | |
17623 | exec_prefix="$acl_final_exec_prefix" | |
17624 | eval x=\"$x\" | |
17625 | exec_prefix="$acl_save_exec_prefix" | |
17626 | prefix="$acl_save_prefix" | |
17627 | ||
17628 | if test "X$x" = "X$element"; then | |
17629 | haveit=yes | |
17630 | break | |
17631 | fi | |
17632 | done | |
17633 | if test -z "$haveit"; then | |
17634 | LIBS="${LIBS}${LIBS:+ }$element" | |
17635 | fi | |
17636 | done | |
c823f118 | 17637 | |
66170b30 JF |
17638 | |
17639 | CY_EXECUTE=1 | |
17640 | ||
17641 | ||
b128dfee | 17642 | |
632b71ea | 17643 | fi |
c823f118 | 17644 | |
5053a6d1 DWT |
17645 | else |
17646 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17647 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17649 | $as_echo "yes" >&6; } | |
c823f118 | 17650 | |
66170b30 JF |
17651 | CY_EXECUTE=1 |
17652 | ||
b128dfee | 17653 | |
5053a6d1 DWT |
17654 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
17655 | haveit= | |
17656 | for x in $CXXFLAGS; do | |
b128dfee | 17657 | |
5053a6d1 DWT |
17658 | acl_save_prefix="$prefix" |
17659 | prefix="$acl_final_prefix" | |
17660 | acl_save_exec_prefix="$exec_prefix" | |
17661 | exec_prefix="$acl_final_exec_prefix" | |
17662 | eval x=\"$x\" | |
17663 | exec_prefix="$acl_save_exec_prefix" | |
17664 | prefix="$acl_save_prefix" | |
c823f118 | 17665 | |
5053a6d1 DWT |
17666 | if test "X$x" = "X$element"; then |
17667 | haveit=yes | |
17668 | break | |
17669 | fi | |
17670 | done | |
17671 | if test -z "$haveit"; then | |
17672 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17673 | fi | |
17674 | done | |
c823f118 | 17675 | |
c823f118 | 17676 | |
5053a6d1 DWT |
17677 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
17678 | haveit= | |
17679 | for x in $LIBS; do | |
17680 | ||
17681 | acl_save_prefix="$prefix" | |
17682 | prefix="$acl_final_prefix" | |
17683 | acl_save_exec_prefix="$exec_prefix" | |
17684 | exec_prefix="$acl_final_exec_prefix" | |
17685 | eval x=\"$x\" | |
17686 | exec_prefix="$acl_save_exec_prefix" | |
17687 | prefix="$acl_save_prefix" | |
17688 | ||
17689 | if test "X$x" = "X$element"; then | |
17690 | haveit=yes | |
17691 | break | |
17692 | fi | |
17693 | done | |
17694 | if test -z "$haveit"; then | |
17695 | LIBS="${LIBS}${LIBS:+ }$element" | |
17696 | fi | |
17697 | done | |
c823f118 | 17698 | |
632b71ea | 17699 | |
b128dfee DWT |
17700 | fi |
17701 | ||
5053a6d1 DWT |
17702 | else |
17703 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17704 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17706 | $as_echo "yes" >&6; } | |
b128dfee | 17707 | |
66170b30 JF |
17708 | CY_EXECUTE=1 |
17709 | ||
c823f118 | 17710 | |
5053a6d1 DWT |
17711 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do |
17712 | haveit= | |
17713 | for x in $CXXFLAGS; do | |
c823f118 | 17714 | |
5053a6d1 DWT |
17715 | acl_save_prefix="$prefix" |
17716 | prefix="$acl_final_prefix" | |
17717 | acl_save_exec_prefix="$exec_prefix" | |
17718 | exec_prefix="$acl_final_exec_prefix" | |
17719 | eval x=\"$x\" | |
17720 | exec_prefix="$acl_save_exec_prefix" | |
17721 | prefix="$acl_save_prefix" | |
c823f118 | 17722 | |
5053a6d1 DWT |
17723 | if test "X$x" = "X$element"; then |
17724 | haveit=yes | |
17725 | break | |
17726 | fi | |
17727 | done | |
17728 | if test -z "$haveit"; then | |
17729 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17730 | fi | |
17731 | done | |
c823f118 | 17732 | |
b66977f1 | 17733 | |
5053a6d1 DWT |
17734 | for element in `$PKG_CONFIG --libs webkit-1.0`; do |
17735 | haveit= | |
17736 | for x in $LIBS; do | |
17737 | ||
17738 | acl_save_prefix="$prefix" | |
17739 | prefix="$acl_final_prefix" | |
17740 | acl_save_exec_prefix="$exec_prefix" | |
17741 | exec_prefix="$acl_final_exec_prefix" | |
17742 | eval x=\"$x\" | |
17743 | exec_prefix="$acl_save_exec_prefix" | |
17744 | prefix="$acl_save_prefix" | |
17745 | ||
17746 | if test "X$x" = "X$element"; then | |
17747 | haveit=yes | |
17748 | break | |
17749 | fi | |
17750 | done | |
17751 | if test -z "$haveit"; then | |
17752 | LIBS="${LIBS}${LIBS:+ }$element" | |
17753 | fi | |
17754 | done | |
17755 | ||
17756 | ||
17757 | fi | |
5053a6d1 DWT |
17758 | ;; #( |
17759 | no) : | |
17760 | ||
66170b30 JF |
17761 | CY_EXECUTE=0 |
17762 | ;; #( | |
5053a6d1 | 17763 | JavaScriptCore) : |
b66977f1 DWT |
17764 | |
17765 | ||
17766 | ||
17767 | pkg_failed=no | |
17768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17769 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17770 | ||
12833ad8 JF |
17771 | if test -n "$WEBKIT_CFLAGS"; then |
17772 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17773 | elif test -n "$PKG_CONFIG"; then | |
17774 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
17775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
17776 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17777 | ac_status=$? | |
17778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17779 | test $ac_status = 0; }; then | |
17780 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
17781 | else | |
17782 | pkg_failed=yes | |
17783 | fi | |
12833ad8 JF |
17784 | else |
17785 | pkg_failed=untried | |
b66977f1 | 17786 | fi |
12833ad8 JF |
17787 | if test -n "$WEBKIT_LIBS"; then |
17788 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17789 | elif test -n "$PKG_CONFIG"; then | |
17790 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
17791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
17792 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17793 | ac_status=$? | |
17794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17795 | test $ac_status = 0; }; then | |
17796 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
17797 | else | |
17798 | pkg_failed=yes | |
17799 | fi | |
12833ad8 JF |
17800 | else |
17801 | pkg_failed=untried | |
b66977f1 DWT |
17802 | fi |
17803 | ||
17804 | ||
17805 | ||
17806 | if test $pkg_failed = yes; then | |
12833ad8 JF |
17807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17808 | $as_echo "no" >&6; } | |
b66977f1 DWT |
17809 | |
17810 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17811 | _pkg_short_errors_supported=yes | |
17812 | else | |
17813 | _pkg_short_errors_supported=no | |
17814 | fi | |
17815 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 17816 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
b66977f1 | 17817 | else |
53ba6704 | 17818 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
b66977f1 DWT |
17819 | fi |
17820 | # Put the nasty error message in config.log where it belongs | |
17821 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
17822 | ||
b66977f1 DWT |
17823 | |
17824 | ||
17825 | pkg_failed=no | |
17826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17827 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17828 | ||
12833ad8 JF |
17829 | if test -n "$WEBKIT_CFLAGS"; then |
17830 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17831 | elif test -n "$PKG_CONFIG"; then | |
17832 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
17833 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17834 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17835 | ac_status=$? | |
17836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17837 | test $ac_status = 0; }; then | |
17838 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
17839 | else | |
17840 | pkg_failed=yes | |
17841 | fi | |
12833ad8 JF |
17842 | else |
17843 | pkg_failed=untried | |
b66977f1 | 17844 | fi |
12833ad8 JF |
17845 | if test -n "$WEBKIT_LIBS"; then |
17846 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17847 | elif test -n "$PKG_CONFIG"; then | |
17848 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
17849 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
17850 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17851 | ac_status=$? | |
17852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17853 | test $ac_status = 0; }; then | |
17854 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17855 | else | |
17856 | pkg_failed=yes | |
17857 | fi | |
12833ad8 JF |
17858 | else |
17859 | pkg_failed=untried | |
b66977f1 DWT |
17860 | fi |
17861 | ||
17862 | ||
17863 | ||
17864 | if test $pkg_failed = yes; then | |
12833ad8 JF |
17865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17866 | $as_echo "no" >&6; } | |
b66977f1 DWT |
17867 | |
17868 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17869 | _pkg_short_errors_supported=yes | |
17870 | else | |
17871 | _pkg_short_errors_supported=no | |
17872 | fi | |
17873 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 17874 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 17875 | else |
53ba6704 | 17876 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
17877 | fi |
17878 | # Put the nasty error message in config.log where it belongs | |
17879 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
17880 | ||
b66977f1 DWT |
17881 | |
17882 | ||
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17884 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17885 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
17886 | $as_echo_n "(cached) " >&6 |
17887 | else | |
17888 | ||
17889 | ac_check_framework_save_LIBS=$LIBS | |
17890 | LIBS="-framework JavaScriptCore $LIBS" | |
17891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17892 | /* end confdefs.h. */ | |
17893 | ||
66170b30 | 17894 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
17895 | |
17896 | int | |
17897 | main () | |
17898 | { | |
66170b30 JF |
17899 | |
17900 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17901 | ||
b66977f1 DWT |
17902 | ; |
17903 | return 0; | |
17904 | } | |
17905 | _ACEOF | |
17906 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17907 | ||
17908 | ac_cv_framework_JavaScriptCore=yes | |
17909 | ||
17910 | else | |
17911 | ac_cv_framework_JavaScriptCore=no | |
17912 | fi | |
17913 | rm -f core conftest.err conftest.$ac_objext \ | |
17914 | conftest$ac_exeext conftest.$ac_ext | |
17915 | LIBS=$ac_check_framework_save_LIBS | |
17916 | ||
17917 | fi | |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17919 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17920 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17921 | ||
17922 | ||
17923 | for element in "-framework JavaScriptCore $LIBS"; do | |
17924 | haveit= | |
17925 | for x in $LIBS; do | |
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 | |
17941 | LIBS="${LIBS}${LIBS:+ }$element" | |
17942 | fi | |
17943 | done | |
17944 | ||
66170b30 JF |
17945 | |
17946 | CY_EXECUTE=1 | |
17947 | ||
17948 | ||
b66977f1 DWT |
17949 | |
17950 | fi | |
17951 | ||
17952 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
17953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17954 | $as_echo "no" >&6; } | |
b66977f1 DWT |
17955 | |
17956 | ||
17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17958 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 17959 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
17960 | $as_echo_n "(cached) " >&6 |
17961 | else | |
17962 | ||
17963 | ac_check_framework_save_LIBS=$LIBS | |
17964 | LIBS="-framework JavaScriptCore $LIBS" | |
17965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17966 | /* end confdefs.h. */ | |
17967 | ||
66170b30 | 17968 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
17969 | |
17970 | int | |
17971 | main () | |
17972 | { | |
66170b30 JF |
17973 | |
17974 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17975 | ||
b66977f1 DWT |
17976 | ; |
17977 | return 0; | |
17978 | } | |
17979 | _ACEOF | |
17980 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17981 | ||
17982 | ac_cv_framework_JavaScriptCore=yes | |
17983 | ||
17984 | else | |
17985 | ac_cv_framework_JavaScriptCore=no | |
17986 | fi | |
17987 | rm -f core conftest.err conftest.$ac_objext \ | |
17988 | conftest$ac_exeext conftest.$ac_ext | |
17989 | LIBS=$ac_check_framework_save_LIBS | |
17990 | ||
17991 | fi | |
17992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17993 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17994 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17995 | ||
17996 | ||
17997 | for element in "-framework JavaScriptCore $LIBS"; do | |
17998 | haveit= | |
17999 | for x in $LIBS; do | |
18000 | ||
18001 | acl_save_prefix="$prefix" | |
18002 | prefix="$acl_final_prefix" | |
18003 | acl_save_exec_prefix="$exec_prefix" | |
18004 | exec_prefix="$acl_final_exec_prefix" | |
18005 | eval x=\"$x\" | |
18006 | exec_prefix="$acl_save_exec_prefix" | |
18007 | prefix="$acl_save_prefix" | |
18008 | ||
18009 | if test "X$x" = "X$element"; then | |
18010 | haveit=yes | |
18011 | break | |
18012 | fi | |
18013 | done | |
18014 | if test -z "$haveit"; then | |
18015 | LIBS="${LIBS}${LIBS:+ }$element" | |
18016 | fi | |
18017 | done | |
18018 | ||
66170b30 JF |
18019 | |
18020 | CY_EXECUTE=1 | |
18021 | ||
18022 | ||
b66977f1 DWT |
18023 | |
18024 | fi | |
18025 | ||
18026 | else | |
18027 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18028 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18030 | $as_echo "yes" >&6; } | |
18031 | ||
66170b30 JF |
18032 | CY_EXECUTE=1 |
18033 | ||
b66977f1 DWT |
18034 | |
18035 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
18036 | haveit= | |
18037 | for x in $CXXFLAGS; do | |
18038 | ||
18039 | acl_save_prefix="$prefix" | |
18040 | prefix="$acl_final_prefix" | |
18041 | acl_save_exec_prefix="$exec_prefix" | |
18042 | exec_prefix="$acl_final_exec_prefix" | |
18043 | eval x=\"$x\" | |
18044 | exec_prefix="$acl_save_exec_prefix" | |
18045 | prefix="$acl_save_prefix" | |
18046 | ||
18047 | if test "X$x" = "X$element"; then | |
18048 | haveit=yes | |
18049 | break | |
18050 | fi | |
18051 | done | |
18052 | if test -z "$haveit"; then | |
18053 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18054 | fi | |
18055 | done | |
18056 | ||
18057 | ||
18058 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
18059 | haveit= | |
18060 | for x in $LIBS; do | |
18061 | ||
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" | |
18069 | ||
18070 | if test "X$x" = "X$element"; then | |
18071 | haveit=yes | |
18072 | break | |
18073 | fi | |
18074 | done | |
18075 | if test -z "$haveit"; then | |
18076 | LIBS="${LIBS}${LIBS:+ }$element" | |
18077 | fi | |
18078 | done | |
18079 | ||
18080 | ||
18081 | fi | |
18082 | ||
18083 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18085 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18086 | |
18087 | ||
18088 | pkg_failed=no | |
18089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18090 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18091 | ||
12833ad8 JF |
18092 | if test -n "$WEBKIT_CFLAGS"; then |
18093 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18094 | elif test -n "$PKG_CONFIG"; then | |
18095 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18096 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18097 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18098 | ac_status=$? | |
18099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18100 | test $ac_status = 0; }; then | |
18101 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
18102 | else | |
18103 | pkg_failed=yes | |
18104 | fi | |
12833ad8 JF |
18105 | else |
18106 | pkg_failed=untried | |
b66977f1 | 18107 | fi |
12833ad8 JF |
18108 | if test -n "$WEBKIT_LIBS"; then |
18109 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18110 | elif test -n "$PKG_CONFIG"; then | |
18111 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18112 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18113 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18114 | ac_status=$? | |
18115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18116 | test $ac_status = 0; }; then | |
18117 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
18118 | else | |
18119 | pkg_failed=yes | |
18120 | fi | |
12833ad8 JF |
18121 | else |
18122 | pkg_failed=untried | |
b66977f1 DWT |
18123 | fi |
18124 | ||
18125 | ||
18126 | ||
18127 | if test $pkg_failed = yes; then | |
12833ad8 JF |
18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18129 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18130 | |
18131 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18132 | _pkg_short_errors_supported=yes | |
18133 | else | |
18134 | _pkg_short_errors_supported=no | |
18135 | fi | |
18136 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 18137 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 18138 | else |
53ba6704 | 18139 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
18140 | fi |
18141 | # Put the nasty error message in config.log where it belongs | |
18142 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18143 | ||
b66977f1 DWT |
18144 | |
18145 | ||
18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18147 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18148 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18149 | $as_echo_n "(cached) " >&6 |
18150 | else | |
18151 | ||
18152 | ac_check_framework_save_LIBS=$LIBS | |
18153 | LIBS="-framework JavaScriptCore $LIBS" | |
18154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18155 | /* end confdefs.h. */ | |
18156 | ||
66170b30 | 18157 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18158 | |
18159 | int | |
18160 | main () | |
18161 | { | |
66170b30 JF |
18162 | |
18163 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18164 | ||
b66977f1 DWT |
18165 | ; |
18166 | return 0; | |
18167 | } | |
18168 | _ACEOF | |
18169 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18170 | ||
18171 | ac_cv_framework_JavaScriptCore=yes | |
18172 | ||
18173 | else | |
18174 | ac_cv_framework_JavaScriptCore=no | |
18175 | fi | |
18176 | rm -f core conftest.err conftest.$ac_objext \ | |
18177 | conftest$ac_exeext conftest.$ac_ext | |
18178 | LIBS=$ac_check_framework_save_LIBS | |
18179 | ||
18180 | fi | |
18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18182 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18183 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18184 | ||
18185 | ||
18186 | for element in "-framework JavaScriptCore $LIBS"; do | |
18187 | haveit= | |
18188 | for x in $LIBS; do | |
18189 | ||
18190 | acl_save_prefix="$prefix" | |
18191 | prefix="$acl_final_prefix" | |
18192 | acl_save_exec_prefix="$exec_prefix" | |
18193 | exec_prefix="$acl_final_exec_prefix" | |
18194 | eval x=\"$x\" | |
18195 | exec_prefix="$acl_save_exec_prefix" | |
18196 | prefix="$acl_save_prefix" | |
18197 | ||
18198 | if test "X$x" = "X$element"; then | |
18199 | haveit=yes | |
18200 | break | |
18201 | fi | |
18202 | done | |
18203 | if test -z "$haveit"; then | |
18204 | LIBS="${LIBS}${LIBS:+ }$element" | |
18205 | fi | |
18206 | done | |
18207 | ||
66170b30 JF |
18208 | |
18209 | CY_EXECUTE=1 | |
18210 | ||
18211 | ||
b66977f1 DWT |
18212 | |
18213 | fi | |
18214 | ||
18215 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
18216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18217 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18218 | |
18219 | ||
18220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18221 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18222 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18223 | $as_echo_n "(cached) " >&6 |
18224 | else | |
18225 | ||
18226 | ac_check_framework_save_LIBS=$LIBS | |
18227 | LIBS="-framework JavaScriptCore $LIBS" | |
18228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18229 | /* end confdefs.h. */ | |
18230 | ||
66170b30 | 18231 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18232 | |
18233 | int | |
18234 | main () | |
18235 | { | |
66170b30 JF |
18236 | |
18237 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18238 | ||
b66977f1 DWT |
18239 | ; |
18240 | return 0; | |
18241 | } | |
18242 | _ACEOF | |
18243 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18244 | ||
18245 | ac_cv_framework_JavaScriptCore=yes | |
18246 | ||
18247 | else | |
18248 | ac_cv_framework_JavaScriptCore=no | |
18249 | fi | |
18250 | rm -f core conftest.err conftest.$ac_objext \ | |
18251 | conftest$ac_exeext conftest.$ac_ext | |
18252 | LIBS=$ac_check_framework_save_LIBS | |
18253 | ||
18254 | fi | |
18255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18256 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18257 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18258 | ||
18259 | ||
18260 | for element in "-framework JavaScriptCore $LIBS"; do | |
18261 | haveit= | |
18262 | for x in $LIBS; do | |
18263 | ||
18264 | acl_save_prefix="$prefix" | |
18265 | prefix="$acl_final_prefix" | |
18266 | acl_save_exec_prefix="$exec_prefix" | |
18267 | exec_prefix="$acl_final_exec_prefix" | |
18268 | eval x=\"$x\" | |
18269 | exec_prefix="$acl_save_exec_prefix" | |
18270 | prefix="$acl_save_prefix" | |
18271 | ||
18272 | if test "X$x" = "X$element"; then | |
18273 | haveit=yes | |
18274 | break | |
18275 | fi | |
18276 | done | |
18277 | if test -z "$haveit"; then | |
18278 | LIBS="${LIBS}${LIBS:+ }$element" | |
18279 | fi | |
18280 | done | |
18281 | ||
66170b30 JF |
18282 | |
18283 | CY_EXECUTE=1 | |
18284 | ||
18285 | ||
b66977f1 DWT |
18286 | |
18287 | fi | |
18288 | ||
18289 | else | |
18290 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18291 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18293 | $as_echo "yes" >&6; } | |
18294 | ||
66170b30 JF |
18295 | CY_EXECUTE=1 |
18296 | ||
b66977f1 DWT |
18297 | |
18298 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
18299 | haveit= | |
18300 | for x in $CXXFLAGS; do | |
18301 | ||
18302 | acl_save_prefix="$prefix" | |
18303 | prefix="$acl_final_prefix" | |
18304 | acl_save_exec_prefix="$exec_prefix" | |
18305 | exec_prefix="$acl_final_exec_prefix" | |
18306 | eval x=\"$x\" | |
18307 | exec_prefix="$acl_save_exec_prefix" | |
18308 | prefix="$acl_save_prefix" | |
18309 | ||
18310 | if test "X$x" = "X$element"; then | |
18311 | haveit=yes | |
18312 | break | |
18313 | fi | |
18314 | done | |
18315 | if test -z "$haveit"; then | |
18316 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18317 | fi | |
18318 | done | |
18319 | ||
18320 | ||
18321 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
18322 | haveit= | |
18323 | for x in $LIBS; do | |
18324 | ||
18325 | acl_save_prefix="$prefix" | |
18326 | prefix="$acl_final_prefix" | |
18327 | acl_save_exec_prefix="$exec_prefix" | |
18328 | exec_prefix="$acl_final_exec_prefix" | |
18329 | eval x=\"$x\" | |
18330 | exec_prefix="$acl_save_exec_prefix" | |
18331 | prefix="$acl_save_prefix" | |
18332 | ||
18333 | if test "X$x" = "X$element"; then | |
18334 | haveit=yes | |
18335 | break | |
18336 | fi | |
18337 | done | |
18338 | if test -z "$haveit"; then | |
18339 | LIBS="${LIBS}${LIBS:+ }$element" | |
18340 | fi | |
18341 | done | |
18342 | ||
18343 | ||
18344 | fi | |
18345 | ||
18346 | else | |
18347 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18348 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18350 | $as_echo "yes" >&6; } | |
18351 | ||
66170b30 JF |
18352 | CY_EXECUTE=1 |
18353 | ||
b66977f1 DWT |
18354 | |
18355 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
18356 | haveit= | |
18357 | for x in $CXXFLAGS; do | |
18358 | ||
18359 | acl_save_prefix="$prefix" | |
18360 | prefix="$acl_final_prefix" | |
18361 | acl_save_exec_prefix="$exec_prefix" | |
18362 | exec_prefix="$acl_final_exec_prefix" | |
18363 | eval x=\"$x\" | |
18364 | exec_prefix="$acl_save_exec_prefix" | |
18365 | prefix="$acl_save_prefix" | |
18366 | ||
18367 | if test "X$x" = "X$element"; then | |
18368 | haveit=yes | |
18369 | break | |
18370 | fi | |
18371 | done | |
18372 | if test -z "$haveit"; then | |
18373 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18374 | fi | |
18375 | done | |
18376 | ||
18377 | ||
18378 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
18379 | haveit= | |
18380 | for x in $LIBS; do | |
18381 | ||
18382 | acl_save_prefix="$prefix" | |
18383 | prefix="$acl_final_prefix" | |
18384 | acl_save_exec_prefix="$exec_prefix" | |
18385 | exec_prefix="$acl_final_exec_prefix" | |
18386 | eval x=\"$x\" | |
18387 | exec_prefix="$acl_save_exec_prefix" | |
18388 | prefix="$acl_save_prefix" | |
18389 | ||
18390 | if test "X$x" = "X$element"; then | |
18391 | haveit=yes | |
18392 | break | |
18393 | fi | |
18394 | done | |
18395 | if test -z "$haveit"; then | |
18396 | LIBS="${LIBS}${LIBS:+ }$element" | |
18397 | fi | |
18398 | done | |
18399 | ||
18400 | ||
18401 | fi | |
66170b30 | 18402 | ;; #( |
5053a6d1 | 18403 | *) : |
ee134472 | 18404 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; |
5053a6d1 DWT |
18405 | esac |
18406 | ||
18407 | else | |
b66977f1 DWT |
18408 | |
18409 | ||
18410 | ||
18411 | pkg_failed=no | |
18412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18413 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18414 | ||
12833ad8 JF |
18415 | if test -n "$WEBKIT_CFLAGS"; then |
18416 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18417 | elif test -n "$PKG_CONFIG"; then | |
18418 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
18420 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
18421 | ac_status=$? | |
18422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18423 | test $ac_status = 0; }; then | |
18424 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
18425 | else | |
18426 | pkg_failed=yes | |
18427 | fi | |
12833ad8 JF |
18428 | else |
18429 | pkg_failed=untried | |
b66977f1 | 18430 | fi |
12833ad8 JF |
18431 | if test -n "$WEBKIT_LIBS"; then |
18432 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18433 | elif test -n "$PKG_CONFIG"; then | |
18434 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
18436 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
18437 | ac_status=$? | |
18438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18439 | test $ac_status = 0; }; then | |
18440 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
18441 | else | |
18442 | pkg_failed=yes | |
18443 | fi | |
12833ad8 JF |
18444 | else |
18445 | pkg_failed=untried | |
b66977f1 DWT |
18446 | fi |
18447 | ||
18448 | ||
18449 | ||
18450 | if test $pkg_failed = yes; then | |
12833ad8 JF |
18451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18452 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18453 | |
18454 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18455 | _pkg_short_errors_supported=yes | |
18456 | else | |
18457 | _pkg_short_errors_supported=no | |
18458 | fi | |
18459 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 18460 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
b66977f1 | 18461 | else |
53ba6704 | 18462 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
b66977f1 DWT |
18463 | fi |
18464 | # Put the nasty error message in config.log where it belongs | |
18465 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18466 | ||
b66977f1 DWT |
18467 | |
18468 | ||
18469 | pkg_failed=no | |
18470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18471 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18472 | ||
12833ad8 JF |
18473 | if test -n "$WEBKIT_CFLAGS"; then |
18474 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18475 | elif test -n "$PKG_CONFIG"; then | |
18476 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18477 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18478 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18479 | ac_status=$? | |
18480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18481 | test $ac_status = 0; }; then | |
18482 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
18483 | else | |
18484 | pkg_failed=yes | |
18485 | fi | |
12833ad8 JF |
18486 | else |
18487 | pkg_failed=untried | |
b66977f1 | 18488 | fi |
12833ad8 JF |
18489 | if test -n "$WEBKIT_LIBS"; then |
18490 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18491 | elif test -n "$PKG_CONFIG"; then | |
18492 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18494 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18495 | ac_status=$? | |
18496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18497 | test $ac_status = 0; }; then | |
18498 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
18499 | else | |
18500 | pkg_failed=yes | |
18501 | fi | |
12833ad8 JF |
18502 | else |
18503 | pkg_failed=untried | |
b66977f1 DWT |
18504 | fi |
18505 | ||
18506 | ||
18507 | ||
18508 | if test $pkg_failed = yes; then | |
12833ad8 JF |
18509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18510 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18511 | |
18512 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18513 | _pkg_short_errors_supported=yes | |
18514 | else | |
18515 | _pkg_short_errors_supported=no | |
18516 | fi | |
18517 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 18518 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 18519 | else |
53ba6704 | 18520 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
18521 | fi |
18522 | # Put the nasty error message in config.log where it belongs | |
18523 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18524 | ||
b66977f1 DWT |
18525 | |
18526 | ||
18527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18528 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18529 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18530 | $as_echo_n "(cached) " >&6 |
18531 | else | |
18532 | ||
18533 | ac_check_framework_save_LIBS=$LIBS | |
18534 | LIBS="-framework JavaScriptCore $LIBS" | |
18535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18536 | /* end confdefs.h. */ | |
18537 | ||
66170b30 | 18538 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18539 | |
18540 | int | |
18541 | main () | |
18542 | { | |
66170b30 JF |
18543 | |
18544 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18545 | ||
b66977f1 DWT |
18546 | ; |
18547 | return 0; | |
18548 | } | |
18549 | _ACEOF | |
18550 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18551 | ||
18552 | ac_cv_framework_JavaScriptCore=yes | |
18553 | ||
18554 | else | |
18555 | ac_cv_framework_JavaScriptCore=no | |
18556 | fi | |
18557 | rm -f core conftest.err conftest.$ac_objext \ | |
18558 | conftest$ac_exeext conftest.$ac_ext | |
18559 | LIBS=$ac_check_framework_save_LIBS | |
18560 | ||
18561 | fi | |
18562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18563 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18564 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18565 | ||
18566 | ||
18567 | for element in "-framework JavaScriptCore $LIBS"; do | |
18568 | haveit= | |
18569 | for x in $LIBS; do | |
18570 | ||
18571 | acl_save_prefix="$prefix" | |
18572 | prefix="$acl_final_prefix" | |
18573 | acl_save_exec_prefix="$exec_prefix" | |
18574 | exec_prefix="$acl_final_exec_prefix" | |
18575 | eval x=\"$x\" | |
18576 | exec_prefix="$acl_save_exec_prefix" | |
18577 | prefix="$acl_save_prefix" | |
18578 | ||
18579 | if test "X$x" = "X$element"; then | |
18580 | haveit=yes | |
18581 | break | |
18582 | fi | |
18583 | done | |
18584 | if test -z "$haveit"; then | |
18585 | LIBS="${LIBS}${LIBS:+ }$element" | |
18586 | fi | |
18587 | done | |
18588 | ||
66170b30 JF |
18589 | |
18590 | CY_EXECUTE=1 | |
18591 | ||
18592 | ||
b66977f1 DWT |
18593 | |
18594 | fi | |
18595 | ||
18596 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
18597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18598 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18599 | |
18600 | ||
18601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18602 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18603 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18604 | $as_echo_n "(cached) " >&6 |
18605 | else | |
18606 | ||
18607 | ac_check_framework_save_LIBS=$LIBS | |
18608 | LIBS="-framework JavaScriptCore $LIBS" | |
18609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18610 | /* end confdefs.h. */ | |
18611 | ||
66170b30 | 18612 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18613 | |
18614 | int | |
18615 | main () | |
18616 | { | |
66170b30 JF |
18617 | |
18618 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18619 | ||
b66977f1 DWT |
18620 | ; |
18621 | return 0; | |
18622 | } | |
18623 | _ACEOF | |
18624 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18625 | ||
18626 | ac_cv_framework_JavaScriptCore=yes | |
18627 | ||
18628 | else | |
18629 | ac_cv_framework_JavaScriptCore=no | |
18630 | fi | |
18631 | rm -f core conftest.err conftest.$ac_objext \ | |
18632 | conftest$ac_exeext conftest.$ac_ext | |
18633 | LIBS=$ac_check_framework_save_LIBS | |
18634 | ||
18635 | fi | |
18636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18637 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18638 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18639 | ||
18640 | ||
18641 | for element in "-framework JavaScriptCore $LIBS"; do | |
18642 | haveit= | |
18643 | for x in $LIBS; do | |
18644 | ||
18645 | acl_save_prefix="$prefix" | |
18646 | prefix="$acl_final_prefix" | |
18647 | acl_save_exec_prefix="$exec_prefix" | |
18648 | exec_prefix="$acl_final_exec_prefix" | |
18649 | eval x=\"$x\" | |
18650 | exec_prefix="$acl_save_exec_prefix" | |
18651 | prefix="$acl_save_prefix" | |
18652 | ||
18653 | if test "X$x" = "X$element"; then | |
18654 | haveit=yes | |
18655 | break | |
18656 | fi | |
18657 | done | |
18658 | if test -z "$haveit"; then | |
18659 | LIBS="${LIBS}${LIBS:+ }$element" | |
18660 | fi | |
18661 | done | |
18662 | ||
66170b30 JF |
18663 | |
18664 | CY_EXECUTE=1 | |
18665 | ||
18666 | ||
b66977f1 DWT |
18667 | |
18668 | fi | |
18669 | ||
18670 | else | |
18671 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18672 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18674 | $as_echo "yes" >&6; } | |
18675 | ||
66170b30 JF |
18676 | CY_EXECUTE=1 |
18677 | ||
b66977f1 DWT |
18678 | |
18679 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
18680 | haveit= | |
18681 | for x in $CXXFLAGS; do | |
18682 | ||
18683 | acl_save_prefix="$prefix" | |
18684 | prefix="$acl_final_prefix" | |
18685 | acl_save_exec_prefix="$exec_prefix" | |
18686 | exec_prefix="$acl_final_exec_prefix" | |
18687 | eval x=\"$x\" | |
18688 | exec_prefix="$acl_save_exec_prefix" | |
18689 | prefix="$acl_save_prefix" | |
18690 | ||
18691 | if test "X$x" = "X$element"; then | |
18692 | haveit=yes | |
18693 | break | |
18694 | fi | |
18695 | done | |
18696 | if test -z "$haveit"; then | |
18697 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18698 | fi | |
18699 | done | |
18700 | ||
18701 | ||
18702 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
18703 | haveit= | |
18704 | for x in $LIBS; do | |
18705 | ||
18706 | acl_save_prefix="$prefix" | |
18707 | prefix="$acl_final_prefix" | |
18708 | acl_save_exec_prefix="$exec_prefix" | |
18709 | exec_prefix="$acl_final_exec_prefix" | |
18710 | eval x=\"$x\" | |
18711 | exec_prefix="$acl_save_exec_prefix" | |
18712 | prefix="$acl_save_prefix" | |
18713 | ||
18714 | if test "X$x" = "X$element"; then | |
18715 | haveit=yes | |
18716 | break | |
18717 | fi | |
18718 | done | |
18719 | if test -z "$haveit"; then | |
18720 | LIBS="${LIBS}${LIBS:+ }$element" | |
18721 | fi | |
18722 | done | |
18723 | ||
18724 | ||
18725 | fi | |
18726 | ||
18727 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18729 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18730 | |
18731 | ||
18732 | pkg_failed=no | |
18733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18734 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18735 | ||
12833ad8 JF |
18736 | if test -n "$WEBKIT_CFLAGS"; then |
18737 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18738 | elif test -n "$PKG_CONFIG"; then | |
18739 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18741 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18742 | ac_status=$? | |
18743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18744 | test $ac_status = 0; }; then | |
18745 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
18746 | else | |
18747 | pkg_failed=yes | |
18748 | fi | |
12833ad8 JF |
18749 | else |
18750 | pkg_failed=untried | |
b66977f1 | 18751 | fi |
12833ad8 JF |
18752 | if test -n "$WEBKIT_LIBS"; then |
18753 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18754 | elif test -n "$PKG_CONFIG"; then | |
18755 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
18756 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
18757 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
18758 | ac_status=$? | |
18759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18760 | test $ac_status = 0; }; then | |
18761 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
18762 | else | |
18763 | pkg_failed=yes | |
18764 | fi | |
12833ad8 JF |
18765 | else |
18766 | pkg_failed=untried | |
b66977f1 DWT |
18767 | fi |
18768 | ||
18769 | ||
18770 | ||
18771 | if test $pkg_failed = yes; then | |
12833ad8 JF |
18772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18773 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18774 | |
18775 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18776 | _pkg_short_errors_supported=yes | |
18777 | else | |
18778 | _pkg_short_errors_supported=no | |
18779 | fi | |
18780 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 18781 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 18782 | else |
53ba6704 | 18783 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
18784 | fi |
18785 | # Put the nasty error message in config.log where it belongs | |
18786 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18787 | ||
b66977f1 DWT |
18788 | |
18789 | ||
18790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18791 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18792 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18793 | $as_echo_n "(cached) " >&6 |
18794 | else | |
18795 | ||
18796 | ac_check_framework_save_LIBS=$LIBS | |
18797 | LIBS="-framework JavaScriptCore $LIBS" | |
18798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18799 | /* end confdefs.h. */ | |
18800 | ||
66170b30 | 18801 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18802 | |
18803 | int | |
18804 | main () | |
18805 | { | |
66170b30 JF |
18806 | |
18807 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18808 | ||
b66977f1 DWT |
18809 | ; |
18810 | return 0; | |
18811 | } | |
18812 | _ACEOF | |
18813 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18814 | ||
18815 | ac_cv_framework_JavaScriptCore=yes | |
18816 | ||
18817 | else | |
18818 | ac_cv_framework_JavaScriptCore=no | |
18819 | fi | |
18820 | rm -f core conftest.err conftest.$ac_objext \ | |
18821 | conftest$ac_exeext conftest.$ac_ext | |
18822 | LIBS=$ac_check_framework_save_LIBS | |
18823 | ||
18824 | fi | |
18825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18826 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18827 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18828 | ||
18829 | ||
18830 | for element in "-framework JavaScriptCore $LIBS"; do | |
18831 | haveit= | |
18832 | for x in $LIBS; do | |
18833 | ||
18834 | acl_save_prefix="$prefix" | |
18835 | prefix="$acl_final_prefix" | |
18836 | acl_save_exec_prefix="$exec_prefix" | |
18837 | exec_prefix="$acl_final_exec_prefix" | |
18838 | eval x=\"$x\" | |
18839 | exec_prefix="$acl_save_exec_prefix" | |
18840 | prefix="$acl_save_prefix" | |
18841 | ||
18842 | if test "X$x" = "X$element"; then | |
18843 | haveit=yes | |
18844 | break | |
18845 | fi | |
18846 | done | |
18847 | if test -z "$haveit"; then | |
18848 | LIBS="${LIBS}${LIBS:+ }$element" | |
18849 | fi | |
18850 | done | |
18851 | ||
66170b30 JF |
18852 | |
18853 | CY_EXECUTE=1 | |
18854 | ||
18855 | ||
b66977f1 DWT |
18856 | |
18857 | fi | |
18858 | ||
18859 | elif test $pkg_failed = untried; then | |
12833ad8 JF |
18860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18861 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18862 | |
18863 | ||
18864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18865 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18866 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
b66977f1 DWT |
18867 | $as_echo_n "(cached) " >&6 |
18868 | else | |
18869 | ||
18870 | ac_check_framework_save_LIBS=$LIBS | |
18871 | LIBS="-framework JavaScriptCore $LIBS" | |
18872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18873 | /* end confdefs.h. */ | |
18874 | ||
66170b30 | 18875 | #include <JavaScriptCore/JSBase.h> |
b66977f1 DWT |
18876 | |
18877 | int | |
18878 | main () | |
18879 | { | |
66170b30 JF |
18880 | |
18881 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18882 | ||
b66977f1 DWT |
18883 | ; |
18884 | return 0; | |
18885 | } | |
18886 | _ACEOF | |
18887 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18888 | ||
18889 | ac_cv_framework_JavaScriptCore=yes | |
18890 | ||
18891 | else | |
18892 | ac_cv_framework_JavaScriptCore=no | |
18893 | fi | |
18894 | rm -f core conftest.err conftest.$ac_objext \ | |
18895 | conftest$ac_exeext conftest.$ac_ext | |
18896 | LIBS=$ac_check_framework_save_LIBS | |
18897 | ||
18898 | fi | |
18899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18900 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18901 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18902 | ||
18903 | ||
18904 | for element in "-framework JavaScriptCore $LIBS"; do | |
18905 | haveit= | |
18906 | for x in $LIBS; do | |
18907 | ||
18908 | acl_save_prefix="$prefix" | |
18909 | prefix="$acl_final_prefix" | |
18910 | acl_save_exec_prefix="$exec_prefix" | |
18911 | exec_prefix="$acl_final_exec_prefix" | |
18912 | eval x=\"$x\" | |
18913 | exec_prefix="$acl_save_exec_prefix" | |
18914 | prefix="$acl_save_prefix" | |
18915 | ||
18916 | if test "X$x" = "X$element"; then | |
18917 | haveit=yes | |
18918 | break | |
18919 | fi | |
18920 | done | |
18921 | if test -z "$haveit"; then | |
18922 | LIBS="${LIBS}${LIBS:+ }$element" | |
18923 | fi | |
18924 | done | |
18925 | ||
66170b30 JF |
18926 | |
18927 | CY_EXECUTE=1 | |
18928 | ||
18929 | ||
b66977f1 DWT |
18930 | |
18931 | fi | |
18932 | ||
18933 | else | |
18934 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18935 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18937 | $as_echo "yes" >&6; } | |
18938 | ||
66170b30 JF |
18939 | CY_EXECUTE=1 |
18940 | ||
b66977f1 DWT |
18941 | |
18942 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
18943 | haveit= | |
18944 | for x in $CXXFLAGS; do | |
18945 | ||
18946 | acl_save_prefix="$prefix" | |
18947 | prefix="$acl_final_prefix" | |
18948 | acl_save_exec_prefix="$exec_prefix" | |
18949 | exec_prefix="$acl_final_exec_prefix" | |
18950 | eval x=\"$x\" | |
18951 | exec_prefix="$acl_save_exec_prefix" | |
18952 | prefix="$acl_save_prefix" | |
18953 | ||
18954 | if test "X$x" = "X$element"; then | |
18955 | haveit=yes | |
18956 | break | |
18957 | fi | |
18958 | done | |
18959 | if test -z "$haveit"; then | |
18960 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18961 | fi | |
18962 | done | |
18963 | ||
18964 | ||
18965 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
18966 | haveit= | |
18967 | for x in $LIBS; do | |
18968 | ||
18969 | acl_save_prefix="$prefix" | |
18970 | prefix="$acl_final_prefix" | |
18971 | acl_save_exec_prefix="$exec_prefix" | |
18972 | exec_prefix="$acl_final_exec_prefix" | |
18973 | eval x=\"$x\" | |
18974 | exec_prefix="$acl_save_exec_prefix" | |
18975 | prefix="$acl_save_prefix" | |
18976 | ||
18977 | if test "X$x" = "X$element"; then | |
18978 | haveit=yes | |
18979 | break | |
18980 | fi | |
18981 | done | |
18982 | if test -z "$haveit"; then | |
18983 | LIBS="${LIBS}${LIBS:+ }$element" | |
18984 | fi | |
18985 | done | |
18986 | ||
18987 | ||
18988 | fi | |
18989 | ||
18990 | else | |
18991 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18992 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18994 | $as_echo "yes" >&6; } | |
18995 | ||
66170b30 JF |
18996 | CY_EXECUTE=1 |
18997 | ||
b66977f1 DWT |
18998 | |
18999 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
19000 | haveit= | |
19001 | for x in $CXXFLAGS; do | |
19002 | ||
19003 | acl_save_prefix="$prefix" | |
19004 | prefix="$acl_final_prefix" | |
19005 | acl_save_exec_prefix="$exec_prefix" | |
19006 | exec_prefix="$acl_final_exec_prefix" | |
19007 | eval x=\"$x\" | |
19008 | exec_prefix="$acl_save_exec_prefix" | |
19009 | prefix="$acl_save_prefix" | |
19010 | ||
19011 | if test "X$x" = "X$element"; then | |
19012 | haveit=yes | |
19013 | break | |
19014 | fi | |
19015 | done | |
19016 | if test -z "$haveit"; then | |
19017 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19018 | fi | |
19019 | done | |
19020 | ||
19021 | ||
19022 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
19023 | haveit= | |
19024 | for x in $LIBS; do | |
19025 | ||
19026 | acl_save_prefix="$prefix" | |
19027 | prefix="$acl_final_prefix" | |
19028 | acl_save_exec_prefix="$exec_prefix" | |
19029 | exec_prefix="$acl_final_exec_prefix" | |
19030 | eval x=\"$x\" | |
19031 | exec_prefix="$acl_save_exec_prefix" | |
19032 | prefix="$acl_save_prefix" | |
19033 | ||
19034 | if test "X$x" = "X$element"; then | |
19035 | haveit=yes | |
19036 | break | |
19037 | fi | |
19038 | done | |
19039 | if test -z "$haveit"; then | |
19040 | LIBS="${LIBS}${LIBS:+ }$element" | |
19041 | fi | |
19042 | done | |
19043 | ||
19044 | ||
19045 | fi | |
5053a6d1 | 19046 | |
66170b30 JF |
19047 | fi |
19048 | ||
19049 | ||
19050 | ||
19051 | apr_found="no" | |
19052 | ||
19053 | if test "$target_os" = "os2-emx"; then | |
19054 | # Scripts don't pass test -x on OS/2 | |
19055 | TEST_X="test -f" | |
19056 | else | |
19057 | TEST_X="test -x" | |
19058 | fi | |
19059 | ||
19060 | acceptable_majors="1" | |
19061 | ||
19062 | apr_temp_acceptable_apr_config="" | |
19063 | for apr_temp_major in $acceptable_majors | |
19064 | do | |
19065 | case $apr_temp_major in | |
19066 | 0) | |
19067 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
19068 | ;; | |
19069 | *) | |
19070 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
19071 | ;; | |
19072 | esac | |
19073 | done | |
19074 | ||
19075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
19076 | $as_echo_n "checking for APR... " >&6; } | |
19077 | ||
19078 | # Check whether --with-apr was given. | |
19079 | if test "${with_apr+set}" = set; then : | |
19080 | withval=$with_apr; | |
19081 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
19082 | as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
19083 | fi | |
19084 | ||
19085 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19086 | do | |
19087 | for lookdir in "$withval/bin" "$withval" | |
19088 | do | |
19089 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
19090 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
19091 | ||
19092 | apr_found="yes" | |
19093 | break 2 | |
19094 | fi | |
19095 | done | |
19096 | done | |
19097 | ||
19098 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
19099 | apr_config="$withval" | |
19100 | apr_found="yes" | |
19101 | fi | |
19102 | ||
19103 | if test "$apr_found" != "yes"; then | |
19104 | 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 | |
19105 | fi | |
19106 | ||
19107 | else | |
19108 | ||
19109 | if test -n "1" && test "1" = "1"; then | |
19110 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19111 | do | |
19112 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
19113 | apr_config="$apr_temp_apr_config_file" | |
19114 | ||
19115 | apr_found="yes" | |
19116 | break | |
19117 | else | |
19118 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
19119 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
19120 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
19121 | ||
19122 | apr_found="yes" | |
19123 | break 2 | |
19124 | fi | |
19125 | done | |
19126 | fi | |
19127 | done | |
19128 | fi | |
19129 | if test "$apr_found" = "no" && test -d ""; then | |
19130 | apr_temp_abs_srcdir="`cd && pwd`" | |
19131 | apr_found="reconfig" | |
19132 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
19133 | case $apr_bundled_major in | |
19134 | "") | |
19135 | as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 | |
19136 | ;; | |
19137 | 0) | |
19138 | apr_temp_apr_config_file="apr-config" | |
19139 | ;; | |
19140 | *) | |
19141 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
19142 | ;; | |
19143 | esac | |
19144 | if test -n ""; then | |
19145 | apr_config="/$apr_temp_apr_config_file" | |
19146 | else | |
19147 | apr_config="/$apr_temp_apr_config_file" | |
19148 | fi | |
19149 | fi | |
5053a6d1 | 19150 | |
9c60689e DWT |
19151 | fi |
19152 | ||
5053a6d1 | 19153 | |
66170b30 JF |
19154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
19155 | $as_echo "$apr_found" >&6; } | |
19156 | ||
19157 | case $apr_found in #( | |
19158 | yes) : | |
19159 | ||
19160 | ||
19161 | for element in `$apr_config --includes`; do | |
19162 | haveit= | |
19163 | for x in $CPPFLAGS; do | |
19164 | ||
19165 | acl_save_prefix="$prefix" | |
19166 | prefix="$acl_final_prefix" | |
19167 | acl_save_exec_prefix="$exec_prefix" | |
19168 | exec_prefix="$acl_final_exec_prefix" | |
19169 | eval x=\"$x\" | |
19170 | exec_prefix="$acl_save_exec_prefix" | |
19171 | prefix="$acl_save_prefix" | |
19172 | ||
19173 | if test "X$x" = "X$element"; then | |
19174 | haveit=yes | |
19175 | break | |
19176 | fi | |
19177 | done | |
19178 | if test -z "$haveit"; then | |
19179 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19180 | fi | |
19181 | done | |
19182 | ||
a243b558 JF |
19183 | |
19184 | for element in `$apr_config --link-libtool`; do | |
19185 | haveit= | |
d4f27204 | 19186 | for x in $LTLIBAPR; do |
a243b558 JF |
19187 | |
19188 | acl_save_prefix="$prefix" | |
19189 | prefix="$acl_final_prefix" | |
19190 | acl_save_exec_prefix="$exec_prefix" | |
19191 | exec_prefix="$acl_final_exec_prefix" | |
19192 | eval x=\"$x\" | |
19193 | exec_prefix="$acl_save_exec_prefix" | |
19194 | prefix="$acl_save_prefix" | |
19195 | ||
19196 | if test "X$x" = "X$element"; then | |
19197 | haveit=yes | |
19198 | break | |
19199 | fi | |
19200 | done | |
19201 | if test -z "$haveit"; then | |
d4f27204 | 19202 | LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element" |
a243b558 JF |
19203 | fi |
19204 | done | |
66170b30 | 19205 | |
d4f27204 | 19206 | |
66170b30 JF |
19207 | ;; #( |
19208 | *) : | |
19209 | as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;; | |
19210 | esac | |
19211 | ||
19212 | ||
19213 | ||
a243b558 JF |
19214 | if test "x$CY_EXECUTE" = x1; then |
19215 | CY_EXECUTE_TRUE= | |
19216 | CY_EXECUTE_FALSE='#' | |
19217 | else | |
19218 | CY_EXECUTE_TRUE='#' | |
19219 | CY_EXECUTE_FALSE= | |
19220 | fi | |
19221 | ||
19222 | ||
058f1bc8 | 19223 | |
e5cca37d | 19224 | |
5053a6d1 DWT |
19225 | case $CY_EXECUTE in #( |
19226 | 1) : | |
19227 | ||
66170b30 | 19228 | for ac_header in ffi.h ffi/ffi.h |
e5cca37d DWT |
19229 | do : |
19230 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19231 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12833ad8 | 19232 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
e5cca37d DWT |
19233 | cat >>confdefs.h <<_ACEOF |
19234 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19235 | _ACEOF | |
19236 | break | |
19237 | fi | |
19238 | ||
19239 | done | |
19240 | ||
66170b30 | 19241 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
e5cca37d DWT |
19242 | |
19243 | ||
9c60689e DWT |
19244 | |
19245 | pkg_failed=no | |
5053a6d1 DWT |
19246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19247 | $as_echo_n "checking for LIBFFI... " >&6; } | |
9c60689e | 19248 | |
12833ad8 JF |
19249 | if test -n "$LIBFFI_CFLAGS"; then |
19250 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
19251 | elif test -n "$PKG_CONFIG"; then | |
19252 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
19253 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19254 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
19255 | ac_status=$? |
19256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19257 | test $ac_status = 0; }; then | |
5053a6d1 | 19258 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
9c60689e DWT |
19259 | else |
19260 | pkg_failed=yes | |
19261 | fi | |
12833ad8 JF |
19262 | else |
19263 | pkg_failed=untried | |
9c60689e | 19264 | fi |
12833ad8 JF |
19265 | if test -n "$LIBFFI_LIBS"; then |
19266 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
19267 | elif test -n "$PKG_CONFIG"; then | |
19268 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
19269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19270 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
19271 | ac_status=$? |
19272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19273 | test $ac_status = 0; }; then | |
5053a6d1 | 19274 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
9c60689e DWT |
19275 | else |
19276 | pkg_failed=yes | |
19277 | fi | |
12833ad8 JF |
19278 | else |
19279 | pkg_failed=untried | |
9c60689e DWT |
19280 | fi |
19281 | ||
19282 | ||
19283 | ||
19284 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19286 | $as_echo "no" >&6; } | |
9c60689e DWT |
19287 | |
19288 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19289 | _pkg_short_errors_supported=yes | |
19290 | else | |
19291 | _pkg_short_errors_supported=no | |
19292 | fi | |
19293 | if test $_pkg_short_errors_supported = yes; then | |
53ba6704 | 19294 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
9c60689e | 19295 | else |
53ba6704 | 19296 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
9c60689e DWT |
19297 | fi |
19298 | # Put the nasty error message in config.log where it belongs | |
5053a6d1 | 19299 | echo "$LIBFFI_PKG_ERRORS" >&5 |
9c60689e | 19300 | |
66170b30 | 19301 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
e5cca37d | 19302 | elif test $pkg_failed = untried; then |
12833ad8 JF |
19303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19304 | $as_echo "no" >&6; } | |
66170b30 | 19305 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
e5cca37d DWT |
19306 | else |
19307 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
19308 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19310 | $as_echo "yes" >&6; } | |
19311 | ||
19312 | ||
19313 | for element in `$PKG_CONFIG --cflags libffi`; do | |
19314 | haveit= | |
19315 | for x in $CXXFLAGS; do | |
19316 | ||
19317 | acl_save_prefix="$prefix" | |
19318 | prefix="$acl_final_prefix" | |
19319 | acl_save_exec_prefix="$exec_prefix" | |
19320 | exec_prefix="$acl_final_exec_prefix" | |
19321 | eval x=\"$x\" | |
19322 | exec_prefix="$acl_save_exec_prefix" | |
19323 | prefix="$acl_save_prefix" | |
19324 | ||
19325 | if test "X$x" = "X$element"; then | |
19326 | haveit=yes | |
19327 | break | |
19328 | fi | |
19329 | done | |
19330 | if test -z "$haveit"; then | |
19331 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19332 | fi | |
19333 | done | |
c823f118 | 19334 | |
5053a6d1 | 19335 | |
e5cca37d DWT |
19336 | for element in `$PKG_CONFIG --libs libffi`; do |
19337 | haveit= | |
19338 | for x in $LIBS; do | |
19339 | ||
19340 | acl_save_prefix="$prefix" | |
19341 | prefix="$acl_final_prefix" | |
19342 | acl_save_exec_prefix="$exec_prefix" | |
19343 | exec_prefix="$acl_final_exec_prefix" | |
19344 | eval x=\"$x\" | |
19345 | exec_prefix="$acl_save_exec_prefix" | |
19346 | prefix="$acl_save_prefix" | |
19347 | ||
19348 | if test "X$x" = "X$element"; then | |
19349 | haveit=yes | |
19350 | break | |
19351 | fi | |
19352 | done | |
19353 | if test -z "$haveit"; then | |
19354 | LIBS="${LIBS}${LIBS:+ }$element" | |
19355 | fi | |
19356 | done | |
19357 | ||
5053a6d1 DWT |
19358 | |
19359 | fi | |
e5cca37d | 19360 | |
e5cca37d DWT |
19361 | else |
19362 | ||
66170b30 | 19363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 |
5053a6d1 | 19364 | $as_echo_n "checking for library containing ffi_call... " >&6; } |
ee134472 | 19365 | if ${ac_cv_search_ffi_call+:} false; then : |
c823f118 DWT |
19366 | $as_echo_n "(cached) " >&6 |
19367 | else | |
5053a6d1 DWT |
19368 | ac_func_search_save_LIBS=$LIBS |
19369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 DWT |
19370 | /* end confdefs.h. */ |
19371 | ||
5053a6d1 DWT |
19372 | /* Override any GCC internal prototype to avoid an error. |
19373 | Use char because int might match the return type of a GCC | |
19374 | builtin and then its argument prototype would still apply. */ | |
19375 | #ifdef __cplusplus | |
19376 | extern "C" | |
19377 | #endif | |
19378 | char ffi_call (); | |
c823f118 DWT |
19379 | int |
19380 | main () | |
19381 | { | |
5053a6d1 | 19382 | return ffi_call (); |
c823f118 DWT |
19383 | ; |
19384 | return 0; | |
19385 | } | |
b128dfee | 19386 | _ACEOF |
5053a6d1 DWT |
19387 | for ac_lib in '' ffi; do |
19388 | if test -z "$ac_lib"; then | |
19389 | ac_res="none required" | |
19390 | else | |
19391 | ac_res=-l$ac_lib | |
19392 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19393 | fi | |
19394 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19395 | ac_cv_search_ffi_call=$ac_res | |
c823f118 DWT |
19396 | fi |
19397 | rm -f core conftest.err conftest.$ac_objext \ | |
5053a6d1 | 19398 | conftest$ac_exeext |
ee134472 | 19399 | if ${ac_cv_search_ffi_call+:} false; then : |
5053a6d1 | 19400 | break |
b128dfee | 19401 | fi |
5053a6d1 | 19402 | done |
ee134472 | 19403 | if ${ac_cv_search_ffi_call+:} false; then : |
b128dfee | 19404 | |
5053a6d1 DWT |
19405 | else |
19406 | ac_cv_search_ffi_call=no | |
19407 | fi | |
19408 | rm conftest.$ac_ext | |
19409 | LIBS=$ac_func_search_save_LIBS | |
19410 | fi | |
19411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
19412 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
19413 | ac_res=$ac_cv_search_ffi_call | |
19414 | if test "$ac_res" != no; then : | |
19415 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b128dfee | 19416 | |
5053a6d1 | 19417 | fi |
c823f118 | 19418 | |
66170b30 | 19419 | case $ac_cv_search_ffi_call in #( |
5053a6d1 | 19420 | no) : |
c823f118 | 19421 | |
c823f118 | 19422 | |
e5cca37d DWT |
19423 | pkg_failed=no |
19424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
19425 | $as_echo_n "checking for LIBFFI... " >&6; } | |
c823f118 | 19426 | |
12833ad8 JF |
19427 | if test -n "$LIBFFI_CFLAGS"; then |
19428 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
19429 | elif test -n "$PKG_CONFIG"; then | |
19430 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
19431 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19432 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
19433 | ac_status=$? | |
19434 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19435 | test $ac_status = 0; }; then | |
19436 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
19437 | else | |
19438 | pkg_failed=yes | |
c823f118 | 19439 | fi |
12833ad8 JF |
19440 | else |
19441 | pkg_failed=untried | |
5053a6d1 | 19442 | fi |
12833ad8 JF |
19443 | if test -n "$LIBFFI_LIBS"; then |
19444 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
19445 | elif test -n "$PKG_CONFIG"; then | |
19446 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
19447 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19448 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
19449 | ac_status=$? | |
19450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19451 | test $ac_status = 0; }; then | |
19452 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
c823f118 | 19453 | else |
e5cca37d | 19454 | pkg_failed=yes |
632b71ea | 19455 | fi |
12833ad8 JF |
19456 | else |
19457 | pkg_failed=untried | |
632b71ea | 19458 | fi |
3fd51f51 | 19459 | |
e5cca37d DWT |
19460 | |
19461 | ||
19462 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19464 | $as_echo "no" >&6; } | |
e5cca37d DWT |
19465 | |
19466 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19467 | _pkg_short_errors_supported=yes | |
5053a6d1 | 19468 | else |
e5cca37d | 19469 | _pkg_short_errors_supported=no |
5053a6d1 | 19470 | fi |
e5cca37d | 19471 | if test $_pkg_short_errors_supported = yes; then |
53ba6704 | 19472 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
e5cca37d | 19473 | else |
53ba6704 | 19474 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
e5cca37d DWT |
19475 | fi |
19476 | # Put the nasty error message in config.log where it belongs | |
19477 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
3fd51f51 | 19478 | |
66170b30 | 19479 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
e5cca37d | 19480 | elif test $pkg_failed = untried; then |
12833ad8 JF |
19481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19482 | $as_echo "no" >&6; } | |
66170b30 | 19483 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
9c60689e | 19484 | else |
5053a6d1 DWT |
19485 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
19486 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
9c60689e DWT |
19487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
19488 | $as_echo "yes" >&6; } | |
3fd51f51 | 19489 | |
3fd51f51 | 19490 | |
5053a6d1 | 19491 | for element in `$PKG_CONFIG --cflags libffi`; do |
3fd51f51 DWT |
19492 | haveit= |
19493 | for x in $CXXFLAGS; do | |
19494 | ||
19495 | acl_save_prefix="$prefix" | |
19496 | prefix="$acl_final_prefix" | |
19497 | acl_save_exec_prefix="$exec_prefix" | |
19498 | exec_prefix="$acl_final_exec_prefix" | |
19499 | eval x=\"$x\" | |
19500 | exec_prefix="$acl_save_exec_prefix" | |
19501 | prefix="$acl_save_prefix" | |
19502 | ||
19503 | if test "X$x" = "X$element"; then | |
19504 | haveit=yes | |
19505 | break | |
19506 | fi | |
19507 | done | |
19508 | if test -z "$haveit"; then | |
19509 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19510 | fi | |
19511 | done | |
19512 | ||
19513 | ||
5053a6d1 | 19514 | for element in `$PKG_CONFIG --libs libffi`; do |
3fd51f51 DWT |
19515 | haveit= |
19516 | for x in $LIBS; do | |
19517 | ||
19518 | acl_save_prefix="$prefix" | |
19519 | prefix="$acl_final_prefix" | |
19520 | acl_save_exec_prefix="$exec_prefix" | |
19521 | exec_prefix="$acl_final_exec_prefix" | |
19522 | eval x=\"$x\" | |
19523 | exec_prefix="$acl_save_exec_prefix" | |
19524 | prefix="$acl_save_prefix" | |
19525 | ||
19526 | if test "X$x" = "X$element"; then | |
19527 | haveit=yes | |
19528 | break | |
19529 | fi | |
19530 | done | |
19531 | if test -z "$haveit"; then | |
19532 | LIBS="${LIBS}${LIBS:+ }$element" | |
19533 | fi | |
19534 | done | |
19535 | ||
19536 | ||
66170b30 | 19537 | fi ;; #( |
e5cca37d DWT |
19538 | *) : |
19539 | ;; | |
19540 | esac | |
19541 | ||
9c60689e | 19542 | fi |
66170b30 JF |
19543 | |
19544 | ac_ext=mm | |
5053a6d1 DWT |
19545 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
19546 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19547 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19548 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a667869d | 19549 | |
66170b30 JF |
19550 | |
19551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
5053a6d1 | 19552 | $as_echo_n "checking if we really have Objective C++... " >&6; } |
66170b30 | 19553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5053a6d1 | 19554 | /* end confdefs.h. */ |
9c60689e | 19555 | |
5053a6d1 DWT |
19556 | _ACEOF |
19557 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 19558 | |
66170b30 JF |
19559 | CY_OBJECTIVEC=1 |
19560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5053a6d1 | 19561 | $as_echo "yes" >&6; } |
632b71ea | 19562 | |
632b71ea | 19563 | else |
5053a6d1 | 19564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
632b71ea | 19565 | $as_echo "no" >&6; } |
5053a6d1 DWT |
19566 | fi |
19567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
66170b30 JF |
19568 | |
19569 | if test "x$CY_OBJECTIVEC" = x1; then : | |
9c60689e | 19570 | |
632b71ea | 19571 | |
5053a6d1 DWT |
19572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
19573 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
ee134472 | 19574 | if ${ac_cv_framework_CoreFoundation+:} false; then : |
9c60689e DWT |
19575 | $as_echo_n "(cached) " >&6 |
19576 | else | |
632b71ea DWT |
19577 | |
19578 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 19579 | LIBS="-framework CoreFoundation $LIBS" |
632b71ea | 19580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
19581 | /* end confdefs.h. */ |
19582 | ||
66170b30 | 19583 | #include <CoreFoundation/CFBase.h> |
632b71ea | 19584 | |
9c60689e DWT |
19585 | int |
19586 | main () | |
19587 | { | |
5053a6d1 | 19588 | CFAllocatorGetDefault(); |
9c60689e DWT |
19589 | ; |
19590 | return 0; | |
19591 | } | |
19592 | _ACEOF | |
5053a6d1 | 19593 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 19594 | |
5053a6d1 | 19595 | ac_cv_framework_CoreFoundation=yes |
632b71ea | 19596 | |
9c60689e | 19597 | else |
5053a6d1 | 19598 | ac_cv_framework_CoreFoundation=no |
9c60689e | 19599 | fi |
632b71ea DWT |
19600 | rm -f core conftest.err conftest.$ac_objext \ |
19601 | conftest$ac_exeext conftest.$ac_ext | |
19602 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
19603 | |
19604 | fi | |
5053a6d1 DWT |
19605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
19606 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
19607 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
632b71ea DWT |
19608 | |
19609 | ||
5053a6d1 | 19610 | for element in "-framework CoreFoundation $LIBS"; do |
632b71ea DWT |
19611 | haveit= |
19612 | for x in $LIBS; do | |
19613 | ||
19614 | acl_save_prefix="$prefix" | |
19615 | prefix="$acl_final_prefix" | |
19616 | acl_save_exec_prefix="$exec_prefix" | |
19617 | exec_prefix="$acl_final_exec_prefix" | |
19618 | eval x=\"$x\" | |
19619 | exec_prefix="$acl_save_exec_prefix" | |
19620 | prefix="$acl_save_prefix" | |
19621 | ||
19622 | if test "X$x" = "X$element"; then | |
19623 | haveit=yes | |
19624 | break | |
19625 | fi | |
19626 | done | |
19627 | if test -z "$haveit"; then | |
19628 | LIBS="${LIBS}${LIBS:+ }$element" | |
19629 | fi | |
19630 | done | |
19631 | ||
632b71ea | 19632 | |
632b71ea | 19633 | |
632b71ea DWT |
19634 | |
19635 | ||
66170b30 | 19636 | |
5053a6d1 DWT |
19637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
19638 | $as_echo_n "checking for framework Foundation... " >&6; } | |
ee134472 | 19639 | if ${ac_cv_framework_Foundation+:} false; then : |
a667869d DWT |
19640 | $as_echo_n "(cached) " >&6 |
19641 | else | |
632b71ea DWT |
19642 | |
19643 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 19644 | LIBS="-framework Foundation $LIBS" |
632b71ea | 19645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a667869d DWT |
19646 | /* end confdefs.h. */ |
19647 | ||
66170b30 | 19648 | #include <Foundation/NSObject.h> |
632b71ea | 19649 | |
a667869d DWT |
19650 | int |
19651 | main () | |
19652 | { | |
5053a6d1 | 19653 | [[NSObject alloc] init]; |
a667869d DWT |
19654 | ; |
19655 | return 0; | |
19656 | } | |
19657 | _ACEOF | |
5053a6d1 | 19658 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 19659 | |
5053a6d1 | 19660 | ac_cv_framework_Foundation=yes |
632b71ea | 19661 | |
a667869d | 19662 | else |
5053a6d1 | 19663 | ac_cv_framework_Foundation=no |
632b71ea DWT |
19664 | fi |
19665 | rm -f core conftest.err conftest.$ac_objext \ | |
19666 | conftest$ac_exeext conftest.$ac_ext | |
19667 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 19668 | |
632b71ea | 19669 | fi |
5053a6d1 DWT |
19670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 |
19671 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
19672 | if test $ac_cv_framework_Foundation = yes; then : | |
a667869d | 19673 | |
a667869d | 19674 | |
5053a6d1 | 19675 | for element in "-framework Foundation $LIBS"; do |
632b71ea DWT |
19676 | haveit= |
19677 | for x in $LIBS; do | |
a667869d | 19678 | |
632b71ea DWT |
19679 | acl_save_prefix="$prefix" |
19680 | prefix="$acl_final_prefix" | |
19681 | acl_save_exec_prefix="$exec_prefix" | |
19682 | exec_prefix="$acl_final_exec_prefix" | |
19683 | eval x=\"$x\" | |
19684 | exec_prefix="$acl_save_exec_prefix" | |
19685 | prefix="$acl_save_prefix" | |
19686 | ||
19687 | if test "X$x" = "X$element"; then | |
19688 | haveit=yes | |
19689 | break | |
19690 | fi | |
19691 | done | |
19692 | if test -z "$haveit"; then | |
19693 | LIBS="${LIBS}${LIBS:+ }$element" | |
19694 | fi | |
19695 | done | |
19696 | ||
5053a6d1 DWT |
19697 | cat >>confdefs.h <<_ACEOF |
19698 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
19699 | _ACEOF | |
19700 | ||
a667869d | 19701 | |
a667869d | 19702 | fi |
632b71ea | 19703 | |
5053a6d1 | 19704 | |
66170b30 | 19705 | |
5053a6d1 DWT |
19706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 |
19707 | $as_echo_n "checking for framework WebKit... " >&6; } | |
ee134472 | 19708 | if ${ac_cv_framework_WebKit+:} false; then : |
5053a6d1 | 19709 | $as_echo_n "(cached) " >&6 |
a667869d | 19710 | else |
632b71ea | 19711 | |
5053a6d1 DWT |
19712 | ac_check_framework_save_LIBS=$LIBS |
19713 | LIBS="-framework WebKit $LIBS" | |
19714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19715 | /* end confdefs.h. */ | |
632b71ea | 19716 | |
66170b30 | 19717 | #include <WebKit/WebScriptObject.h> |
632b71ea | 19718 | |
5053a6d1 DWT |
19719 | int |
19720 | main () | |
19721 | { | |
19722 | [[WebScriptObject alloc] init]; | |
19723 | ; | |
19724 | return 0; | |
19725 | } | |
19726 | _ACEOF | |
19727 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
632b71ea | 19728 | |
5053a6d1 | 19729 | ac_cv_framework_WebKit=yes |
632b71ea | 19730 | |
5053a6d1 DWT |
19731 | else |
19732 | ac_cv_framework_WebKit=no | |
19733 | fi | |
19734 | rm -f core conftest.err conftest.$ac_objext \ | |
19735 | conftest$ac_exeext conftest.$ac_ext | |
19736 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 19737 | |
5053a6d1 DWT |
19738 | fi |
19739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
19740 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
19741 | if test $ac_cv_framework_WebKit = yes; then : | |
19742 | ||
19743 | ||
19744 | for element in "-framework WebKit $LIBS"; do | |
632b71ea DWT |
19745 | haveit= |
19746 | for x in $LIBS; do | |
19747 | ||
19748 | acl_save_prefix="$prefix" | |
19749 | prefix="$acl_final_prefix" | |
19750 | acl_save_exec_prefix="$exec_prefix" | |
19751 | exec_prefix="$acl_final_exec_prefix" | |
19752 | eval x=\"$x\" | |
19753 | exec_prefix="$acl_save_exec_prefix" | |
19754 | prefix="$acl_save_prefix" | |
19755 | ||
19756 | if test "X$x" = "X$element"; then | |
19757 | haveit=yes | |
19758 | break | |
19759 | fi | |
19760 | done | |
19761 | if test -z "$haveit"; then | |
19762 | LIBS="${LIBS}${LIBS:+ }$element" | |
19763 | fi | |
19764 | done | |
19765 | ||
5053a6d1 DWT |
19766 | cat >>confdefs.h <<_ACEOF |
19767 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
19768 | _ACEOF | |
19769 | ||
19770 | ||
19771 | fi | |
19772 | ||
19773 | ||
19774 | else | |
19775 | ||
19776 | ||
66170b30 | 19777 | for ac_prog in gnustep-config |
5053a6d1 DWT |
19778 | do |
19779 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19780 | set dummy $ac_prog; ac_word=$2 | |
19781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19782 | $as_echo_n "checking for $ac_word... " >&6; } | |
ee134472 | 19783 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : |
5053a6d1 DWT |
19784 | $as_echo_n "(cached) " >&6 |
19785 | else | |
19786 | if test -n "$GNUSTEP_CONFIG"; then | |
19787 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
19788 | else | |
19789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19790 | for as_dir in $PATH | |
19791 | do | |
19792 | IFS=$as_save_IFS | |
19793 | test -z "$as_dir" && as_dir=. | |
19794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 19795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5053a6d1 DWT |
19796 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" |
19797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19798 | break 2 | |
19799 | fi | |
19800 | done | |
19801 | done | |
19802 | IFS=$as_save_IFS | |
19803 | ||
19804 | fi | |
19805 | fi | |
19806 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
19807 | if test -n "$GNUSTEP_CONFIG"; then | |
19808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
19809 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
19810 | else | |
19811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19812 | $as_echo "no" >&6; } | |
19813 | fi | |
19814 | ||
19815 | ||
19816 | test -n "$GNUSTEP_CONFIG" && break | |
19817 | done | |
632b71ea | 19818 | |
66170b30 JF |
19819 | |
19820 | if test "x$GNUSTEP_CONFIG" != x; then : | |
a667869d | 19821 | |
632b71ea | 19822 | |
632b71ea | 19823 | |
5053a6d1 | 19824 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
632b71ea | 19825 | haveit= |
5053a6d1 | 19826 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
19827 | |
19828 | acl_save_prefix="$prefix" | |
19829 | prefix="$acl_final_prefix" | |
19830 | acl_save_exec_prefix="$exec_prefix" | |
19831 | exec_prefix="$acl_final_exec_prefix" | |
19832 | eval x=\"$x\" | |
19833 | exec_prefix="$acl_save_exec_prefix" | |
19834 | prefix="$acl_save_prefix" | |
19835 | ||
19836 | if test "X$x" = "X$element"; then | |
19837 | haveit=yes | |
19838 | break | |
19839 | fi | |
19840 | done | |
19841 | if test -z "$haveit"; then | |
5053a6d1 | 19842 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
632b71ea DWT |
19843 | fi |
19844 | done | |
19845 | ||
19846 | ||
5053a6d1 | 19847 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea DWT |
19848 | haveit= |
19849 | for x in $LIBS; do | |
19850 | ||
19851 | acl_save_prefix="$prefix" | |
19852 | prefix="$acl_final_prefix" | |
19853 | acl_save_exec_prefix="$exec_prefix" | |
19854 | exec_prefix="$acl_final_exec_prefix" | |
19855 | eval x=\"$x\" | |
19856 | exec_prefix="$acl_save_exec_prefix" | |
19857 | prefix="$acl_save_prefix" | |
19858 | ||
19859 | if test "X$x" = "X$element"; then | |
19860 | haveit=yes | |
19861 | break | |
19862 | fi | |
19863 | done | |
19864 | if test -z "$haveit"; then | |
19865 | LIBS="${LIBS}${LIBS:+ }$element" | |
19866 | fi | |
19867 | done | |
19868 | ||
19869 | ||
5053a6d1 DWT |
19870 | else |
19871 | CY_OBJECTIVEC=0 | |
a667869d | 19872 | |
5053a6d1 | 19873 | fi |
b66977f1 DWT |
19874 | |
19875 | fi | |
19876 | ||
5053a6d1 | 19877 | fi |
66170b30 JF |
19878 | |
19879 | ac_ext=cpp | |
5053a6d1 DWT |
19880 | ac_cpp='$CXXCPP $CPPFLAGS' |
19881 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19882 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19883 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
b66977f1 | 19884 | |
5053a6d1 DWT |
19885 | ;; #( |
19886 | *) : | |
19887 | ;; | |
19888 | esac | |
a667869d | 19889 | |
a243b558 JF |
19890 | if test "x$CY_OBJECTIVEC" = x1; then |
19891 | CY_OBJECTIVEC_TRUE= | |
19892 | CY_OBJECTIVEC_FALSE='#' | |
19893 | else | |
19894 | CY_OBJECTIVEC_TRUE='#' | |
19895 | CY_OBJECTIVEC_FALSE= | |
19896 | fi | |
19897 | ||
19898 | ||
66170b30 | 19899 | |
058f1bc8 DWT |
19900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
19901 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
ee134472 | 19902 | if ${ax_cv_lib_readline+:} false; then : |
058f1bc8 DWT |
19903 | $as_echo_n "(cached) " >&6 |
19904 | else | |
a667869d | 19905 | |
058f1bc8 DWT |
19906 | ORIG_LIBS="$LIBS" |
19907 | for readline_lib in readline edit editline; do | |
19908 | for termcap_lib in "" termcap curses ncurses; do | |
19909 | if test -z "$termcap_lib"; then | |
19910 | TRY_LIB="-l$readline_lib" | |
19911 | else | |
19912 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
19913 | fi | |
19914 | LIBS="$ORIG_LIBS $TRY_LIB" | |
19915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19916 | /* end confdefs.h. */ | |
a667869d | 19917 | |
058f1bc8 DWT |
19918 | /* Override any GCC internal prototype to avoid an error. |
19919 | Use char because int might match the return type of a GCC | |
19920 | builtin and then its argument prototype would still apply. */ | |
19921 | #ifdef __cplusplus | |
19922 | extern "C" | |
19923 | #endif | |
19924 | char readline (); | |
19925 | int | |
19926 | main () | |
19927 | { | |
19928 | return readline (); | |
19929 | ; | |
19930 | return 0; | |
19931 | } | |
19932 | _ACEOF | |
19933 | if ac_fn_cxx_try_link "$LINENO"; then : | |
ee134472 | 19934 | ax_cv_lib_readline="$TRY_LIB" |
058f1bc8 DWT |
19935 | fi |
19936 | rm -f core conftest.err conftest.$ac_objext \ | |
19937 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 19938 | if test -n "$ax_cv_lib_readline"; then |
058f1bc8 DWT |
19939 | break |
19940 | fi | |
19941 | done | |
ee134472 | 19942 | if test -n "$ax_cv_lib_readline"; then |
058f1bc8 DWT |
19943 | break |
19944 | fi | |
19945 | done | |
ee134472 JF |
19946 | if test -z "$ax_cv_lib_readline"; then |
19947 | ax_cv_lib_readline="no" | |
058f1bc8 | 19948 | fi |
ee134472 | 19949 | LIBS="$ORIG_LIBS" |
a667869d | 19950 | |
a667869d | 19951 | fi |
ee134472 JF |
19952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 |
19953 | $as_echo "$ax_cv_lib_readline" >&6; } | |
058f1bc8 | 19954 | |
ee134472 JF |
19955 | if test "$ax_cv_lib_readline" != "no"; then |
19956 | LIBS="$LIBS $ax_cv_lib_readline" | |
058f1bc8 DWT |
19957 | |
19958 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
19959 | ||
19960 | for ac_header in readline.h readline/readline.h | |
19961 | do : | |
19962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19963 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12833ad8 | 19964 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
058f1bc8 DWT |
19965 | cat >>confdefs.h <<_ACEOF |
19966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19967 | _ACEOF | |
5053a6d1 | 19968 | |
a667869d | 19969 | fi |
058f1bc8 DWT |
19970 | |
19971 | done | |
19972 | ||
19973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
19974 | $as_echo_n "checking whether readline supports history... " >&6; } | |
ee134472 | 19975 | if ${ax_cv_lib_readline_history+:} false; then : |
058f1bc8 DWT |
19976 | $as_echo_n "(cached) " >&6 |
19977 | else | |
19978 | ||
ee134472 | 19979 | ax_cv_lib_readline_history="no" |
058f1bc8 DWT |
19980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19981 | /* end confdefs.h. */ | |
19982 | ||
19983 | /* Override any GCC internal prototype to avoid an error. | |
19984 | Use char because int might match the return type of a GCC | |
19985 | builtin and then its argument prototype would still apply. */ | |
19986 | #ifdef __cplusplus | |
19987 | extern "C" | |
19988 | #endif | |
19989 | char add_history (); | |
19990 | int | |
19991 | main () | |
19992 | { | |
19993 | return add_history (); | |
19994 | ; | |
19995 | return 0; | |
19996 | } | |
19997 | _ACEOF | |
19998 | if ac_fn_cxx_try_link "$LINENO"; then : | |
ee134472 | 19999 | ax_cv_lib_readline_history="yes" |
058f1bc8 DWT |
20000 | fi |
20001 | rm -f core conftest.err conftest.$ac_objext \ | |
20002 | conftest$ac_exeext conftest.$ac_ext | |
20003 | ||
20004 | fi | |
ee134472 JF |
20005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
20006 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
20007 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 DWT |
20008 | |
20009 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
20010 | ||
20011 | for ac_header in history.h readline/history.h | |
20012 | do : | |
20013 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20014 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12833ad8 | 20015 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
058f1bc8 DWT |
20016 | cat >>confdefs.h <<_ACEOF |
20017 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20018 | _ACEOF | |
20019 | ||
20020 | fi | |
20021 | ||
20022 | done | |
20023 | ||
20024 | fi | |
20025 | fi | |
20026 | ||
20027 | case $vl_cv_lib_readline in #( | |
20028 | no) : | |
66170b30 | 20029 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( |
058f1bc8 DWT |
20030 | *) : |
20031 | ;; | |
20032 | esac | |
66170b30 | 20033 | |
a243b558 JF |
20034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 |
20035 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
20036 | if ${ac_cv_search_cur_term+:} false; then : | |
20037 | $as_echo_n "(cached) " >&6 | |
20038 | else | |
20039 | ac_func_search_save_LIBS=$LIBS | |
20040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20041 | /* end confdefs.h. */ | |
20042 | ||
20043 | /* Override any GCC internal prototype to avoid an error. | |
20044 | Use char because int might match the return type of a GCC | |
20045 | builtin and then its argument prototype would still apply. */ | |
20046 | #ifdef __cplusplus | |
20047 | extern "C" | |
20048 | #endif | |
20049 | char cur_term (); | |
20050 | int | |
20051 | main () | |
20052 | { | |
20053 | return cur_term (); | |
20054 | ; | |
20055 | return 0; | |
20056 | } | |
20057 | _ACEOF | |
20058 | for ac_lib in '' termcap; do | |
20059 | if test -z "$ac_lib"; then | |
20060 | ac_res="none required" | |
20061 | else | |
20062 | ac_res=-l$ac_lib | |
20063 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20064 | fi | |
20065 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20066 | ac_cv_search_cur_term=$ac_res | |
20067 | fi | |
20068 | rm -f core conftest.err conftest.$ac_objext \ | |
20069 | conftest$ac_exeext | |
20070 | if ${ac_cv_search_cur_term+:} false; then : | |
20071 | break | |
20072 | fi | |
20073 | done | |
20074 | if ${ac_cv_search_cur_term+:} false; then : | |
20075 | ||
20076 | else | |
20077 | ac_cv_search_cur_term=no | |
20078 | fi | |
20079 | rm conftest.$ac_ext | |
20080 | LIBS=$ac_func_search_save_LIBS | |
20081 | fi | |
20082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
20083 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
20084 | ac_res=$ac_cv_search_cur_term | |
20085 | if test "$ac_res" != no; then : | |
20086 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20087 | ||
20088 | fi | |
20089 | ||
20090 | ||
058f1bc8 DWT |
20091 | ac_ext=c |
20092 | ac_cpp='$CPP $CPPFLAGS' | |
20093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20096 | ||
20097 | ||
20098 | if test "X$prefix" = "XNONE"; then | |
20099 | acl_final_prefix="$ac_default_prefix" | |
20100 | else | |
20101 | acl_final_prefix="$prefix" | |
20102 | fi | |
20103 | if test "X$exec_prefix" = "XNONE"; then | |
20104 | acl_final_exec_prefix='${prefix}' | |
20105 | else | |
20106 | acl_final_exec_prefix="$exec_prefix" | |
20107 | fi | |
20108 | acl_save_prefix="$prefix" | |
20109 | prefix="$acl_final_prefix" | |
20110 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
20111 | prefix="$acl_save_prefix" | |
20112 | ||
20113 | ||
53ba6704 | 20114 | |
058f1bc8 DWT |
20115 | # Check whether --with-gnu-ld was given. |
20116 | if test "${with_gnu_ld+set}" = set; then : | |
20117 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
20118 | else | |
20119 | with_gnu_ld=no | |
20120 | fi | |
20121 | ||
20122 | # Prepare PATH_SEPARATOR. | |
20123 | # The user is always right. | |
20124 | if test "${PATH_SEPARATOR+set}" != set; then | |
53ba6704 JF |
20125 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
20126 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
20127 | # so we have to set that as well for the test. | |
20128 | PATH_SEPARATOR=: | |
20129 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
20130 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
20131 | || PATH_SEPARATOR=';' | |
20132 | } | |
058f1bc8 | 20133 | fi |
53ba6704 | 20134 | |
058f1bc8 DWT |
20135 | ac_prog=ld |
20136 | if test "$GCC" = yes; then | |
20137 | # Check if gcc -print-prog-name=ld gives a path. | |
53ba6704 JF |
20138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
20139 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
058f1bc8 DWT |
20140 | case $host in |
20141 | *-*-mingw*) | |
20142 | # gcc leaves a trailing carriage return which upsets mingw | |
20143 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
20144 | *) | |
20145 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
20146 | esac | |
20147 | case $ac_prog in | |
20148 | # Accept absolute paths. | |
53ba6704 | 20149 | [\\/]* | ?:[\\/]*) |
058f1bc8 | 20150 | re_direlt='/[^/][^/]*/\.\./' |
53ba6704 JF |
20151 | # Canonicalize the pathname of ld |
20152 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
20153 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
12833ad8 | 20154 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
5053a6d1 DWT |
20155 | done |
20156 | test -z "$LD" && LD="$ac_prog" | |
20157 | ;; | |
20158 | "") | |
20159 | # If it fails, then pretend we aren't using GCC. | |
20160 | ac_prog=ld | |
20161 | ;; | |
20162 | *) | |
20163 | # If it is relative, then search for the first ld in PATH. | |
20164 | with_gnu_ld=unknown | |
20165 | ;; | |
20166 | esac | |
20167 | elif test "$with_gnu_ld" = yes; then | |
20168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
20169 | $as_echo_n "checking for GNU ld... " >&6; } | |
a667869d | 20170 | else |
5053a6d1 DWT |
20171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
20172 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a667869d | 20173 | fi |
ee134472 | 20174 | if ${acl_cv_path_LD+:} false; then : |
5053a6d1 DWT |
20175 | $as_echo_n "(cached) " >&6 |
20176 | else | |
20177 | if test -z "$LD"; then | |
53ba6704 | 20178 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5053a6d1 | 20179 | for ac_dir in $PATH; do |
53ba6704 | 20180 | IFS="$acl_save_ifs" |
5053a6d1 DWT |
20181 | test -z "$ac_dir" && ac_dir=. |
20182 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
20183 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
20184 | # Check to see if the program is GNU ld. I'd rather use --version, | |
53ba6704 | 20185 | # but apparently some variants of GNU ld only accept -v. |
5053a6d1 | 20186 | # Break only if it was the GNU/non-GNU ld that we prefer. |
53ba6704 | 20187 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
5053a6d1 | 20188 | *GNU* | *'with BFD'*) |
53ba6704 JF |
20189 | test "$with_gnu_ld" != no && break |
20190 | ;; | |
5053a6d1 | 20191 | *) |
53ba6704 JF |
20192 | test "$with_gnu_ld" != yes && break |
20193 | ;; | |
5053a6d1 | 20194 | esac |
a667869d | 20195 | fi |
5053a6d1 | 20196 | done |
53ba6704 | 20197 | IFS="$acl_save_ifs" |
a667869d | 20198 | else |
5053a6d1 | 20199 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
a667869d | 20200 | fi |
a667869d | 20201 | fi |
a667869d | 20202 | |
5053a6d1 DWT |
20203 | LD="$acl_cv_path_LD" |
20204 | if test -n "$LD"; then | |
20205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
20206 | $as_echo "$LD" >&6; } | |
20207 | else | |
20208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
a667869d | 20209 | $as_echo "no" >&6; } |
a667869d | 20210 | fi |
12833ad8 | 20211 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5053a6d1 DWT |
20212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
20213 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 20214 | if ${acl_cv_prog_gnu_ld+:} false; then : |
a667869d DWT |
20215 | $as_echo_n "(cached) " >&6 |
20216 | else | |
53ba6704 | 20217 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5053a6d1 DWT |
20218 | case `$LD -v 2>&1 </dev/null` in |
20219 | *GNU* | *'with BFD'*) | |
53ba6704 JF |
20220 | acl_cv_prog_gnu_ld=yes |
20221 | ;; | |
5053a6d1 | 20222 | *) |
53ba6704 JF |
20223 | acl_cv_prog_gnu_ld=no |
20224 | ;; | |
5053a6d1 | 20225 | esac |
a667869d | 20226 | fi |
5053a6d1 DWT |
20227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
20228 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
20229 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
20230 | ||
20231 | ||
20232 | ||
a667869d | 20233 | |
5053a6d1 DWT |
20234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
20235 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
ee134472 | 20236 | if ${acl_cv_rpath+:} false; then : |
5053a6d1 | 20237 | $as_echo_n "(cached) " >&6 |
a667869d | 20238 | else |
5053a6d1 DWT |
20239 | |
20240 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
20241 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
20242 | . ./conftest.sh | |
20243 | rm -f ./conftest.sh | |
20244 | acl_cv_rpath=done | |
20245 | ||
a667869d | 20246 | fi |
5053a6d1 DWT |
20247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
20248 | $as_echo "$acl_cv_rpath" >&6; } | |
20249 | wl="$acl_cv_wl" | |
20250 | acl_libext="$acl_cv_libext" | |
20251 | acl_shlibext="$acl_cv_shlibext" | |
20252 | acl_libname_spec="$acl_cv_libname_spec" | |
20253 | acl_library_names_spec="$acl_cv_library_names_spec" | |
20254 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
20255 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
20256 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
20257 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
20258 | # Check whether --enable-rpath was given. | |
20259 | if test "${enable_rpath+set}" = set; then : | |
20260 | enableval=$enable_rpath; : | |
20261 | else | |
20262 | enable_rpath=yes | |
a667869d | 20263 | fi |
a667869d | 20264 | |
a667869d | 20265 | |
a667869d | 20266 | |
12833ad8 JF |
20267 | |
20268 | acl_libdirstem=lib | |
20269 | acl_libdirstem2= | |
20270 | case "$host_os" in | |
20271 | solaris*) | |
20272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
20273 | $as_echo_n "checking for 64-bit host... " >&6; } | |
ee134472 | 20274 | if ${gl_cv_solaris_64bit+:} false; then : |
12833ad8 JF |
20275 | $as_echo_n "(cached) " >&6 |
20276 | else | |
20277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20278 | /* end confdefs.h. */ | |
20279 | ||
20280 | #ifdef _LP64 | |
20281 | sixtyfour bits | |
20282 | #endif | |
20283 | ||
20284 | _ACEOF | |
20285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
20286 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
20287 | gl_cv_solaris_64bit=yes | |
20288 | else | |
20289 | gl_cv_solaris_64bit=no | |
20290 | fi | |
20291 | rm -f conftest* | |
20292 | ||
20293 | ||
20294 | fi | |
20295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
20296 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
20297 | if test $gl_cv_solaris_64bit = yes; then | |
20298 | acl_libdirstem=lib/64 | |
20299 | case "$host_cpu" in | |
20300 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
20301 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
5053a6d1 DWT |
20302 | esac |
20303 | fi | |
12833ad8 JF |
20304 | ;; |
20305 | *) | |
20306 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
20307 | if test -n "$searchpath"; then | |
20308 | acl_save_IFS="${IFS= }"; IFS=":" | |
20309 | for searchdir in $searchpath; do | |
20310 | if test -d "$searchdir"; then | |
20311 | case "$searchdir" in | |
20312 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
20313 | */../ | */.. ) | |
20314 | # Better ignore directories of this form. They are misleading. | |
20315 | ;; | |
20316 | *) searchdir=`cd "$searchdir" && pwd` | |
20317 | case "$searchdir" in | |
20318 | */lib64 ) acl_libdirstem=lib64 ;; | |
20319 | esac ;; | |
20320 | esac | |
20321 | fi | |
20322 | done | |
20323 | IFS="$acl_save_IFS" | |
20324 | fi | |
20325 | ;; | |
20326 | esac | |
20327 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
20328 | ||
20329 | ||
20330 | ||
9c60689e | 20331 | |
9c60689e | 20332 | |
9c60689e | 20333 | |
9c60689e | 20334 | |
9c60689e | 20335 | |
9c60689e | 20336 | |
9c60689e | 20337 | |
9c60689e | 20338 | |
9c60689e | 20339 | |
5053a6d1 | 20340 | use_additional=yes |
9c60689e | 20341 | |
5053a6d1 DWT |
20342 | acl_save_prefix="$prefix" |
20343 | prefix="$acl_final_prefix" | |
20344 | acl_save_exec_prefix="$exec_prefix" | |
20345 | exec_prefix="$acl_final_exec_prefix" | |
9c60689e | 20346 | |
5053a6d1 DWT |
20347 | eval additional_includedir=\"$includedir\" |
20348 | eval additional_libdir=\"$libdir\" | |
9c60689e | 20349 | |
5053a6d1 DWT |
20350 | exec_prefix="$acl_save_exec_prefix" |
20351 | prefix="$acl_save_prefix" | |
3fd51f51 DWT |
20352 | |
20353 | ||
5053a6d1 DWT |
20354 | # Check whether --with-libiconv-prefix was given. |
20355 | if test "${with_libiconv_prefix+set}" = set; then : | |
20356 | withval=$with_libiconv_prefix; | |
20357 | if test "X$withval" = "Xno"; then | |
20358 | use_additional=no | |
20359 | else | |
20360 | if test "X$withval" = "X"; then | |
3fd51f51 DWT |
20361 | |
20362 | acl_save_prefix="$prefix" | |
20363 | prefix="$acl_final_prefix" | |
20364 | acl_save_exec_prefix="$exec_prefix" | |
20365 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
20366 | |
20367 | eval additional_includedir=\"$includedir\" | |
20368 | eval additional_libdir=\"$libdir\" | |
20369 | ||
3fd51f51 DWT |
20370 | exec_prefix="$acl_save_exec_prefix" |
20371 | prefix="$acl_save_prefix" | |
20372 | ||
5053a6d1 DWT |
20373 | else |
20374 | additional_includedir="$withval/include" | |
20375 | additional_libdir="$withval/$acl_libdirstem" | |
12833ad8 JF |
20376 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
20377 | && ! test -d "$withval/$acl_libdirstem"; then | |
20378 | additional_libdir="$withval/$acl_libdirstem2" | |
20379 | fi | |
3fd51f51 | 20380 | fi |
3fd51f51 | 20381 | fi |
3fd51f51 | 20382 | |
5053a6d1 | 20383 | fi |
3fd51f51 | 20384 | |
5053a6d1 DWT |
20385 | LIBICONV= |
20386 | LTLIBICONV= | |
20387 | INCICONV= | |
20388 | LIBICONV_PREFIX= | |
12833ad8 | 20389 | HAVE_LIBICONV= |
5053a6d1 DWT |
20390 | rpathdirs= |
20391 | ltrpathdirs= | |
20392 | names_already_handled= | |
20393 | names_next_round='iconv ' | |
20394 | while test -n "$names_next_round"; do | |
20395 | names_this_round="$names_next_round" | |
20396 | names_next_round= | |
20397 | for name in $names_this_round; do | |
20398 | already_handled= | |
20399 | for n in $names_already_handled; do | |
20400 | if test "$n" = "$name"; then | |
20401 | already_handled=yes | |
20402 | break | |
20403 | fi | |
20404 | done | |
20405 | if test -z "$already_handled"; then | |
20406 | names_already_handled="$names_already_handled $name" | |
53ba6704 | 20407 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
5053a6d1 DWT |
20408 | eval value=\"\$HAVE_LIB$uppername\" |
20409 | if test -n "$value"; then | |
20410 | if test "$value" = yes; then | |
20411 | eval value=\"\$LIB$uppername\" | |
20412 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
20413 | eval value=\"\$LTLIB$uppername\" | |
20414 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
20415 | else | |
20416 | : | |
20417 | fi | |
20418 | else | |
20419 | found_dir= | |
20420 | found_la= | |
20421 | found_so= | |
20422 | found_a= | |
20423 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
20424 | if test -n "$acl_shlibext"; then | |
20425 | shrext=".$acl_shlibext" # typically: shrext=.so | |
20426 | else | |
20427 | shrext= | |
20428 | fi | |
20429 | if test $use_additional = yes; then | |
20430 | dir="$additional_libdir" | |
20431 | if test -n "$acl_shlibext"; then | |
20432 | if test -f "$dir/$libname$shrext"; then | |
20433 | found_dir="$dir" | |
20434 | found_so="$dir/$libname$shrext" | |
20435 | else | |
20436 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20437 | ver=`(cd "$dir" && \ | |
20438 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
20439 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
20440 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20441 | | sed 1q ) 2>/dev/null` | |
20442 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20443 | found_dir="$dir" | |
20444 | found_so="$dir/$libname$shrext.$ver" | |
20445 | fi | |
20446 | else | |
20447 | eval library_names=\"$acl_library_names_spec\" | |
20448 | for f in $library_names; do | |
20449 | if test -f "$dir/$f"; then | |
20450 | found_dir="$dir" | |
20451 | found_so="$dir/$f" | |
20452 | break | |
20453 | fi | |
20454 | done | |
20455 | fi | |
20456 | fi | |
20457 | fi | |
20458 | if test "X$found_dir" = "X"; then | |
20459 | if test -f "$dir/$libname.$acl_libext"; then | |
20460 | found_dir="$dir" | |
20461 | found_a="$dir/$libname.$acl_libext" | |
20462 | fi | |
20463 | fi | |
20464 | if test "X$found_dir" != "X"; then | |
20465 | if test -f "$dir/$libname.la"; then | |
20466 | found_la="$dir/$libname.la" | |
20467 | fi | |
20468 | fi | |
20469 | fi | |
20470 | if test "X$found_dir" = "X"; then | |
20471 | for x in $LDFLAGS $LTLIBICONV; do | |
3fd51f51 DWT |
20472 | |
20473 | acl_save_prefix="$prefix" | |
20474 | prefix="$acl_final_prefix" | |
20475 | acl_save_exec_prefix="$exec_prefix" | |
20476 | exec_prefix="$acl_final_exec_prefix" | |
20477 | eval x=\"$x\" | |
20478 | exec_prefix="$acl_save_exec_prefix" | |
20479 | prefix="$acl_save_prefix" | |
20480 | ||
5053a6d1 DWT |
20481 | case "$x" in |
20482 | -L*) | |
20483 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
20484 | if test -n "$acl_shlibext"; then | |
20485 | if test -f "$dir/$libname$shrext"; then | |
20486 | found_dir="$dir" | |
20487 | found_so="$dir/$libname$shrext" | |
20488 | else | |
20489 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20490 | ver=`(cd "$dir" && \ | |
20491 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
20492 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
20493 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20494 | | sed 1q ) 2>/dev/null` | |
20495 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20496 | found_dir="$dir" | |
20497 | found_so="$dir/$libname$shrext.$ver" | |
20498 | fi | |
20499 | else | |
20500 | eval library_names=\"$acl_library_names_spec\" | |
20501 | for f in $library_names; do | |
20502 | if test -f "$dir/$f"; then | |
20503 | found_dir="$dir" | |
20504 | found_so="$dir/$f" | |
20505 | break | |
20506 | fi | |
20507 | done | |
20508 | fi | |
20509 | fi | |
20510 | fi | |
20511 | if test "X$found_dir" = "X"; then | |
20512 | if test -f "$dir/$libname.$acl_libext"; then | |
20513 | found_dir="$dir" | |
20514 | found_a="$dir/$libname.$acl_libext" | |
20515 | fi | |
20516 | fi | |
20517 | if test "X$found_dir" != "X"; then | |
20518 | if test -f "$dir/$libname.la"; then | |
20519 | found_la="$dir/$libname.la" | |
20520 | fi | |
20521 | fi | |
20522 | ;; | |
20523 | esac | |
20524 | if test "X$found_dir" != "X"; then | |
20525 | break | |
20526 | fi | |
20527 | done | |
20528 | fi | |
20529 | if test "X$found_dir" != "X"; then | |
20530 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
20531 | if test "X$found_so" != "X"; then | |
12833ad8 JF |
20532 | if test "$enable_rpath" = no \ |
20533 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
20534 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
5053a6d1 DWT |
20535 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
20536 | else | |
20537 | haveit= | |
20538 | for x in $ltrpathdirs; do | |
20539 | if test "X$x" = "X$found_dir"; then | |
20540 | haveit=yes | |
20541 | break | |
20542 | fi | |
20543 | done | |
20544 | if test -z "$haveit"; then | |
20545 | ltrpathdirs="$ltrpathdirs $found_dir" | |
20546 | fi | |
20547 | if test "$acl_hardcode_direct" = yes; then | |
20548 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20549 | else | |
20550 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
20551 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20552 | haveit= | |
20553 | for x in $rpathdirs; do | |
20554 | if test "X$x" = "X$found_dir"; then | |
20555 | haveit=yes | |
20556 | break | |
20557 | fi | |
20558 | done | |
20559 | if test -z "$haveit"; then | |
20560 | rpathdirs="$rpathdirs $found_dir" | |
20561 | fi | |
20562 | else | |
20563 | haveit= | |
20564 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 DWT |
20565 | |
20566 | acl_save_prefix="$prefix" | |
20567 | prefix="$acl_final_prefix" | |
20568 | acl_save_exec_prefix="$exec_prefix" | |
20569 | exec_prefix="$acl_final_exec_prefix" | |
20570 | eval x=\"$x\" | |
20571 | exec_prefix="$acl_save_exec_prefix" | |
20572 | prefix="$acl_save_prefix" | |
20573 | ||
5053a6d1 DWT |
20574 | if test "X$x" = "X-L$found_dir"; then |
20575 | haveit=yes | |
20576 | break | |
20577 | fi | |
20578 | done | |
20579 | if test -z "$haveit"; then | |
20580 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
20581 | fi | |
20582 | if test "$acl_hardcode_minus_L" != no; then | |
20583 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20584 | else | |
20585 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
20586 | fi | |
20587 | fi | |
20588 | fi | |
20589 | fi | |
20590 | else | |
20591 | if test "X$found_a" != "X"; then | |
20592 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
20593 | else | |
20594 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
20595 | fi | |
20596 | fi | |
20597 | additional_includedir= | |
20598 | case "$found_dir" in | |
20599 | */$acl_libdirstem | */$acl_libdirstem/) | |
20600 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
12833ad8 JF |
20601 | if test "$name" = 'iconv'; then |
20602 | LIBICONV_PREFIX="$basedir" | |
20603 | fi | |
20604 | additional_includedir="$basedir/include" | |
20605 | ;; | |
20606 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
20607 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
20608 | if test "$name" = 'iconv'; then | |
20609 | LIBICONV_PREFIX="$basedir" | |
20610 | fi | |
5053a6d1 DWT |
20611 | additional_includedir="$basedir/include" |
20612 | ;; | |
20613 | esac | |
20614 | if test "X$additional_includedir" != "X"; then | |
20615 | if test "X$additional_includedir" != "X/usr/include"; then | |
20616 | haveit= | |
20617 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
20618 | if test -n "$GCC"; then | |
20619 | case $host_os in | |
20620 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20621 | esac | |
20622 | fi | |
20623 | fi | |
20624 | if test -z "$haveit"; then | |
20625 | for x in $CPPFLAGS $INCICONV; do | |
c823f118 DWT |
20626 | |
20627 | acl_save_prefix="$prefix" | |
20628 | prefix="$acl_final_prefix" | |
20629 | acl_save_exec_prefix="$exec_prefix" | |
20630 | exec_prefix="$acl_final_exec_prefix" | |
20631 | eval x=\"$x\" | |
20632 | exec_prefix="$acl_save_exec_prefix" | |
20633 | prefix="$acl_save_prefix" | |
20634 | ||
5053a6d1 DWT |
20635 | if test "X$x" = "X-I$additional_includedir"; then |
20636 | haveit=yes | |
20637 | break | |
20638 | fi | |
20639 | done | |
20640 | if test -z "$haveit"; then | |
20641 | if test -d "$additional_includedir"; then | |
20642 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
20643 | fi | |
20644 | fi | |
20645 | fi | |
20646 | fi | |
20647 | fi | |
20648 | if test -n "$found_la"; then | |
20649 | save_libdir="$libdir" | |
20650 | case "$found_la" in | |
20651 | */* | *\\*) . "$found_la" ;; | |
20652 | *) . "./$found_la" ;; | |
20653 | esac | |
20654 | libdir="$save_libdir" | |
20655 | for dep in $dependency_libs; do | |
20656 | case "$dep" in | |
20657 | -L*) | |
20658 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
12833ad8 JF |
20659 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
20660 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
5053a6d1 | 20661 | haveit= |
12833ad8 JF |
20662 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
20663 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
5053a6d1 DWT |
20664 | if test -n "$GCC"; then |
20665 | case $host_os in | |
20666 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20667 | esac | |
20668 | fi | |
20669 | fi | |
20670 | if test -z "$haveit"; then | |
20671 | haveit= | |
20672 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 | 20673 | |
5053a6d1 DWT |
20674 | acl_save_prefix="$prefix" |
20675 | prefix="$acl_final_prefix" | |
20676 | acl_save_exec_prefix="$exec_prefix" | |
20677 | exec_prefix="$acl_final_exec_prefix" | |
20678 | eval x=\"$x\" | |
20679 | exec_prefix="$acl_save_exec_prefix" | |
20680 | prefix="$acl_save_prefix" | |
c823f118 | 20681 | |
5053a6d1 DWT |
20682 | if test "X$x" = "X-L$additional_libdir"; then |
20683 | haveit=yes | |
20684 | break | |
20685 | fi | |
20686 | done | |
20687 | if test -z "$haveit"; then | |
20688 | if test -d "$additional_libdir"; then | |
20689 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
20690 | fi | |
20691 | fi | |
20692 | haveit= | |
20693 | for x in $LDFLAGS $LTLIBICONV; do | |
c823f118 DWT |
20694 | |
20695 | acl_save_prefix="$prefix" | |
20696 | prefix="$acl_final_prefix" | |
20697 | acl_save_exec_prefix="$exec_prefix" | |
20698 | exec_prefix="$acl_final_exec_prefix" | |
20699 | eval x=\"$x\" | |
20700 | exec_prefix="$acl_save_exec_prefix" | |
20701 | prefix="$acl_save_prefix" | |
20702 | ||
5053a6d1 DWT |
20703 | if test "X$x" = "X-L$additional_libdir"; then |
20704 | haveit=yes | |
20705 | break | |
20706 | fi | |
20707 | done | |
20708 | if test -z "$haveit"; then | |
20709 | if test -d "$additional_libdir"; then | |
20710 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
20711 | fi | |
20712 | fi | |
20713 | fi | |
20714 | fi | |
20715 | ;; | |
20716 | -R*) | |
20717 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
20718 | if test "$enable_rpath" != no; then | |
20719 | haveit= | |
20720 | for x in $rpathdirs; do | |
20721 | if test "X$x" = "X$dir"; then | |
20722 | haveit=yes | |
20723 | break | |
20724 | fi | |
20725 | done | |
20726 | if test -z "$haveit"; then | |
20727 | rpathdirs="$rpathdirs $dir" | |
20728 | fi | |
20729 | haveit= | |
20730 | for x in $ltrpathdirs; do | |
20731 | if test "X$x" = "X$dir"; then | |
20732 | haveit=yes | |
20733 | break | |
20734 | fi | |
20735 | done | |
20736 | if test -z "$haveit"; then | |
20737 | ltrpathdirs="$ltrpathdirs $dir" | |
20738 | fi | |
20739 | fi | |
20740 | ;; | |
20741 | -l*) | |
20742 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
20743 | ;; | |
20744 | *.la) | |
20745 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
20746 | ;; | |
20747 | *) | |
20748 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
20749 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
20750 | ;; | |
20751 | esac | |
20752 | done | |
20753 | fi | |
20754 | else | |
20755 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
20756 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
20757 | fi | |
20758 | fi | |
c823f118 DWT |
20759 | fi |
20760 | done | |
c823f118 | 20761 | done |
5053a6d1 DWT |
20762 | if test "X$rpathdirs" != "X"; then |
20763 | if test -n "$acl_hardcode_libdir_separator"; then | |
20764 | alldirs= | |
20765 | for found_dir in $rpathdirs; do | |
20766 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
20767 | done | |
20768 | acl_save_libdir="$libdir" | |
20769 | libdir="$alldirs" | |
20770 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20771 | libdir="$acl_save_libdir" | |
20772 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
20773 | else | |
20774 | for found_dir in $rpathdirs; do | |
20775 | acl_save_libdir="$libdir" | |
20776 | libdir="$found_dir" | |
20777 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20778 | libdir="$acl_save_libdir" | |
20779 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
20780 | done | |
20781 | fi | |
20782 | fi | |
20783 | if test "X$ltrpathdirs" != "X"; then | |
20784 | for found_dir in $ltrpathdirs; do | |
20785 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
20786 | done | |
47aaa820 | 20787 | fi |
47aaa820 DWT |
20788 | |
20789 | ||
47aaa820 | 20790 | |
47aaa820 DWT |
20791 | |
20792 | ||
20793 | ||
5053a6d1 | 20794 | |
12833ad8 JF |
20795 | |
20796 | ||
20797 | ||
20798 | ||
20799 | ||
5053a6d1 DWT |
20800 | am_save_CPPFLAGS="$CPPFLAGS" |
20801 | ||
20802 | for element in $INCICONV; do | |
47aaa820 | 20803 | haveit= |
5053a6d1 | 20804 | for x in $CPPFLAGS; do |
47aaa820 DWT |
20805 | |
20806 | acl_save_prefix="$prefix" | |
20807 | prefix="$acl_final_prefix" | |
20808 | acl_save_exec_prefix="$exec_prefix" | |
20809 | exec_prefix="$acl_final_exec_prefix" | |
20810 | eval x=\"$x\" | |
20811 | exec_prefix="$acl_save_exec_prefix" | |
20812 | prefix="$acl_save_prefix" | |
9c60689e | 20813 | |
47aaa820 DWT |
20814 | if test "X$x" = "X$element"; then |
20815 | haveit=yes | |
20816 | break | |
20817 | fi | |
20818 | done | |
20819 | if test -z "$haveit"; then | |
5053a6d1 | 20820 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
47aaa820 DWT |
20821 | fi |
20822 | done | |
20823 | ||
20824 | ||
5053a6d1 DWT |
20825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
20826 | $as_echo_n "checking for iconv... " >&6; } | |
ee134472 | 20827 | if ${am_cv_func_iconv+:} false; then : |
5053a6d1 DWT |
20828 | $as_echo_n "(cached) " >&6 |
20829 | else | |
47aaa820 | 20830 | |
5053a6d1 DWT |
20831 | am_cv_func_iconv="no, consider installing GNU libiconv" |
20832 | am_cv_lib_iconv=no | |
20833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20834 | /* end confdefs.h. */ | |
53ba6704 | 20835 | |
5053a6d1 DWT |
20836 | #include <stdlib.h> |
20837 | #include <iconv.h> | |
53ba6704 | 20838 | |
5053a6d1 DWT |
20839 | int |
20840 | main () | |
20841 | { | |
20842 | iconv_t cd = iconv_open("",""); | |
53ba6704 JF |
20843 | iconv(cd,NULL,NULL,NULL,NULL); |
20844 | iconv_close(cd); | |
5053a6d1 DWT |
20845 | ; |
20846 | return 0; | |
20847 | } | |
20848 | _ACEOF | |
20849 | if ac_fn_c_try_link "$LINENO"; then : | |
20850 | am_cv_func_iconv=yes | |
20851 | fi | |
20852 | rm -f core conftest.err conftest.$ac_objext \ | |
20853 | conftest$ac_exeext conftest.$ac_ext | |
20854 | if test "$am_cv_func_iconv" != yes; then | |
20855 | am_save_LIBS="$LIBS" | |
20856 | LIBS="$LIBS $LIBICONV" | |
20857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20858 | /* end confdefs.h. */ | |
53ba6704 | 20859 | |
5053a6d1 DWT |
20860 | #include <stdlib.h> |
20861 | #include <iconv.h> | |
53ba6704 | 20862 | |
5053a6d1 DWT |
20863 | int |
20864 | main () | |
20865 | { | |
20866 | iconv_t cd = iconv_open("",""); | |
53ba6704 JF |
20867 | iconv(cd,NULL,NULL,NULL,NULL); |
20868 | iconv_close(cd); | |
5053a6d1 DWT |
20869 | ; |
20870 | return 0; | |
20871 | } | |
20872 | _ACEOF | |
20873 | if ac_fn_c_try_link "$LINENO"; then : | |
20874 | am_cv_lib_iconv=yes | |
20875 | am_cv_func_iconv=yes | |
20876 | fi | |
20877 | rm -f core conftest.err conftest.$ac_objext \ | |
20878 | conftest$ac_exeext conftest.$ac_ext | |
20879 | LIBS="$am_save_LIBS" | |
47aaa820 | 20880 | fi |
47aaa820 | 20881 | |
5053a6d1 DWT |
20882 | fi |
20883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
20884 | $as_echo "$am_cv_func_iconv" >&6; } | |
20885 | if test "$am_cv_func_iconv" = yes; then | |
20886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
20887 | $as_echo_n "checking for working iconv... " >&6; } | |
ee134472 | 20888 | if ${am_cv_func_iconv_works+:} false; then : |
5053a6d1 DWT |
20889 | $as_echo_n "(cached) " >&6 |
20890 | else | |
47aaa820 | 20891 | |
53ba6704 | 20892 | am_save_LIBS="$LIBS" |
5053a6d1 DWT |
20893 | if test $am_cv_lib_iconv = yes; then |
20894 | LIBS="$LIBS $LIBICONV" | |
20895 | fi | |
20896 | if test "$cross_compiling" = yes; then : | |
53ba6704 JF |
20897 | |
20898 | case "$host_os" in | |
5053a6d1 DWT |
20899 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
20900 | *) am_cv_func_iconv_works="guessing yes" ;; | |
20901 | esac | |
53ba6704 | 20902 | |
c823f118 | 20903 | else |
5053a6d1 DWT |
20904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20905 | /* end confdefs.h. */ | |
c823f118 | 20906 | |
5053a6d1 DWT |
20907 | #include <iconv.h> |
20908 | #include <string.h> | |
20909 | int main () | |
20910 | { | |
53ba6704 | 20911 | int result = 0; |
5053a6d1 DWT |
20912 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
20913 | returns. */ | |
20914 | { | |
20915 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
20916 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
20917 | { | |
20918 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
20919 | char buf[10]; | |
20920 | const char *inptr = input; | |
20921 | size_t inbytesleft = strlen (input); | |
20922 | char *outptr = buf; | |
20923 | size_t outbytesleft = sizeof (buf); | |
20924 | size_t res = iconv (cd_utf8_to_88591, | |
20925 | (char **) &inptr, &inbytesleft, | |
20926 | &outptr, &outbytesleft); | |
20927 | if (res == 0) | |
53ba6704 JF |
20928 | result |= 1; |
20929 | iconv_close (cd_utf8_to_88591); | |
5053a6d1 DWT |
20930 | } |
20931 | } | |
12833ad8 JF |
20932 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
20933 | successful returns. */ | |
20934 | { | |
20935 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
20936 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
20937 | { | |
20938 | static const char input[] = "\263"; | |
20939 | char buf[10]; | |
20940 | const char *inptr = input; | |
20941 | size_t inbytesleft = strlen (input); | |
20942 | char *outptr = buf; | |
20943 | size_t outbytesleft = sizeof (buf); | |
20944 | size_t res = iconv (cd_ascii_to_88591, | |
20945 | (char **) &inptr, &inbytesleft, | |
20946 | &outptr, &outbytesleft); | |
20947 | if (res == 0) | |
53ba6704 JF |
20948 | result |= 2; |
20949 | iconv_close (cd_ascii_to_88591); | |
20950 | } | |
20951 | } | |
20952 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
20953 | { | |
20954 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
20955 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
20956 | { | |
20957 | static const char input[] = "\304"; | |
20958 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
20959 | const char *inptr = input; | |
20960 | size_t inbytesleft = 1; | |
20961 | char *outptr = buf; | |
20962 | size_t outbytesleft = 1; | |
20963 | size_t res = iconv (cd_88591_to_utf8, | |
20964 | (char **) &inptr, &inbytesleft, | |
20965 | &outptr, &outbytesleft); | |
20966 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
20967 | result |= 4; | |
20968 | iconv_close (cd_88591_to_utf8); | |
12833ad8 JF |
20969 | } |
20970 | } | |
5053a6d1 DWT |
20971 | #if 0 /* This bug could be worked around by the caller. */ |
20972 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
20973 | { | |
20974 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
20975 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
20976 | { | |
20977 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
20978 | char buf[50]; | |
20979 | const char *inptr = input; | |
20980 | size_t inbytesleft = strlen (input); | |
20981 | char *outptr = buf; | |
20982 | size_t outbytesleft = sizeof (buf); | |
20983 | size_t res = iconv (cd_88591_to_utf8, | |
20984 | (char **) &inptr, &inbytesleft, | |
20985 | &outptr, &outbytesleft); | |
20986 | if ((int)res > 0) | |
53ba6704 JF |
20987 | result |= 8; |
20988 | iconv_close (cd_88591_to_utf8); | |
5053a6d1 DWT |
20989 | } |
20990 | } | |
20991 | #endif | |
20992 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
20993 | provided. */ | |
20994 | if (/* Try standardized names. */ | |
20995 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
20996 | /* Try IRIX, OSF/1 names. */ | |
20997 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
20998 | /* Try AIX names. */ | |
20999 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
21000 | /* Try HP-UX names. */ | |
21001 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
53ba6704 JF |
21002 | result |= 16; |
21003 | return result; | |
5053a6d1 DWT |
21004 | } |
21005 | _ACEOF | |
21006 | if ac_fn_c_try_run "$LINENO"; then : | |
21007 | am_cv_func_iconv_works=yes | |
21008 | else | |
21009 | am_cv_func_iconv_works=no | |
21010 | fi | |
21011 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
21012 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c823f118 DWT |
21013 | fi |
21014 | ||
5053a6d1 DWT |
21015 | LIBS="$am_save_LIBS" |
21016 | ||
47aaa820 | 21017 | fi |
5053a6d1 DWT |
21018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
21019 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
21020 | case "$am_cv_func_iconv_works" in | |
21021 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
21022 | *) am_func_iconv=yes ;; | |
21023 | esac | |
21024 | else | |
21025 | am_func_iconv=no am_cv_lib_iconv=no | |
21026 | fi | |
21027 | if test "$am_func_iconv" = yes; then | |
21028 | ||
21029 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
21030 | ||
21031 | fi | |
21032 | if test "$am_cv_lib_iconv" = yes; then | |
21033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
21034 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
21035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
21036 | $as_echo "$LIBICONV" >&6; } | |
21037 | else | |
21038 | CPPFLAGS="$am_save_CPPFLAGS" | |
21039 | LIBICONV= | |
21040 | LTLIBICONV= | |
21041 | fi | |
21042 | ||
21043 | ||
21044 | ||
21045 | if test "$am_cv_func_iconv" = yes; then | |
21046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
21047 | $as_echo_n "checking for iconv declaration... " >&6; } | |
ee134472 | 21048 | if ${am_cv_proto_iconv+:} false; then : |
5053a6d1 DWT |
21049 | $as_echo_n "(cached) " >&6 |
21050 | else | |
21051 | ||
21052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21053 | /* end confdefs.h. */ | |
21054 | ||
21055 | #include <stdlib.h> | |
21056 | #include <iconv.h> | |
21057 | extern | |
21058 | #ifdef __cplusplus | |
21059 | "C" | |
21060 | #endif | |
53ba6704 | 21061 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
5053a6d1 DWT |
21062 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
21063 | #else | |
21064 | size_t iconv(); | |
21065 | #endif | |
21066 | ||
21067 | int | |
21068 | main () | |
21069 | { | |
47aaa820 | 21070 | |
5053a6d1 DWT |
21071 | ; |
21072 | return 0; | |
21073 | } | |
21074 | _ACEOF | |
21075 | if ac_fn_c_try_compile "$LINENO"; then : | |
21076 | am_cv_proto_iconv_arg1="" | |
21077 | else | |
21078 | am_cv_proto_iconv_arg1="const" | |
47aaa820 | 21079 | fi |
5053a6d1 DWT |
21080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21081 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
21082 | fi | |
21083 | ||
21084 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
12833ad8 JF |
21085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
21086 | $am_cv_proto_iconv" >&5 | |
21087 | $as_echo " | |
21088 | $am_cv_proto_iconv" >&6; } | |
5053a6d1 DWT |
21089 | |
21090 | cat >>confdefs.h <<_ACEOF | |
21091 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
21092 | _ACEOF | |
21093 | ||
53ba6704 | 21094 | |
5053a6d1 DWT |
21095 | fi |
21096 | ||
5053a6d1 DWT |
21097 | case $am_cv_func_iconv in #( |
21098 | yes) : | |
21099 | ;; #( | |
a667869d | 21100 | *) : |
058f1bc8 | 21101 | |
66170b30 JF |
21102 | for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do |
21103 | case $cy_iconv_prefix_arg in #( | |
058f1bc8 DWT |
21104 | -I*) : |
21105 | ||
21106 | ||
21107 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do | |
21108 | haveit= | |
21109 | for x in $cy_iconv_prefixes; do | |
21110 | ||
21111 | acl_save_prefix="$prefix" | |
21112 | prefix="$acl_final_prefix" | |
21113 | acl_save_exec_prefix="$exec_prefix" | |
21114 | exec_prefix="$acl_final_exec_prefix" | |
21115 | eval x=\"$x\" | |
21116 | exec_prefix="$acl_save_exec_prefix" | |
21117 | prefix="$acl_save_prefix" | |
21118 | ||
21119 | if test "X$x" = "X$element"; then | |
21120 | haveit=yes | |
21121 | break | |
21122 | fi | |
21123 | done | |
21124 | if test -z "$haveit"; then | |
21125 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
21126 | fi | |
21127 | done | |
21128 | ||
66170b30 | 21129 | ;; #( |
058f1bc8 DWT |
21130 | -L*) : |
21131 | ||
21132 | ||
21133 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do | |
21134 | haveit= | |
21135 | for x in $cy_iconv_prefixes; do | |
21136 | ||
21137 | acl_save_prefix="$prefix" | |
21138 | prefix="$acl_final_prefix" | |
21139 | acl_save_exec_prefix="$exec_prefix" | |
21140 | exec_prefix="$acl_final_exec_prefix" | |
21141 | eval x=\"$x\" | |
21142 | exec_prefix="$acl_save_exec_prefix" | |
21143 | prefix="$acl_save_prefix" | |
21144 | ||
21145 | if test "X$x" = "X$element"; then | |
21146 | haveit=yes | |
21147 | break | |
21148 | fi | |
21149 | done | |
21150 | if test -z "$haveit"; then | |
21151 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
21152 | fi | |
21153 | done | |
21154 | ||
66170b30 | 21155 | ;; #( |
058f1bc8 DWT |
21156 | *) : |
21157 | ;; | |
a667869d | 21158 | esac |
66170b30 JF |
21159 | done |
21160 | for with_libiconv_prefix in $cy_iconv_prefixes; do | |
21161 | { am_cv_func_iconv=; unset am_cv_func_iconv;} | |
058f1bc8 DWT |
21162 | |
21163 | ||
21164 | ||
21165 | ||
21166 | ||
21167 | ||
21168 | ||
21169 | ||
12833ad8 JF |
21170 | |
21171 | ||
21172 | ||
058f1bc8 DWT |
21173 | use_additional=yes |
21174 | ||
21175 | acl_save_prefix="$prefix" | |
21176 | prefix="$acl_final_prefix" | |
21177 | acl_save_exec_prefix="$exec_prefix" | |
21178 | exec_prefix="$acl_final_exec_prefix" | |
21179 | ||
21180 | eval additional_includedir=\"$includedir\" | |
21181 | eval additional_libdir=\"$libdir\" | |
21182 | ||
21183 | exec_prefix="$acl_save_exec_prefix" | |
21184 | prefix="$acl_save_prefix" | |
21185 | ||
21186 | ||
21187 | # Check whether --with-libiconv-prefix was given. | |
21188 | if test "${with_libiconv_prefix+set}" = set; then : | |
21189 | withval=$with_libiconv_prefix; | |
21190 | if test "X$withval" = "Xno"; then | |
21191 | use_additional=no | |
21192 | else | |
21193 | if test "X$withval" = "X"; then | |
21194 | ||
21195 | acl_save_prefix="$prefix" | |
21196 | prefix="$acl_final_prefix" | |
21197 | acl_save_exec_prefix="$exec_prefix" | |
21198 | exec_prefix="$acl_final_exec_prefix" | |
21199 | ||
21200 | eval additional_includedir=\"$includedir\" | |
21201 | eval additional_libdir=\"$libdir\" | |
21202 | ||
21203 | exec_prefix="$acl_save_exec_prefix" | |
21204 | prefix="$acl_save_prefix" | |
21205 | ||
21206 | else | |
21207 | additional_includedir="$withval/include" | |
21208 | additional_libdir="$withval/$acl_libdirstem" | |
12833ad8 JF |
21209 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
21210 | && ! test -d "$withval/$acl_libdirstem"; then | |
21211 | additional_libdir="$withval/$acl_libdirstem2" | |
21212 | fi | |
058f1bc8 DWT |
21213 | fi |
21214 | fi | |
21215 | ||
21216 | fi | |
21217 | ||
21218 | LIBICONV= | |
21219 | LTLIBICONV= | |
21220 | INCICONV= | |
21221 | LIBICONV_PREFIX= | |
12833ad8 | 21222 | HAVE_LIBICONV= |
058f1bc8 DWT |
21223 | rpathdirs= |
21224 | ltrpathdirs= | |
21225 | names_already_handled= | |
21226 | names_next_round='iconv ' | |
21227 | while test -n "$names_next_round"; do | |
21228 | names_this_round="$names_next_round" | |
21229 | names_next_round= | |
21230 | for name in $names_this_round; do | |
21231 | already_handled= | |
21232 | for n in $names_already_handled; do | |
21233 | if test "$n" = "$name"; then | |
21234 | already_handled=yes | |
21235 | break | |
21236 | fi | |
21237 | done | |
21238 | if test -z "$already_handled"; then | |
21239 | names_already_handled="$names_already_handled $name" | |
53ba6704 | 21240 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
058f1bc8 DWT |
21241 | eval value=\"\$HAVE_LIB$uppername\" |
21242 | if test -n "$value"; then | |
21243 | if test "$value" = yes; then | |
21244 | eval value=\"\$LIB$uppername\" | |
21245 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
21246 | eval value=\"\$LTLIB$uppername\" | |
21247 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
21248 | else | |
21249 | : | |
21250 | fi | |
21251 | else | |
21252 | found_dir= | |
21253 | found_la= | |
21254 | found_so= | |
21255 | found_a= | |
21256 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
21257 | if test -n "$acl_shlibext"; then | |
21258 | shrext=".$acl_shlibext" # typically: shrext=.so | |
21259 | else | |
21260 | shrext= | |
21261 | fi | |
21262 | if test $use_additional = yes; then | |
21263 | dir="$additional_libdir" | |
21264 | if test -n "$acl_shlibext"; then | |
21265 | if test -f "$dir/$libname$shrext"; then | |
21266 | found_dir="$dir" | |
21267 | found_so="$dir/$libname$shrext" | |
21268 | else | |
21269 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
21270 | ver=`(cd "$dir" && \ | |
21271 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
21272 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
21273 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
21274 | | sed 1q ) 2>/dev/null` | |
21275 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
21276 | found_dir="$dir" | |
21277 | found_so="$dir/$libname$shrext.$ver" | |
21278 | fi | |
21279 | else | |
21280 | eval library_names=\"$acl_library_names_spec\" | |
21281 | for f in $library_names; do | |
21282 | if test -f "$dir/$f"; then | |
21283 | found_dir="$dir" | |
21284 | found_so="$dir/$f" | |
21285 | break | |
21286 | fi | |
21287 | done | |
21288 | fi | |
21289 | fi | |
21290 | fi | |
21291 | if test "X$found_dir" = "X"; then | |
21292 | if test -f "$dir/$libname.$acl_libext"; then | |
21293 | found_dir="$dir" | |
21294 | found_a="$dir/$libname.$acl_libext" | |
21295 | fi | |
21296 | fi | |
21297 | if test "X$found_dir" != "X"; then | |
21298 | if test -f "$dir/$libname.la"; then | |
21299 | found_la="$dir/$libname.la" | |
21300 | fi | |
21301 | fi | |
21302 | fi | |
21303 | if test "X$found_dir" = "X"; then | |
21304 | for x in $LDFLAGS $LTLIBICONV; do | |
21305 | ||
21306 | acl_save_prefix="$prefix" | |
21307 | prefix="$acl_final_prefix" | |
21308 | acl_save_exec_prefix="$exec_prefix" | |
21309 | exec_prefix="$acl_final_exec_prefix" | |
21310 | eval x=\"$x\" | |
21311 | exec_prefix="$acl_save_exec_prefix" | |
21312 | prefix="$acl_save_prefix" | |
21313 | ||
21314 | case "$x" in | |
21315 | -L*) | |
21316 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
21317 | if test -n "$acl_shlibext"; then | |
21318 | if test -f "$dir/$libname$shrext"; then | |
21319 | found_dir="$dir" | |
21320 | found_so="$dir/$libname$shrext" | |
21321 | else | |
21322 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
21323 | ver=`(cd "$dir" && \ | |
21324 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
21325 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
21326 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
21327 | | sed 1q ) 2>/dev/null` | |
21328 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
21329 | found_dir="$dir" | |
21330 | found_so="$dir/$libname$shrext.$ver" | |
21331 | fi | |
21332 | else | |
21333 | eval library_names=\"$acl_library_names_spec\" | |
21334 | for f in $library_names; do | |
21335 | if test -f "$dir/$f"; then | |
21336 | found_dir="$dir" | |
21337 | found_so="$dir/$f" | |
21338 | break | |
21339 | fi | |
21340 | done | |
21341 | fi | |
21342 | fi | |
21343 | fi | |
21344 | if test "X$found_dir" = "X"; then | |
21345 | if test -f "$dir/$libname.$acl_libext"; then | |
21346 | found_dir="$dir" | |
21347 | found_a="$dir/$libname.$acl_libext" | |
21348 | fi | |
21349 | fi | |
21350 | if test "X$found_dir" != "X"; then | |
21351 | if test -f "$dir/$libname.la"; then | |
21352 | found_la="$dir/$libname.la" | |
21353 | fi | |
21354 | fi | |
21355 | ;; | |
21356 | esac | |
21357 | if test "X$found_dir" != "X"; then | |
21358 | break | |
21359 | fi | |
21360 | done | |
21361 | fi | |
21362 | if test "X$found_dir" != "X"; then | |
21363 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
21364 | if test "X$found_so" != "X"; then | |
12833ad8 JF |
21365 | if test "$enable_rpath" = no \ |
21366 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
21367 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
058f1bc8 DWT |
21368 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
21369 | else | |
21370 | haveit= | |
21371 | for x in $ltrpathdirs; do | |
21372 | if test "X$x" = "X$found_dir"; then | |
21373 | haveit=yes | |
21374 | break | |
21375 | fi | |
21376 | done | |
21377 | if test -z "$haveit"; then | |
21378 | ltrpathdirs="$ltrpathdirs $found_dir" | |
21379 | fi | |
21380 | if test "$acl_hardcode_direct" = yes; then | |
21381 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21382 | else | |
21383 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
21384 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21385 | haveit= | |
21386 | for x in $rpathdirs; do | |
21387 | if test "X$x" = "X$found_dir"; then | |
21388 | haveit=yes | |
21389 | break | |
21390 | fi | |
21391 | done | |
21392 | if test -z "$haveit"; then | |
21393 | rpathdirs="$rpathdirs $found_dir" | |
21394 | fi | |
21395 | else | |
21396 | haveit= | |
21397 | for x in $LDFLAGS $LIBICONV; do | |
21398 | ||
21399 | acl_save_prefix="$prefix" | |
21400 | prefix="$acl_final_prefix" | |
21401 | acl_save_exec_prefix="$exec_prefix" | |
21402 | exec_prefix="$acl_final_exec_prefix" | |
21403 | eval x=\"$x\" | |
21404 | exec_prefix="$acl_save_exec_prefix" | |
21405 | prefix="$acl_save_prefix" | |
21406 | ||
21407 | if test "X$x" = "X-L$found_dir"; then | |
21408 | haveit=yes | |
21409 | break | |
21410 | fi | |
21411 | done | |
21412 | if test -z "$haveit"; then | |
21413 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
21414 | fi | |
21415 | if test "$acl_hardcode_minus_L" != no; then | |
21416 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21417 | else | |
21418 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
21419 | fi | |
21420 | fi | |
21421 | fi | |
21422 | fi | |
21423 | else | |
21424 | if test "X$found_a" != "X"; then | |
21425 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
21426 | else | |
21427 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
21428 | fi | |
21429 | fi | |
21430 | additional_includedir= | |
21431 | case "$found_dir" in | |
21432 | */$acl_libdirstem | */$acl_libdirstem/) | |
21433 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
12833ad8 JF |
21434 | if test "$name" = 'iconv'; then |
21435 | LIBICONV_PREFIX="$basedir" | |
21436 | fi | |
21437 | additional_includedir="$basedir/include" | |
21438 | ;; | |
21439 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
21440 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
21441 | if test "$name" = 'iconv'; then | |
21442 | LIBICONV_PREFIX="$basedir" | |
21443 | fi | |
058f1bc8 DWT |
21444 | additional_includedir="$basedir/include" |
21445 | ;; | |
21446 | esac | |
21447 | if test "X$additional_includedir" != "X"; then | |
21448 | if test "X$additional_includedir" != "X/usr/include"; then | |
21449 | haveit= | |
21450 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
21451 | if test -n "$GCC"; then | |
21452 | case $host_os in | |
21453 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
21454 | esac | |
21455 | fi | |
21456 | fi | |
21457 | if test -z "$haveit"; then | |
21458 | for x in $CPPFLAGS $INCICONV; do | |
21459 | ||
21460 | acl_save_prefix="$prefix" | |
21461 | prefix="$acl_final_prefix" | |
21462 | acl_save_exec_prefix="$exec_prefix" | |
21463 | exec_prefix="$acl_final_exec_prefix" | |
21464 | eval x=\"$x\" | |
21465 | exec_prefix="$acl_save_exec_prefix" | |
21466 | prefix="$acl_save_prefix" | |
21467 | ||
21468 | if test "X$x" = "X-I$additional_includedir"; then | |
21469 | haveit=yes | |
21470 | break | |
21471 | fi | |
21472 | done | |
21473 | if test -z "$haveit"; then | |
21474 | if test -d "$additional_includedir"; then | |
21475 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
21476 | fi | |
21477 | fi | |
21478 | fi | |
21479 | fi | |
21480 | fi | |
21481 | if test -n "$found_la"; then | |
21482 | save_libdir="$libdir" | |
21483 | case "$found_la" in | |
21484 | */* | *\\*) . "$found_la" ;; | |
21485 | *) . "./$found_la" ;; | |
21486 | esac | |
21487 | libdir="$save_libdir" | |
21488 | for dep in $dependency_libs; do | |
21489 | case "$dep" in | |
21490 | -L*) | |
21491 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
12833ad8 JF |
21492 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
21493 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
058f1bc8 | 21494 | haveit= |
12833ad8 JF |
21495 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
21496 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
058f1bc8 DWT |
21497 | if test -n "$GCC"; then |
21498 | case $host_os in | |
21499 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
21500 | esac | |
21501 | fi | |
21502 | fi | |
21503 | if test -z "$haveit"; then | |
21504 | haveit= | |
21505 | for x in $LDFLAGS $LIBICONV; do | |
21506 | ||
21507 | acl_save_prefix="$prefix" | |
21508 | prefix="$acl_final_prefix" | |
21509 | acl_save_exec_prefix="$exec_prefix" | |
21510 | exec_prefix="$acl_final_exec_prefix" | |
21511 | eval x=\"$x\" | |
21512 | exec_prefix="$acl_save_exec_prefix" | |
21513 | prefix="$acl_save_prefix" | |
21514 | ||
21515 | if test "X$x" = "X-L$additional_libdir"; then | |
21516 | haveit=yes | |
21517 | break | |
21518 | fi | |
21519 | done | |
21520 | if test -z "$haveit"; then | |
21521 | if test -d "$additional_libdir"; then | |
21522 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
21523 | fi | |
21524 | fi | |
21525 | haveit= | |
21526 | for x in $LDFLAGS $LTLIBICONV; do | |
21527 | ||
21528 | acl_save_prefix="$prefix" | |
21529 | prefix="$acl_final_prefix" | |
21530 | acl_save_exec_prefix="$exec_prefix" | |
21531 | exec_prefix="$acl_final_exec_prefix" | |
21532 | eval x=\"$x\" | |
21533 | exec_prefix="$acl_save_exec_prefix" | |
21534 | prefix="$acl_save_prefix" | |
21535 | ||
21536 | if test "X$x" = "X-L$additional_libdir"; then | |
21537 | haveit=yes | |
21538 | break | |
21539 | fi | |
21540 | done | |
21541 | if test -z "$haveit"; then | |
21542 | if test -d "$additional_libdir"; then | |
21543 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
21544 | fi | |
21545 | fi | |
21546 | fi | |
21547 | fi | |
21548 | ;; | |
21549 | -R*) | |
21550 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
21551 | if test "$enable_rpath" != no; then | |
21552 | haveit= | |
21553 | for x in $rpathdirs; do | |
21554 | if test "X$x" = "X$dir"; then | |
21555 | haveit=yes | |
21556 | break | |
21557 | fi | |
21558 | done | |
21559 | if test -z "$haveit"; then | |
21560 | rpathdirs="$rpathdirs $dir" | |
21561 | fi | |
21562 | haveit= | |
21563 | for x in $ltrpathdirs; do | |
21564 | if test "X$x" = "X$dir"; then | |
21565 | haveit=yes | |
21566 | break | |
21567 | fi | |
21568 | done | |
21569 | if test -z "$haveit"; then | |
21570 | ltrpathdirs="$ltrpathdirs $dir" | |
21571 | fi | |
21572 | fi | |
21573 | ;; | |
21574 | -l*) | |
21575 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
21576 | ;; | |
21577 | *.la) | |
21578 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
21579 | ;; | |
21580 | *) | |
21581 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
21582 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
21583 | ;; | |
21584 | esac | |
21585 | done | |
21586 | fi | |
21587 | else | |
21588 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
21589 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
21590 | fi | |
21591 | fi | |
21592 | fi | |
21593 | done | |
21594 | done | |
21595 | if test "X$rpathdirs" != "X"; then | |
21596 | if test -n "$acl_hardcode_libdir_separator"; then | |
21597 | alldirs= | |
21598 | for found_dir in $rpathdirs; do | |
21599 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
21600 | done | |
21601 | acl_save_libdir="$libdir" | |
21602 | libdir="$alldirs" | |
21603 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
21604 | libdir="$acl_save_libdir" | |
21605 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
21606 | else | |
21607 | for found_dir in $rpathdirs; do | |
21608 | acl_save_libdir="$libdir" | |
21609 | libdir="$found_dir" | |
21610 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
21611 | libdir="$acl_save_libdir" | |
21612 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
21613 | done | |
21614 | fi | |
21615 | fi | |
21616 | if test "X$ltrpathdirs" != "X"; then | |
21617 | for found_dir in $ltrpathdirs; do | |
21618 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
21619 | done | |
21620 | fi | |
21621 | ||
21622 | ||
21623 | ||
21624 | ||
21625 | ||
21626 | ||
21627 | ||
058f1bc8 | 21628 | |
66170b30 | 21629 | done |
058f1bc8 DWT |
21630 | ;; |
21631 | esac | |
21632 | case $am_cv_func_iconv in #( | |
21633 | yes) : | |
21634 | ;; #( | |
21635 | *) : | |
66170b30 | 21636 | as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;; |
058f1bc8 DWT |
21637 | esac |
21638 | ac_ext=cpp | |
21639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21643 | ||
66170b30 JF |
21644 | |
21645 | ||
9777bd50 JF |
21646 | SO=$acl_shlibext |
21647 | ||
e1cce270 | 21648 | |
66170b30 | 21649 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |
ee134472 | 21650 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : |
e1cce270 | 21651 | |
66170b30 | 21652 | if test -n "$ac_tool_prefix"; then |
a243b558 | 21653 | for ac_prog in lipo |
794e88e7 DWT |
21654 | do |
21655 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
21656 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
21657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21658 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21659 | if ${ac_cv_prog__LIPO+:} false; then : |
794e88e7 DWT |
21660 | $as_echo_n "(cached) " >&6 |
21661 | else | |
a243b558 JF |
21662 | if test -n "$_LIPO"; then |
21663 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
794e88e7 DWT |
21664 | else |
21665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21666 | for as_dir in $PATH | |
21667 | do | |
21668 | IFS=$as_save_IFS | |
21669 | test -z "$as_dir" && as_dir=. | |
21670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21672 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
21673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21674 | break 2 | |
21675 | fi | |
21676 | done | |
21677 | done | |
21678 | IFS=$as_save_IFS | |
21679 | ||
21680 | fi | |
21681 | fi | |
a243b558 JF |
21682 | _LIPO=$ac_cv_prog__LIPO |
21683 | if test -n "$_LIPO"; then | |
21684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
21685 | $as_echo "$_LIPO" >&6; } | |
794e88e7 DWT |
21686 | else |
21687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21688 | $as_echo "no" >&6; } | |
21689 | fi | |
21690 | ||
21691 | ||
a243b558 | 21692 | test -n "$_LIPO" && break |
794e88e7 DWT |
21693 | done |
21694 | fi | |
a243b558 JF |
21695 | if test -z "$_LIPO"; then |
21696 | ac_ct__LIPO=$_LIPO | |
21697 | for ac_prog in lipo | |
794e88e7 DWT |
21698 | do |
21699 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21700 | set dummy $ac_prog; ac_word=$2 | |
21701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21702 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21703 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : |
794e88e7 DWT |
21704 | $as_echo_n "(cached) " >&6 |
21705 | else | |
a243b558 JF |
21706 | if test -n "$ac_ct__LIPO"; then |
21707 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
794e88e7 DWT |
21708 | else |
21709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21710 | for as_dir in $PATH | |
21711 | do | |
21712 | IFS=$as_save_IFS | |
21713 | test -z "$as_dir" && as_dir=. | |
21714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21716 | ac_cv_prog_ac_ct__LIPO="$ac_prog" |
794e88e7 DWT |
21717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21718 | break 2 | |
21719 | fi | |
21720 | done | |
21721 | done | |
21722 | IFS=$as_save_IFS | |
21723 | ||
21724 | fi | |
21725 | fi | |
a243b558 JF |
21726 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO |
21727 | if test -n "$ac_ct__LIPO"; then | |
21728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
21729 | $as_echo "$ac_ct__LIPO" >&6; } | |
794e88e7 DWT |
21730 | else |
21731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21732 | $as_echo "no" >&6; } | |
21733 | fi | |
21734 | ||
21735 | ||
a243b558 | 21736 | test -n "$ac_ct__LIPO" && break |
794e88e7 DWT |
21737 | done |
21738 | ||
a243b558 JF |
21739 | if test "x$ac_ct__LIPO" = x; then |
21740 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
794e88e7 DWT |
21741 | else |
21742 | case $cross_compiling:$ac_tool_warned in | |
21743 | yes:) | |
21744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
21745 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
21746 | ac_tool_warned=yes ;; | |
e1cce270 | 21747 | esac |
a243b558 | 21748 | _LIPO=$ac_ct__LIPO |
794e88e7 DWT |
21749 | fi |
21750 | fi | |
21751 | ||
66170b30 | 21752 | if test -n "$ac_tool_prefix"; then |
a243b558 | 21753 | for ac_prog in nm |
794e88e7 DWT |
21754 | do |
21755 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
21756 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
21757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21758 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21759 | if ${ac_cv_prog__NM+:} false; then : |
794e88e7 DWT |
21760 | $as_echo_n "(cached) " >&6 |
21761 | else | |
a243b558 JF |
21762 | if test -n "$_NM"; then |
21763 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
794e88e7 DWT |
21764 | else |
21765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21766 | for as_dir in $PATH | |
21767 | do | |
21768 | IFS=$as_save_IFS | |
21769 | test -z "$as_dir" && as_dir=. | |
21770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21772 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
21773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21774 | break 2 | |
21775 | fi | |
21776 | done | |
21777 | done | |
21778 | IFS=$as_save_IFS | |
21779 | ||
21780 | fi | |
21781 | fi | |
a243b558 JF |
21782 | _NM=$ac_cv_prog__NM |
21783 | if test -n "$_NM"; then | |
21784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
21785 | $as_echo "$_NM" >&6; } | |
794e88e7 DWT |
21786 | else |
21787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21788 | $as_echo "no" >&6; } | |
21789 | fi | |
21790 | ||
21791 | ||
a243b558 | 21792 | test -n "$_NM" && break |
794e88e7 DWT |
21793 | done |
21794 | fi | |
a243b558 JF |
21795 | if test -z "$_NM"; then |
21796 | ac_ct__NM=$_NM | |
21797 | for ac_prog in nm | |
794e88e7 DWT |
21798 | do |
21799 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21800 | set dummy $ac_prog; ac_word=$2 | |
21801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21802 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21803 | if ${ac_cv_prog_ac_ct__NM+:} false; then : |
794e88e7 DWT |
21804 | $as_echo_n "(cached) " >&6 |
21805 | else | |
a243b558 JF |
21806 | if test -n "$ac_ct__NM"; then |
21807 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
794e88e7 DWT |
21808 | else |
21809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21810 | for as_dir in $PATH | |
21811 | do | |
21812 | IFS=$as_save_IFS | |
21813 | test -z "$as_dir" && as_dir=. | |
21814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21816 | ac_cv_prog_ac_ct__NM="$ac_prog" |
794e88e7 DWT |
21817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21818 | break 2 | |
21819 | fi | |
21820 | done | |
21821 | done | |
21822 | IFS=$as_save_IFS | |
21823 | ||
21824 | fi | |
21825 | fi | |
a243b558 JF |
21826 | ac_ct__NM=$ac_cv_prog_ac_ct__NM |
21827 | if test -n "$ac_ct__NM"; then | |
21828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
21829 | $as_echo "$ac_ct__NM" >&6; } | |
794e88e7 DWT |
21830 | else |
21831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21832 | $as_echo "no" >&6; } | |
21833 | fi | |
21834 | ||
21835 | ||
a243b558 | 21836 | test -n "$ac_ct__NM" && break |
794e88e7 DWT |
21837 | done |
21838 | ||
a243b558 JF |
21839 | if test "x$ac_ct__NM" = x; then |
21840 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
794e88e7 DWT |
21841 | else |
21842 | case $cross_compiling:$ac_tool_warned in | |
21843 | yes:) | |
21844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
21845 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
21846 | ac_tool_warned=yes ;; | |
21847 | esac | |
a243b558 | 21848 | _NM=$ac_ct__NM |
794e88e7 DWT |
21849 | fi |
21850 | fi | |
21851 | ||
66170b30 | 21852 | if test -n "$ac_tool_prefix"; then |
a243b558 | 21853 | for ac_prog in otool |
794e88e7 DWT |
21854 | do |
21855 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
21856 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
21857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21858 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21859 | if ${ac_cv_prog__OTOOL+:} false; then : |
794e88e7 DWT |
21860 | $as_echo_n "(cached) " >&6 |
21861 | else | |
a243b558 JF |
21862 | if test -n "$_OTOOL"; then |
21863 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
794e88e7 DWT |
21864 | else |
21865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21866 | for as_dir in $PATH | |
21867 | do | |
21868 | IFS=$as_save_IFS | |
21869 | test -z "$as_dir" && as_dir=. | |
21870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21872 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
21873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21874 | break 2 | |
21875 | fi | |
21876 | done | |
21877 | done | |
21878 | IFS=$as_save_IFS | |
21879 | ||
21880 | fi | |
21881 | fi | |
a243b558 JF |
21882 | _OTOOL=$ac_cv_prog__OTOOL |
21883 | if test -n "$_OTOOL"; then | |
21884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
21885 | $as_echo "$_OTOOL" >&6; } | |
794e88e7 DWT |
21886 | else |
21887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21888 | $as_echo "no" >&6; } | |
21889 | fi | |
21890 | ||
21891 | ||
a243b558 | 21892 | test -n "$_OTOOL" && break |
794e88e7 DWT |
21893 | done |
21894 | fi | |
a243b558 JF |
21895 | if test -z "$_OTOOL"; then |
21896 | ac_ct__OTOOL=$_OTOOL | |
21897 | for ac_prog in otool | |
794e88e7 DWT |
21898 | do |
21899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21900 | set dummy $ac_prog; ac_word=$2 | |
21901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21902 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 21903 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : |
794e88e7 DWT |
21904 | $as_echo_n "(cached) " >&6 |
21905 | else | |
a243b558 JF |
21906 | if test -n "$ac_ct__OTOOL"; then |
21907 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
794e88e7 DWT |
21908 | else |
21909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21910 | for as_dir in $PATH | |
21911 | do | |
21912 | IFS=$as_save_IFS | |
21913 | test -z "$as_dir" && as_dir=. | |
21914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 21915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 21916 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" |
794e88e7 DWT |
21917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21918 | break 2 | |
21919 | fi | |
21920 | done | |
21921 | done | |
21922 | IFS=$as_save_IFS | |
21923 | ||
21924 | fi | |
21925 | fi | |
a243b558 JF |
21926 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL |
21927 | if test -n "$ac_ct__OTOOL"; then | |
21928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
21929 | $as_echo "$ac_ct__OTOOL" >&6; } | |
794e88e7 DWT |
21930 | else |
21931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21932 | $as_echo "no" >&6; } | |
21933 | fi | |
21934 | ||
21935 | ||
a243b558 | 21936 | test -n "$ac_ct__OTOOL" && break |
794e88e7 DWT |
21937 | done |
21938 | ||
a243b558 JF |
21939 | if test "x$ac_ct__OTOOL" = x; then |
21940 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
794e88e7 DWT |
21941 | else |
21942 | case $cross_compiling:$ac_tool_warned in | |
21943 | yes:) | |
21944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
21945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
21946 | ac_tool_warned=yes ;; | |
21947 | esac | |
a243b558 | 21948 | _OTOOL=$ac_ct__OTOOL |
794e88e7 DWT |
21949 | fi |
21950 | fi | |
21951 | ||
66170b30 | 21952 | CY_MACH=1 |
794e88e7 | 21953 | |
66170b30 | 21954 | CY_ATTACH_GROUP=procmod |
794e88e7 | 21955 | |
e1cce270 DWT |
21956 | |
21957 | fi | |
21958 | ||
21959 | ||
21960 | ||
a243b558 JF |
21961 | if test "x$CY_MACH" = x1; then |
21962 | CY_MACH_TRUE= | |
21963 | CY_MACH_FALSE='#' | |
21964 | else | |
21965 | CY_MACH_TRUE='#' | |
21966 | CY_MACH_FALSE= | |
47aaa820 | 21967 | fi |
9c60689e | 21968 | |
66170b30 | 21969 | |
a243b558 JF |
21970 | ac_config_files="$ac_config_files Makefile" |
21971 | ||
9c60689e DWT |
21972 | cat >confcache <<\_ACEOF |
21973 | # This file is a shell script that caches the results of configure | |
21974 | # tests run on this system so they can be shared between configure | |
21975 | # scripts and configure runs, see configure's option --config-cache. | |
21976 | # It is not useful on other systems. If it contains results you don't | |
21977 | # want to keep, you may remove or edit it. | |
21978 | # | |
21979 | # config.status only pays attention to the cache file if you give it | |
21980 | # the --recheck option to rerun configure. | |
21981 | # | |
21982 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21983 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21984 | # following values. | |
21985 | ||
21986 | _ACEOF | |
21987 | ||
21988 | # The following way of writing the cache mishandles newlines in values, | |
21989 | # but we know of no workaround that is simple, portable, and efficient. | |
21990 | # So, we kill variables containing newlines. | |
21991 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21992 | # and sets the high bit in the cache file unless we assign to the vars. | |
21993 | ( | |
21994 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21995 | eval ac_val=\$$ac_var | |
21996 | case $ac_val in #( | |
21997 | *${as_nl}*) | |
21998 | case $ac_var in #( | |
21999 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
22000 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
22001 | esac | |
22002 | case $ac_var in #( | |
22003 | _ | IFS | as_nl) ;; #( | |
22004 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
22005 | *) { eval $ac_var=; unset $ac_var;} ;; | |
22006 | esac ;; | |
22007 | esac | |
22008 | done | |
22009 | ||
22010 | (set) 2>&1 | | |
22011 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
22012 | *${as_nl}ac_space=\ *) | |
22013 | # `set' does not quote correctly, so add quotes: double-quote | |
22014 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
22015 | sed -n \ | |
22016 | "s/'/'\\\\''/g; | |
22017 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
22018 | ;; #( | |
22019 | *) | |
22020 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22021 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
22022 | ;; | |
22023 | esac | | |
22024 | sort | |
22025 | ) | | |
22026 | sed ' | |
22027 | /^ac_cv_env_/b end | |
22028 | t clear | |
22029 | :clear | |
22030 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22031 | t end | |
22032 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22033 | :end' >>confcache | |
22034 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
22035 | if test -w "$cache_file"; then | |
ee134472 | 22036 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
22037 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
22038 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
22039 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
22040 | cat confcache >"$cache_file" | |
22041 | else | |
22042 | case $cache_file in #( | |
22043 | */* | ?:*) | |
22044 | mv -f confcache "$cache_file"$$ && | |
22045 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
22046 | *) | |
22047 | mv -f confcache "$cache_file" ;; | |
22048 | esac | |
22049 | fi | |
22050 | fi | |
9c60689e DWT |
22051 | else |
22052 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
22053 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
22054 | fi | |
22055 | fi | |
22056 | rm -f confcache | |
22057 | ||
22058 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22059 | # Let make expand exec_prefix. | |
22060 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22061 | ||
22062 | # Transform confdefs.h into DEFS. | |
22063 | # Protect against shell expansion while executing Makefile rules. | |
22064 | # Protect against Makefile macro expansion. | |
22065 | # | |
22066 | # If the first sed substitution is executed (which looks for macros that | |
22067 | # take arguments), then branch to the quote section. Otherwise, | |
22068 | # look for a macro that doesn't take arguments. | |
22069 | ac_script=' | |
22070 | :mline | |
22071 | /\\$/{ | |
22072 | N | |
22073 | s,\\\n,, | |
22074 | b mline | |
22075 | } | |
22076 | t clear | |
22077 | :clear | |
22078 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
22079 | t quote | |
22080 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
22081 | t quote | |
22082 | b any | |
22083 | :quote | |
22084 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
22085 | s/\[/\\&/g | |
22086 | s/\]/\\&/g | |
22087 | s/\$/$$/g | |
22088 | H | |
22089 | :any | |
22090 | ${ | |
22091 | g | |
22092 | s/^\n// | |
22093 | s/\n/ /g | |
22094 | p | |
22095 | } | |
22096 | ' | |
22097 | DEFS=`sed -n "$ac_script" confdefs.h` | |
22098 | ||
22099 | ||
22100 | ac_libobjs= | |
22101 | ac_ltlibobjs= | |
12833ad8 | 22102 | U= |
9c60689e DWT |
22103 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
22104 | # 1. Remove the extension, and $U if already installed. | |
22105 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
22106 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
22107 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
22108 | # will be set to the directory where LIBOBJS objects are built. | |
22109 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
22110 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
22111 | done | |
22112 | LIBOBJS=$ac_libobjs | |
22113 | ||
22114 | LTLIBOBJS=$ac_ltlibobjs | |
22115 | ||
22116 | ||
66170b30 JF |
22117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
22118 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
22119 | if test -n "$am_sleep_pid"; then | |
22120 | # Hide warnings about reused PIDs. | |
22121 | wait $am_sleep_pid 2>/dev/null | |
22122 | fi | |
22123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
22124 | $as_echo "done" >&6; } | |
22125 | if test -n "$EXEEXT"; then | |
22126 | am__EXEEXT_TRUE= | |
22127 | am__EXEEXT_FALSE='#' | |
22128 | else | |
22129 | am__EXEEXT_TRUE='#' | |
22130 | am__EXEEXT_FALSE= | |
22131 | fi | |
22132 | ||
22133 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
22134 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
22135 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22136 | fi | |
66170b30 JF |
22137 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
22138 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
22139 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22140 | fi | |
22141 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
22142 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
22143 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22144 | fi | |
a243b558 JF |
22145 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22146 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
22147 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22148 | fi | |
22149 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then | |
22150 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
22151 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22152 | fi | |
22153 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
22154 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
22155 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22156 | fi | |
22157 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
22158 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
22159 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22160 | fi | |
9c60689e | 22161 | |
ee134472 | 22162 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
22163 | ac_write_fail=0 |
22164 | ac_clean_files_save=$ac_clean_files | |
22165 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22166 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
22167 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22168 | as_write_fail=0 | |
22169 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
22170 | #! $SHELL | |
22171 | # Generated by $as_me. | |
22172 | # Run this file to recreate the current configuration. | |
22173 | # Compiler output produced by configure, useful for debugging | |
22174 | # configure, is in config.log if it exists. | |
22175 | ||
22176 | debug=false | |
22177 | ac_cs_recheck=false | |
22178 | ac_cs_silent=false | |
22179 | ||
22180 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22181 | export SHELL | |
22182 | _ASEOF | |
22183 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
22184 | ## -------------------- ## | |
22185 | ## M4sh Initialization. ## | |
22186 | ## -------------------- ## | |
22187 | ||
22188 | # Be more Bourne compatible | |
22189 | DUALCASE=1; export DUALCASE # for MKS sh | |
22190 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22191 | emulate sh | |
22192 | NULLCMD=: | |
22193 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
22194 | # is contrary to our usage. Disable this feature. | |
22195 | alias -g '${1+"$@"}'='"$@"' | |
22196 | setopt NO_GLOB_SUBST | |
22197 | else | |
22198 | case `(set -o) 2>/dev/null` in #( | |
22199 | *posix*) : | |
22200 | set -o posix ;; #( | |
22201 | *) : | |
22202 | ;; | |
22203 | esac | |
22204 | fi | |
22205 | ||
22206 | ||
22207 | as_nl=' | |
22208 | ' | |
22209 | export as_nl | |
22210 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
22211 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
22212 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
22213 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
22214 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
22215 | # but without wasting forks for bash or zsh. | |
22216 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
22217 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22218 | as_echo='print -r --' | |
22219 | as_echo_n='print -rn --' | |
22220 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22221 | as_echo='printf %s\n' | |
22222 | as_echo_n='printf %s' | |
22223 | else | |
22224 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
22225 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
22226 | as_echo_n='/usr/ucb/echo -n' | |
22227 | else | |
22228 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
22229 | as_echo_n_body='eval | |
22230 | arg=$1; | |
22231 | case $arg in #( | |
22232 | *"$as_nl"*) | |
22233 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
22234 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
22235 | esac; | |
22236 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
22237 | ' | |
22238 | export as_echo_n_body | |
22239 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
22240 | fi | |
22241 | export as_echo_body | |
22242 | as_echo='sh -c $as_echo_body as_echo' | |
22243 | fi | |
22244 | ||
22245 | # The user is always right. | |
22246 | if test "${PATH_SEPARATOR+set}" != set; then | |
22247 | PATH_SEPARATOR=: | |
22248 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
22249 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
22250 | PATH_SEPARATOR=';' | |
22251 | } | |
22252 | fi | |
22253 | ||
22254 | ||
22255 | # IFS | |
22256 | # We need space, tab and new line, in precisely that order. Quoting is | |
22257 | # there to prevent editors from complaining about space-tab. | |
22258 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
22259 | # splitting by setting IFS to empty value.) | |
22260 | IFS=" "" $as_nl" | |
22261 | ||
22262 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 22263 | as_myself= |
9c60689e DWT |
22264 | case $0 in #(( |
22265 | *[\\/]* ) as_myself=$0 ;; | |
22266 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22267 | for as_dir in $PATH | |
22268 | do | |
22269 | IFS=$as_save_IFS | |
22270 | test -z "$as_dir" && as_dir=. | |
22271 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22272 | done | |
22273 | IFS=$as_save_IFS | |
22274 | ||
22275 | ;; | |
22276 | esac | |
22277 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22278 | # in which case we are not to be found in the path. | |
22279 | if test "x$as_myself" = x; then | |
22280 | as_myself=$0 | |
22281 | fi | |
22282 | if test ! -f "$as_myself"; then | |
22283 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
22284 | exit 1 | |
22285 | fi | |
22286 | ||
22287 | # Unset variables that we do not need and which cause bugs (e.g. in | |
22288 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
22289 | # suppresses any "Segmentation fault" message there. '((' could | |
22290 | # trigger a bug in pdksh 5.2.14. | |
22291 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
22292 | do eval test x\${$as_var+set} = xset \ | |
22293 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
22294 | done | |
22295 | PS1='$ ' | |
22296 | PS2='> ' | |
22297 | PS4='+ ' | |
22298 | ||
22299 | # NLS nuisances. | |
22300 | LC_ALL=C | |
22301 | export LC_ALL | |
22302 | LANGUAGE=C | |
22303 | export LANGUAGE | |
22304 | ||
22305 | # CDPATH. | |
22306 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22307 | ||
22308 | ||
12833ad8 JF |
22309 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
22310 | # ---------------------------------------- | |
9c60689e DWT |
22311 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
22312 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 22313 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
22314 | as_fn_error () |
22315 | { | |
12833ad8 JF |
22316 | as_status=$1; test $as_status -eq 0 && as_status=1 |
22317 | if test "$4"; then | |
22318 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22319 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 22320 | fi |
12833ad8 | 22321 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
22322 | as_fn_exit $as_status |
22323 | } # as_fn_error | |
22324 | ||
22325 | ||
22326 | # as_fn_set_status STATUS | |
22327 | # ----------------------- | |
22328 | # Set $? to STATUS, without forking. | |
22329 | as_fn_set_status () | |
22330 | { | |
22331 | return $1 | |
22332 | } # as_fn_set_status | |
22333 | ||
22334 | # as_fn_exit STATUS | |
22335 | # ----------------- | |
22336 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
22337 | as_fn_exit () | |
22338 | { | |
22339 | set +e | |
22340 | as_fn_set_status $1 | |
22341 | exit $1 | |
22342 | } # as_fn_exit | |
22343 | ||
22344 | # as_fn_unset VAR | |
22345 | # --------------- | |
22346 | # Portably unset VAR. | |
22347 | as_fn_unset () | |
22348 | { | |
22349 | { eval $1=; unset $1;} | |
22350 | } | |
22351 | as_unset=as_fn_unset | |
22352 | # as_fn_append VAR VALUE | |
22353 | # ---------------------- | |
22354 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
22355 | # advantage of any shell optimizations that allow amortized linear growth over | |
22356 | # repeated appends, instead of the typical quadratic growth present in naive | |
22357 | # implementations. | |
22358 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
22359 | eval 'as_fn_append () | |
22360 | { | |
22361 | eval $1+=\$2 | |
22362 | }' | |
22363 | else | |
22364 | as_fn_append () | |
22365 | { | |
22366 | eval $1=\$$1\$2 | |
22367 | } | |
22368 | fi # as_fn_append | |
22369 | ||
22370 | # as_fn_arith ARG... | |
22371 | # ------------------ | |
22372 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
22373 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
22374 | # must be portable across $(()) and expr. | |
22375 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
22376 | eval 'as_fn_arith () | |
22377 | { | |
22378 | as_val=$(( $* )) | |
22379 | }' | |
22380 | else | |
22381 | as_fn_arith () | |
22382 | { | |
22383 | as_val=`expr "$@" || test $? -eq 1` | |
22384 | } | |
22385 | fi # as_fn_arith | |
22386 | ||
22387 | ||
22388 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
22389 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
22390 | as_expr=expr | |
22391 | else | |
22392 | as_expr=false | |
22393 | fi | |
22394 | ||
22395 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
22396 | as_basename=basename | |
22397 | else | |
22398 | as_basename=false | |
22399 | fi | |
22400 | ||
22401 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
22402 | as_dirname=dirname | |
22403 | else | |
22404 | as_dirname=false | |
22405 | fi | |
22406 | ||
22407 | as_me=`$as_basename -- "$0" || | |
22408 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22409 | X"$0" : 'X\(//\)$' \| \ | |
22410 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
22411 | $as_echo X/"$0" | | |
22412 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
22413 | s//\1/ | |
22414 | q | |
22415 | } | |
22416 | /^X\/\(\/\/\)$/{ | |
22417 | s//\1/ | |
22418 | q | |
22419 | } | |
22420 | /^X\/\(\/\).*/{ | |
22421 | s//\1/ | |
22422 | q | |
22423 | } | |
22424 | s/.*/./; q'` | |
22425 | ||
22426 | # Avoid depending upon Character Ranges. | |
22427 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22428 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22429 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22430 | as_cr_digits='0123456789' | |
22431 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22432 | ||
22433 | ECHO_C= ECHO_N= ECHO_T= | |
22434 | case `echo -n x` in #((((( | |
22435 | -n*) | |
22436 | case `echo 'xy\c'` in | |
22437 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
22438 | xy) ECHO_C='\c';; | |
22439 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
22440 | ECHO_T=' ';; | |
22441 | esac;; | |
22442 | *) | |
22443 | ECHO_N='-n';; | |
22444 | esac | |
22445 | ||
22446 | rm -f conf$$ conf$$.exe conf$$.file | |
22447 | if test -d conf$$.dir; then | |
22448 | rm -f conf$$.dir/conf$$.file | |
22449 | else | |
22450 | rm -f conf$$.dir | |
22451 | mkdir conf$$.dir 2>/dev/null | |
22452 | fi | |
22453 | if (echo >conf$$.file) 2>/dev/null; then | |
22454 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22455 | as_ln_s='ln -s' | |
22456 | # ... but there are two gotchas: | |
22457 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
22458 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 22459 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 22460 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 22461 | as_ln_s='cp -pR' |
9c60689e DWT |
22462 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22463 | as_ln_s=ln | |
22464 | else | |
53ba6704 | 22465 | as_ln_s='cp -pR' |
9c60689e DWT |
22466 | fi |
22467 | else | |
53ba6704 | 22468 | as_ln_s='cp -pR' |
9c60689e DWT |
22469 | fi |
22470 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
22471 | rmdir conf$$.dir 2>/dev/null | |
22472 | ||
22473 | ||
22474 | # as_fn_mkdir_p | |
22475 | # ------------- | |
22476 | # Create "$as_dir" as a directory, including parents if necessary. | |
22477 | as_fn_mkdir_p () | |
22478 | { | |
22479 | ||
22480 | case $as_dir in #( | |
22481 | -*) as_dir=./$as_dir;; | |
22482 | esac | |
22483 | test -d "$as_dir" || eval $as_mkdir_p || { | |
22484 | as_dirs= | |
22485 | while :; do | |
22486 | case $as_dir in #( | |
22487 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
22488 | *) as_qdir=$as_dir;; | |
22489 | esac | |
22490 | as_dirs="'$as_qdir' $as_dirs" | |
22491 | as_dir=`$as_dirname -- "$as_dir" || | |
22492 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22493 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22494 | X"$as_dir" : 'X\(//\)$' \| \ | |
22495 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22496 | $as_echo X"$as_dir" | | |
22497 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22498 | s//\1/ | |
22499 | q | |
22500 | } | |
22501 | /^X\(\/\/\)[^/].*/{ | |
22502 | s//\1/ | |
22503 | q | |
22504 | } | |
22505 | /^X\(\/\/\)$/{ | |
22506 | s//\1/ | |
22507 | q | |
22508 | } | |
22509 | /^X\(\/\).*/{ | |
22510 | s//\1/ | |
22511 | q | |
22512 | } | |
22513 | s/.*/./; q'` | |
22514 | test -d "$as_dir" && break | |
22515 | done | |
22516 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 22517 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
22518 | |
22519 | ||
22520 | } # as_fn_mkdir_p | |
22521 | if mkdir -p . 2>/dev/null; then | |
22522 | as_mkdir_p='mkdir -p "$as_dir"' | |
22523 | else | |
22524 | test -d ./-p && rmdir ./-p | |
22525 | as_mkdir_p=false | |
22526 | fi | |
22527 | ||
53ba6704 JF |
22528 | |
22529 | # as_fn_executable_p FILE | |
22530 | # ----------------------- | |
22531 | # Test if FILE is an executable regular file. | |
22532 | as_fn_executable_p () | |
22533 | { | |
22534 | test -f "$1" && test -x "$1" | |
22535 | } # as_fn_executable_p | |
22536 | as_test_x='test -x' | |
22537 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
22538 | |
22539 | # Sed expression to map a string onto a valid CPP name. | |
22540 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22541 | ||
22542 | # Sed expression to map a string onto a valid variable name. | |
22543 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22544 | ||
22545 | ||
22546 | exec 6>&1 | |
22547 | ## ----------------------------------- ## | |
22548 | ## Main body of $CONFIG_STATUS script. ## | |
22549 | ## ----------------------------------- ## | |
22550 | _ASEOF | |
22551 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
22552 | ||
22553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22554 | # Save the log message, to keep $0 and so on meaningful, and to | |
22555 | # report actual input values of CONFIG_FILES etc. instead of their | |
22556 | # values after options handling. | |
22557 | ac_log=" | |
22558 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 22559 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
22560 | |
22561 | CONFIG_FILES = $CONFIG_FILES | |
22562 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22563 | CONFIG_LINKS = $CONFIG_LINKS | |
22564 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22565 | $ $0 $@ | |
22566 | ||
22567 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
22568 | " | |
22569 | ||
22570 | _ACEOF | |
22571 | ||
22572 | case $ac_config_files in *" | |
22573 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
22574 | esac | |
22575 | ||
22576 | ||
22577 | ||
22578 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22579 | # Files that config.status was made for. | |
22580 | config_files="$ac_config_files" | |
22581 | config_commands="$ac_config_commands" | |
22582 | ||
22583 | _ACEOF | |
22584 | ||
22585 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22586 | ac_cs_usage="\ | |
22587 | \`$as_me' instantiates files and other configuration actions | |
22588 | from templates according to the current configuration. Unless the files | |
22589 | and actions are specified as TAGs, all are instantiated by default. | |
22590 | ||
22591 | Usage: $0 [OPTION]... [TAG]... | |
22592 | ||
22593 | -h, --help print this help, then exit | |
22594 | -V, --version print version number and configuration settings, then exit | |
22595 | --config print configuration, then exit | |
22596 | -q, --quiet, --silent | |
22597 | do not print progress messages | |
22598 | -d, --debug don't remove temporary files | |
22599 | --recheck update $as_me by reconfiguring in the same conditions | |
22600 | --file=FILE[:TEMPLATE] | |
22601 | instantiate the configuration file FILE | |
22602 | ||
22603 | Configuration files: | |
22604 | $config_files | |
22605 | ||
22606 | Configuration commands: | |
22607 | $config_commands | |
22608 | ||
22609 | Report bugs to <saurik@saurik.com>. | |
22610 | Cycript home page: <http://www.cycript.org/>." | |
22611 | ||
22612 | _ACEOF | |
22613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22614 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
22615 | ac_cs_version="\\ | |
22616 | Cycript config.status 0.9 | |
53ba6704 | 22617 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
22618 | with options \\"\$ac_cs_config\\" |
22619 | ||
53ba6704 | 22620 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
22621 | This config.status script is free software; the Free Software Foundation |
22622 | gives unlimited permission to copy, distribute and modify it." | |
22623 | ||
22624 | ac_pwd='$ac_pwd' | |
22625 | srcdir='$srcdir' | |
22626 | INSTALL='$INSTALL' | |
66170b30 JF |
22627 | MKDIR_P='$MKDIR_P' |
22628 | AWK='$AWK' | |
9c60689e DWT |
22629 | test -n "\$AWK" || AWK=awk |
22630 | _ACEOF | |
22631 | ||
22632 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22633 | # The default lists apply if the user does not specify any file. | |
22634 | ac_need_defaults=: | |
22635 | while test $# != 0 | |
22636 | do | |
22637 | case $1 in | |
12833ad8 | 22638 | --*=?*) |
9c60689e DWT |
22639 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22640 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
22641 | ac_shift=: | |
22642 | ;; | |
12833ad8 JF |
22643 | --*=) |
22644 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
22645 | ac_optarg= | |
22646 | ac_shift=: | |
22647 | ;; | |
9c60689e DWT |
22648 | *) |
22649 | ac_option=$1 | |
22650 | ac_optarg=$2 | |
22651 | ac_shift=shift | |
22652 | ;; | |
22653 | esac | |
22654 | ||
22655 | case $ac_option in | |
22656 | # Handling of the options. | |
22657 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22658 | ac_cs_recheck=: ;; | |
22659 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
22660 | $as_echo "$ac_cs_version"; exit ;; | |
22661 | --config | --confi | --conf | --con | --co | --c ) | |
22662 | $as_echo "$ac_cs_config"; exit ;; | |
22663 | --debug | --debu | --deb | --de | --d | -d ) | |
22664 | debug=: ;; | |
22665 | --file | --fil | --fi | --f ) | |
22666 | $ac_shift | |
22667 | case $ac_optarg in | |
22668 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 22669 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
22670 | esac |
22671 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
22672 | ac_need_defaults=false;; | |
22673 | --he | --h | --help | --hel | -h ) | |
22674 | $as_echo "$ac_cs_usage"; exit ;; | |
22675 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22676 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22677 | ac_cs_silent=: ;; | |
22678 | ||
22679 | # This is an error. | |
12833ad8 | 22680 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
22681 | Try \`$0 --help' for more information." ;; |
22682 | ||
22683 | *) as_fn_append ac_config_targets " $1" | |
22684 | ac_need_defaults=false ;; | |
22685 | ||
22686 | esac | |
22687 | shift | |
22688 | done | |
22689 | ||
22690 | ac_configure_extra_args= | |
22691 | ||
22692 | if $ac_cs_silent; then | |
22693 | exec 6>/dev/null | |
22694 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22695 | fi | |
22696 | ||
22697 | _ACEOF | |
22698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22699 | if \$ac_cs_recheck; then | |
53ba6704 | 22700 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
22701 | shift |
22702 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
22703 | CONFIG_SHELL='$SHELL' | |
22704 | export CONFIG_SHELL | |
22705 | exec "\$@" | |
22706 | fi | |
22707 | ||
22708 | _ACEOF | |
22709 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22710 | exec 5>>config.log | |
22711 | { | |
22712 | echo | |
22713 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22714 | ## Running $as_me. ## | |
22715 | _ASBOX | |
22716 | $as_echo "$ac_log" | |
22717 | } >&5 | |
22718 | ||
22719 | _ACEOF | |
22720 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22721 | # | |
22722 | # INIT-COMMANDS | |
22723 | # | |
66170b30 | 22724 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
22725 | |
22726 | ||
22727 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22728 | # if CDPATH is set. | |
22729 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22730 | ||
22731 | sed_quote_subst='$sed_quote_subst' | |
22732 | double_quote_subst='$double_quote_subst' | |
22733 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
22734 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
22735 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
22736 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
22737 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
22738 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
22739 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
22740 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
22741 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 22742 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22743 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
22744 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
22745 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
22746 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
22747 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
22748 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
22749 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
22750 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
22751 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
22752 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
22753 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
22754 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
22755 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
22756 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
22757 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
22758 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
22759 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
22760 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
22761 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
22762 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
22763 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22764 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22765 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
22766 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
22767 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
22768 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
22769 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
22770 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
22771 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
22772 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
22773 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
22774 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
22775 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
22776 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
22777 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
22778 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
22779 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22780 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22781 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22782 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
22783 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
22784 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
22785 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
22786 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
22787 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
22788 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
22789 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
22790 | 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"`' | |
22791 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22792 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
22793 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
22794 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
22795 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
22796 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
22797 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
22798 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
22799 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
22800 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
22801 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
22802 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
22803 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
22804 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
22805 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
22806 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
22807 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
22808 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
22809 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22810 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
22811 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
22812 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22813 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22814 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
22815 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
22816 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22817 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22818 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22819 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
22820 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22821 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
22822 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22823 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22824 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22825 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
22826 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
22827 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
22828 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
22829 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22830 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
22831 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
22832 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
22833 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
22834 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
22835 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
22836 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
22837 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
22838 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
22839 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22840 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
22841 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
22842 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
22843 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
22844 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
22845 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22846 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
22847 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
22848 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
22849 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
22850 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
22851 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22852 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22853 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
22854 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
22855 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
22856 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
22857 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
22858 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
22859 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
22860 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
22861 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
22862 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
22863 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
22864 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
22865 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
22866 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
22867 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
22868 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
22869 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
22870 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
22871 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22872 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22873 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22874 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
22875 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
22876 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22877 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
22878 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
22879 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
22880 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
22881 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
22882 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
22883 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22884 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22885 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
22886 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22887 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22888 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22889 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22890 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22891 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22892 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
22893 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22894 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22895 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22896 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
22897 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
22898 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
22899 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
22900 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
22901 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
22902 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
22903 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
22904 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
22905 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22906 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22907 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22908 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22909 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22910 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22911 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
22912 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
22913 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22914 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22915 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22916 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22917 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
22918 | |
22919 | LTCC='$LTCC' | |
22920 | LTCFLAGS='$LTCFLAGS' | |
22921 | compiler='$compiler_DEFAULT' | |
22922 | ||
ee134472 JF |
22923 | # A function that is used when there is no print builtin or printf. |
22924 | func_fallback_echo () | |
22925 | { | |
22926 | eval 'cat <<_LTECHO_EOF | |
22927 | \$1 | |
22928 | _LTECHO_EOF' | |
22929 | } | |
22930 | ||
9c60689e | 22931 | # Quote evaled strings. |
ee134472 JF |
22932 | for var in SHELL \ |
22933 | ECHO \ | |
53ba6704 | 22934 | PATH_SEPARATOR \ |
ee134472 | 22935 | SED \ |
9c60689e DWT |
22936 | GREP \ |
22937 | EGREP \ | |
22938 | FGREP \ | |
22939 | LD \ | |
22940 | NM \ | |
22941 | LN_S \ | |
22942 | lt_SP2NL \ | |
22943 | lt_NL2SP \ | |
22944 | reload_flag \ | |
22945 | OBJDUMP \ | |
22946 | deplibs_check_method \ | |
22947 | file_magic_cmd \ | |
ee134472 JF |
22948 | file_magic_glob \ |
22949 | want_nocaseglob \ | |
22950 | DLLTOOL \ | |
22951 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
22952 | AR \ |
22953 | AR_FLAGS \ | |
ee134472 | 22954 | archiver_list_spec \ |
9c60689e DWT |
22955 | STRIP \ |
22956 | RANLIB \ | |
22957 | CC \ | |
22958 | CFLAGS \ | |
22959 | compiler \ | |
22960 | lt_cv_sys_global_symbol_pipe \ | |
22961 | lt_cv_sys_global_symbol_to_cdecl \ | |
22962 | lt_cv_sys_global_symbol_to_c_name_address \ | |
22963 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
ee134472 | 22964 | nm_file_list_spec \ |
9c60689e | 22965 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 22966 | lt_prog_compiler_pic \ |
ee134472 | 22967 | lt_prog_compiler_wl \ |
9c60689e DWT |
22968 | lt_prog_compiler_static \ |
22969 | lt_cv_prog_compiler_c_o \ | |
22970 | need_locks \ | |
ee134472 | 22971 | MANIFEST_TOOL \ |
9c60689e DWT |
22972 | DSYMUTIL \ |
22973 | NMEDIT \ | |
22974 | LIPO \ | |
22975 | OTOOL \ | |
22976 | OTOOL64 \ | |
22977 | shrext_cmds \ | |
22978 | export_dynamic_flag_spec \ | |
22979 | whole_archive_flag_spec \ | |
22980 | compiler_needs_object \ | |
22981 | with_gnu_ld \ | |
22982 | allow_undefined_flag \ | |
22983 | no_undefined_flag \ | |
22984 | hardcode_libdir_flag_spec \ | |
9c60689e | 22985 | hardcode_libdir_separator \ |
9c60689e DWT |
22986 | exclude_expsyms \ |
22987 | include_expsyms \ | |
22988 | file_list_spec \ | |
22989 | variables_saved_for_relink \ | |
22990 | libname_spec \ | |
22991 | library_names_spec \ | |
22992 | soname_spec \ | |
ee134472 | 22993 | install_override_mode \ |
9c60689e DWT |
22994 | finish_eval \ |
22995 | old_striplib \ | |
22996 | striplib \ | |
22997 | compiler_lib_search_dirs \ | |
22998 | predep_objects \ | |
22999 | postdep_objects \ | |
23000 | predeps \ | |
23001 | postdeps \ | |
23002 | compiler_lib_search_path \ | |
23003 | LD_CXX \ | |
ee134472 | 23004 | reload_flag_CXX \ |
9c60689e DWT |
23005 | compiler_CXX \ |
23006 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 23007 | lt_prog_compiler_pic_CXX \ |
ee134472 | 23008 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
23009 | lt_prog_compiler_static_CXX \ |
23010 | lt_cv_prog_compiler_c_o_CXX \ | |
23011 | export_dynamic_flag_spec_CXX \ | |
23012 | whole_archive_flag_spec_CXX \ | |
23013 | compiler_needs_object_CXX \ | |
23014 | with_gnu_ld_CXX \ | |
23015 | allow_undefined_flag_CXX \ | |
23016 | no_undefined_flag_CXX \ | |
23017 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 23018 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
23019 | exclude_expsyms_CXX \ |
23020 | include_expsyms_CXX \ | |
23021 | file_list_spec_CXX \ | |
23022 | compiler_lib_search_dirs_CXX \ | |
23023 | predep_objects_CXX \ | |
23024 | postdep_objects_CXX \ | |
23025 | predeps_CXX \ | |
23026 | postdeps_CXX \ | |
23027 | compiler_lib_search_path_CXX; do | |
ee134472 | 23028 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 23029 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 23030 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
23031 | ;; |
23032 | *) | |
23033 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23034 | ;; | |
23035 | esac | |
23036 | done | |
23037 | ||
23038 | # Double-quote double-evaled strings. | |
23039 | for var in reload_cmds \ | |
23040 | old_postinstall_cmds \ | |
23041 | old_postuninstall_cmds \ | |
23042 | old_archive_cmds \ | |
23043 | extract_expsyms_cmds \ | |
23044 | old_archive_from_new_cmds \ | |
23045 | old_archive_from_expsyms_cmds \ | |
23046 | archive_cmds \ | |
23047 | archive_expsym_cmds \ | |
23048 | module_cmds \ | |
23049 | module_expsym_cmds \ | |
23050 | export_symbols_cmds \ | |
23051 | prelink_cmds \ | |
ee134472 | 23052 | postlink_cmds \ |
9c60689e DWT |
23053 | postinstall_cmds \ |
23054 | postuninstall_cmds \ | |
23055 | finish_cmds \ | |
23056 | sys_lib_search_path_spec \ | |
23057 | sys_lib_dlsearch_path_spec \ | |
ee134472 | 23058 | reload_cmds_CXX \ |
9c60689e DWT |
23059 | old_archive_cmds_CXX \ |
23060 | old_archive_from_new_cmds_CXX \ | |
23061 | old_archive_from_expsyms_cmds_CXX \ | |
23062 | archive_cmds_CXX \ | |
23063 | archive_expsym_cmds_CXX \ | |
23064 | module_cmds_CXX \ | |
23065 | module_expsym_cmds_CXX \ | |
23066 | export_symbols_cmds_CXX \ | |
ee134472 JF |
23067 | prelink_cmds_CXX \ |
23068 | postlink_cmds_CXX; do | |
23069 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 23070 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 23071 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
23072 | ;; |
23073 | *) | |
23074 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23075 | ;; | |
23076 | esac | |
23077 | done | |
23078 | ||
9c60689e DWT |
23079 | ac_aux_dir='$ac_aux_dir' |
23080 | xsi_shell='$xsi_shell' | |
23081 | lt_shell_append='$lt_shell_append' | |
23082 | ||
23083 | # See if we are running on zsh, and set the options which allow our | |
23084 | # commands through without removal of \ escapes INIT. | |
23085 | if test -n "\${ZSH_VERSION+set}" ; then | |
23086 | setopt NO_GLOB_SUBST | |
23087 | fi | |
23088 | ||
23089 | ||
23090 | PACKAGE='$PACKAGE' | |
23091 | VERSION='$VERSION' | |
23092 | TIMESTAMP='$TIMESTAMP' | |
23093 | RM='$RM' | |
23094 | ofile='$ofile' | |
23095 | ||
23096 | ||
23097 | ||
23098 | ||
23099 | ||
23100 | ||
23101 | _ACEOF | |
23102 | ||
23103 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23104 | ||
23105 | # Handling of arguments. | |
23106 | for ac_config_target in $ac_config_targets | |
23107 | do | |
23108 | case $ac_config_target in | |
66170b30 | 23109 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 23110 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 23111 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 23112 | |
ee134472 | 23113 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
23114 | esac |
23115 | done | |
23116 | ||
23117 | ||
23118 | # If the user did not use the arguments to specify the items to instantiate, | |
23119 | # then the envvar interface is used. Set only those that are not. | |
23120 | # We use the long form for the default assignment because of an extremely | |
23121 | # bizarre bug on SunOS 4.1.3. | |
23122 | if $ac_need_defaults; then | |
23123 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
23124 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
23125 | fi | |
23126 | ||
23127 | # Have a temporary directory for convenience. Make it in the build tree | |
23128 | # simply because there is no reason against having it here, and in addition, | |
23129 | # creating and moving files from /tmp can sometimes cause problems. | |
23130 | # Hook for its removal unless debugging. | |
23131 | # Note that there is a small window in which the directory will not be cleaned: | |
23132 | # after its creation but before its name has been assigned to `$tmp'. | |
23133 | $debug || | |
23134 | { | |
ee134472 | 23135 | tmp= ac_tmp= |
9c60689e | 23136 | trap 'exit_status=$? |
ee134472 JF |
23137 | : "${ac_tmp:=$tmp}" |
23138 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
23139 | ' 0 |
23140 | trap 'as_fn_exit 1' 1 2 13 15 | |
23141 | } | |
23142 | # Create a (secure) tmp directory for tmp files. | |
23143 | ||
23144 | { | |
23145 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 23146 | test -d "$tmp" |
9c60689e DWT |
23147 | } || |
23148 | { | |
23149 | tmp=./conf$$-$RANDOM | |
23150 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 23151 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 23152 | ac_tmp=$tmp |
9c60689e DWT |
23153 | |
23154 | # Set up the scripts for CONFIG_FILES section. | |
23155 | # No need to generate them if there are no CONFIG_FILES. | |
23156 | # This happens for instance with `./config.status config.h'. | |
23157 | if test -n "$CONFIG_FILES"; then | |
23158 | ||
23159 | ||
23160 | ac_cr=`echo X | tr X '\015'` | |
23161 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
23162 | # But we know of no other shell where ac_cr would be empty at this | |
23163 | # point, so we can use a bashism as a fallback. | |
23164 | if test "x$ac_cr" = x; then | |
23165 | eval ac_cr=\$\'\\r\' | |
23166 | fi | |
23167 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
23168 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 23169 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
23170 | else |
23171 | ac_cs_awk_cr=$ac_cr | |
23172 | fi | |
23173 | ||
ee134472 | 23174 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
23175 | _ACEOF |
23176 | ||
23177 | ||
23178 | { | |
23179 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
23180 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
23181 | echo "_ACEOF" | |
23182 | } >conf$$subs.sh || | |
12833ad8 JF |
23183 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23184 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
23185 | ac_delim='%!_!# ' |
23186 | for ac_last_try in false false false false false :; do | |
23187 | . ./conf$$subs.sh || | |
12833ad8 | 23188 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23189 | |
23190 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
23191 | if test $ac_delim_n = $ac_delim_num; then | |
23192 | break | |
23193 | elif $ac_last_try; then | |
12833ad8 | 23194 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23195 | else |
23196 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23197 | fi | |
23198 | done | |
23199 | rm -f conf$$subs.sh | |
23200 | ||
23201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 23202 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
23203 | _ACEOF |
23204 | sed -n ' | |
23205 | h | |
23206 | s/^/S["/; s/!.*/"]=/ | |
23207 | p | |
23208 | g | |
23209 | s/^[^!]*!// | |
23210 | :repl | |
23211 | t repl | |
23212 | s/'"$ac_delim"'$// | |
23213 | t delim | |
23214 | :nl | |
23215 | h | |
23216 | s/\(.\{148\}\)..*/\1/ | |
23217 | t more1 | |
23218 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
23219 | p | |
23220 | n | |
23221 | b repl | |
23222 | :more1 | |
23223 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23224 | p | |
23225 | g | |
23226 | s/.\{148\}// | |
23227 | t nl | |
23228 | :delim | |
23229 | h | |
23230 | s/\(.\{148\}\)..*/\1/ | |
23231 | t more2 | |
23232 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
23233 | p | |
23234 | b | |
23235 | :more2 | |
23236 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23237 | p | |
23238 | g | |
23239 | s/.\{148\}// | |
23240 | t delim | |
23241 | ' <conf$$subs.awk | sed ' | |
23242 | /^[^""]/{ | |
23243 | N | |
23244 | s/\n// | |
23245 | } | |
23246 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
23247 | rm -f conf$$subs.awk | |
23248 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23249 | _ACAWK | |
ee134472 | 23250 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
23251 | for (key in S) S_is_set[key] = 1 |
23252 | FS = "\a" | |
23253 | ||
23254 | } | |
23255 | { | |
23256 | line = $ 0 | |
23257 | nfields = split(line, field, "@") | |
23258 | substed = 0 | |
23259 | len = length(field[1]) | |
23260 | for (i = 2; i < nfields; i++) { | |
23261 | key = field[i] | |
23262 | keylen = length(key) | |
23263 | if (S_is_set[key]) { | |
23264 | value = S[key] | |
23265 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
23266 | len += length(value) + length(field[++i]) | |
23267 | substed = 1 | |
23268 | } else | |
23269 | len += 1 + keylen | |
23270 | } | |
23271 | ||
23272 | print line | |
23273 | } | |
23274 | ||
23275 | _ACAWK | |
23276 | _ACEOF | |
23277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23278 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
23279 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
23280 | else | |
23281 | cat | |
ee134472 | 23282 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 23283 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
23284 | _ACEOF |
23285 | ||
12833ad8 JF |
23286 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
23287 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
23288 | # trailing colons and then remove the whole line if VPATH becomes empty |
23289 | # (actually we leave an empty line to preserve line numbers). | |
23290 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
23291 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
23292 | h | |
23293 | s/// | |
23294 | s/^/:/ | |
23295 | s/[ ]*$/:/ | |
23296 | s/:\$(srcdir):/:/g | |
23297 | s/:\${srcdir}:/:/g | |
23298 | s/:@srcdir@:/:/g | |
23299 | s/^:*// | |
9c60689e | 23300 | s/:*$// |
12833ad8 JF |
23301 | x |
23302 | s/\(=[ ]*\).*/\1/ | |
23303 | G | |
23304 | s/\n// | |
9c60689e DWT |
23305 | s/^[^=]*=[ ]*$// |
23306 | }' | |
23307 | fi | |
23308 | ||
23309 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23310 | fi # test -n "$CONFIG_FILES" | |
23311 | ||
23312 | ||
23313 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
23314 | shift | |
23315 | for ac_tag | |
23316 | do | |
23317 | case $ac_tag in | |
23318 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
23319 | esac | |
23320 | case $ac_mode$ac_tag in | |
23321 | :[FHL]*:*);; | |
ee134472 | 23322 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
23323 | :[FH]-) ac_tag=-:-;; |
23324 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
23325 | esac | |
23326 | ac_save_IFS=$IFS | |
23327 | IFS=: | |
23328 | set x $ac_tag | |
23329 | IFS=$ac_save_IFS | |
23330 | shift | |
23331 | ac_file=$1 | |
23332 | shift | |
23333 | ||
23334 | case $ac_mode in | |
23335 | :L) ac_source=$1;; | |
23336 | :[FH]) | |
23337 | ac_file_inputs= | |
23338 | for ac_f | |
23339 | do | |
23340 | case $ac_f in | |
ee134472 | 23341 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
23342 | *) # Look for the file first in the build tree, then in the source tree |
23343 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
23344 | # because $ac_f cannot contain `:'. | |
23345 | test -f "$ac_f" || | |
23346 | case $ac_f in | |
23347 | [\\/$]*) false;; | |
23348 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
23349 | esac || | |
ee134472 | 23350 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
23351 | esac |
23352 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
23353 | as_fn_append ac_file_inputs " '$ac_f'" | |
23354 | done | |
23355 | ||
23356 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23357 | # use $as_me), people would be surprised to read: | |
23358 | # /* config.h. Generated by config.status. */ | |
23359 | configure_input='Generated from '` | |
23360 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
23361 | `' by configure.' | |
23362 | if test x"$ac_file" != x-; then | |
23363 | configure_input="$ac_file. $configure_input" | |
23364 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
23365 | $as_echo "$as_me: creating $ac_file" >&6;} | |
23366 | fi | |
23367 | # Neutralize special characters interpreted by sed in replacement strings. | |
23368 | case $configure_input in #( | |
23369 | *\&* | *\|* | *\\* ) | |
23370 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
23371 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
23372 | *) ac_sed_conf_input=$configure_input;; | |
23373 | esac | |
23374 | ||
23375 | case $ac_tag in | |
ee134472 JF |
23376 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
23377 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
23378 | esac |
23379 | ;; | |
23380 | esac | |
23381 | ||
23382 | ac_dir=`$as_dirname -- "$ac_file" || | |
23383 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23384 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23385 | X"$ac_file" : 'X\(//\)$' \| \ | |
23386 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
23387 | $as_echo X"$ac_file" | | |
23388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23389 | s//\1/ | |
23390 | q | |
23391 | } | |
23392 | /^X\(\/\/\)[^/].*/{ | |
23393 | s//\1/ | |
23394 | q | |
23395 | } | |
23396 | /^X\(\/\/\)$/{ | |
23397 | s//\1/ | |
23398 | q | |
23399 | } | |
23400 | /^X\(\/\).*/{ | |
23401 | s//\1/ | |
23402 | q | |
23403 | } | |
23404 | s/.*/./; q'` | |
23405 | as_dir="$ac_dir"; as_fn_mkdir_p | |
23406 | ac_builddir=. | |
23407 | ||
23408 | case "$ac_dir" in | |
23409 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23410 | *) | |
23411 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
23412 | # A ".." for each directory in $ac_dir_suffix. | |
23413 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
23414 | case $ac_top_builddir_sub in | |
23415 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23416 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
23417 | esac ;; | |
23418 | esac | |
23419 | ac_abs_top_builddir=$ac_pwd | |
23420 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
23421 | # for backward compatibility: | |
23422 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 23423 | |
9c60689e DWT |
23424 | case $srcdir in |
23425 | .) # We are building in place. | |
23426 | ac_srcdir=. | |
23427 | ac_top_srcdir=$ac_top_builddir_sub | |
23428 | ac_abs_top_srcdir=$ac_pwd ;; | |
23429 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
23430 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23431 | ac_top_srcdir=$srcdir | |
23432 | ac_abs_top_srcdir=$srcdir ;; | |
23433 | *) # Relative name. | |
23434 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
23435 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
23436 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
23437 | esac | |
23438 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
23439 | |
23440 | ||
9c60689e DWT |
23441 | case $ac_mode in |
23442 | :F) | |
23443 | # | |
23444 | # CONFIG_FILE | |
23445 | # | |
35fa52c0 | 23446 | |
9c60689e DWT |
23447 | case $INSTALL in |
23448 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23449 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
23450 | esac | |
66170b30 JF |
23451 | ac_MKDIR_P=$MKDIR_P |
23452 | case $MKDIR_P in | |
23453 | [\\/$]* | ?:[\\/]* ) ;; | |
23454 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
23455 | esac | |
9c60689e | 23456 | _ACEOF |
35fa52c0 | 23457 | |
9c60689e DWT |
23458 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23459 | # If the template does not know about datarootdir, expand it. | |
23460 | # FIXME: This hack should be removed a few years after 2.60. | |
23461 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
23462 | ac_sed_dataroot=' | |
23463 | /datarootdir/ { | |
23464 | p | |
23465 | q | |
23466 | } | |
23467 | /@datadir@/p | |
23468 | /@docdir@/p | |
23469 | /@infodir@/p | |
23470 | /@localedir@/p | |
23471 | /@mandir@/p' | |
23472 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
23473 | *datarootdir*) ac_datarootdir_seen=yes;; | |
23474 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
23475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
23476 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
23477 | _ACEOF | |
23478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23479 | ac_datarootdir_hack=' | |
23480 | s&@datadir@&$datadir&g | |
23481 | s&@docdir@&$docdir&g | |
23482 | s&@infodir@&$infodir&g | |
23483 | s&@localedir@&$localedir&g | |
23484 | s&@mandir@&$mandir&g | |
23485 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
23486 | esac | |
23487 | _ACEOF | |
35fa52c0 | 23488 | |
9c60689e DWT |
23489 | # Neutralize VPATH when `$srcdir' = `.'. |
23490 | # Shell code in configure.ac might set extrasub. | |
23491 | # FIXME: do we really want to maintain this feature? | |
23492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23493 | ac_sed_extra="$ac_vpsub | |
23494 | $extrasub | |
23495 | _ACEOF | |
23496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23497 | :t | |
23498 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23499 | s|@configure_input@|$ac_sed_conf_input|;t t | |
23500 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
23501 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
23502 | s&@srcdir@&$ac_srcdir&;t t | |
23503 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
23504 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
23505 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
23506 | s&@builddir@&$ac_builddir&;t t | |
23507 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
23508 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
23509 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 23510 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
23511 | $ac_datarootdir_hack |
23512 | " | |
ee134472 JF |
23513 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
23514 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
23515 | |
23516 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
23517 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
23518 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
23519 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 23520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23521 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 23522 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23523 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 23524 | |
ee134472 | 23525 | rm -f "$ac_tmp/stdin" |
9c60689e | 23526 | case $ac_file in |
ee134472 JF |
23527 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
23528 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 23529 | esac \ |
12833ad8 | 23530 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 23531 | ;; |
35fa52c0 | 23532 | |
35fa52c0 | 23533 | |
9c60689e DWT |
23534 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
23535 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
23536 | ;; | |
23537 | esac | |
35fa52c0 | 23538 | |
35fa52c0 | 23539 | |
9c60689e | 23540 | case $ac_file$ac_mode in |
66170b30 JF |
23541 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
23542 | # Older Autoconf quotes --file arguments for eval, but not when files | |
23543 | # are listed without --file. Let's play safe and only enable the eval | |
23544 | # if we detect the quoting. | |
23545 | case $CONFIG_FILES in | |
23546 | *\'*) eval set x "$CONFIG_FILES" ;; | |
23547 | *) set x $CONFIG_FILES ;; | |
23548 | esac | |
23549 | shift | |
23550 | for mf | |
23551 | do | |
23552 | # Strip MF so we end up with the name of the file. | |
23553 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23554 | # Check whether this is an Automake generated Makefile or not. | |
23555 | # We used to match only the files named 'Makefile.in', but | |
23556 | # some people rename them; so instead we look at the file content. | |
23557 | # Grep'ing the first line is not enough: some people post-process | |
23558 | # each Makefile.in and add a new line on top of each file to say so. | |
23559 | # Grep'ing the whole file is not good either: AIX grep has a line | |
23560 | # limit of 2048, but all sed's we know have understand at least 4000. | |
23561 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
23562 | dirpart=`$as_dirname -- "$mf" || | |
23563 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23564 | X"$mf" : 'X\(//\)[^/]' \| \ | |
23565 | X"$mf" : 'X\(//\)$' \| \ | |
23566 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
23567 | $as_echo X"$mf" | | |
23568 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23569 | s//\1/ | |
23570 | q | |
23571 | } | |
23572 | /^X\(\/\/\)[^/].*/{ | |
23573 | s//\1/ | |
23574 | q | |
23575 | } | |
23576 | /^X\(\/\/\)$/{ | |
23577 | s//\1/ | |
23578 | q | |
23579 | } | |
23580 | /^X\(\/\).*/{ | |
23581 | s//\1/ | |
23582 | q | |
23583 | } | |
23584 | s/.*/./; q'` | |
23585 | else | |
23586 | continue | |
23587 | fi | |
23588 | # Extract the definition of DEPDIR, am__include, and am__quote | |
23589 | # from the Makefile without running 'make'. | |
23590 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23591 | test -z "$DEPDIR" && continue | |
23592 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
23593 | test -z "am__include" && continue | |
23594 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
23595 | # Find all dependency output files, they are included files with | |
23596 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23597 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23598 | # expansion. | |
23599 | for file in `sed -n " | |
23600 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23601 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
23602 | # Make sure the directory exists. | |
23603 | test -f "$dirpart/$file" && continue | |
23604 | fdir=`$as_dirname -- "$file" || | |
23605 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23606 | X"$file" : 'X\(//\)[^/]' \| \ | |
23607 | X"$file" : 'X\(//\)$' \| \ | |
23608 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
23609 | $as_echo X"$file" | | |
23610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23611 | s//\1/ | |
23612 | q | |
23613 | } | |
23614 | /^X\(\/\/\)[^/].*/{ | |
23615 | s//\1/ | |
23616 | q | |
23617 | } | |
23618 | /^X\(\/\/\)$/{ | |
23619 | s//\1/ | |
23620 | q | |
23621 | } | |
23622 | /^X\(\/\).*/{ | |
23623 | s//\1/ | |
23624 | q | |
23625 | } | |
23626 | s/.*/./; q'` | |
23627 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
23628 | # echo "creating $dirpart/$file" | |
23629 | echo '# dummy' > "$dirpart/$file" | |
23630 | done | |
23631 | done | |
23632 | } | |
23633 | ;; | |
9c60689e DWT |
23634 | "libtool":C) |
23635 | ||
23636 | # See if we are running on zsh, and set the options which allow our | |
23637 | # commands through without removal of \ escapes. | |
23638 | if test -n "${ZSH_VERSION+set}" ; then | |
23639 | setopt NO_GLOB_SUBST | |
35fa52c0 | 23640 | fi |
35fa52c0 | 23641 | |
9c60689e DWT |
23642 | cfgfile="${ofile}T" |
23643 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
23644 | $RM "$cfgfile" | |
35fa52c0 | 23645 | |
9c60689e DWT |
23646 | cat <<_LT_EOF >> "$cfgfile" |
23647 | #! $SHELL | |
35fa52c0 | 23648 | |
9c60689e DWT |
23649 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
23650 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
23651 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
23652 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
23653 | # | |
23654 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
53ba6704 JF |
23655 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
23656 | # Foundation, Inc. | |
9c60689e DWT |
23657 | # Written by Gordon Matzigkeit, 1996 |
23658 | # | |
23659 | # This file is part of GNU Libtool. | |
23660 | # | |
23661 | # GNU Libtool is free software; you can redistribute it and/or | |
23662 | # modify it under the terms of the GNU General Public License as | |
23663 | # published by the Free Software Foundation; either version 2 of | |
23664 | # the License, or (at your option) any later version. | |
23665 | # | |
23666 | # As a special exception to the GNU General Public License, | |
23667 | # if you distribute this file as part of a program or library that | |
23668 | # is built using GNU Libtool, you may include this file under the | |
23669 | # same distribution terms that you use for the rest of that program. | |
23670 | # | |
23671 | # GNU Libtool is distributed in the hope that it will be useful, | |
23672 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23673 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23674 | # GNU General Public License for more details. | |
23675 | # | |
23676 | # You should have received a copy of the GNU General Public License | |
23677 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
23678 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
23679 | # obtained by writing to the Free Software Foundation, Inc., | |
23680 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 23681 | |
35fa52c0 | 23682 | |
9c60689e DWT |
23683 | # The names of the tagged configurations supported by this script. |
23684 | available_tags="CXX " | |
35fa52c0 | 23685 | |
9c60689e | 23686 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 23687 | |
9c60689e DWT |
23688 | # Which release of libtool.m4 was used? |
23689 | macro_version=$macro_version | |
23690 | macro_revision=$macro_revision | |
35fa52c0 | 23691 | |
9c60689e DWT |
23692 | # Whether or not to build static libraries. |
23693 | build_old_libs=$enable_static | |
35fa52c0 | 23694 | |
549f29b5 DWT |
23695 | # Whether or not to build shared libraries. |
23696 | build_libtool_libs=$enable_shared | |
23697 | ||
9c60689e DWT |
23698 | # What type of objects to build. |
23699 | pic_mode=$pic_mode | |
35fa52c0 | 23700 | |
9c60689e DWT |
23701 | # Whether or not to optimize for fast installation. |
23702 | fast_install=$enable_fast_install | |
35fa52c0 | 23703 | |
ee134472 JF |
23704 | # Shell to use when invoking shell scripts. |
23705 | SHELL=$lt_SHELL | |
23706 | ||
23707 | # An echo program that protects backslashes. | |
23708 | ECHO=$lt_ECHO | |
23709 | ||
53ba6704 JF |
23710 | # The PATH separator for the build system. |
23711 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
23712 | ||
9c60689e DWT |
23713 | # The host system. |
23714 | host_alias=$host_alias | |
23715 | host=$host | |
23716 | host_os=$host_os | |
35fa52c0 | 23717 | |
9c60689e DWT |
23718 | # The build system. |
23719 | build_alias=$build_alias | |
23720 | build=$build | |
23721 | build_os=$build_os | |
23722 | ||
23723 | # A sed program that does not truncate output. | |
23724 | SED=$lt_SED | |
23725 | ||
23726 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23727 | Xsed="\$SED -e 1s/^X//" | |
23728 | ||
23729 | # A grep program that handles long lines. | |
23730 | GREP=$lt_GREP | |
23731 | ||
23732 | # An ERE matcher. | |
23733 | EGREP=$lt_EGREP | |
23734 | ||
23735 | # A literal string matcher. | |
23736 | FGREP=$lt_FGREP | |
23737 | ||
23738 | # A BSD- or MS-compatible name lister. | |
23739 | NM=$lt_NM | |
23740 | ||
23741 | # Whether we need soft or hard links. | |
23742 | LN_S=$lt_LN_S | |
23743 | ||
23744 | # What is the maximum length of a command? | |
23745 | max_cmd_len=$max_cmd_len | |
23746 | ||
23747 | # Object file suffix (normally "o"). | |
23748 | objext=$ac_objext | |
23749 | ||
23750 | # Executable file suffix (normally ""). | |
23751 | exeext=$exeext | |
23752 | ||
23753 | # whether the shell understands "unset". | |
23754 | lt_unset=$lt_unset | |
23755 | ||
23756 | # turn spaces into newlines. | |
23757 | SP2NL=$lt_lt_SP2NL | |
23758 | ||
23759 | # turn newlines into spaces. | |
23760 | NL2SP=$lt_lt_NL2SP | |
23761 | ||
ee134472 JF |
23762 | # convert \$build file names to \$host format. |
23763 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
23764 | ||
23765 | # convert \$build files to toolchain format. | |
23766 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
23767 | |
23768 | # An object symbol dumper. | |
23769 | OBJDUMP=$lt_OBJDUMP | |
23770 | ||
23771 | # Method to check whether dependent libraries are shared objects. | |
23772 | deplibs_check_method=$lt_deplibs_check_method | |
23773 | ||
ee134472 | 23774 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
23775 | file_magic_cmd=$lt_file_magic_cmd |
23776 | ||
ee134472 JF |
23777 | # How to find potential files when deplibs_check_method = "file_magic". |
23778 | file_magic_glob=$lt_file_magic_glob | |
23779 | ||
23780 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
23781 | want_nocaseglob=$lt_want_nocaseglob | |
23782 | ||
23783 | # DLL creation program. | |
23784 | DLLTOOL=$lt_DLLTOOL | |
23785 | ||
23786 | # Command to associate shared and link libraries. | |
23787 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
23788 | ||
9c60689e DWT |
23789 | # The archiver. |
23790 | AR=$lt_AR | |
ee134472 JF |
23791 | |
23792 | # Flags to create an archive. | |
9c60689e DWT |
23793 | AR_FLAGS=$lt_AR_FLAGS |
23794 | ||
ee134472 JF |
23795 | # How to feed a file listing to the archiver. |
23796 | archiver_list_spec=$lt_archiver_list_spec | |
23797 | ||
9c60689e DWT |
23798 | # A symbol stripping program. |
23799 | STRIP=$lt_STRIP | |
23800 | ||
23801 | # Commands used to install an old-style archive. | |
23802 | RANLIB=$lt_RANLIB | |
23803 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23804 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23805 | ||
ee134472 JF |
23806 | # Whether to use a lock for old archive extraction. |
23807 | lock_old_archive_extraction=$lock_old_archive_extraction | |
23808 | ||
9c60689e DWT |
23809 | # A C compiler. |
23810 | LTCC=$lt_CC | |
23811 | ||
23812 | # LTCC compiler flags. | |
23813 | LTCFLAGS=$lt_CFLAGS | |
23814 | ||
23815 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23816 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23817 | ||
23818 | # Transform the output of nm in a proper C declaration. | |
23819 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23820 | ||
23821 | # Transform the output of nm in a C name address pair. | |
23822 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23823 | ||
23824 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
23825 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23826 | ||
ee134472 JF |
23827 | # Specify filename containing input files for \$NM. |
23828 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 23829 | |
ee134472 JF |
23830 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
23831 | lt_sysroot=$lt_sysroot | |
9c60689e | 23832 | |
ee134472 JF |
23833 | # The name of the directory that contains temporary libtool files. |
23834 | objdir=$objdir | |
9c60689e DWT |
23835 | |
23836 | # Used to examine libraries when file_magic_cmd begins with "file". | |
23837 | MAGIC_CMD=$MAGIC_CMD | |
23838 | ||
23839 | # Must we lock files when doing compilation? | |
23840 | need_locks=$lt_need_locks | |
23841 | ||
ee134472 JF |
23842 | # Manifest tool. |
23843 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
23844 | ||
9c60689e DWT |
23845 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
23846 | DSYMUTIL=$lt_DSYMUTIL | |
23847 | ||
23848 | # Tool to change global to local symbols on Mac OS X. | |
23849 | NMEDIT=$lt_NMEDIT | |
23850 | ||
23851 | # Tool to manipulate fat objects and archives on Mac OS X. | |
23852 | LIPO=$lt_LIPO | |
23853 | ||
23854 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23855 | OTOOL=$lt_OTOOL | |
23856 | ||
23857 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23858 | OTOOL64=$lt_OTOOL64 | |
23859 | ||
23860 | # Old archive suffix (normally "a"). | |
23861 | libext=$libext | |
23862 | ||
23863 | # Shared library suffix (normally ".so"). | |
23864 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 23865 | |
9c60689e DWT |
23866 | # The commands to extract the exported symbol list from a shared archive. |
23867 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 23868 | |
9c60689e DWT |
23869 | # Variables whose values should be saved in libtool wrapper scripts and |
23870 | # restored at link time. | |
23871 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 23872 | |
9c60689e DWT |
23873 | # Do we need the "lib" prefix for modules? |
23874 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 23875 | |
9c60689e DWT |
23876 | # Do we need a version for libraries? |
23877 | need_version=$need_version | |
35fa52c0 | 23878 | |
9c60689e DWT |
23879 | # Library versioning type. |
23880 | version_type=$version_type | |
35fa52c0 | 23881 | |
9c60689e DWT |
23882 | # Shared library runtime path variable. |
23883 | runpath_var=$runpath_var | |
35fa52c0 | 23884 | |
9c60689e DWT |
23885 | # Shared library path variable. |
23886 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 23887 | |
9c60689e DWT |
23888 | # Is shlibpath searched before the hard-coded library search path? |
23889 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 23890 | |
9c60689e DWT |
23891 | # Format of library name prefix. |
23892 | libname_spec=$lt_libname_spec | |
35fa52c0 | 23893 | |
9c60689e DWT |
23894 | # List of archive names. First name is the real one, the rest are links. |
23895 | # The last name is the one that the linker finds with -lNAME | |
23896 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 23897 | |
9c60689e DWT |
23898 | # The coded name of the library, if different from the real name. |
23899 | soname_spec=$lt_soname_spec | |
dbadc56a | 23900 | |
ee134472 JF |
23901 | # Permission mode override for installation of shared libraries. |
23902 | install_override_mode=$lt_install_override_mode | |
23903 | ||
9c60689e DWT |
23904 | # Command to use after installation of a shared archive. |
23905 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 23906 | |
9c60689e DWT |
23907 | # Command to use after uninstallation of a shared archive. |
23908 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 23909 | |
9c60689e DWT |
23910 | # Commands used to finish a libtool library installation in a directory. |
23911 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 23912 | |
9c60689e DWT |
23913 | # As "finish_cmds", except a single script fragment to be evaled but |
23914 | # not shown. | |
23915 | finish_eval=$lt_finish_eval | |
35fa52c0 | 23916 | |
9c60689e DWT |
23917 | # Whether we should hardcode library paths into libraries. |
23918 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 23919 | |
9c60689e DWT |
23920 | # Compile-time system search path for libraries. |
23921 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 23922 | |
9c60689e DWT |
23923 | # Run-time system search path for libraries. |
23924 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 23925 | |
9c60689e DWT |
23926 | # Whether dlopen is supported. |
23927 | dlopen_support=$enable_dlopen | |
dbadc56a | 23928 | |
9c60689e DWT |
23929 | # Whether dlopen of programs is supported. |
23930 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 23931 | |
9c60689e DWT |
23932 | # Whether dlopen of statically linked programs is supported. |
23933 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 23934 | |
9c60689e DWT |
23935 | # Commands to strip libraries. |
23936 | old_striplib=$lt_old_striplib | |
23937 | striplib=$lt_striplib | |
35fa52c0 | 23938 | |
35fa52c0 | 23939 | |
9c60689e DWT |
23940 | # The linker used to build libraries. |
23941 | LD=$lt_LD | |
dbadc56a | 23942 | |
ee134472 JF |
23943 | # How to create reloadable object files. |
23944 | reload_flag=$lt_reload_flag | |
23945 | reload_cmds=$lt_reload_cmds | |
23946 | ||
9c60689e DWT |
23947 | # Commands used to build an old-style archive. |
23948 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 23949 | |
9c60689e DWT |
23950 | # A language specific compiler. |
23951 | CC=$lt_compiler | |
35fa52c0 | 23952 | |
9c60689e DWT |
23953 | # Is the compiler the GNU compiler? |
23954 | with_gcc=$GCC | |
dbadc56a | 23955 | |
9c60689e DWT |
23956 | # Compiler flag to turn off builtin functions. |
23957 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 23958 | |
9c60689e DWT |
23959 | # Additional compiler flags for building library objects. |
23960 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 23961 | |
ee134472 JF |
23962 | # How to pass a linker flag through the compiler. |
23963 | wl=$lt_lt_prog_compiler_wl | |
23964 | ||
9c60689e DWT |
23965 | # Compiler flag to prevent dynamic linking. |
23966 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 23967 | |
9c60689e DWT |
23968 | # Does compiler simultaneously support -c and -o options? |
23969 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 23970 | |
9c60689e DWT |
23971 | # Whether or not to add -lc for building shared libraries. |
23972 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 23973 | |
9c60689e DWT |
23974 | # Whether or not to disallow shared libs when runtime libs are static. |
23975 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 23976 | |
9c60689e DWT |
23977 | # Compiler flag to allow reflexive dlopens. |
23978 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 23979 | |
9c60689e DWT |
23980 | # Compiler flag to generate shared objects directly from archives. |
23981 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 23982 | |
9c60689e DWT |
23983 | # Whether the compiler copes with passing no objects directly. |
23984 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 23985 | |
9c60689e DWT |
23986 | # Create an old-style archive from a shared archive. |
23987 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 23988 | |
9c60689e DWT |
23989 | # Create a temporary old-style archive to link instead of a shared archive. |
23990 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 23991 | |
9c60689e DWT |
23992 | # Commands used to build a shared archive. |
23993 | archive_cmds=$lt_archive_cmds | |
23994 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 23995 | |
9c60689e DWT |
23996 | # Commands used to build a loadable module if different from building |
23997 | # a shared archive. | |
23998 | module_cmds=$lt_module_cmds | |
23999 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 24000 | |
9c60689e DWT |
24001 | # Whether we are building with GNU ld or not. |
24002 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 24003 | |
9c60689e DWT |
24004 | # Flag that allows shared libraries with undefined symbols to be built. |
24005 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 24006 | |
9c60689e DWT |
24007 | # Flag that enforces no undefined symbols. |
24008 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 24009 | |
9c60689e DWT |
24010 | # Flag to hardcode \$libdir into a binary during linking. |
24011 | # This must work even if \$libdir does not exist | |
24012 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 24013 | |
9c60689e DWT |
24014 | # Whether we need a single "-rpath" flag with a separated argument. |
24015 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 24016 | |
9c60689e DWT |
24017 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
24018 | # DIR into the resulting binary. | |
24019 | hardcode_direct=$hardcode_direct | |
6b66678a | 24020 | |
9c60689e DWT |
24021 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
24022 | # DIR into the resulting binary and the resulting library dependency is | |
24023 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
24024 | # library is relocated. | |
24025 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 24026 | |
9c60689e DWT |
24027 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24028 | # into the resulting binary. | |
24029 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 24030 | |
9c60689e DWT |
24031 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24032 | # into the resulting binary. | |
24033 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 24034 | |
9c60689e DWT |
24035 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24036 | # into the library and all subsequent libraries and executables linked | |
24037 | # against it. | |
24038 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 24039 | |
9c60689e DWT |
24040 | # Set to yes if linker adds runtime paths of dependent libraries |
24041 | # to runtime path list. | |
24042 | inherit_rpath=$inherit_rpath | |
6b66678a | 24043 | |
9c60689e DWT |
24044 | # Whether libtool must link a program against all its dependency libraries. |
24045 | link_all_deplibs=$link_all_deplibs | |
24046 | ||
9c60689e DWT |
24047 | # Set to "yes" if exported symbols are required. |
24048 | always_export_symbols=$always_export_symbols | |
6b66678a | 24049 | |
9c60689e DWT |
24050 | # The commands to list exported symbols. |
24051 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 24052 | |
9c60689e DWT |
24053 | # Symbols that should not be listed in the preloaded symbols. |
24054 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 24055 | |
9c60689e DWT |
24056 | # Symbols that must always be exported. |
24057 | include_expsyms=$lt_include_expsyms | |
6b66678a | 24058 | |
9c60689e DWT |
24059 | # Commands necessary for linking programs (against libraries) with templates. |
24060 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 24061 | |
ee134472 JF |
24062 | # Commands necessary for finishing linking programs. |
24063 | postlink_cmds=$lt_postlink_cmds | |
24064 | ||
9c60689e DWT |
24065 | # Specify filename containing input files. |
24066 | file_list_spec=$lt_file_list_spec | |
6b66678a | 24067 | |
9c60689e DWT |
24068 | # How to hardcode a shared library path into an executable. |
24069 | hardcode_action=$hardcode_action | |
24070 | ||
24071 | # The directories searched by this compiler when creating a shared library. | |
24072 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
24073 | ||
24074 | # Dependencies to place before and after the objects being linked to | |
24075 | # create a shared library. | |
24076 | predep_objects=$lt_predep_objects | |
24077 | postdep_objects=$lt_postdep_objects | |
24078 | predeps=$lt_predeps | |
24079 | postdeps=$lt_postdeps | |
24080 | ||
24081 | # The library search path used internally by the compiler when linking | |
24082 | # a shared library. | |
24083 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
24084 | ||
24085 | # ### END LIBTOOL CONFIG | |
24086 | ||
24087 | _LT_EOF | |
24088 | ||
24089 | case $host_os in | |
24090 | aix3*) | |
24091 | cat <<\_LT_EOF >> "$cfgfile" | |
24092 | # AIX sometimes has problems with the GCC collect2 program. For some | |
24093 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
24094 | # vanish in a puff of smoke. | |
24095 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
24096 | COLLECT_NAMES= | |
24097 | export COLLECT_NAMES | |
6b66678a | 24098 | fi |
9c60689e DWT |
24099 | _LT_EOF |
24100 | ;; | |
24101 | esac | |
6b66678a DWT |
24102 | |
24103 | ||
9c60689e | 24104 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 24105 | |
9c60689e DWT |
24106 | |
24107 | # We use sed instead of cat because bash on DJGPP gets confused if | |
24108 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
24109 | # text mode, it properly converts lines to CR/LF. This bash problem | |
24110 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
24111 | sed '$q' "$ltmain" >> "$cfgfile" \ |
24112 | || (rm -f "$cfgfile"; exit 1) | |
24113 | ||
24114 | if test x"$xsi_shell" = xyes; then | |
24115 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
24116 | func_dirname ()\ | |
24117 | {\ | |
24118 | \ case ${1} in\ | |
24119 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
24120 | \ * ) func_dirname_result="${3}" ;;\ | |
24121 | \ esac\ | |
24122 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
24123 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24124 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24125 | test 0 -eq $? || _lt_function_replace_fail=: | |
24126 | ||
24127 | ||
24128 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
24129 | func_basename ()\ | |
24130 | {\ | |
24131 | \ func_basename_result="${1##*/}"\ | |
24132 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
24133 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24134 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24135 | test 0 -eq $? || _lt_function_replace_fail=: | |
24136 | ||
24137 | ||
24138 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
24139 | func_dirname_and_basename ()\ | |
24140 | {\ | |
24141 | \ case ${1} in\ | |
24142 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
24143 | \ * ) func_dirname_result="${3}" ;;\ | |
24144 | \ esac\ | |
24145 | \ func_basename_result="${1##*/}"\ | |
24146 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
24147 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24148 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24149 | test 0 -eq $? || _lt_function_replace_fail=: | |
24150 | ||
24151 | ||
24152 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
24153 | func_stripname ()\ | |
24154 | {\ | |
24155 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
24156 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
24157 | \ func_stripname_result=${3}\ | |
24158 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
24159 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
24160 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
24161 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24162 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24163 | test 0 -eq $? || _lt_function_replace_fail=: | |
24164 | ||
24165 | ||
24166 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
24167 | func_split_long_opt ()\ | |
24168 | {\ | |
24169 | \ func_split_long_opt_name=${1%%=*}\ | |
24170 | \ func_split_long_opt_arg=${1#*=}\ | |
24171 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
24172 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24173 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24174 | test 0 -eq $? || _lt_function_replace_fail=: | |
24175 | ||
24176 | ||
24177 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
24178 | func_split_short_opt ()\ | |
24179 | {\ | |
24180 | \ func_split_short_opt_arg=${1#??}\ | |
24181 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
24182 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
24183 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24184 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24185 | test 0 -eq $? || _lt_function_replace_fail=: | |
24186 | ||
24187 | ||
24188 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
24189 | func_lo2o ()\ | |
24190 | {\ | |
24191 | \ case ${1} in\ | |
24192 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
24193 | \ *) func_lo2o_result=${1} ;;\ | |
24194 | \ esac\ | |
24195 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
24196 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24197 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24198 | test 0 -eq $? || _lt_function_replace_fail=: | |
24199 | ||
24200 | ||
24201 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
24202 | func_xform ()\ | |
24203 | {\ | |
24204 | func_xform_result=${1%.*}.lo\ | |
24205 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
24206 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24207 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24208 | test 0 -eq $? || _lt_function_replace_fail=: | |
24209 | ||
24210 | ||
24211 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
24212 | func_arith ()\ | |
24213 | {\ | |
24214 | func_arith_result=$(( $* ))\ | |
24215 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
24216 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24217 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24218 | test 0 -eq $? || _lt_function_replace_fail=: | |
24219 | ||
24220 | ||
24221 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
24222 | func_len ()\ | |
24223 | {\ | |
24224 | func_len_result=${#1}\ | |
24225 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
24226 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24227 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24228 | test 0 -eq $? || _lt_function_replace_fail=: | |
24229 | ||
24230 | fi | |
24231 | ||
24232 | if test x"$lt_shell_append" = xyes; then | |
24233 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
24234 | func_append ()\ | |
24235 | {\ | |
24236 | eval "${1}+=\\${2}"\ | |
24237 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
24238 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24239 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24240 | test 0 -eq $? || _lt_function_replace_fail=: | |
24241 | ||
24242 | ||
24243 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
24244 | func_append_quoted ()\ | |
24245 | {\ | |
24246 | \ func_quote_for_eval "${2}"\ | |
24247 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
24248 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
24249 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24250 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24251 | test 0 -eq $? || _lt_function_replace_fail=: | |
24252 | ||
24253 | ||
24254 | # Save a `func_append' function call where possible by direct use of '+=' | |
24255 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
24256 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24257 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24258 | test 0 -eq $? || _lt_function_replace_fail=: | |
24259 | else | |
24260 | # Save a `func_append' function call even when '+=' is not available | |
24261 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
24262 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
24263 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
24264 | test 0 -eq $? || _lt_function_replace_fail=: | |
24265 | fi | |
24266 | ||
24267 | if test x"$_lt_function_replace_fail" = x":"; then | |
24268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
24269 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
24270 | fi | |
24271 | ||
24272 | ||
24273 | mv -f "$cfgfile" "$ofile" || | |
9c60689e DWT |
24274 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
24275 | chmod +x "$ofile" | |
24276 | ||
24277 | ||
24278 | cat <<_LT_EOF >> "$ofile" | |
24279 | ||
24280 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
24281 | ||
24282 | # The linker used to build libraries. | |
24283 | LD=$lt_LD_CXX | |
24284 | ||
ee134472 JF |
24285 | # How to create reloadable object files. |
24286 | reload_flag=$lt_reload_flag_CXX | |
24287 | reload_cmds=$lt_reload_cmds_CXX | |
24288 | ||
9c60689e DWT |
24289 | # Commands used to build an old-style archive. |
24290 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
24291 | ||
24292 | # A language specific compiler. | |
24293 | CC=$lt_compiler_CXX | |
24294 | ||
24295 | # Is the compiler the GNU compiler? | |
24296 | with_gcc=$GCC_CXX | |
24297 | ||
24298 | # Compiler flag to turn off builtin functions. | |
24299 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 24300 | |
9c60689e DWT |
24301 | # Additional compiler flags for building library objects. |
24302 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 24303 | |
ee134472 JF |
24304 | # How to pass a linker flag through the compiler. |
24305 | wl=$lt_lt_prog_compiler_wl_CXX | |
24306 | ||
9c60689e DWT |
24307 | # Compiler flag to prevent dynamic linking. |
24308 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 24309 | |
9c60689e DWT |
24310 | # Does compiler simultaneously support -c and -o options? |
24311 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 24312 | |
9c60689e DWT |
24313 | # Whether or not to add -lc for building shared libraries. |
24314 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 24315 | |
9c60689e DWT |
24316 | # Whether or not to disallow shared libs when runtime libs are static. |
24317 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 24318 | |
9c60689e DWT |
24319 | # Compiler flag to allow reflexive dlopens. |
24320 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 24321 | |
9c60689e DWT |
24322 | # Compiler flag to generate shared objects directly from archives. |
24323 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 24324 | |
9c60689e DWT |
24325 | # Whether the compiler copes with passing no objects directly. |
24326 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 24327 | |
9c60689e DWT |
24328 | # Create an old-style archive from a shared archive. |
24329 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 24330 | |
9c60689e DWT |
24331 | # Create a temporary old-style archive to link instead of a shared archive. |
24332 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 24333 | |
9c60689e DWT |
24334 | # Commands used to build a shared archive. |
24335 | archive_cmds=$lt_archive_cmds_CXX | |
24336 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 24337 | |
9c60689e DWT |
24338 | # Commands used to build a loadable module if different from building |
24339 | # a shared archive. | |
24340 | module_cmds=$lt_module_cmds_CXX | |
24341 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 24342 | |
9c60689e DWT |
24343 | # Whether we are building with GNU ld or not. |
24344 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 24345 | |
9c60689e DWT |
24346 | # Flag that allows shared libraries with undefined symbols to be built. |
24347 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 24348 | |
9c60689e DWT |
24349 | # Flag that enforces no undefined symbols. |
24350 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 24351 | |
9c60689e DWT |
24352 | # Flag to hardcode \$libdir into a binary during linking. |
24353 | # This must work even if \$libdir does not exist | |
24354 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 24355 | |
9c60689e DWT |
24356 | # Whether we need a single "-rpath" flag with a separated argument. |
24357 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 24358 | |
9c60689e DWT |
24359 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
24360 | # DIR into the resulting binary. | |
24361 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 24362 | |
9c60689e DWT |
24363 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
24364 | # DIR into the resulting binary and the resulting library dependency is | |
24365 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
24366 | # library is relocated. | |
24367 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 24368 | |
9c60689e DWT |
24369 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24370 | # into the resulting binary. | |
24371 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 24372 | |
9c60689e DWT |
24373 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24374 | # into the resulting binary. | |
24375 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 24376 | |
9c60689e DWT |
24377 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24378 | # into the library and all subsequent libraries and executables linked | |
24379 | # against it. | |
24380 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 24381 | |
9c60689e DWT |
24382 | # Set to yes if linker adds runtime paths of dependent libraries |
24383 | # to runtime path list. | |
24384 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 24385 | |
9c60689e DWT |
24386 | # Whether libtool must link a program against all its dependency libraries. |
24387 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 24388 | |
9c60689e DWT |
24389 | # Set to "yes" if exported symbols are required. |
24390 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 24391 | |
9c60689e DWT |
24392 | # The commands to list exported symbols. |
24393 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 24394 | |
9c60689e DWT |
24395 | # Symbols that should not be listed in the preloaded symbols. |
24396 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 24397 | |
9c60689e DWT |
24398 | # Symbols that must always be exported. |
24399 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 24400 | |
9c60689e DWT |
24401 | # Commands necessary for linking programs (against libraries) with templates. |
24402 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 24403 | |
ee134472 JF |
24404 | # Commands necessary for finishing linking programs. |
24405 | postlink_cmds=$lt_postlink_cmds_CXX | |
24406 | ||
9c60689e DWT |
24407 | # Specify filename containing input files. |
24408 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 24409 | |
9c60689e DWT |
24410 | # How to hardcode a shared library path into an executable. |
24411 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 24412 | |
9c60689e DWT |
24413 | # The directories searched by this compiler when creating a shared library. |
24414 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 24415 | |
9c60689e DWT |
24416 | # Dependencies to place before and after the objects being linked to |
24417 | # create a shared library. | |
24418 | predep_objects=$lt_predep_objects_CXX | |
24419 | postdep_objects=$lt_postdep_objects_CXX | |
24420 | predeps=$lt_predeps_CXX | |
24421 | postdeps=$lt_postdeps_CXX | |
309b0535 | 24422 | |
9c60689e DWT |
24423 | # The library search path used internally by the compiler when linking |
24424 | # a shared library. | |
24425 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
24426 | ||
24427 | # ### END LIBTOOL TAG CONFIG: CXX | |
24428 | _LT_EOF | |
24429 | ||
24430 | ;; | |
24431 | ||
24432 | esac | |
24433 | done # for ac_tag | |
24434 | ||
24435 | ||
24436 | as_fn_exit 0 | |
24437 | _ACEOF | |
24438 | ac_clean_files=$ac_clean_files_save | |
24439 | ||
24440 | test $ac_write_fail = 0 || | |
12833ad8 | 24441 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
24442 | |
24443 | ||
24444 | # configure is writing to config.log, and then calls config.status. | |
24445 | # config.status does its own redirection, appending to config.log. | |
24446 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24447 | # by configure, so config.status won't be able to write to it; its | |
24448 | # output is simply discarded. So we exec the FD to /dev/null, | |
24449 | # effectively closing config.log, so it can be properly (re)opened and | |
24450 | # appended to by config.status. When coming back to configure, we | |
24451 | # need to make the FD available again. | |
24452 | if test "$no_create" != yes; then | |
24453 | ac_cs_success=: | |
24454 | ac_config_status_args= | |
24455 | test "$silent" = yes && | |
24456 | ac_config_status_args="$ac_config_status_args --quiet" | |
24457 | exec 5>/dev/null | |
24458 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24459 | exec 5>>config.log | |
24460 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24461 | # would make configure fail if this is the last instruction. | |
12833ad8 | 24462 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 24463 | fi |
9c60689e DWT |
24464 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
24465 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
24466 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
24467 | fi | |
24468 |