]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
53ba6704 | 3 | # Generated by GNU Autoconf 2.69 for Cycript 0.9. |
c7aa54aa DWT |
4 | # |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
9c60689e | 7 | # |
53ba6704 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
9c60689e | 9 | # |
c7aa54aa DWT |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
13 | # |
14 | # Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 94 | as_myself= |
c7aa54aa DWT |
95 | case $0 in #(( |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
53ba6704 JF |
139 | # Use a proper internal environment variable to ensure we don't fall |
140 | # into an infinite loop, continuously re-executing ourselves. | |
141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
142 | _as_can_reexec=no; export _as_can_reexec; | |
143 | # We cannot yet assume a decent shell, so we have to provide a | |
144 | # neutralization value for shells without unset; and this also | |
145 | # works around shells that cannot unset nonexistent variables. | |
146 | # Preserve -v and -x to the replacement shell. | |
147 | BASH_ENV=/dev/null | |
148 | ENV=/dev/null | |
149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
150 | case $- in # (((( | |
151 | *v*x* | *x*v* ) as_opts=-vx ;; | |
152 | *v* ) as_opts=-v ;; | |
153 | *x* ) as_opts=-x ;; | |
154 | * ) as_opts= ;; | |
155 | esac | |
156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
157 | # Admittedly, this is quite paranoid, since all the known shells bail | |
158 | # out after a failed `exec'. | |
159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
160 | as_fn_exit 255 | |
161 | fi | |
162 | # We don't want this to propagate to other subprocesses. | |
163 | { _as_can_reexec=; unset _as_can_reexec;} | |
c7aa54aa DWT |
164 | if test "x$CONFIG_SHELL" = x; then |
165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
166 | emulate sh | |
167 | NULLCMD=: | |
168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
169 | # is contrary to our usage. Disable this feature. | |
170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
171 | setopt NO_GLOB_SUBST | |
172 | else | |
173 | case \`(set -o) 2>/dev/null\` in #( | |
174 | *posix*) : | |
175 | set -o posix ;; #( | |
176 | *) : | |
177 | ;; | |
178 | esac | |
179 | fi | |
180 | " | |
181 | as_required="as_fn_return () { (exit \$1); } | |
182 | as_fn_success () { as_fn_return 0; } | |
183 | as_fn_failure () { as_fn_return 1; } | |
184 | as_fn_ret_success () { return 0; } | |
185 | as_fn_ret_failure () { return 1; } | |
186 | ||
187 | exitcode=0 | |
188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
193 | ||
194 | else | |
195 | exitcode=1; echo positional parameters were not saved. | |
196 | fi | |
53ba6704 JF |
197 | test x\$exitcode = x0 || exit 1 |
198 | test -x / || exit 1" | |
c7aa54aa DWT |
199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 | 202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
ee134472 JF |
203 | |
204 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
205 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
208 | PATH=/empty FPATH=/empty; export PATH FPATH | |
209 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
210 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
35fa52c0 | 211 | test \$(( 1 + 1 )) = 2 || exit 1" |
c7aa54aa DWT |
212 | if (eval "$as_required") 2>/dev/null; then : |
213 | as_have_required=yes | |
214 | else | |
215 | as_have_required=no | |
216 | fi | |
217 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
218 | ||
219 | else | |
220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
221 | as_found=false | |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
226 | as_found=: | |
227 | case $as_dir in #( | |
228 | /*) | |
229 | for as_base in sh bash ksh sh5; do | |
230 | # Try only shells that exist, to save several forks. | |
231 | as_shell=$as_dir/$as_base | |
232 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$as_shell as_have_required=yes | |
235 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
236 | break 2 | |
237 | fi | |
238 | fi | |
239 | done;; | |
240 | esac | |
241 | as_found=false | |
242 | done | |
243 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
244 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
245 | CONFIG_SHELL=$SHELL as_have_required=yes | |
246 | fi; } | |
247 | IFS=$as_save_IFS | |
248 | ||
249 | ||
250 | if test "x$CONFIG_SHELL" != x; then : | |
53ba6704 JF |
251 | export CONFIG_SHELL |
252 | # We cannot yet assume a decent shell, so we have to provide a | |
253 | # neutralization value for shells without unset; and this also | |
254 | # works around shells that cannot unset nonexistent variables. | |
255 | # Preserve -v and -x to the replacement shell. | |
256 | BASH_ENV=/dev/null | |
257 | ENV=/dev/null | |
258 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
259 | case $- in # (((( | |
260 | *v*x* | *x*v* ) as_opts=-vx ;; | |
261 | *v* ) as_opts=-v ;; | |
262 | *x* ) as_opts=-x ;; | |
263 | * ) as_opts= ;; | |
264 | esac | |
265 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
266 | # Admittedly, this is quite paranoid, since all the known shells bail | |
267 | # out after a failed `exec'. | |
268 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
269 | exit 255 | |
c7aa54aa DWT |
270 | fi |
271 | ||
272 | if test x$as_have_required = xno; then : | |
273 | $as_echo "$0: This script requires a shell more modern than all" | |
274 | $as_echo "$0: the shells that I found on your system." | |
275 | if test x${ZSH_VERSION+set} = xset ; then | |
276 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
277 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
278 | else | |
279 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
280 | $0: about your system, including any error possibly output | |
281 | $0: before this message. Then install a modern shell, or | |
282 | $0: manually run the script under such a shell if you do | |
283 | $0: have one." | |
284 | fi | |
285 | exit 1 | |
286 | fi | |
287 | fi | |
288 | fi | |
289 | SHELL=${CONFIG_SHELL-/bin/sh} | |
290 | export SHELL | |
291 | # Unset more variables known to interfere with behavior of common tools. | |
292 | CLICOLOR_FORCE= GREP_OPTIONS= | |
293 | unset CLICOLOR_FORCE GREP_OPTIONS | |
294 | ||
295 | ## --------------------- ## | |
296 | ## M4sh Shell Functions. ## | |
297 | ## --------------------- ## | |
298 | # as_fn_unset VAR | |
299 | # --------------- | |
300 | # Portably unset VAR. | |
301 | as_fn_unset () | |
302 | { | |
303 | { eval $1=; unset $1;} | |
304 | } | |
305 | as_unset=as_fn_unset | |
306 | ||
307 | # as_fn_set_status STATUS | |
308 | # ----------------------- | |
309 | # Set $? to STATUS, without forking. | |
310 | as_fn_set_status () | |
311 | { | |
312 | return $1 | |
313 | } # as_fn_set_status | |
314 | ||
315 | # as_fn_exit STATUS | |
316 | # ----------------- | |
317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
318 | as_fn_exit () | |
319 | { | |
320 | set +e | |
321 | as_fn_set_status $1 | |
322 | exit $1 | |
323 | } # as_fn_exit | |
324 | ||
325 | # as_fn_mkdir_p | |
326 | # ------------- | |
327 | # Create "$as_dir" as a directory, including parents if necessary. | |
328 | as_fn_mkdir_p () | |
329 | { | |
330 | ||
331 | case $as_dir in #( | |
332 | -*) as_dir=./$as_dir;; | |
333 | esac | |
334 | test -d "$as_dir" || eval $as_mkdir_p || { | |
335 | as_dirs= | |
336 | while :; do | |
337 | case $as_dir in #( | |
338 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
339 | *) as_qdir=$as_dir;; | |
340 | esac | |
341 | as_dirs="'$as_qdir' $as_dirs" | |
342 | as_dir=`$as_dirname -- "$as_dir" || | |
343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
344 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
345 | X"$as_dir" : 'X\(//\)$' \| \ | |
346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
347 | $as_echo X"$as_dir" | | |
348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\/\)[^/].*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | /^X\(\/\/\)$/{ | |
357 | s//\1/ | |
358 | q | |
359 | } | |
360 | /^X\(\/\).*/{ | |
361 | s//\1/ | |
362 | q | |
363 | } | |
364 | s/.*/./; q'` | |
365 | test -d "$as_dir" && break | |
366 | done | |
367 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
c7aa54aa DWT |
369 | |
370 | ||
371 | } # as_fn_mkdir_p | |
53ba6704 JF |
372 | |
373 | # as_fn_executable_p FILE | |
374 | # ----------------------- | |
375 | # Test if FILE is an executable regular file. | |
376 | as_fn_executable_p () | |
377 | { | |
378 | test -f "$1" && test -x "$1" | |
379 | } # as_fn_executable_p | |
c7aa54aa DWT |
380 | # as_fn_append VAR VALUE |
381 | # ---------------------- | |
382 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
383 | # advantage of any shell optimizations that allow amortized linear growth over | |
384 | # repeated appends, instead of the typical quadratic growth present in naive | |
385 | # implementations. | |
386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
387 | eval 'as_fn_append () | |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
391 | else | |
392 | as_fn_append () | |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
404 | eval 'as_fn_arith () | |
405 | { | |
406 | as_val=$(( $* )) | |
407 | }' | |
408 | else | |
409 | as_fn_arith () | |
410 | { | |
411 | as_val=`expr "$@" || test $? -eq 1` | |
412 | } | |
413 | fi # as_fn_arith | |
414 | ||
415 | ||
12833ad8 JF |
416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
417 | # ---------------------------------------- | |
c7aa54aa DWT |
418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 420 | # script with STATUS, using 1 if that was 0. |
c7aa54aa DWT |
421 | as_fn_error () |
422 | { | |
12833ad8 JF |
423 | as_status=$1; test $as_status -eq 0 && as_status=1 |
424 | if test "$4"; then | |
425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c7aa54aa | 427 | fi |
12833ad8 | 428 | $as_echo "$as_me: error: $2" >&2 |
c7aa54aa DWT |
429 | as_fn_exit $as_status |
430 | } # as_fn_error | |
431 | ||
432 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
433 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
434 | as_expr=expr | |
435 | else | |
436 | as_expr=false | |
437 | fi | |
438 | ||
439 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
440 | as_basename=basename | |
441 | else | |
442 | as_basename=false | |
443 | fi | |
444 | ||
445 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
446 | as_dirname=dirname | |
447 | else | |
448 | as_dirname=false | |
449 | fi | |
450 | ||
451 | as_me=`$as_basename -- "$0" || | |
452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
453 | X"$0" : 'X\(//\)$' \| \ | |
454 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
455 | $as_echo X/"$0" | | |
456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
457 | s//\1/ | |
458 | q | |
459 | } | |
460 | /^X\/\(\/\/\)$/{ | |
461 | s//\1/ | |
462 | q | |
463 | } | |
464 | /^X\/\(\/\).*/{ | |
465 | s//\1/ | |
466 | q | |
467 | } | |
468 | s/.*/./; q'` | |
469 | ||
470 | # Avoid depending upon Character Ranges. | |
471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
474 | as_cr_digits='0123456789' | |
475 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
476 | ||
477 | ||
478 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
479 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
480 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
481 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
482 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
483 | sed -n ' | |
484 | p | |
485 | /[$]LINENO/= | |
486 | ' <$as_myself | | |
487 | sed ' | |
488 | s/[$]LINENO.*/&-/ | |
489 | t lineno | |
490 | b | |
491 | :lineno | |
492 | N | |
493 | :loop | |
494 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
495 | t loop | |
496 | s/-\n.*// | |
497 | ' >$as_me.lineno && | |
498 | chmod +x "$as_me.lineno" || | |
499 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
500 | ||
53ba6704 JF |
501 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
502 | # already done that, so ensure we don't try to do so again and fall | |
503 | # in an infinite loop. This has already happened in practice. | |
504 | _as_can_reexec=no; export _as_can_reexec | |
c7aa54aa DWT |
505 | # Don't try to exec as it changes $[0], causing all sort of problems |
506 | # (the dirname of $[0] is not the place where we might find the | |
507 | # original and so on. Autoconf is especially sensitive to this). | |
508 | . "./$as_me.lineno" | |
509 | # Exit status is that of the last command. | |
510 | exit | |
511 | } | |
512 | ||
513 | ECHO_C= ECHO_N= ECHO_T= | |
514 | case `echo -n x` in #((((( | |
515 | -n*) | |
516 | case `echo 'xy\c'` in | |
517 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
518 | xy) ECHO_C='\c';; | |
519 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
520 | ECHO_T=' ';; | |
521 | esac;; | |
522 | *) | |
523 | ECHO_N='-n';; | |
524 | esac | |
525 | ||
526 | rm -f conf$$ conf$$.exe conf$$.file | |
527 | if test -d conf$$.dir; then | |
528 | rm -f conf$$.dir/conf$$.file | |
529 | else | |
530 | rm -f conf$$.dir | |
531 | mkdir conf$$.dir 2>/dev/null | |
532 | fi | |
533 | if (echo >conf$$.file) 2>/dev/null; then | |
534 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
535 | as_ln_s='ln -s' | |
536 | # ... but there are two gotchas: | |
537 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
538 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 539 | # In both cases, we have to default to `cp -pR'. |
c7aa54aa | 540 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 541 | as_ln_s='cp -pR' |
c7aa54aa DWT |
542 | elif ln conf$$.file conf$$ 2>/dev/null; then |
543 | as_ln_s=ln | |
544 | else | |
53ba6704 | 545 | as_ln_s='cp -pR' |
c7aa54aa DWT |
546 | fi |
547 | else | |
53ba6704 | 548 | as_ln_s='cp -pR' |
c7aa54aa DWT |
549 | fi |
550 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
551 | rmdir conf$$.dir 2>/dev/null | |
552 | ||
553 | if mkdir -p . 2>/dev/null; then | |
554 | as_mkdir_p='mkdir -p "$as_dir"' | |
555 | else | |
556 | test -d ./-p && rmdir ./-p | |
557 | as_mkdir_p=false | |
558 | fi | |
559 | ||
53ba6704 JF |
560 | as_test_x='test -x' |
561 | as_executable_p=as_fn_executable_p | |
c7aa54aa DWT |
562 | |
563 | # Sed expression to map a string onto a valid CPP name. | |
564 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
566 | # Sed expression to map a string onto a valid variable name. | |
567 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
9c60689e DWT |
569 | SHELL=${CONFIG_SHELL-/bin/sh} |
570 | ||
c7aa54aa | 571 | |
9c60689e DWT |
572 | test -n "$DJDIR" || exec 7<&0 </dev/null |
573 | exec 6>&1 | |
c7aa54aa DWT |
574 | |
575 | # Name of the host. | |
12833ad8 | 576 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c7aa54aa DWT |
577 | # so uname gets run too. |
578 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
579 | ||
580 | # | |
581 | # Initializations. | |
582 | # | |
583 | ac_default_prefix=/usr/local | |
584 | ac_clean_files= | |
585 | ac_config_libobj_dir=. | |
586 | LIBOBJS= | |
587 | cross_compiling=no | |
588 | subdirs= | |
589 | MFLAGS= | |
590 | MAKEFLAGS= | |
591 | ||
592 | # Identity of this package. | |
593 | PACKAGE_NAME='Cycript' | |
594 | PACKAGE_TARNAME='cycript' | |
595 | PACKAGE_VERSION='0.9' | |
596 | PACKAGE_STRING='Cycript 0.9' | |
597 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
598 | PACKAGE_URL='http://www.cycript.org/' | |
599 | ||
35fa52c0 | 600 | ac_unique_file="Console.cpp" |
6b66678a DWT |
601 | # Factoring default headers for most tests. |
602 | ac_includes_default="\ | |
603 | #include <stdio.h> | |
604 | #ifdef HAVE_SYS_TYPES_H | |
605 | # include <sys/types.h> | |
606 | #endif | |
607 | #ifdef HAVE_SYS_STAT_H | |
608 | # include <sys/stat.h> | |
609 | #endif | |
610 | #ifdef STDC_HEADERS | |
611 | # include <stdlib.h> | |
612 | # include <stddef.h> | |
613 | #else | |
614 | # ifdef HAVE_STDLIB_H | |
615 | # include <stdlib.h> | |
616 | # endif | |
617 | #endif | |
618 | #ifdef HAVE_STRING_H | |
619 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
620 | # include <memory.h> | |
621 | # endif | |
622 | # include <string.h> | |
623 | #endif | |
624 | #ifdef HAVE_STRINGS_H | |
625 | # include <strings.h> | |
626 | #endif | |
627 | #ifdef HAVE_INTTYPES_H | |
628 | # include <inttypes.h> | |
629 | #endif | |
630 | #ifdef HAVE_STDINT_H | |
631 | # include <stdint.h> | |
632 | #endif | |
633 | #ifdef HAVE_UNISTD_H | |
634 | # include <unistd.h> | |
635 | #endif" | |
636 | ||
66170b30 JF |
637 | ac_subst_vars='am__EXEEXT_FALSE |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
9c60689e | 640 | LIBOBJS |
a243b558 JF |
641 | CY_MACH_FALSE |
642 | CY_MACH_TRUE | |
66170b30 | 643 | CY_MACH |
7eda51e0 | 644 | CY_ATTACH_GROUP |
a243b558 JF |
645 | ac_ct__OTOOL |
646 | _OTOOL | |
794e88e7 DWT |
647 | ac_ct__NM |
648 | _NM | |
649 | ac_ct__LIPO | |
650 | _LIPO | |
9777bd50 | 651 | SO |
66170b30 | 652 | LTFLAGS |
6f9aea2b JF |
653 | LTLIBTERMCAP |
654 | LTLIBREADLINE | |
a243b558 JF |
655 | CY_OBJECTIVEC_FALSE |
656 | CY_OBJECTIVEC_TRUE | |
babf7fe8 | 657 | LTOBJECTIVEC |
47aaa820 | 658 | GNUSTEP_CONFIG |
c823f118 | 659 | CY_OBJECTIVEC |
296ee9a6 | 660 | LTLIBFFI |
309b0535 | 661 | LIBFFI_LIBS |
35fa52c0 | 662 | LIBFFI_CFLAGS |
a243b558 JF |
663 | CY_EXECUTE_FALSE |
664 | CY_EXECUTE_TRUE | |
d4f27204 | 665 | LTLIBAPR |
a93f15c0 JF |
666 | CY_CONSOLE_FALSE |
667 | CY_CONSOLE_TRUE | |
babf7fe8 | 668 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
669 | WEBKIT_LIBS |
670 | WEBKIT_CFLAGS | |
7eda51e0 | 671 | CY_EXECUTE |
9228a43a | 672 | CY_FILTERS |
e9c9a47c | 673 | GNUTAR |
e9c9a47c DWT |
674 | GPERF |
675 | FLEX | |
676 | BISON | |
677 | TIME | |
66170b30 | 678 | GIT |
12833ad8 JF |
679 | PKG_CONFIG_LIBDIR |
680 | PKG_CONFIG_PATH | |
3fd51f51 | 681 | PKG_CONFIG |
a243b558 | 682 | CXXCPP |
9c60689e DWT |
683 | CPP |
684 | OTOOL64 | |
685 | OTOOL | |
686 | LIPO | |
687 | NMEDIT | |
688 | DSYMUTIL | |
ee134472 | 689 | MANIFEST_TOOL |
9c60689e | 690 | RANLIB |
ee134472 | 691 | DLLTOOL |
9c60689e DWT |
692 | OBJDUMP |
693 | LN_S | |
694 | NM | |
695 | ac_ct_DUMPBIN | |
696 | DUMPBIN | |
697 | LD | |
698 | FGREP | |
699 | EGREP | |
700 | GREP | |
701 | SED | |
a243b558 JF |
702 | host_os |
703 | host_vendor | |
704 | host_cpu | |
705 | host | |
706 | build_os | |
707 | build_vendor | |
708 | build_cpu | |
709 | build | |
710 | LIBTOOL | |
a243b558 JF |
711 | ac_ct_AR |
712 | AR | |
713 | am__fastdepOBJCXX_FALSE | |
714 | am__fastdepOBJCXX_TRUE | |
715 | OBJCXXDEPMODE | |
716 | ac_ct_OBJCXX | |
717 | OBJCXXFLAGS | |
718 | OBJCXX | |
719 | am__fastdepCXX_FALSE | |
720 | am__fastdepCXX_TRUE | |
721 | CXXDEPMODE | |
a93f15c0 JF |
722 | ac_ct_CXX |
723 | CXXFLAGS | |
724 | CXX | |
725 | am__fastdepCC_FALSE | |
726 | am__fastdepCC_TRUE | |
727 | CCDEPMODE | |
66170b30 JF |
728 | am__nodep |
729 | AMDEPBACKSLASH | |
730 | AMDEP_FALSE | |
731 | AMDEP_TRUE | |
732 | am__quote | |
733 | am__include | |
734 | DEPDIR | |
35fa52c0 DWT |
735 | OBJEXT |
736 | EXEEXT | |
a93f15c0 | 737 | ac_ct_CC |
35fa52c0 DWT |
738 | CPPFLAGS |
739 | LDFLAGS | |
a93f15c0 JF |
740 | CFLAGS |
741 | CC | |
babf7fe8 JF |
742 | MAINT |
743 | MAINTAINER_MODE_FALSE | |
744 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
745 | AM_BACKSLASH |
746 | AM_DEFAULT_VERBOSITY | |
747 | AM_DEFAULT_V | |
748 | AM_V | |
749 | am__untar | |
750 | am__tar | |
751 | AMTAR | |
752 | am__leading_dot | |
753 | SET_MAKE | |
754 | AWK | |
755 | mkdir_p | |
756 | MKDIR_P | |
757 | INSTALL_STRIP_PROGRAM | |
758 | STRIP | |
759 | install_sh | |
760 | MAKEINFO | |
761 | AUTOHEADER | |
762 | AUTOMAKE | |
763 | AUTOCONF | |
764 | ACLOCAL | |
765 | VERSION | |
766 | PACKAGE | |
767 | CYGPATH_W | |
768 | am__isrc | |
769 | INSTALL_DATA | |
770 | INSTALL_SCRIPT | |
771 | INSTALL_PROGRAM | |
dbadc56a | 772 | target_alias |
c7aa54aa DWT |
773 | host_alias |
774 | build_alias | |
775 | LIBS | |
776 | ECHO_T | |
777 | ECHO_N | |
778 | ECHO_C | |
779 | DEFS | |
780 | mandir | |
781 | localedir | |
782 | libdir | |
783 | psdir | |
784 | pdfdir | |
785 | dvidir | |
786 | htmldir | |
787 | infodir | |
788 | docdir | |
789 | oldincludedir | |
790 | includedir | |
791 | localstatedir | |
792 | sharedstatedir | |
793 | sysconfdir | |
794 | datadir | |
795 | datarootdir | |
796 | libexecdir | |
797 | sbindir | |
798 | bindir | |
799 | program_transform_name | |
800 | prefix | |
801 | exec_prefix | |
802 | PACKAGE_URL | |
803 | PACKAGE_BUGREPORT | |
804 | PACKAGE_STRING | |
805 | PACKAGE_VERSION | |
806 | PACKAGE_TARNAME | |
807 | PACKAGE_NAME | |
808 | PATH_SEPARATOR | |
809 | SHELL' | |
810 | ac_subst_files='' | |
811 | ac_user_opts=' | |
812 | enable_option_checking | |
66170b30 | 813 | enable_silent_rules |
babf7fe8 | 814 | enable_maintainer_mode |
a243b558 | 815 | enable_dependency_tracking |
9c60689e | 816 | enable_static |
549f29b5 | 817 | enable_shared |
9c60689e DWT |
818 | with_pic |
819 | enable_fast_install | |
35fa52c0 | 820 | with_gnu_ld |
ee134472 | 821 | with_sysroot |
9c60689e | 822 | enable_libtool_lock |
5053a6d1 | 823 | enable_javascript |
a93f15c0 | 824 | enable_console |
66170b30 | 825 | with_apr |
c7aa54aa DWT |
826 | ' |
827 | ac_precious_vars='build_alias | |
828 | host_alias | |
dbadc56a | 829 | target_alias |
a93f15c0 JF |
830 | CC |
831 | CFLAGS | |
dbadc56a DWT |
832 | LDFLAGS |
833 | LIBS | |
834 | CPPFLAGS | |
a93f15c0 JF |
835 | CXX |
836 | CXXFLAGS | |
a243b558 JF |
837 | CCC |
838 | OBJCXX | |
839 | OBJCXXFLAGS | |
9c60689e | 840 | CPP |
a243b558 | 841 | CXXCPP |
3fd51f51 | 842 | PKG_CONFIG |
12833ad8 JF |
843 | PKG_CONFIG_PATH |
844 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
845 | BISON |
846 | FLEX | |
847 | GPERF | |
66170b30 | 848 | GNUTAR |
35fa52c0 DWT |
849 | WEBKIT_CFLAGS |
850 | WEBKIT_LIBS | |
a667869d | 851 | LIBFFI_CFLAGS |
790e5246 DWT |
852 | LIBFFI_LIBS |
853 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
854 | |
855 | ||
856 | # Initialize some variables set by options. | |
857 | ac_init_help= | |
858 | ac_init_version=false | |
859 | ac_unrecognized_opts= | |
860 | ac_unrecognized_sep= | |
861 | # The variables have the same names as the options, with | |
862 | # dashes changed to underlines. | |
863 | cache_file=/dev/null | |
864 | exec_prefix=NONE | |
865 | no_create= | |
866 | no_recursion= | |
867 | prefix=NONE | |
868 | program_prefix=NONE | |
869 | program_suffix=NONE | |
870 | program_transform_name=s,x,x, | |
871 | silent= | |
872 | site= | |
873 | srcdir= | |
874 | verbose= | |
875 | x_includes=NONE | |
876 | x_libraries=NONE | |
877 | ||
878 | # Installation directory options. | |
879 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
880 | # and all the variables that are supposed to be based on exec_prefix | |
881 | # by default will actually change. | |
882 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
883 | # (The list follows the same order as the GNU Coding Standards.) | |
884 | bindir='${exec_prefix}/bin' | |
885 | sbindir='${exec_prefix}/sbin' | |
886 | libexecdir='${exec_prefix}/libexec' | |
887 | datarootdir='${prefix}/share' | |
888 | datadir='${datarootdir}' | |
889 | sysconfdir='${prefix}/etc' | |
890 | sharedstatedir='${prefix}/com' | |
891 | localstatedir='${prefix}/var' | |
892 | includedir='${prefix}/include' | |
893 | oldincludedir='/usr/include' | |
894 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
895 | infodir='${datarootdir}/info' | |
896 | htmldir='${docdir}' | |
897 | dvidir='${docdir}' | |
898 | pdfdir='${docdir}' | |
899 | psdir='${docdir}' | |
900 | libdir='${exec_prefix}/lib' | |
901 | localedir='${datarootdir}/locale' | |
902 | mandir='${datarootdir}/man' | |
903 | ||
904 | ac_prev= | |
905 | ac_dashdash= | |
906 | for ac_option | |
907 | do | |
908 | # If the previous option needs an argument, assign it. | |
909 | if test -n "$ac_prev"; then | |
910 | eval $ac_prev=\$ac_option | |
911 | ac_prev= | |
912 | continue | |
913 | fi | |
914 | ||
915 | case $ac_option in | |
12833ad8 JF |
916 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
917 | *=) ac_optarg= ;; | |
918 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
919 | esac |
920 | ||
921 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
922 | ||
923 | case $ac_dashdash$ac_option in | |
924 | --) | |
925 | ac_dashdash=yes ;; | |
926 | ||
927 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
928 | ac_prev=bindir ;; | |
929 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
930 | bindir=$ac_optarg ;; | |
931 | ||
932 | -build | --build | --buil | --bui | --bu) | |
933 | ac_prev=build_alias ;; | |
934 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
935 | build_alias=$ac_optarg ;; | |
936 | ||
937 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
938 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
939 | ac_prev=cache_file ;; | |
940 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
941 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
942 | cache_file=$ac_optarg ;; | |
943 | ||
944 | --config-cache | -C) | |
945 | cache_file=config.cache ;; | |
946 | ||
947 | -datadir | --datadir | --datadi | --datad) | |
948 | ac_prev=datadir ;; | |
949 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
950 | datadir=$ac_optarg ;; | |
951 | ||
952 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
953 | | --dataroo | --dataro | --datar) | |
954 | ac_prev=datarootdir ;; | |
955 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
956 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
957 | datarootdir=$ac_optarg ;; | |
958 | ||
959 | -disable-* | --disable-*) | |
960 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
961 | # Reject names that are not valid shell variable names. | |
962 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 963 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
964 | ac_useropt_orig=$ac_useropt |
965 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
966 | case $ac_user_opts in | |
967 | *" | |
968 | "enable_$ac_useropt" | |
969 | "*) ;; | |
970 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
971 | ac_unrecognized_sep=', ';; | |
972 | esac | |
973 | eval enable_$ac_useropt=no ;; | |
974 | ||
975 | -docdir | --docdir | --docdi | --doc | --do) | |
976 | ac_prev=docdir ;; | |
977 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
978 | docdir=$ac_optarg ;; | |
979 | ||
980 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
981 | ac_prev=dvidir ;; | |
982 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
983 | dvidir=$ac_optarg ;; | |
984 | ||
985 | -enable-* | --enable-*) | |
986 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
987 | # Reject names that are not valid shell variable names. | |
988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
990 | ac_useropt_orig=$ac_useropt |
991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
992 | case $ac_user_opts in | |
993 | *" | |
994 | "enable_$ac_useropt" | |
995 | "*) ;; | |
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
997 | ac_unrecognized_sep=', ';; | |
998 | esac | |
999 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1000 | ||
1001 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1002 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1003 | | --exec | --exe | --ex) | |
1004 | ac_prev=exec_prefix ;; | |
1005 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1006 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1007 | | --exec=* | --exe=* | --ex=*) | |
1008 | exec_prefix=$ac_optarg ;; | |
1009 | ||
1010 | -gas | --gas | --ga | --g) | |
1011 | # Obsolete; use --with-gas. | |
1012 | with_gas=yes ;; | |
1013 | ||
1014 | -help | --help | --hel | --he | -h) | |
1015 | ac_init_help=long ;; | |
1016 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1017 | ac_init_help=recursive ;; | |
1018 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1019 | ac_init_help=short ;; | |
1020 | ||
1021 | -host | --host | --hos | --ho) | |
1022 | ac_prev=host_alias ;; | |
1023 | -host=* | --host=* | --hos=* | --ho=*) | |
1024 | host_alias=$ac_optarg ;; | |
1025 | ||
1026 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1027 | ac_prev=htmldir ;; | |
1028 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1029 | | --ht=*) | |
1030 | htmldir=$ac_optarg ;; | |
1031 | ||
1032 | -includedir | --includedir | --includedi | --included | --include \ | |
1033 | | --includ | --inclu | --incl | --inc) | |
1034 | ac_prev=includedir ;; | |
1035 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1036 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1037 | includedir=$ac_optarg ;; | |
1038 | ||
1039 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1040 | ac_prev=infodir ;; | |
1041 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1042 | infodir=$ac_optarg ;; | |
1043 | ||
1044 | -libdir | --libdir | --libdi | --libd) | |
1045 | ac_prev=libdir ;; | |
1046 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1047 | libdir=$ac_optarg ;; | |
1048 | ||
1049 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1050 | | --libexe | --libex | --libe) | |
1051 | ac_prev=libexecdir ;; | |
1052 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1053 | | --libexe=* | --libex=* | --libe=*) | |
1054 | libexecdir=$ac_optarg ;; | |
1055 | ||
1056 | -localedir | --localedir | --localedi | --localed | --locale) | |
1057 | ac_prev=localedir ;; | |
1058 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1059 | localedir=$ac_optarg ;; | |
1060 | ||
1061 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1062 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1063 | ac_prev=localstatedir ;; | |
1064 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1065 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1066 | localstatedir=$ac_optarg ;; | |
1067 | ||
1068 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1069 | ac_prev=mandir ;; | |
1070 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1071 | mandir=$ac_optarg ;; | |
1072 | ||
1073 | -nfp | --nfp | --nf) | |
1074 | # Obsolete; use --without-fp. | |
1075 | with_fp=no ;; | |
1076 | ||
1077 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1078 | | --no-cr | --no-c | -n) | |
1079 | no_create=yes ;; | |
1080 | ||
1081 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1082 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1083 | no_recursion=yes ;; | |
1084 | ||
1085 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1086 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1087 | | --oldin | --oldi | --old | --ol | --o) | |
1088 | ac_prev=oldincludedir ;; | |
1089 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1090 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1091 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1092 | oldincludedir=$ac_optarg ;; | |
1093 | ||
1094 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1095 | ac_prev=prefix ;; | |
1096 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1097 | prefix=$ac_optarg ;; | |
1098 | ||
1099 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1100 | | --program-pre | --program-pr | --program-p) | |
1101 | ac_prev=program_prefix ;; | |
1102 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1103 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1104 | program_prefix=$ac_optarg ;; | |
1105 | ||
1106 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1107 | | --program-suf | --program-su | --program-s) | |
1108 | ac_prev=program_suffix ;; | |
1109 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1110 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1111 | program_suffix=$ac_optarg ;; | |
1112 | ||
1113 | -program-transform-name | --program-transform-name \ | |
1114 | | --program-transform-nam | --program-transform-na \ | |
1115 | | --program-transform-n | --program-transform- \ | |
1116 | | --program-transform | --program-transfor \ | |
1117 | | --program-transfo | --program-transf \ | |
1118 | | --program-trans | --program-tran \ | |
1119 | | --progr-tra | --program-tr | --program-t) | |
1120 | ac_prev=program_transform_name ;; | |
1121 | -program-transform-name=* | --program-transform-name=* \ | |
1122 | | --program-transform-nam=* | --program-transform-na=* \ | |
1123 | | --program-transform-n=* | --program-transform-=* \ | |
1124 | | --program-transform=* | --program-transfor=* \ | |
1125 | | --program-transfo=* | --program-transf=* \ | |
1126 | | --program-trans=* | --program-tran=* \ | |
1127 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1128 | program_transform_name=$ac_optarg ;; | |
1129 | ||
1130 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1131 | ac_prev=pdfdir ;; | |
1132 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1133 | pdfdir=$ac_optarg ;; | |
1134 | ||
1135 | -psdir | --psdir | --psdi | --psd | --ps) | |
1136 | ac_prev=psdir ;; | |
1137 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1138 | psdir=$ac_optarg ;; | |
1139 | ||
1140 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1141 | | -silent | --silent | --silen | --sile | --sil) | |
1142 | silent=yes ;; | |
1143 | ||
1144 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1145 | ac_prev=sbindir ;; | |
1146 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1147 | | --sbi=* | --sb=*) | |
1148 | sbindir=$ac_optarg ;; | |
1149 | ||
1150 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1151 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1152 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1153 | | --sha | --sh) | |
1154 | ac_prev=sharedstatedir ;; | |
1155 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1156 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1157 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1158 | | --sha=* | --sh=*) | |
1159 | sharedstatedir=$ac_optarg ;; | |
1160 | ||
1161 | -site | --site | --sit) | |
1162 | ac_prev=site ;; | |
1163 | -site=* | --site=* | --sit=*) | |
1164 | site=$ac_optarg ;; | |
1165 | ||
1166 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1167 | ac_prev=srcdir ;; | |
1168 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1169 | srcdir=$ac_optarg ;; | |
1170 | ||
1171 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1172 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1173 | ac_prev=sysconfdir ;; | |
1174 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1175 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1176 | sysconfdir=$ac_optarg ;; | |
1177 | ||
1178 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1179 | ac_prev=target_alias ;; | |
1180 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1181 | target_alias=$ac_optarg ;; | |
1182 | ||
1183 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1184 | verbose=yes ;; | |
1185 | ||
1186 | -version | --version | --versio | --versi | --vers | -V) | |
1187 | ac_init_version=: ;; | |
1188 | ||
1189 | -with-* | --with-*) | |
1190 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1191 | # Reject names that are not valid shell variable names. | |
1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1193 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1194 | ac_useropt_orig=$ac_useropt |
1195 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1196 | case $ac_user_opts in | |
1197 | *" | |
1198 | "with_$ac_useropt" | |
1199 | "*) ;; | |
1200 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1201 | ac_unrecognized_sep=', ';; | |
1202 | esac | |
1203 | eval with_$ac_useropt=\$ac_optarg ;; | |
1204 | ||
1205 | -without-* | --without-*) | |
1206 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1207 | # Reject names that are not valid shell variable names. | |
1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1209 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1210 | ac_useropt_orig=$ac_useropt |
1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1212 | case $ac_user_opts in | |
1213 | *" | |
1214 | "with_$ac_useropt" | |
1215 | "*) ;; | |
1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1217 | ac_unrecognized_sep=', ';; | |
1218 | esac | |
1219 | eval with_$ac_useropt=no ;; | |
1220 | ||
1221 | --x) | |
1222 | # Obsolete; use --with-x. | |
1223 | with_x=yes ;; | |
1224 | ||
1225 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1226 | | --x-incl | --x-inc | --x-in | --x-i) | |
1227 | ac_prev=x_includes ;; | |
1228 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1229 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1230 | x_includes=$ac_optarg ;; | |
1231 | ||
1232 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1233 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1234 | ac_prev=x_libraries ;; | |
1235 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1236 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1237 | x_libraries=$ac_optarg ;; | |
1238 | ||
12833ad8 JF |
1239 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1240 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1241 | ;; |
1242 | ||
1243 | *=*) | |
1244 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1245 | # Reject names that are not valid shell variable names. | |
1246 | case $ac_envvar in #( | |
1247 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1248 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1249 | esac |
1250 | eval $ac_envvar=\$ac_optarg | |
1251 | export $ac_envvar ;; | |
1252 | ||
1253 | *) | |
1254 | # FIXME: should be removed in autoconf 3.0. | |
1255 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1256 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1257 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1258 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1259 | ;; |
1260 | ||
1261 | esac | |
1262 | done | |
1263 | ||
1264 | if test -n "$ac_prev"; then | |
1265 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1266 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1267 | fi |
1268 | ||
1269 | if test -n "$ac_unrecognized_opts"; then | |
1270 | case $enable_option_checking in | |
1271 | no) ;; | |
12833ad8 | 1272 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1273 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1274 | esac | |
1275 | fi | |
1276 | ||
1277 | # Check all directory arguments for consistency. | |
1278 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1279 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1280 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1281 | libdir localedir mandir | |
1282 | do | |
1283 | eval ac_val=\$$ac_var | |
1284 | # Remove trailing slashes. | |
1285 | case $ac_val in | |
1286 | */ ) | |
1287 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1288 | eval $ac_var=\$ac_val;; | |
1289 | esac | |
1290 | # Be sure to have absolute directory names. | |
1291 | case $ac_val in | |
1292 | [\\/$]* | ?:[\\/]* ) continue;; | |
1293 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1294 | esac | |
12833ad8 | 1295 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1296 | done |
1297 | ||
1298 | # There might be people who depend on the old broken behavior: `$host' | |
1299 | # used to hold the argument of --host etc. | |
1300 | # FIXME: To remove some day. | |
1301 | build=$build_alias | |
1302 | host=$host_alias | |
1303 | target=$target_alias | |
1304 | ||
1305 | # FIXME: To remove some day. | |
1306 | if test "x$host_alias" != x; then | |
1307 | if test "x$build_alias" = x; then | |
1308 | cross_compiling=maybe | |
c7aa54aa DWT |
1309 | elif test "x$build_alias" != "x$host_alias"; then |
1310 | cross_compiling=yes | |
1311 | fi | |
1312 | fi | |
1313 | ||
1314 | ac_tool_prefix= | |
1315 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1316 | ||
1317 | test "$silent" = yes && exec 6>/dev/null | |
1318 | ||
1319 | ||
1320 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1321 | ac_ls_di=`ls -di .` && | |
1322 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1323 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1324 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1325 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1326 | |
1327 | ||
1328 | # Find the source files, if location was not specified. | |
1329 | if test -z "$srcdir"; then | |
1330 | ac_srcdir_defaulted=yes | |
1331 | # Try the directory containing this script, then the parent directory. | |
1332 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1333 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1334 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1335 | X"$as_myself" : 'X\(//\)$' \| \ | |
1336 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1337 | $as_echo X"$as_myself" | | |
1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\/\)[^/].*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\/\)$/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | /^X\(\/\).*/{ | |
1351 | s//\1/ | |
1352 | q | |
1353 | } | |
1354 | s/.*/./; q'` | |
1355 | srcdir=$ac_confdir | |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1357 | srcdir=.. | |
1358 | fi | |
1359 | else | |
1360 | ac_srcdir_defaulted=no | |
1361 | fi | |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1364 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1365 | fi |
1366 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1367 | ac_abs_confdir=`( | |
12833ad8 | 1368 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1369 | pwd)` |
1370 | # When building in place, set srcdir=. | |
1371 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1372 | srcdir=. | |
1373 | fi | |
1374 | # Remove unnecessary trailing slashes from srcdir. | |
1375 | # Double slashes in file names in object file debugging info | |
1376 | # mess up M-x gdb in Emacs. | |
1377 | case $srcdir in | |
1378 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1379 | esac | |
1380 | for ac_var in $ac_precious_vars; do | |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1385 | done | |
1386 | ||
1387 | # | |
1388 | # Report the --help message. | |
1389 | # | |
1390 | if test "$ac_init_help" = "long"; then | |
1391 | # Omit some internal or obsolete options to make the list less imposing. | |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1393 | cat <<_ACEOF | |
1394 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1395 | ||
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1397 | ||
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1400 | ||
1401 | Defaults for the options are specified in brackets. | |
1402 | ||
1403 | Configuration: | |
1404 | -h, --help display this help and exit | |
1405 | --help=short display options specific to this package | |
1406 | --help=recursive display the short help of all the included packages | |
1407 | -V, --version display version information and exit | |
12833ad8 | 1408 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1409 | --cache-file=FILE cache test results in FILE [disabled] |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1411 | -n, --no-create do not create output files | |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1413 | ||
1414 | Installation directories: | |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1416 | [$ac_default_prefix] | |
1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1418 | [PREFIX] | |
1419 | ||
1420 | By default, \`make install' will install all the files in | |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1423 | for instance \`--prefix=\$HOME'. | |
1424 | ||
1425 | For better control, use the options below. | |
1426 | ||
1427 | Fine tuning of the installation directories: | |
1428 | --bindir=DIR user executables [EPREFIX/bin] | |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1435 | --includedir=DIR C header files [PREFIX/include] | |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1443 | --htmldir=DIR html documentation [DOCDIR] | |
1444 | --dvidir=DIR dvi documentation [DOCDIR] | |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1446 | --psdir=DIR ps documentation [DOCDIR] | |
1447 | _ACEOF | |
1448 | ||
1449 | cat <<\_ACEOF | |
35fa52c0 | 1450 | |
66170b30 JF |
1451 | Program names: |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1455 | ||
35fa52c0 DWT |
1456 | System types: |
1457 | --build=BUILD configure for building on BUILD [guessed] | |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1459 | _ACEOF |
1460 | fi | |
1461 | ||
1462 | if test -n "$ac_init_help"; then | |
1463 | case $ac_init_help in | |
1464 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1465 | esac | |
1466 | cat <<\_ACEOF | |
1467 | ||
35fa52c0 DWT |
1468 | Optional Features: |
1469 | --disable-option-checking ignore unrecognized --enable/--with options | |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1472 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1473 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1474 | --enable-maintainer-mode |
1475 | enable make rules and dependencies not useful (and | |
1476 | sometimes confusing) to the casual installer | |
66170b30 JF |
1477 | --enable-dependency-tracking |
1478 | do not reject slow dependency extractors | |
1479 | --disable-dependency-tracking | |
1480 | speeds up one-time build | |
a243b558 JF |
1481 | --enable-static[=PKGS] build static libraries [default=no] |
1482 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1483 | --enable-fast-install[=PKGS] | |
1484 | optimize for fast installation [default=yes] | |
9c60689e | 1485 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1486 | --enable-javascript[=ENGINE] |
790e5246 | 1487 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1488 | available option for ENGINE is JavaScriptCore) |
1489 | [default=yes] | |
a93f15c0 | 1490 | --disable-console disable console |
35fa52c0 DWT |
1491 | |
1492 | Optional Packages: | |
1493 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1494 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1495 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e DWT |
1496 | both] |
1497 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ee134472 JF |
1498 | --with-sysroot=DIR Search for dependent libraries within DIR |
1499 | (or the compiler's sysroot if not specified). | |
309b0535 DWT |
1500 | --with-apr=PATH prefix for installed APR or the full path to |
1501 | apr-config | |
35fa52c0 | 1502 | |
dbadc56a | 1503 | Some influential environment variables: |
a93f15c0 JF |
1504 | CC C compiler command |
1505 | CFLAGS C compiler flags | |
dbadc56a DWT |
1506 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1507 | nonstandard directory <lib dir> | |
1508 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1509 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1510 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1511 | CXX C++ compiler command |
1512 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1513 | OBJCXX Objective C++ compiler command |
1514 | OBJCXXFLAGS Objective C++ compiler flags | |
9c60689e | 1515 | CPP C preprocessor |
a243b558 | 1516 | CXXCPP C++ preprocessor |
3fd51f51 | 1517 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1518 | PKG_CONFIG_PATH |
1519 | directories to add to pkg-config's search path | |
1520 | PKG_CONFIG_LIBDIR | |
1521 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1522 | BISON GNU Project parser generator (yacc replacement) |
1523 | FLEX the fast lexical analyser generator | |
1524 | GPERF perfect hash function generator | |
66170b30 | 1525 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1526 | WEBKIT_CFLAGS |
1527 | C compiler flags for WEBKIT, overriding pkg-config | |
1528 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1529 | GNUSTEP_CONFIG |
1530 | prints information about the current gnustep installation | |
dbadc56a DWT |
1531 | |
1532 | Use these variables to override the choices made by `configure' or to help | |
1533 | it to find libraries and programs with nonstandard names/locations. | |
1534 | ||
c7aa54aa DWT |
1535 | Report bugs to <saurik@saurik.com>. |
1536 | Cycript home page: <http://www.cycript.org/>. | |
1537 | _ACEOF | |
1538 | ac_status=$? | |
1539 | fi | |
1540 | ||
1541 | if test "$ac_init_help" = "recursive"; then | |
1542 | # If there are subdirs, report their specific --help. | |
1543 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1544 | test -d "$ac_dir" || | |
1545 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1546 | continue | |
1547 | ac_builddir=. | |
1548 | ||
1549 | case "$ac_dir" in | |
1550 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1551 | *) | |
1552 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1553 | # A ".." for each directory in $ac_dir_suffix. | |
1554 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1555 | case $ac_top_builddir_sub in | |
1556 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1557 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1558 | esac ;; | |
1559 | esac | |
1560 | ac_abs_top_builddir=$ac_pwd | |
1561 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1562 | # for backward compatibility: | |
1563 | ac_top_builddir=$ac_top_build_prefix | |
1564 | ||
1565 | case $srcdir in | |
1566 | .) # We are building in place. | |
1567 | ac_srcdir=. | |
1568 | ac_top_srcdir=$ac_top_builddir_sub | |
1569 | ac_abs_top_srcdir=$ac_pwd ;; | |
1570 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1571 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1572 | ac_top_srcdir=$srcdir | |
1573 | ac_abs_top_srcdir=$srcdir ;; | |
1574 | *) # Relative name. | |
1575 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1576 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1577 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1578 | esac | |
1579 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1580 | ||
1581 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1582 | # Check for guested configure. | |
1583 | if test -f "$ac_srcdir/configure.gnu"; then | |
1584 | echo && | |
1585 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1586 | elif test -f "$ac_srcdir/configure"; then | |
1587 | echo && | |
1588 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1589 | else | |
1590 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1591 | fi || ac_status=$? | |
1592 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1593 | done | |
1594 | fi | |
1595 | ||
1596 | test -n "$ac_init_help" && exit $ac_status | |
1597 | if $ac_init_version; then | |
1598 | cat <<\_ACEOF | |
1599 | Cycript configure 0.9 | |
53ba6704 | 1600 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1601 | |
53ba6704 | 1602 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1603 | This configure script is free software; the Free Software Foundation |
1604 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
1605 | |
1606 | Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
1607 | _ACEOF |
1608 | exit | |
1609 | fi | |
1610 | ||
1611 | ## ------------------------ ## | |
1612 | ## Autoconf initialization. ## | |
1613 | ## ------------------------ ## | |
dbadc56a | 1614 | |
a93f15c0 JF |
1615 | # ac_fn_c_try_compile LINENO |
1616 | # -------------------------- | |
a243b558 | 1617 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1618 | ac_fn_c_try_compile () |
a243b558 JF |
1619 | { |
1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1621 | rm -f conftest.$ac_objext | |
1622 | if { { ac_try="$ac_compile" | |
1623 | case "(($ac_try" in | |
1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1625 | *) ac_try_echo=$ac_try;; | |
1626 | esac | |
1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1628 | $as_echo "$ac_try_echo"; } >&5 | |
1629 | (eval "$ac_compile") 2>conftest.err | |
1630 | ac_status=$? | |
1631 | if test -s conftest.err; then | |
1632 | grep -v '^ *+' conftest.err >conftest.er1 | |
1633 | cat conftest.er1 >&5 | |
1634 | mv -f conftest.er1 conftest.err | |
1635 | fi | |
1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1637 | test $ac_status = 0; } && { | |
a93f15c0 | 1638 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1639 | test ! -s conftest.err |
1640 | } && test -s conftest.$ac_objext; then : | |
1641 | ac_retval=0 | |
1642 | else | |
1643 | $as_echo "$as_me: failed program was:" >&5 | |
1644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1645 | ||
1646 | ac_retval=1 | |
1647 | fi | |
1648 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1649 | as_fn_set_status $ac_retval | |
1650 | ||
a93f15c0 | 1651 | } # ac_fn_c_try_compile |
a243b558 | 1652 | |
a93f15c0 JF |
1653 | # ac_fn_cxx_try_compile LINENO |
1654 | # ---------------------------- | |
a243b558 | 1655 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1656 | ac_fn_cxx_try_compile () |
a243b558 JF |
1657 | { |
1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1659 | rm -f conftest.$ac_objext | |
1660 | if { { ac_try="$ac_compile" | |
1661 | case "(($ac_try" in | |
1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1663 | *) ac_try_echo=$ac_try;; | |
1664 | esac | |
1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1666 | $as_echo "$ac_try_echo"; } >&5 | |
1667 | (eval "$ac_compile") 2>conftest.err | |
1668 | ac_status=$? | |
1669 | if test -s conftest.err; then | |
1670 | grep -v '^ *+' conftest.err >conftest.er1 | |
1671 | cat conftest.er1 >&5 | |
1672 | mv -f conftest.er1 conftest.err | |
1673 | fi | |
1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1675 | test $ac_status = 0; } && { | |
a93f15c0 | 1676 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1677 | test ! -s conftest.err |
1678 | } && test -s conftest.$ac_objext; then : | |
1679 | ac_retval=0 | |
1680 | else | |
1681 | $as_echo "$as_me: failed program was:" >&5 | |
1682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1683 | ||
1684 | ac_retval=1 | |
1685 | fi | |
1686 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1687 | as_fn_set_status $ac_retval | |
1688 | ||
a93f15c0 | 1689 | } # ac_fn_cxx_try_compile |
a243b558 | 1690 | |
a93f15c0 JF |
1691 | # ac_fn_objcxx_try_compile LINENO |
1692 | # ------------------------------- | |
35fa52c0 | 1693 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1694 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1695 | { |
1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1697 | rm -f conftest.$ac_objext | |
1698 | if { { ac_try="$ac_compile" | |
1699 | case "(($ac_try" in | |
1700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1701 | *) ac_try_echo=$ac_try;; | |
1702 | esac | |
1703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1704 | $as_echo "$ac_try_echo"; } >&5 | |
1705 | (eval "$ac_compile") 2>conftest.err | |
1706 | ac_status=$? | |
1707 | if test -s conftest.err; then | |
1708 | grep -v '^ *+' conftest.err >conftest.er1 | |
1709 | cat conftest.er1 >&5 | |
1710 | mv -f conftest.er1 conftest.err | |
1711 | fi | |
1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1713 | test $ac_status = 0; } && { | |
a93f15c0 | 1714 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1715 | test ! -s conftest.err |
1716 | } && test -s conftest.$ac_objext; then : | |
1717 | ac_retval=0 | |
1718 | else | |
1719 | $as_echo "$as_me: failed program was:" >&5 | |
1720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1721 | ||
1722 | ac_retval=1 | |
1723 | fi | |
ee134472 | 1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1725 | as_fn_set_status $ac_retval |
35fa52c0 | 1726 | |
a93f15c0 | 1727 | } # ac_fn_objcxx_try_compile |
35fa52c0 DWT |
1728 | |
1729 | # ac_fn_c_try_link LINENO | |
1730 | # ----------------------- | |
1731 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1732 | ac_fn_c_try_link () | |
1733 | { | |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1736 | if { { ac_try="$ac_link" | |
1737 | case "(($ac_try" in | |
1738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1739 | *) ac_try_echo=$ac_try;; | |
1740 | esac | |
1741 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1742 | $as_echo "$ac_try_echo"; } >&5 | |
1743 | (eval "$ac_link") 2>conftest.err | |
1744 | ac_status=$? | |
1745 | if test -s conftest.err; then | |
1746 | grep -v '^ *+' conftest.err >conftest.er1 | |
1747 | cat conftest.er1 >&5 | |
1748 | mv -f conftest.er1 conftest.err | |
1749 | fi | |
1750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1751 | test $ac_status = 0; } && { | |
1752 | test -z "$ac_c_werror_flag" || | |
1753 | test ! -s conftest.err | |
1754 | } && test -s conftest$ac_exeext && { | |
1755 | test "$cross_compiling" = yes || | |
53ba6704 | 1756 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1757 | }; then : |
1758 | ac_retval=0 | |
1759 | else | |
1760 | $as_echo "$as_me: failed program was:" >&5 | |
1761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1762 | ||
1763 | ac_retval=1 | |
1764 | fi | |
1765 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1766 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1767 | # interfere with the next link command; also delete a directory that is | |
1768 | # left behind by Apple's compiler. We do this before executing the actions. | |
1769 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1771 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1772 | |
1773 | } # ac_fn_c_try_link | |
1774 | ||
9c60689e DWT |
1775 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1776 | # ------------------------------------------------------- | |
1777 | # Tests whether HEADER exists and can be compiled using the include files in | |
1778 | # INCLUDES, setting the cache variable VAR accordingly. | |
1779 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1780 | { |
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1783 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1784 | if eval \${$3+:} false; then : |
9c60689e DWT |
1785 | $as_echo_n "(cached) " >&6 |
1786 | else | |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1788 | /* end confdefs.h. */ | |
1789 | $4 | |
1790 | #include <$2> | |
1791 | _ACEOF | |
1792 | if ac_fn_c_try_compile "$LINENO"; then : | |
1793 | eval "$3=yes" | |
1794 | else | |
1795 | eval "$3=no" | |
1796 | fi | |
1797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1798 | fi | |
1799 | eval ac_res=\$$3 | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1801 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1802 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1803 | |
1804 | } # ac_fn_c_check_header_compile | |
1805 | ||
1806 | # ac_fn_c_try_cpp LINENO | |
1807 | # ---------------------- | |
1808 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1809 | ac_fn_c_try_cpp () | |
1810 | { | |
1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1812 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1813 | case "(($ac_try" in |
1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1815 | *) ac_try_echo=$ac_try;; | |
1816 | esac | |
1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1818 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1820 | ac_status=$? |
1821 | if test -s conftest.err; then | |
1822 | grep -v '^ *+' conftest.err >conftest.er1 | |
1823 | cat conftest.er1 >&5 | |
1824 | mv -f conftest.er1 conftest.err | |
1825 | fi | |
1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1827 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1829 | test ! -s conftest.err |
9c60689e | 1830 | }; then : |
dbadc56a DWT |
1831 | ac_retval=0 |
1832 | else | |
1833 | $as_echo "$as_me: failed program was:" >&5 | |
1834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1835 | ||
9c60689e | 1836 | ac_retval=1 |
dbadc56a | 1837 | fi |
ee134472 | 1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1839 | as_fn_set_status $ac_retval |
dbadc56a | 1840 | |
9c60689e | 1841 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1842 | |
1843 | # ac_fn_c_try_run LINENO | |
1844 | # ---------------------- | |
1845 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1846 | # that executables *can* be run. | |
1847 | ac_fn_c_try_run () | |
1848 | { | |
1849 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1850 | if { { ac_try="$ac_link" | |
1851 | case "(($ac_try" in | |
1852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1853 | *) ac_try_echo=$ac_try;; | |
1854 | esac | |
1855 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1856 | $as_echo "$ac_try_echo"; } >&5 | |
1857 | (eval "$ac_link") 2>&5 | |
1858 | ac_status=$? | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1861 | { { case "(($ac_try" in | |
1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1863 | *) ac_try_echo=$ac_try;; | |
1864 | esac | |
1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1866 | $as_echo "$ac_try_echo"; } >&5 | |
1867 | (eval "$ac_try") 2>&5 | |
1868 | ac_status=$? | |
1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1870 | test $ac_status = 0; }; }; then : | |
1871 | ac_retval=0 | |
1872 | else | |
1873 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1874 | $as_echo "$as_me: failed program was:" >&5 | |
1875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1876 | ||
1877 | ac_retval=$ac_status | |
1878 | fi | |
1879 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1880 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1881 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1882 | |
1883 | } # ac_fn_c_try_run | |
6b66678a | 1884 | |
9c60689e DWT |
1885 | # ac_fn_c_check_func LINENO FUNC VAR |
1886 | # ---------------------------------- | |
1887 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1888 | ac_fn_c_check_func () | |
6b66678a DWT |
1889 | { |
1890 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1892 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1893 | if eval \${$3+:} false; then : |
9c60689e | 1894 | $as_echo_n "(cached) " >&6 |
6b66678a | 1895 | else |
9c60689e DWT |
1896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1897 | /* end confdefs.h. */ | |
1898 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1900 | #define $2 innocuous_$2 | |
6b66678a | 1901 | |
9c60689e DWT |
1902 | /* System header to define __stub macros and hopefully few prototypes, |
1903 | which can conflict with char $2 (); below. | |
1904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1905 | <limits.h> exists even on freestanding compilers. */ | |
1906 | ||
1907 | #ifdef __STDC__ | |
1908 | # include <limits.h> | |
1909 | #else | |
1910 | # include <assert.h> | |
1911 | #endif | |
1912 | ||
1913 | #undef $2 | |
1914 | ||
1915 | /* Override any GCC internal prototype to avoid an error. | |
1916 | Use char because int might match the return type of a GCC | |
1917 | builtin and then its argument prototype would still apply. */ | |
1918 | #ifdef __cplusplus | |
1919 | extern "C" | |
1920 | #endif | |
1921 | char $2 (); | |
1922 | /* The GNU C library defines this for functions which it implements | |
1923 | to always fail with ENOSYS. Some functions are actually named | |
1924 | something starting with __ and the normal name is an alias. */ | |
1925 | #if defined __stub_$2 || defined __stub___$2 | |
1926 | choke me | |
1927 | #endif | |
1928 | ||
1929 | int | |
1930 | main () | |
1931 | { | |
1932 | return $2 (); | |
1933 | ; | |
1934 | return 0; | |
1935 | } | |
1936 | _ACEOF | |
1937 | if ac_fn_c_try_link "$LINENO"; then : | |
1938 | eval "$3=yes" | |
1939 | else | |
1940 | eval "$3=no" | |
1941 | fi | |
1942 | rm -f core conftest.err conftest.$ac_objext \ | |
1943 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1944 | fi |
9c60689e DWT |
1945 | eval ac_res=\$$3 |
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1947 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1949 | |
9c60689e | 1950 | } # ac_fn_c_check_func |
6b66678a | 1951 | |
9c60689e DWT |
1952 | # ac_fn_cxx_try_cpp LINENO |
1953 | # ------------------------ | |
1954 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1955 | ac_fn_cxx_try_cpp () | |
1956 | { | |
1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1958 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1959 | case "(($ac_try" in | |
1960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1961 | *) ac_try_echo=$ac_try;; | |
1962 | esac | |
1963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1964 | $as_echo "$ac_try_echo"; } >&5 | |
1965 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1966 | ac_status=$? | |
1967 | if test -s conftest.err; then | |
1968 | grep -v '^ *+' conftest.err >conftest.er1 | |
1969 | cat conftest.er1 >&5 | |
1970 | mv -f conftest.er1 conftest.err | |
1971 | fi | |
1972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1973 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1974 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1975 | test ! -s conftest.err | |
1976 | }; then : | |
1977 | ac_retval=0 | |
1978 | else | |
1979 | $as_echo "$as_me: failed program was:" >&5 | |
1980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1981 | ||
1982 | ac_retval=1 | |
1983 | fi | |
ee134472 | 1984 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1985 | as_fn_set_status $ac_retval |
1986 | ||
1987 | } # ac_fn_cxx_try_cpp | |
1988 | ||
1989 | # ac_fn_cxx_try_link LINENO | |
1990 | # ------------------------- | |
1991 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1992 | ac_fn_cxx_try_link () | |
1993 | { | |
1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1996 | if { { ac_try="$ac_link" | |
1997 | case "(($ac_try" in | |
1998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1999 | *) ac_try_echo=$ac_try;; | |
2000 | esac | |
2001 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2002 | $as_echo "$ac_try_echo"; } >&5 | |
2003 | (eval "$ac_link") 2>conftest.err | |
2004 | ac_status=$? | |
2005 | if test -s conftest.err; then | |
2006 | grep -v '^ *+' conftest.err >conftest.er1 | |
2007 | cat conftest.er1 >&5 | |
2008 | mv -f conftest.er1 conftest.err | |
2009 | fi | |
2010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2011 | test $ac_status = 0; } && { | |
2012 | test -z "$ac_cxx_werror_flag" || | |
2013 | test ! -s conftest.err | |
2014 | } && test -s conftest$ac_exeext && { | |
2015 | test "$cross_compiling" = yes || | |
53ba6704 | 2016 | test -x conftest$ac_exeext |
9c60689e DWT |
2017 | }; then : |
2018 | ac_retval=0 | |
2019 | else | |
2020 | $as_echo "$as_me: failed program was:" >&5 | |
2021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2022 | ||
2023 | ac_retval=1 | |
2024 | fi | |
2025 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2026 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2027 | # interfere with the next link command; also delete a directory that is | |
2028 | # left behind by Apple's compiler. We do this before executing the actions. | |
2029 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2030 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2031 | as_fn_set_status $ac_retval |
2032 | ||
2033 | } # ac_fn_cxx_try_link | |
2034 | ||
47aaa820 DWT |
2035 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2036 | # --------------------------------------------------------- | |
2037 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2038 | # the include files in INCLUDES and setting the cache variable VAR | |
2039 | # accordingly. | |
2040 | ac_fn_cxx_check_header_mongrel () | |
2041 | { | |
2042 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2043 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2045 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2046 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2047 | $as_echo_n "(cached) " >&6 |
2048 | fi | |
2049 | eval ac_res=\$$3 | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2051 | $as_echo "$ac_res" >&6; } | |
2052 | else | |
2053 | # Is the header compilable? | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2055 | $as_echo_n "checking $2 usability... " >&6; } | |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2057 | /* end confdefs.h. */ | |
2058 | $4 | |
2059 | #include <$2> | |
2060 | _ACEOF | |
2061 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2062 | ac_header_compiler=yes | |
2063 | else | |
2064 | ac_header_compiler=no | |
2065 | fi | |
2066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2068 | $as_echo "$ac_header_compiler" >&6; } | |
2069 | ||
2070 | # Is the header present? | |
2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2072 | $as_echo_n "checking $2 presence... " >&6; } | |
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2074 | /* end confdefs.h. */ | |
2075 | #include <$2> | |
2076 | _ACEOF | |
2077 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2078 | ac_header_preproc=yes | |
2079 | else | |
2080 | ac_header_preproc=no | |
2081 | fi | |
12833ad8 | 2082 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2084 | $as_echo "$ac_header_preproc" >&6; } | |
2085 | ||
2086 | # So? What about this header? | |
2087 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2088 | yes:no: ) | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2090 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2092 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2093 | ;; | |
2094 | no:yes:* ) | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2096 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2098 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2102 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2104 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2105 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2106 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2107 | ## -------------------------------- ##" |
47aaa820 DWT |
2108 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2109 | ;; | |
2110 | esac | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2112 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2113 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2114 | $as_echo_n "(cached) " >&6 |
2115 | else | |
2116 | eval "$3=\$ac_header_compiler" | |
2117 | fi | |
2118 | eval ac_res=\$$3 | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2120 | $as_echo "$ac_res" >&6; } | |
2121 | fi | |
ee134472 | 2122 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2123 | |
2124 | } # ac_fn_cxx_check_header_mongrel | |
2125 | ||
c823f118 DWT |
2126 | # ac_fn_objcxx_try_link LINENO |
2127 | # ---------------------------- | |
2128 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2129 | ac_fn_objcxx_try_link () | |
2130 | { | |
2131 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2133 | if { { ac_try="$ac_link" | |
2134 | case "(($ac_try" in | |
2135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2136 | *) ac_try_echo=$ac_try;; | |
2137 | esac | |
2138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2139 | $as_echo "$ac_try_echo"; } >&5 | |
2140 | (eval "$ac_link") 2>conftest.err | |
2141 | ac_status=$? | |
2142 | if test -s conftest.err; then | |
2143 | grep -v '^ *+' conftest.err >conftest.er1 | |
2144 | cat conftest.er1 >&5 | |
2145 | mv -f conftest.er1 conftest.err | |
2146 | fi | |
2147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2148 | test $ac_status = 0; } && { | |
2149 | test -z "$ac_objcxx_werror_flag" || | |
2150 | test ! -s conftest.err | |
2151 | } && test -s conftest$ac_exeext && { | |
2152 | test "$cross_compiling" = yes || | |
53ba6704 | 2153 | test -x conftest$ac_exeext |
c823f118 DWT |
2154 | }; then : |
2155 | ac_retval=0 | |
2156 | else | |
2157 | $as_echo "$as_me: failed program was:" >&5 | |
2158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2159 | ||
2160 | ac_retval=1 | |
2161 | fi | |
2162 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2163 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2164 | # interfere with the next link command; also delete a directory that is | |
2165 | # left behind by Apple's compiler. We do this before executing the actions. | |
2166 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2167 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2168 | as_fn_set_status $ac_retval |
2169 | ||
2170 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2171 | cat >config.log <<_ACEOF |
2172 | This file contains any messages produced by compilers while | |
2173 | running configure, to aid debugging if configure makes a mistake. | |
2174 | ||
2175 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2176 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2177 | |
2178 | $ $0 $@ | |
2179 | ||
2180 | _ACEOF | |
2181 | exec 5>>config.log | |
2182 | { | |
2183 | cat <<_ASUNAME | |
2184 | ## --------- ## | |
2185 | ## Platform. ## | |
2186 | ## --------- ## | |
2187 | ||
2188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2193 | ||
2194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2196 | ||
2197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2200 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2204 | ||
2205 | _ASUNAME | |
2206 | ||
2207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2208 | for as_dir in $PATH | |
2209 | do | |
2210 | IFS=$as_save_IFS | |
2211 | test -z "$as_dir" && as_dir=. | |
2212 | $as_echo "PATH: $as_dir" | |
2213 | done | |
2214 | IFS=$as_save_IFS | |
2215 | ||
2216 | } >&5 | |
2217 | ||
2218 | cat >&5 <<_ACEOF | |
2219 | ||
2220 | ||
2221 | ## ----------- ## | |
2222 | ## Core tests. ## | |
2223 | ## ----------- ## | |
2224 | ||
2225 | _ACEOF | |
2226 | ||
2227 | ||
2228 | # Keep a trace of the command line. | |
2229 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2230 | # Strip out --silent because we don't want to record it for future runs. | |
2231 | # Also quote any args containing shell meta-characters. | |
2232 | # Make two passes to allow for proper duplicate-argument suppression. | |
2233 | ac_configure_args= | |
2234 | ac_configure_args0= | |
2235 | ac_configure_args1= | |
2236 | ac_must_keep_next=false | |
2237 | for ac_pass in 1 2 | |
2238 | do | |
2239 | for ac_arg | |
2240 | do | |
2241 | case $ac_arg in | |
2242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2244 | | -silent | --silent | --silen | --sile | --sil) | |
2245 | continue ;; | |
2246 | *\'*) | |
2247 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2248 | esac | |
2249 | case $ac_pass in | |
2250 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2251 | 2) | |
2252 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2253 | if test $ac_must_keep_next = true; then | |
2254 | ac_must_keep_next=false # Got value, back to normal. | |
2255 | else | |
2256 | case $ac_arg in | |
2257 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2260 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2261 | case "$ac_configure_args0 " in | |
2262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2263 | esac | |
2264 | ;; | |
2265 | -* ) ac_must_keep_next=true ;; | |
2266 | esac | |
2267 | fi | |
2268 | as_fn_append ac_configure_args " '$ac_arg'" | |
2269 | ;; | |
2270 | esac | |
2271 | done | |
2272 | done | |
2273 | { ac_configure_args0=; unset ac_configure_args0;} | |
2274 | { ac_configure_args1=; unset ac_configure_args1;} | |
2275 | ||
2276 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2277 | # config.log. We remove comments because anyway the quotes in there | |
2278 | # would cause problems or look ugly. | |
2279 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2280 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2281 | trap 'exit_status=$? | |
2282 | # Save into config.log some information that might help in debugging. | |
2283 | { | |
2284 | echo | |
2285 | ||
12833ad8 | 2286 | $as_echo "## ---------------- ## |
c7aa54aa | 2287 | ## Cache variables. ## |
12833ad8 | 2288 | ## ---------------- ##" |
c7aa54aa DWT |
2289 | echo |
2290 | # The following way of writing the cache mishandles newlines in values, | |
2291 | ( | |
2292 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2293 | eval ac_val=\$$ac_var | |
2294 | case $ac_val in #( | |
2295 | *${as_nl}*) | |
2296 | case $ac_var in #( | |
2297 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2298 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2299 | esac | |
2300 | case $ac_var in #( | |
2301 | _ | IFS | as_nl) ;; #( | |
2302 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2303 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2304 | esac ;; | |
2305 | esac | |
2306 | done | |
2307 | (set) 2>&1 | | |
2308 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2309 | *${as_nl}ac_space=\ *) | |
2310 | sed -n \ | |
2311 | "s/'\''/'\''\\\\'\'''\''/g; | |
2312 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2313 | ;; #( | |
2314 | *) | |
2315 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2316 | ;; | |
2317 | esac | | |
2318 | sort | |
2319 | ) | |
2320 | echo | |
2321 | ||
12833ad8 | 2322 | $as_echo "## ----------------- ## |
c7aa54aa | 2323 | ## Output variables. ## |
12833ad8 | 2324 | ## ----------------- ##" |
c7aa54aa DWT |
2325 | echo |
2326 | for ac_var in $ac_subst_vars | |
2327 | do | |
2328 | eval ac_val=\$$ac_var | |
2329 | case $ac_val in | |
2330 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2331 | esac | |
2332 | $as_echo "$ac_var='\''$ac_val'\''" | |
2333 | done | sort | |
2334 | echo | |
2335 | ||
2336 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2337 | $as_echo "## ------------------- ## |
c7aa54aa | 2338 | ## File substitutions. ## |
12833ad8 | 2339 | ## ------------------- ##" |
c7aa54aa DWT |
2340 | echo |
2341 | for ac_var in $ac_subst_files | |
2342 | do | |
2343 | eval ac_val=\$$ac_var | |
2344 | case $ac_val in | |
2345 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2346 | esac | |
2347 | $as_echo "$ac_var='\''$ac_val'\''" | |
2348 | done | sort | |
2349 | echo | |
2350 | fi | |
2351 | ||
2352 | if test -s confdefs.h; then | |
12833ad8 | 2353 | $as_echo "## ----------- ## |
c7aa54aa | 2354 | ## confdefs.h. ## |
12833ad8 | 2355 | ## ----------- ##" |
c7aa54aa DWT |
2356 | echo |
2357 | cat confdefs.h | |
2358 | echo | |
2359 | fi | |
2360 | test "$ac_signal" != 0 && | |
2361 | $as_echo "$as_me: caught signal $ac_signal" | |
2362 | $as_echo "$as_me: exit $exit_status" | |
2363 | } >&5 | |
2364 | rm -f core *.core core.conftest.* && | |
2365 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2366 | exit $exit_status | |
2367 | ' 0 | |
2368 | for ac_signal in 1 2 13 15; do | |
2369 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2370 | done | |
2371 | ac_signal=0 | |
2372 | ||
2373 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2374 | rm -f -r conftest* confdefs.h | |
2375 | ||
2376 | $as_echo "/* confdefs.h */" > confdefs.h | |
2377 | ||
2378 | # Predefined preprocessor variables. | |
2379 | ||
2380 | cat >>confdefs.h <<_ACEOF | |
2381 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2382 | _ACEOF | |
2383 | ||
2384 | cat >>confdefs.h <<_ACEOF | |
2385 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2386 | _ACEOF | |
2387 | ||
2388 | cat >>confdefs.h <<_ACEOF | |
2389 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2390 | _ACEOF | |
2391 | ||
2392 | cat >>confdefs.h <<_ACEOF | |
2393 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2394 | _ACEOF | |
2395 | ||
2396 | cat >>confdefs.h <<_ACEOF | |
2397 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2398 | _ACEOF | |
2399 | ||
2400 | cat >>confdefs.h <<_ACEOF | |
2401 | #define PACKAGE_URL "$PACKAGE_URL" | |
2402 | _ACEOF | |
2403 | ||
2404 | ||
2405 | # Let the site file select an alternate cache file if it wants to. | |
2406 | # Prefer an explicitly selected file to automatically selected ones. | |
2407 | ac_site_file1=NONE | |
2408 | ac_site_file2=NONE | |
2409 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2410 | # We do not want a PATH search for config.site. |
2411 | case $CONFIG_SITE in #(( | |
2412 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2413 | */*) ac_site_file1=$CONFIG_SITE;; | |
2414 | *) ac_site_file1=./$CONFIG_SITE;; | |
2415 | esac | |
c7aa54aa DWT |
2416 | elif test "x$prefix" != xNONE; then |
2417 | ac_site_file1=$prefix/share/config.site | |
2418 | ac_site_file2=$prefix/etc/config.site | |
2419 | else | |
2420 | ac_site_file1=$ac_default_prefix/share/config.site | |
2421 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2422 | fi | |
2423 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2424 | do | |
2425 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2426 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2428 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2429 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2430 | . "$ac_site_file" \ |
2431 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2433 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2434 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2435 | fi |
2436 | done | |
2437 | ||
2438 | if test -r "$cache_file"; then | |
9c60689e DWT |
2439 | # Some versions of bash will fail to source /dev/null (special files |
2440 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2441 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2443 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2444 | case $cache_file in | |
2445 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2446 | *) . "./$cache_file";; | |
2447 | esac | |
2448 | fi | |
2449 | else | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2451 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2452 | >$cache_file | |
2453 | fi | |
2454 | ||
2455 | # Check that the precious variables saved in the cache have kept the same | |
2456 | # value. | |
2457 | ac_cache_corrupted=false | |
2458 | for ac_var in $ac_precious_vars; do | |
2459 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2460 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2461 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2462 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2463 | case $ac_old_set,$ac_new_set in | |
2464 | set,) | |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2466 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2467 | ac_cache_corrupted=: ;; | |
2468 | ,set) | |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2470 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2471 | ac_cache_corrupted=: ;; | |
2472 | ,);; | |
2473 | *) | |
2474 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2475 | # differences in whitespace do not lead to failure. | |
2476 | ac_old_val_w=`echo x $ac_old_val` | |
2477 | ac_new_val_w=`echo x $ac_new_val` | |
2478 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2480 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2481 | ac_cache_corrupted=: | |
2482 | else | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2484 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2485 | eval $ac_var=\$ac_old_val | |
2486 | fi | |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2488 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2490 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2491 | fi;; | |
2492 | esac | |
2493 | # Pass precious variables to config.status. | |
2494 | if test "$ac_new_set" = set; then | |
2495 | case $ac_new_val in | |
2496 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2497 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2498 | esac | |
2499 | case " $ac_configure_args " in | |
2500 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2501 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2502 | esac | |
2503 | fi | |
2504 | done | |
2505 | if $ac_cache_corrupted; then | |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2509 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2510 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2511 | fi |
2512 | ## -------------------- ## | |
2513 | ## Main body of script. ## | |
2514 | ## -------------------- ## | |
2515 | ||
2516 | ac_ext=c | |
2517 | ac_cpp='$CPP $CPPFLAGS' | |
2518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2521 | ||
2522 | ||
66170b30 JF |
2523 | |
2524 | ||
35fa52c0 | 2525 | |
6b66678a DWT |
2526 | ac_aux_dir= |
2527 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2528 | if test -f "$ac_dir/install-sh"; then |
2529 | ac_aux_dir=$ac_dir | |
2530 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2531 | break | |
2532 | elif test -f "$ac_dir/install.sh"; then | |
2533 | ac_aux_dir=$ac_dir | |
2534 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2535 | break | |
2536 | elif test -f "$ac_dir/shtool"; then | |
2537 | ac_aux_dir=$ac_dir | |
2538 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2539 | break | |
2540 | fi | |
6b66678a DWT |
2541 | done |
2542 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2543 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2544 | fi |
2545 | ||
2546 | # These three variables are undocumented and unsupported, | |
2547 | # and are intended to be withdrawn in a future Autoconf release. | |
2548 | # They can cause serious problems if a builder's source tree is in a directory | |
2549 | # whose full name contains unusual characters. | |
2550 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2551 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2552 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2553 | ||
2554 | ||
9c60689e | 2555 | |
296ee9a6 JF |
2556 | ac_config_headers="$ac_config_headers config.h" |
2557 | ||
9c60689e | 2558 | |
a93f15c0 | 2559 | am__api_version='1.14' |
9c60689e | 2560 | |
66170b30 JF |
2561 | # Find a good install program. We prefer a C program (faster), |
2562 | # so one script is as good as another. But avoid the broken or | |
2563 | # incompatible versions: | |
2564 | # SysV /etc/install, /usr/sbin/install | |
2565 | # SunOS /usr/etc/install | |
2566 | # IRIX /sbin/install | |
2567 | # AIX /bin/install | |
2568 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2569 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2570 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2571 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2572 | # OS/2's system install, which has a completely different semantic | |
2573 | # ./install, which can be erroneously created by make from ./install.sh. | |
2574 | # Reject install programs that cannot install multiple files. | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2576 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2577 | if test -z "$INSTALL"; then | |
2578 | if ${ac_cv_path_install+:} false; then : | |
2579 | $as_echo_n "(cached) " >&6 | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
2586 | # Account for people who put trailing slashes in PATH elements. | |
2587 | case $as_dir/ in #(( | |
2588 | ./ | .// | /[cC]/* | \ | |
2589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2590 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2591 | /usr/ucb/* ) ;; | |
2592 | *) | |
2593 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2594 | # Don't use installbsd from OSF since it installs stuff as root | |
2595 | # by default. | |
2596 | for ac_prog in ginstall scoinst install; do | |
2597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2598 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2599 | if test $ac_prog = install && | |
2600 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2601 | # AIX install. It has an incompatible calling convention. | |
2602 | : | |
2603 | elif test $ac_prog = install && | |
2604 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2605 | # program-specific install script used by HP pwplus--don't use. | |
2606 | : | |
2607 | else | |
2608 | rm -rf conftest.one conftest.two conftest.dir | |
2609 | echo one > conftest.one | |
2610 | echo two > conftest.two | |
2611 | mkdir conftest.dir | |
2612 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2613 | test -s conftest.one && test -s conftest.two && | |
2614 | test -s conftest.dir/conftest.one && | |
2615 | test -s conftest.dir/conftest.two | |
2616 | then | |
2617 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2618 | break 3 | |
2619 | fi | |
2620 | fi | |
2621 | fi | |
2622 | done | |
2623 | done | |
2624 | ;; | |
2625 | esac | |
9c60689e | 2626 | |
66170b30 JF |
2627 | done |
2628 | IFS=$as_save_IFS | |
9c60689e | 2629 | |
66170b30 | 2630 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2631 | |
66170b30 JF |
2632 | fi |
2633 | if test "${ac_cv_path_install+set}" = set; then | |
2634 | INSTALL=$ac_cv_path_install | |
2635 | else | |
2636 | # As a last resort, use the slow shell script. Don't cache a | |
2637 | # value for INSTALL within a source directory, because that will | |
2638 | # break other packages using the cache if that directory is | |
2639 | # removed, or if the value is a relative name. | |
2640 | INSTALL=$ac_install_sh | |
2641 | fi | |
2642 | fi | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2644 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2645 | |
66170b30 JF |
2646 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2647 | # It thinks the first close brace ends the variable substitution. | |
2648 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2649 | |
66170b30 | 2650 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2651 | |
66170b30 | 2652 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2653 | |
66170b30 JF |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2655 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2656 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2657 | # name. Accept space and tab only in the latter. | |
2658 | am_lf=' | |
2659 | ' | |
2660 | case `pwd` in | |
2661 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2662 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2663 | esac | |
2664 | case $srcdir in | |
2665 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2666 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2667 | esac | |
9c60689e | 2668 | |
66170b30 JF |
2669 | # Do 'set' in a subshell so we don't clobber the current shell's |
2670 | # arguments. Must try -L first in case configure is actually a | |
2671 | # symlink; some systems play weird games with the mod time of symlinks | |
2672 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2673 | # directory). | |
2674 | if ( | |
2675 | am_has_slept=no | |
2676 | for am_try in 1 2; do | |
2677 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2678 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2679 | if test "$*" = "X"; then | |
2680 | # -L didn't work. | |
2681 | set X `ls -t "$srcdir/configure" conftest.file` | |
2682 | fi | |
2683 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2684 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2685 | ||
2686 | # If neither matched, then we have a broken ls. This can happen | |
2687 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2688 | # broken ls alias from the environment. This has actually | |
2689 | # happened. Such a system could not be considered "sane". | |
2690 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2691 | alias in your environment" "$LINENO" 5 | |
2692 | fi | |
2693 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2694 | break | |
2695 | fi | |
2696 | # Just in case. | |
2697 | sleep 1 | |
2698 | am_has_slept=yes | |
2699 | done | |
2700 | test "$2" = conftest.file | |
2701 | ) | |
2702 | then | |
2703 | # Ok. | |
2704 | : | |
2705 | else | |
2706 | as_fn_error $? "newly created file is older than distributed files! | |
2707 | Check your system clock" "$LINENO" 5 | |
2708 | fi | |
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2710 | $as_echo "yes" >&6; } | |
2711 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2712 | # generated files are strictly newer. | |
2713 | am_sleep_pid= | |
2714 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2715 | ( sleep 1 ) & | |
2716 | am_sleep_pid=$! | |
2717 | fi | |
2718 | ||
2719 | rm -f conftest.file | |
2720 | ||
2721 | test "$program_prefix" != NONE && | |
2722 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2723 | # Use a double $ so make ignores it. | |
2724 | test "$program_suffix" != NONE && | |
2725 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2726 | # Double any \ or $. | |
2727 | # By default was `s,x,x', remove it if useless. | |
2728 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2729 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2730 | ||
2731 | # expand $ac_aux_dir to an absolute path | |
2732 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2733 | ||
2734 | if test x"${MISSING+set}" != xset; then | |
2735 | case $am_aux_dir in | |
2736 | *\ * | *\ *) | |
2737 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2738 | *) | |
2739 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2740 | esac | |
2741 | fi | |
2742 | # Use eval to expand $SHELL | |
2743 | if eval "$MISSING --is-lightweight"; then | |
2744 | am_missing_run="$MISSING " | |
2745 | else | |
2746 | am_missing_run= | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2748 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2749 | fi | |
9c60689e | 2750 | |
66170b30 JF |
2751 | if test x"${install_sh}" != xset; then |
2752 | case $am_aux_dir in | |
2753 | *\ * | *\ *) | |
2754 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2755 | *) | |
2756 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2757 | esac | |
2758 | fi | |
9c60689e | 2759 | |
66170b30 JF |
2760 | # Installed binaries are usually stripped using 'strip' when the user |
2761 | # run "make install-strip". However 'strip' might not be the right | |
2762 | # tool to use in cross-compilation environments, therefore Automake | |
2763 | # will honor the 'STRIP' environment variable to overrule this program. | |
2764 | if test "$cross_compiling" != no; then | |
2765 | if test -n "$ac_tool_prefix"; then | |
2766 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2767 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2769 | $as_echo_n "checking for $ac_word... " >&6; } | |
2770 | if ${ac_cv_prog_STRIP+:} false; then : | |
2771 | $as_echo_n "(cached) " >&6 | |
2772 | else | |
2773 | if test -n "$STRIP"; then | |
2774 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2775 | else | |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2783 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2785 | break 2 | |
2786 | fi | |
2787 | done | |
2788 | done | |
2789 | IFS=$as_save_IFS | |
9c60689e | 2790 | |
66170b30 JF |
2791 | fi |
2792 | fi | |
2793 | STRIP=$ac_cv_prog_STRIP | |
2794 | if test -n "$STRIP"; then | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2796 | $as_echo "$STRIP" >&6; } | |
2797 | else | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2799 | $as_echo "no" >&6; } | |
2800 | fi | |
9c60689e | 2801 | |
9c60689e | 2802 | |
66170b30 JF |
2803 | fi |
2804 | if test -z "$ac_cv_prog_STRIP"; then | |
2805 | ac_ct_STRIP=$STRIP | |
2806 | # Extract the first word of "strip", so it can be a program name with args. | |
2807 | set dummy strip; ac_word=$2 | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2809 | $as_echo_n "checking for $ac_word... " >&6; } | |
2810 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2811 | $as_echo_n "(cached) " >&6 |
2812 | else | |
66170b30 JF |
2813 | if test -n "$ac_ct_STRIP"; then |
2814 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2815 | else | |
2816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2817 | for as_dir in $PATH | |
2818 | do | |
2819 | IFS=$as_save_IFS | |
2820 | test -z "$as_dir" && as_dir=. | |
2821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2823 | ac_cv_prog_ac_ct_STRIP="strip" | |
2824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2825 | break 2 | |
2826 | fi | |
2827 | done | |
2828 | done | |
2829 | IFS=$as_save_IFS | |
9c60689e DWT |
2830 | |
2831 | fi | |
66170b30 JF |
2832 | fi |
2833 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2834 | if test -n "$ac_ct_STRIP"; then | |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2836 | $as_echo "$ac_ct_STRIP" >&6; } | |
2837 | else | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2839 | $as_echo "no" >&6; } | |
2840 | fi | |
2841 | ||
2842 | if test "x$ac_ct_STRIP" = x; then | |
2843 | STRIP=":" | |
2844 | else | |
2845 | case $cross_compiling:$ac_tool_warned in | |
2846 | yes:) | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2849 | ac_tool_warned=yes ;; | |
9c60689e | 2850 | esac |
66170b30 JF |
2851 | STRIP=$ac_ct_STRIP |
2852 | fi | |
2853 | else | |
2854 | STRIP="$ac_cv_prog_STRIP" | |
2855 | fi | |
9c60689e | 2856 | |
66170b30 JF |
2857 | fi |
2858 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2859 | |
66170b30 JF |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2861 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2862 | if test -z "$MKDIR_P"; then | |
2863 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2864 | $as_echo_n "(cached) " >&6 |
2865 | else | |
66170b30 JF |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2867 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | test -z "$as_dir" && as_dir=. | |
2871 | for ac_prog in mkdir gmkdir; do | |
2872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2873 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2874 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2875 | 'mkdir (GNU coreutils) '* | \ | |
2876 | 'mkdir (coreutils) '* | \ | |
2877 | 'mkdir (fileutils) '4.1*) | |
2878 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2879 | break 3;; | |
2880 | esac | |
2881 | done | |
2882 | done | |
2883 | done | |
2884 | IFS=$as_save_IFS | |
2885 | ||
2886 | fi | |
2887 | ||
2888 | test -d ./--version && rmdir ./--version | |
2889 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2890 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2891 | else | |
2892 | # As a last resort, use the slow shell script. Don't cache a | |
2893 | # value for MKDIR_P within a source directory, because that will | |
2894 | # break other packages using the cache if that directory is | |
2895 | # removed, or if the value is a relative name. | |
2896 | MKDIR_P="$ac_install_sh -d" | |
2897 | fi | |
2898 | fi | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2900 | $as_echo "$MKDIR_P" >&6; } | |
2901 | ||
2902 | for ac_prog in gawk mawk nawk awk | |
2903 | do | |
2904 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2905 | set dummy $ac_prog; ac_word=$2 | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2907 | $as_echo_n "checking for $ac_word... " >&6; } | |
2908 | if ${ac_cv_prog_AWK+:} false; then : | |
2909 | $as_echo_n "(cached) " >&6 | |
2910 | else | |
2911 | if test -n "$AWK"; then | |
2912 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2913 | else | |
2914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2915 | for as_dir in $PATH | |
2916 | do | |
2917 | IFS=$as_save_IFS | |
2918 | test -z "$as_dir" && as_dir=. | |
2919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2921 | ac_cv_prog_AWK="$ac_prog" | |
2922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2923 | break 2 | |
2924 | fi | |
2925 | done | |
2926 | done | |
2927 | IFS=$as_save_IFS | |
2928 | ||
2929 | fi | |
2930 | fi | |
2931 | AWK=$ac_cv_prog_AWK | |
2932 | if test -n "$AWK"; then | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2934 | $as_echo "$AWK" >&6; } | |
2935 | else | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2937 | $as_echo "no" >&6; } | |
2938 | fi | |
2939 | ||
2940 | ||
2941 | test -n "$AWK" && break | |
2942 | done | |
2943 | ||
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2945 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2946 | set x ${MAKE-make} | |
2947 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2948 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2949 | $as_echo_n "(cached) " >&6 | |
2950 | else | |
2951 | cat >conftest.make <<\_ACEOF | |
2952 | SHELL = /bin/sh | |
2953 | all: | |
2954 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2955 | _ACEOF | |
2956 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2957 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2958 | *@@@%%%=?*=@@@%%%*) | |
2959 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2960 | *) | |
2961 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2962 | esac | |
2963 | rm -f conftest.make | |
2964 | fi | |
2965 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2967 | $as_echo "yes" >&6; } | |
2968 | SET_MAKE= | |
2969 | else | |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2971 | $as_echo "no" >&6; } | |
2972 | SET_MAKE="MAKE=${MAKE-make}" | |
2973 | fi | |
2974 | ||
2975 | rm -rf .tst 2>/dev/null | |
2976 | mkdir .tst 2>/dev/null | |
2977 | if test -d .tst; then | |
2978 | am__leading_dot=. | |
2979 | else | |
2980 | am__leading_dot=_ | |
2981 | fi | |
2982 | rmdir .tst 2>/dev/null | |
2983 | ||
2984 | # Check whether --enable-silent-rules was given. | |
2985 | if test "${enable_silent_rules+set}" = set; then : | |
2986 | enableval=$enable_silent_rules; | |
2987 | fi | |
2988 | ||
2989 | case $enable_silent_rules in # ((( | |
2990 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2991 | no) AM_DEFAULT_VERBOSITY=1;; | |
2992 | *) AM_DEFAULT_VERBOSITY=1;; | |
2993 | esac | |
2994 | am_make=${MAKE-make} | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2996 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2997 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2998 | $as_echo_n "(cached) " >&6 | |
2999 | else | |
3000 | if $as_echo 'TRUE=$(BAR$(V)) | |
3001 | BAR0=false | |
3002 | BAR1=true | |
3003 | V=1 | |
3004 | am__doit: | |
3005 | @$(TRUE) | |
3006 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3007 | am_cv_make_support_nested_variables=yes | |
3008 | else | |
3009 | am_cv_make_support_nested_variables=no | |
3010 | fi | |
3011 | fi | |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3013 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3014 | if test $am_cv_make_support_nested_variables = yes; then | |
3015 | AM_V='$(V)' | |
3016 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3017 | else | |
3018 | AM_V=$AM_DEFAULT_VERBOSITY | |
3019 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3020 | fi | |
3021 | AM_BACKSLASH='\' | |
3022 | ||
3023 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3024 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3025 | # is not polluted with repeated "-I." | |
3026 | am__isrc=' -I$(srcdir)' | |
3027 | # test to see if srcdir already configured | |
3028 | if test -f $srcdir/config.status; then | |
3029 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3030 | fi | |
3031 | fi | |
3032 | ||
3033 | # test whether we have cygpath | |
3034 | if test -z "$CYGPATH_W"; then | |
3035 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3036 | CYGPATH_W='cygpath -w' | |
3037 | else | |
3038 | CYGPATH_W=echo | |
3039 | fi | |
3040 | fi | |
3041 | ||
3042 | ||
3043 | # Define the identity of the package. | |
3044 | PACKAGE='cycript' | |
3045 | VERSION='0.9' | |
3046 | ||
3047 | ||
3048 | cat >>confdefs.h <<_ACEOF | |
3049 | #define PACKAGE "$PACKAGE" | |
3050 | _ACEOF | |
3051 | ||
3052 | ||
3053 | cat >>confdefs.h <<_ACEOF | |
3054 | #define VERSION "$VERSION" | |
3055 | _ACEOF | |
3056 | ||
3057 | # Some tools Automake needs. | |
3058 | ||
3059 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3060 | ||
3061 | ||
3062 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3063 | ||
3064 | ||
3065 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3066 | ||
3067 | ||
3068 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3069 | ||
3070 | ||
3071 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3072 | ||
3073 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3074 | # dies out for good. For more background, see: | |
3075 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3076 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3077 | mkdir_p='$(MKDIR_P)' | |
3078 | ||
3079 | # We need awk for the "check" target. The system "awk" is bad on | |
3080 | # some platforms. | |
3081 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3082 | # in the wild :-( We should find a proper way to deprecate it ... | |
3083 | AMTAR='$${TAR-tar}' | |
3084 | ||
a93f15c0 JF |
3085 | |
3086 | # We'll loop over all known methods to create a tar archive until one works. | |
3087 | _am_tools='gnutar pax cpio none' | |
3088 | ||
66170b30 JF |
3089 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3090 | ||
3091 | ||
3092 | ||
3093 | ||
3094 | ||
66170b30 | 3095 | |
a93f15c0 JF |
3096 | # POSIX will say in a future version that running "rm -f" with no argument |
3097 | # is OK; and we want to be able to make that assumption in our Makefile | |
3098 | # recipes. So use an aggressive probe to check that the usage we want is | |
3099 | # actually supported "in the wild" to an acceptable degree. | |
3100 | # See automake bug#10828. | |
3101 | # To make any issue more visible, cause the running configure to be aborted | |
3102 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3103 | # user can still override this though. | |
3104 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3105 | cat >&2 <<'END' | |
3106 | Oops! | |
3107 | ||
3108 | Your 'rm' program seems unable to run without file operands specified | |
3109 | on the command line, even when the '-f' option is present. This is contrary | |
3110 | to the behaviour of most rm programs out there, and not conforming with | |
3111 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3112 | ||
3113 | Please tell bug-automake@gnu.org about your system, including the value | |
3114 | of your $PATH and any error possibly output before this message. This | |
3115 | can help us improve future automake versions. | |
3116 | ||
3117 | END | |
3118 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3119 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3120 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3121 | echo >&2 | |
3122 | else | |
3123 | cat >&2 <<'END' | |
3124 | Aborting the configuration process, to ensure you take notice of the issue. | |
3125 | ||
3126 | You can download and install GNU coreutils to get an 'rm' implementation | |
3127 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3128 | ||
3129 | If you want to complete the configuration process using your problematic | |
3130 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3131 | to "yes", and re-run configure. | |
3132 | ||
3133 | END | |
3134 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3135 | fi | |
3136 | fi | |
3137 | ||
babf7fe8 JF |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3139 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3140 | # Check whether --enable-maintainer-mode was given. | |
3141 | if test "${enable_maintainer_mode+set}" = set; then : | |
3142 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3143 | else | |
3144 | USE_MAINTAINER_MODE=no | |
3145 | fi | |
3146 | ||
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3148 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3149 | if test $USE_MAINTAINER_MODE = yes; then | |
3150 | MAINTAINER_MODE_TRUE= | |
3151 | MAINTAINER_MODE_FALSE='#' | |
3152 | else | |
3153 | MAINTAINER_MODE_TRUE='#' | |
3154 | MAINTAINER_MODE_FALSE= | |
3155 | fi | |
3156 | ||
3157 | MAINT=$MAINTAINER_MODE_TRUE | |
3158 | ||
3159 | ||
3160 | ||
3161 | am_cv_CC_dependencies_compiler_type=none | |
3162 | am_cv_CXX_dependencies_compiler_type=none | |
3163 | am_cv_OBJCXX_dependencies_compiler_type=none | |
3164 | ||
a93f15c0 JF |
3165 | ac_ext=c |
3166 | ac_cpp='$CPP $CPPFLAGS' | |
3167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3170 | if test -n "$ac_tool_prefix"; then | |
3171 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3172 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3174 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3175 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3176 | $as_echo_n "(cached) " >&6 |
3177 | else | |
a93f15c0 JF |
3178 | if test -n "$CC"; then |
3179 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3180 | else |
3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3182 | for as_dir in $PATH | |
3183 | do | |
3184 | IFS=$as_save_IFS | |
3185 | test -z "$as_dir" && as_dir=. | |
3186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3188 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3190 | break 2 | |
3191 | fi | |
3192 | done | |
3193 | done | |
3194 | IFS=$as_save_IFS | |
3195 | ||
3196 | fi | |
3197 | fi | |
a93f15c0 JF |
3198 | CC=$ac_cv_prog_CC |
3199 | if test -n "$CC"; then | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3201 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3202 | else |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3204 | $as_echo "no" >&6; } | |
3205 | fi | |
3206 | ||
3207 | ||
35fa52c0 | 3208 | fi |
a93f15c0 JF |
3209 | if test -z "$ac_cv_prog_CC"; then |
3210 | ac_ct_CC=$CC | |
3211 | # Extract the first word of "gcc", so it can be a program name with args. | |
3212 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3214 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3215 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3216 | $as_echo_n "(cached) " >&6 |
3217 | else | |
a93f15c0 JF |
3218 | if test -n "$ac_ct_CC"; then |
3219 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3220 | else |
3221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3222 | for as_dir in $PATH | |
3223 | do | |
3224 | IFS=$as_save_IFS | |
3225 | test -z "$as_dir" && as_dir=. | |
3226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3228 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
3229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3230 | break 2 | |
3231 | fi | |
3232 | done | |
3233 | done | |
3234 | IFS=$as_save_IFS | |
3235 | ||
3236 | fi | |
3237 | fi | |
a93f15c0 JF |
3238 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3239 | if test -n "$ac_ct_CC"; then | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3241 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3242 | else |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3244 | $as_echo "no" >&6; } | |
3245 | fi | |
3246 | ||
a93f15c0 JF |
3247 | if test "x$ac_ct_CC" = x; then |
3248 | CC="" | |
35fa52c0 DWT |
3249 | else |
3250 | case $cross_compiling:$ac_tool_warned in | |
3251 | yes:) | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3253 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3254 | ac_tool_warned=yes ;; | |
3255 | esac | |
a93f15c0 | 3256 | CC=$ac_ct_CC |
35fa52c0 | 3257 | fi |
a93f15c0 JF |
3258 | else |
3259 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3260 | fi |
3261 | ||
a93f15c0 JF |
3262 | if test -z "$CC"; then |
3263 | if test -n "$ac_tool_prefix"; then | |
3264 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3265 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3267 | $as_echo_n "checking for $ac_word... " >&6; } | |
3268 | if ${ac_cv_prog_CC+:} false; then : | |
3269 | $as_echo_n "(cached) " >&6 | |
3270 | else | |
3271 | if test -n "$CC"; then | |
3272 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3273 | else | |
3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3275 | for as_dir in $PATH | |
3276 | do | |
3277 | IFS=$as_save_IFS | |
3278 | test -z "$as_dir" && as_dir=. | |
3279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3281 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3283 | break 2 | |
a243b558 | 3284 | fi |
35fa52c0 | 3285 | done |
a93f15c0 JF |
3286 | done |
3287 | IFS=$as_save_IFS | |
35fa52c0 | 3288 | |
a93f15c0 JF |
3289 | fi |
3290 | fi | |
3291 | CC=$ac_cv_prog_CC | |
3292 | if test -n "$CC"; then | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3294 | $as_echo "$CC" >&6; } | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3297 | $as_echo "no" >&6; } | |
3298 | fi | |
35fa52c0 | 3299 | |
35fa52c0 | 3300 | |
a93f15c0 JF |
3301 | fi |
3302 | fi | |
3303 | if test -z "$CC"; then | |
3304 | # Extract the first word of "cc", so it can be a program name with args. | |
3305 | set dummy cc; ac_word=$2 | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3307 | $as_echo_n "checking for $ac_word... " >&6; } | |
3308 | if ${ac_cv_prog_CC+:} false; then : | |
3309 | $as_echo_n "(cached) " >&6 | |
3310 | else | |
3311 | if test -n "$CC"; then | |
3312 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3313 | else | |
3314 | ac_prog_rejected=no | |
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3316 | for as_dir in $PATH | |
35fa52c0 | 3317 | do |
a93f15c0 JF |
3318 | IFS=$as_save_IFS |
3319 | test -z "$as_dir" && as_dir=. | |
3320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3322 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3323 | ac_prog_rejected=yes | |
3324 | continue | |
3325 | fi | |
3326 | ac_cv_prog_CC="cc" | |
3327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3328 | break 2 | |
3329 | fi | |
3330 | done | |
3331 | done | |
3332 | IFS=$as_save_IFS | |
3333 | ||
3334 | if test $ac_prog_rejected = yes; then | |
3335 | # We found a bogon in the path, so make sure we never use it. | |
3336 | set dummy $ac_cv_prog_CC | |
3337 | shift | |
3338 | if test $# != 0; then | |
3339 | # We chose a different compiler from the bogus one. | |
3340 | # However, it has the same basename, so the bogon will be chosen | |
3341 | # first if we set CC to just the basename; use the full file name. | |
3342 | shift | |
3343 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3344 | fi | |
3345 | fi | |
3346 | fi | |
3347 | fi | |
3348 | CC=$ac_cv_prog_CC | |
3349 | if test -n "$CC"; then | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3351 | $as_echo "$CC" >&6; } | |
3352 | else | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3354 | $as_echo "no" >&6; } | |
3355 | fi | |
3356 | ||
3357 | ||
3358 | fi | |
3359 | if test -z "$CC"; then | |
3360 | if test -n "$ac_tool_prefix"; then | |
3361 | for ac_prog in cl.exe | |
3362 | do | |
3363 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3364 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3366 | $as_echo_n "checking for $ac_word... " >&6; } | |
3367 | if ${ac_cv_prog_CC+:} false; then : | |
3368 | $as_echo_n "(cached) " >&6 | |
3369 | else | |
3370 | if test -n "$CC"; then | |
3371 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3372 | else | |
3373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3374 | for as_dir in $PATH | |
3375 | do | |
3376 | IFS=$as_save_IFS | |
3377 | test -z "$as_dir" && as_dir=. | |
3378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3380 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3382 | break 2 | |
3383 | fi | |
3384 | done | |
3385 | done | |
3386 | IFS=$as_save_IFS | |
3387 | ||
3388 | fi | |
3389 | fi | |
3390 | CC=$ac_cv_prog_CC | |
3391 | if test -n "$CC"; then | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3393 | $as_echo "$CC" >&6; } | |
3394 | else | |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3396 | $as_echo "no" >&6; } | |
3397 | fi | |
3398 | ||
3399 | ||
3400 | test -n "$CC" && break | |
3401 | done | |
3402 | fi | |
3403 | if test -z "$CC"; then | |
3404 | ac_ct_CC=$CC | |
3405 | for ac_prog in cl.exe | |
3406 | do | |
3407 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3408 | set dummy $ac_prog; ac_word=$2 | |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3410 | $as_echo_n "checking for $ac_word... " >&6; } | |
3411 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3412 | $as_echo_n "(cached) " >&6 | |
3413 | else | |
3414 | if test -n "$ac_ct_CC"; then | |
3415 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3416 | else | |
3417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3418 | for as_dir in $PATH | |
3419 | do | |
3420 | IFS=$as_save_IFS | |
3421 | test -z "$as_dir" && as_dir=. | |
3422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3424 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3426 | break 2 | |
3427 | fi | |
3428 | done | |
3429 | done | |
3430 | IFS=$as_save_IFS | |
3431 | ||
3432 | fi | |
3433 | fi | |
3434 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3435 | if test -n "$ac_ct_CC"; then | |
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3437 | $as_echo "$ac_ct_CC" >&6; } | |
3438 | else | |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3440 | $as_echo "no" >&6; } | |
3441 | fi | |
3442 | ||
3443 | ||
3444 | test -n "$ac_ct_CC" && break | |
3445 | done | |
3446 | ||
3447 | if test "x$ac_ct_CC" = x; then | |
3448 | CC="" | |
3449 | else | |
3450 | case $cross_compiling:$ac_tool_warned in | |
3451 | yes:) | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3453 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3454 | ac_tool_warned=yes ;; | |
3455 | esac | |
3456 | CC=$ac_ct_CC | |
3457 | fi | |
3458 | fi | |
3459 | ||
3460 | fi | |
3461 | ||
3462 | ||
3463 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3464 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3465 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3466 | See \`config.log' for more details" "$LINENO" 5; } | |
3467 | ||
3468 | # Provide some information about the compiler. | |
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3470 | set X $ac_compile | |
3471 | ac_compiler=$2 | |
3472 | for ac_option in --version -v -V -qversion; do | |
3473 | { { ac_try="$ac_compiler $ac_option >&5" | |
3474 | case "(($ac_try" in | |
3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3476 | *) ac_try_echo=$ac_try;; | |
3477 | esac | |
3478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3479 | $as_echo "$ac_try_echo"; } >&5 | |
3480 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3481 | ac_status=$? | |
3482 | if test -s conftest.err; then | |
3483 | sed '10a\ | |
3484 | ... rest of stderr output deleted ... | |
3485 | 10q' conftest.err >conftest.er1 | |
3486 | cat conftest.er1 >&5 | |
3487 | fi | |
3488 | rm -f conftest.er1 conftest.err | |
3489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3490 | test $ac_status = 0; } | |
3491 | done | |
3492 | ||
3493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3494 | /* end confdefs.h. */ | |
3495 | ||
3496 | int | |
3497 | main () | |
3498 | { | |
3499 | ||
3500 | ; | |
3501 | return 0; | |
3502 | } | |
3503 | _ACEOF | |
3504 | ac_clean_files_save=$ac_clean_files | |
3505 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3506 | # Try to create an executable without -o first, disregard a.out. | |
3507 | # It will help us diagnose broken compilers, and finding out an intuition | |
3508 | # of exeext. | |
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3510 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3511 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3512 | ||
3513 | # The possible output files: | |
3514 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3515 | ||
3516 | ac_rmfiles= | |
3517 | for ac_file in $ac_files | |
3518 | do | |
3519 | case $ac_file in | |
3520 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3521 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3522 | esac | |
3523 | done | |
35fa52c0 DWT |
3524 | rm -f $ac_rmfiles |
3525 | ||
3526 | if { { ac_try="$ac_link_default" | |
3527 | case "(($ac_try" in | |
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3529 | *) ac_try_echo=$ac_try;; | |
3530 | esac | |
3531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3532 | $as_echo "$ac_try_echo"; } >&5 | |
3533 | (eval "$ac_link_default") 2>&5 | |
3534 | ac_status=$? | |
3535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3536 | test $ac_status = 0; }; then : | |
3537 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3538 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3539 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3540 | # so that the user can short-circuit this test for compilers unknown to | |
3541 | # Autoconf. | |
3542 | for ac_file in $ac_files '' | |
3543 | do | |
3544 | test -f "$ac_file" || continue | |
3545 | case $ac_file in | |
3546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3547 | ;; | |
3548 | [ab].out ) | |
3549 | # We found the default executable, but exeext='' is most | |
3550 | # certainly right. | |
3551 | break;; | |
3552 | *.* ) | |
3553 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3554 | then :; else | |
3555 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3556 | fi | |
3557 | # We set ac_cv_exeext here because the later test for it is not | |
3558 | # safe: cross compilers may not add the suffix if given an `-o' | |
3559 | # argument, so we may need to know it at that point already. | |
3560 | # Even if this section looks crufty: it has the advantage of | |
3561 | # actually working. | |
3562 | break;; | |
3563 | * ) | |
3564 | break;; | |
3565 | esac | |
3566 | done | |
3567 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3568 | ||
3569 | else | |
3570 | ac_file='' | |
3571 | fi | |
35fa52c0 | 3572 | if test -z "$ac_file"; then : |
9c60689e DWT |
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3574 | $as_echo "no" >&6; } | |
3575 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3576 | sed 's/^/| /' conftest.$ac_ext >&5 |
3577 | ||
3578 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3579 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3580 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3581 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3582 | else |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3584 | $as_echo "yes" >&6; } | |
35fa52c0 | 3585 | fi |
a93f15c0 JF |
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3587 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3589 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3590 | ac_exeext=$ac_cv_exeext |
3591 | ||
9c60689e | 3592 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3593 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3595 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3596 | if { { ac_try="$ac_link" | |
3597 | case "(($ac_try" in | |
3598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3599 | *) ac_try_echo=$ac_try;; | |
3600 | esac | |
3601 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3602 | $as_echo "$ac_try_echo"; } >&5 | |
3603 | (eval "$ac_link") 2>&5 | |
3604 | ac_status=$? | |
3605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3606 | test $ac_status = 0; }; then : | |
3607 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3608 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3609 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3610 | # `rm'. | |
3611 | for ac_file in conftest.exe conftest conftest.*; do | |
3612 | test -f "$ac_file" || continue | |
3613 | case $ac_file in | |
3614 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3615 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3616 | break;; | |
3617 | * ) break;; | |
3618 | esac | |
3619 | done | |
3620 | else | |
3621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3623 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3624 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3625 | fi |
9c60689e | 3626 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3628 | $as_echo "$ac_cv_exeext" >&6; } | |
3629 | ||
3630 | rm -f conftest.$ac_ext | |
3631 | EXEEXT=$ac_cv_exeext | |
3632 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3634 | /* end confdefs.h. */ | |
3635 | #include <stdio.h> | |
3636 | int | |
3637 | main () | |
3638 | { | |
3639 | FILE *f = fopen ("conftest.out", "w"); | |
3640 | return ferror (f) || fclose (f) != 0; | |
3641 | ||
3642 | ; | |
3643 | return 0; | |
3644 | } | |
3645 | _ACEOF | |
3646 | ac_clean_files="$ac_clean_files conftest.out" | |
3647 | # Check that the compiler produces executables we can run. If not, either | |
3648 | # the compiler is broken, or we cross compile. | |
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3650 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3651 | if test "$cross_compiling" != yes; then | |
3652 | { { ac_try="$ac_link" | |
3653 | case "(($ac_try" in | |
3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3655 | *) ac_try_echo=$ac_try;; | |
3656 | esac | |
3657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3658 | $as_echo "$ac_try_echo"; } >&5 | |
3659 | (eval "$ac_link") 2>&5 | |
3660 | ac_status=$? | |
3661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3662 | test $ac_status = 0; } | |
3663 | if { ac_try='./conftest$ac_cv_exeext' | |
3664 | { { case "(($ac_try" in | |
3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3666 | *) ac_try_echo=$ac_try;; | |
3667 | esac | |
3668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3669 | $as_echo "$ac_try_echo"; } >&5 | |
3670 | (eval "$ac_try") 2>&5 | |
3671 | ac_status=$? | |
3672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3673 | test $ac_status = 0; }; }; then | |
3674 | cross_compiling=no | |
3675 | else | |
3676 | if test "$cross_compiling" = maybe; then | |
3677 | cross_compiling=yes | |
3678 | else | |
3679 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3680 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3681 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3682 | If you meant to cross compile, use \`--host'. |
ee134472 | 3683 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3684 | fi |
3685 | fi | |
3686 | fi | |
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3688 | $as_echo "$cross_compiling" >&6; } | |
3689 | ||
3690 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3691 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3693 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3694 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3695 | $as_echo_n "(cached) " >&6 |
3696 | else | |
3697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3698 | /* end confdefs.h. */ | |
3699 | ||
3700 | int | |
3701 | main () | |
3702 | { | |
3703 | ||
3704 | ; | |
3705 | return 0; | |
3706 | } | |
3707 | _ACEOF | |
3708 | rm -f conftest.o conftest.obj | |
3709 | if { { ac_try="$ac_compile" | |
3710 | case "(($ac_try" in | |
3711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3712 | *) ac_try_echo=$ac_try;; | |
3713 | esac | |
3714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3715 | $as_echo "$ac_try_echo"; } >&5 | |
3716 | (eval "$ac_compile") 2>&5 | |
3717 | ac_status=$? | |
3718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3719 | test $ac_status = 0; }; then : | |
3720 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3721 | test -f "$ac_file" || continue; | |
3722 | case $ac_file in | |
3723 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3724 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3725 | break;; | |
3726 | esac | |
3727 | done | |
3728 | else | |
3729 | $as_echo "$as_me: failed program was:" >&5 | |
3730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3731 | ||
3732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3734 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3735 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3736 | fi |
3737 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3738 | fi | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3740 | $as_echo "$ac_cv_objext" >&6; } | |
3741 | OBJEXT=$ac_cv_objext | |
3742 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3744 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3745 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3746 | $as_echo_n "(cached) " >&6 |
3747 | else | |
3748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3749 | /* end confdefs.h. */ | |
3750 | ||
3751 | int | |
3752 | main () | |
3753 | { | |
3754 | #ifndef __GNUC__ | |
3755 | choke me | |
3756 | #endif | |
3757 | ||
3758 | ; | |
3759 | return 0; | |
3760 | } | |
3761 | _ACEOF | |
a93f15c0 | 3762 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3763 | ac_compiler_gnu=yes |
3764 | else | |
3765 | ac_compiler_gnu=no | |
3766 | fi | |
3767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3768 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3769 | |
3770 | fi | |
a93f15c0 JF |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3772 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3773 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3774 | GCC=yes |
35fa52c0 | 3775 | else |
a93f15c0 | 3776 | GCC= |
35fa52c0 | 3777 | fi |
a93f15c0 JF |
3778 | ac_test_CFLAGS=${CFLAGS+set} |
3779 | ac_save_CFLAGS=$CFLAGS | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3781 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3782 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3783 | $as_echo_n "(cached) " >&6 |
3784 | else | |
a93f15c0 JF |
3785 | ac_save_c_werror_flag=$ac_c_werror_flag |
3786 | ac_c_werror_flag=yes | |
3787 | ac_cv_prog_cc_g=no | |
3788 | CFLAGS="-g" | |
35fa52c0 DWT |
3789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3790 | /* end confdefs.h. */ | |
3791 | ||
3792 | int | |
3793 | main () | |
3794 | { | |
3795 | ||
3796 | ; | |
3797 | return 0; | |
3798 | } | |
3799 | _ACEOF | |
a93f15c0 JF |
3800 | if ac_fn_c_try_compile "$LINENO"; then : |
3801 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3802 | else |
a93f15c0 | 3803 | CFLAGS="" |
35fa52c0 DWT |
3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3805 | /* end confdefs.h. */ | |
3806 | ||
3807 | int | |
3808 | main () | |
3809 | { | |
3810 | ||
3811 | ; | |
3812 | return 0; | |
3813 | } | |
3814 | _ACEOF | |
a93f15c0 | 3815 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3816 | |
3817 | else | |
a93f15c0 JF |
3818 | ac_c_werror_flag=$ac_save_c_werror_flag |
3819 | CFLAGS="-g" | |
35fa52c0 DWT |
3820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3821 | /* end confdefs.h. */ | |
3822 | ||
3823 | int | |
3824 | main () | |
3825 | { | |
3826 | ||
3827 | ; | |
3828 | return 0; | |
3829 | } | |
3830 | _ACEOF | |
a93f15c0 JF |
3831 | if ac_fn_c_try_compile "$LINENO"; then : |
3832 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3833 | fi |
3834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3835 | fi | |
3836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3837 | fi | |
3838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3839 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3840 | fi |
a93f15c0 JF |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3842 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3843 | if test "$ac_test_CFLAGS" = set; then | |
3844 | CFLAGS=$ac_save_CFLAGS | |
3845 | elif test $ac_cv_prog_cc_g = yes; then | |
3846 | if test "$GCC" = yes; then | |
3847 | CFLAGS="-g -O2" | |
35fa52c0 | 3848 | else |
a93f15c0 | 3849 | CFLAGS="-g" |
35fa52c0 DWT |
3850 | fi |
3851 | else | |
a93f15c0 JF |
3852 | if test "$GCC" = yes; then |
3853 | CFLAGS="-O2" | |
35fa52c0 | 3854 | else |
a93f15c0 | 3855 | CFLAGS= |
35fa52c0 DWT |
3856 | fi |
3857 | fi | |
a93f15c0 JF |
3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3859 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3860 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3861 | $as_echo_n "(cached) " >&6 | |
3862 | else | |
3863 | ac_cv_prog_cc_c89=no | |
3864 | ac_save_CC=$CC | |
3865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3866 | /* end confdefs.h. */ | |
3867 | #include <stdarg.h> | |
3868 | #include <stdio.h> | |
3869 | struct stat; | |
3870 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3871 | struct buf { int x; }; | |
3872 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3873 | static char *e (p, i) | |
3874 | char **p; | |
3875 | int i; | |
3876 | { | |
3877 | return p[i]; | |
3878 | } | |
3879 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3880 | { | |
3881 | char *s; | |
3882 | va_list v; | |
3883 | va_start (v,p); | |
3884 | s = g (p, va_arg (v,int)); | |
3885 | va_end (v); | |
3886 | return s; | |
3887 | } | |
3888 | ||
3889 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3890 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3891 | These don't provoke an error unfortunately, instead are silently treated | |
3892 | as 'x'. The following induces an error, until -std is added to get | |
3893 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3894 | array size at least. It's necessary to write '\x00'==0 to get something | |
3895 | that's true only with -std. */ | |
3896 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3897 | ||
3898 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3899 | inside strings and character constants. */ | |
3900 | #define FOO(x) 'x' | |
3901 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3902 | ||
3903 | int test (int i, double x); | |
3904 | struct s1 {int (*f) (int a);}; | |
3905 | struct s2 {int (*f) (double a);}; | |
3906 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3907 | int argc; | |
3908 | char **argv; | |
3909 | int | |
3910 | main () | |
3911 | { | |
3912 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3913 | ; | |
3914 | return 0; | |
3915 | } | |
3916 | _ACEOF | |
3917 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3918 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3919 | do | |
3920 | CC="$ac_save_CC $ac_arg" | |
3921 | if ac_fn_c_try_compile "$LINENO"; then : | |
3922 | ac_cv_prog_cc_c89=$ac_arg | |
3923 | fi | |
3924 | rm -f core conftest.err conftest.$ac_objext | |
3925 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3926 | done | |
3927 | rm -f conftest.$ac_ext | |
3928 | CC=$ac_save_CC | |
3929 | ||
3930 | fi | |
3931 | # AC_CACHE_VAL | |
3932 | case "x$ac_cv_prog_cc_c89" in | |
3933 | x) | |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3935 | $as_echo "none needed" >&6; } ;; | |
3936 | xno) | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3938 | $as_echo "unsupported" >&6; } ;; | |
3939 | *) | |
3940 | CC="$CC $ac_cv_prog_cc_c89" | |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3942 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3943 | esac | |
3944 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3945 | ||
3946 | fi | |
3947 | ||
3948 | ac_ext=c | |
3949 | ac_cpp='$CPP $CPPFLAGS' | |
3950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3953 | ||
3954 | ac_ext=c | |
3955 | ac_cpp='$CPP $CPPFLAGS' | |
3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3960 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3961 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3962 | $as_echo_n "(cached) " >&6 | |
3963 | else | |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3965 | /* end confdefs.h. */ | |
3966 | ||
3967 | int | |
3968 | main () | |
3969 | { | |
3970 | ||
3971 | ; | |
3972 | return 0; | |
3973 | } | |
3974 | _ACEOF | |
3975 | # Make sure it works both with $CC and with simple cc. | |
3976 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3977 | # compilers refuse to overwrite an existing .o file with -o, | |
3978 | # though they will create one. | |
3979 | am_cv_prog_cc_c_o=yes | |
3980 | for am_i in 1 2; do | |
3981 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3982 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3983 | ac_status=$? | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); } \ | |
3986 | && test -f conftest2.$ac_objext; then | |
3987 | : OK | |
3988 | else | |
3989 | am_cv_prog_cc_c_o=no | |
3990 | break | |
3991 | fi | |
3992 | done | |
3993 | rm -f core conftest* | |
3994 | unset am_i | |
3995 | fi | |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3997 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3998 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3999 | # Losing compiler, so override with the script. | |
4000 | # FIXME: It is wrong to rewrite CC. | |
4001 | # But if we don't then we get into trouble of one sort or another. | |
4002 | # A longer-term fix would be to have automake use am__CC in this case, | |
4003 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4004 | CC="$am_aux_dir/compile $CC" | |
4005 | fi | |
a243b558 JF |
4006 | ac_ext=c |
4007 | ac_cpp='$CPP $CPPFLAGS' | |
4008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4011 | |
a243b558 | 4012 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4013 | |
a243b558 | 4014 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4015 | |
35fa52c0 | 4016 | |
a243b558 JF |
4017 | am_make=${MAKE-make} |
4018 | cat > confinc << 'END' | |
4019 | am__doit: | |
4020 | @echo this is the am__doit target | |
4021 | .PHONY: am__doit | |
4022 | END | |
4023 | # If we don't find an include directive, just comment out the code. | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4025 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4026 | am__include="#" | |
4027 | am__quote= | |
4028 | _am_result=none | |
4029 | # First try GNU make style include. | |
4030 | echo "include confinc" > confmf | |
4031 | # Ignore all kinds of additional output from 'make'. | |
4032 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4033 | *the\ am__doit\ target*) | |
4034 | am__include=include | |
4035 | am__quote= | |
4036 | _am_result=GNU | |
4037 | ;; | |
4038 | esac | |
4039 | # Now try BSD make style include. | |
4040 | if test "$am__include" = "#"; then | |
4041 | echo '.include "confinc"' > confmf | |
4042 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4043 | *the\ am__doit\ target*) | |
4044 | am__include=.include | |
4045 | am__quote="\"" | |
4046 | _am_result=BSD | |
4047 | ;; | |
4048 | esac | |
35fa52c0 | 4049 | fi |
35fa52c0 | 4050 | |
a243b558 JF |
4051 | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4053 | $as_echo "$_am_result" >&6; } | |
4054 | rm -f confinc confmf | |
4055 | ||
4056 | # Check whether --enable-dependency-tracking was given. | |
4057 | if test "${enable_dependency_tracking+set}" = set; then : | |
4058 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4059 | fi |
35fa52c0 | 4060 | |
a243b558 JF |
4061 | if test "x$enable_dependency_tracking" != xno; then |
4062 | am_depcomp="$ac_aux_dir/depcomp" | |
4063 | AMDEPBACKSLASH='\' | |
4064 | am__nodep='_no' | |
4065 | fi | |
4066 | if test "x$enable_dependency_tracking" != xno; then | |
4067 | AMDEP_TRUE= | |
4068 | AMDEP_FALSE='#' | |
4069 | else | |
4070 | AMDEP_TRUE='#' | |
4071 | AMDEP_FALSE= | |
35fa52c0 DWT |
4072 | fi |
4073 | ||
35fa52c0 | 4074 | |
a243b558 | 4075 | |
a93f15c0 | 4076 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4077 | |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4079 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4080 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4081 | $as_echo_n "(cached) " >&6 |
4082 | else | |
4083 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4084 | # We make a subdir and do the tests there. Otherwise we can end up | |
4085 | # making bogus files that we don't know about and never remove. For | |
4086 | # instance it was reported that on HP-UX the gcc test will end up | |
4087 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4088 | # in D". | |
4089 | rm -rf conftest.dir | |
4090 | mkdir conftest.dir | |
4091 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4092 | # using a relative directory. | |
4093 | cp "$am_depcomp" conftest.dir | |
4094 | cd conftest.dir | |
4095 | # We will build objects and dependencies in a subdirectory because | |
4096 | # it helps to detect inapplicable dependency modes. For instance | |
4097 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4098 | # side effect of compilation, but ICC will put the dependencies in | |
4099 | # the current directory while Tru64 will put them in the object | |
4100 | # directory. | |
4101 | mkdir sub | |
4102 | ||
a93f15c0 | 4103 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4104 | if test "$am_compiler_list" = ""; then |
4105 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4106 | fi | |
4107 | am__universal=false | |
4108 | case " $depcc " in #( | |
4109 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4110 | esac | |
4111 | ||
4112 | for depmode in $am_compiler_list; do | |
4113 | # Setup a source with many dependencies, because some compilers | |
4114 | # like to wrap large dependency lists on column 80 (with \), and | |
4115 | # we should not choose a depcomp mode which is confused by this. | |
4116 | # | |
4117 | # We need to recreate these files for each test, as the compiler may | |
4118 | # overwrite some of them when testing with obscure command lines. | |
4119 | # This happens at least with the AIX C compiler. | |
4120 | : > sub/conftest.c | |
4121 | for i in 1 2 3 4 5 6; do | |
4122 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4123 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4124 | # Solaris 10 /bin/sh. | |
4125 | echo '/* dummy */' > sub/conftst$i.h | |
4126 | done | |
4127 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4128 | ||
4129 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4130 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4131 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4132 | # versions had trouble with output in subdirs. | |
4133 | am__obj=sub/conftest.${OBJEXT-o} | |
4134 | am__minus_obj="-o $am__obj" | |
4135 | case $depmode in | |
4136 | gcc) | |
4137 | # This depmode causes a compiler race in universal mode. | |
4138 | test "$am__universal" = false || continue | |
4139 | ;; | |
4140 | nosideeffect) | |
4141 | # After this tag, mechanisms are not by side-effect, so they'll | |
4142 | # only be used when explicitly requested. | |
4143 | if test "x$enable_dependency_tracking" = xyes; then | |
4144 | continue | |
4145 | else | |
4146 | break | |
4147 | fi | |
4148 | ;; | |
4149 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4150 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4151 | # not run yet. These depmodes are late enough in the game, and | |
4152 | # so weak that their functioning should not be impacted. | |
4153 | am__obj=conftest.${OBJEXT-o} | |
4154 | am__minus_obj= | |
4155 | ;; | |
4156 | none) break ;; | |
4157 | esac | |
4158 | if depmode=$depmode \ | |
4159 | source=sub/conftest.c object=$am__obj \ | |
4160 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4161 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4162 | >/dev/null 2>conftest.err && | |
4163 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4164 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4165 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4166 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4167 | # icc doesn't choke on unknown options, it will just issue warnings | |
4168 | # or remarks (even with -Werror). So we grep stderr for any message | |
4169 | # that says an option was ignored or not supported. | |
4170 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4171 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4172 | # The diagnosis changed in icc 8.0: | |
4173 | # icc: Command line remark: option '-MP' not supported | |
4174 | if (grep 'ignoring option' conftest.err || | |
4175 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4176 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4177 | break |
4178 | fi | |
4179 | fi | |
4180 | done | |
4181 | ||
4182 | cd .. | |
4183 | rm -rf conftest.dir | |
4184 | else | |
a93f15c0 | 4185 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4186 | fi |
4187 | ||
4188 | fi | |
a93f15c0 JF |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4190 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4191 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4192 | |
4193 | if | |
4194 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4195 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4196 | am__fastdepCC_TRUE= | |
4197 | am__fastdepCC_FALSE='#' | |
66170b30 | 4198 | else |
a93f15c0 JF |
4199 | am__fastdepCC_TRUE='#' |
4200 | am__fastdepCC_FALSE= | |
66170b30 JF |
4201 | fi |
4202 | ||
4203 | ||
a93f15c0 JF |
4204 | ac_ext=cpp |
4205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4209 | if test -z "$CXX"; then | |
4210 | if test -n "$CCC"; then | |
4211 | CXX=$CCC | |
4212 | else | |
4213 | if test -n "$ac_tool_prefix"; then | |
4214 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4215 | do |
4216 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4219 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4220 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4221 | $as_echo_n "(cached) " >&6 |
4222 | else | |
a93f15c0 JF |
4223 | if test -n "$CXX"; then |
4224 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4225 | else |
4226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4227 | for as_dir in $PATH | |
4228 | do | |
35fa52c0 DWT |
4229 | IFS=$as_save_IFS |
4230 | test -z "$as_dir" && as_dir=. | |
4231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4233 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4235 | break 2 | |
4236 | fi | |
4237 | done | |
9c60689e DWT |
4238 | done |
4239 | IFS=$as_save_IFS | |
35fa52c0 | 4240 | |
9c60689e | 4241 | fi |
a243b558 | 4242 | fi |
a93f15c0 JF |
4243 | CXX=$ac_cv_prog_CXX |
4244 | if test -n "$CXX"; then | |
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4246 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4247 | else |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4249 | $as_echo "no" >&6; } | |
4250 | fi | |
35fa52c0 | 4251 | |
35fa52c0 | 4252 | |
a93f15c0 | 4253 | test -n "$CXX" && break |
a243b558 JF |
4254 | done |
4255 | fi | |
a93f15c0 JF |
4256 | if test -z "$CXX"; then |
4257 | ac_ct_CXX=$CXX | |
4258 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4259 | do |
4260 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4261 | set dummy $ac_prog; ac_word=$2 | |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4264 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4265 | $as_echo_n "(cached) " >&6 |
4266 | else | |
a93f15c0 JF |
4267 | if test -n "$ac_ct_CXX"; then |
4268 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4269 | else |
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4271 | for as_dir in $PATH | |
9c60689e DWT |
4272 | do |
4273 | IFS=$as_save_IFS | |
4274 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4275 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4277 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4279 | break 2 | |
4280 | fi | |
4281 | done | |
9c60689e DWT |
4282 | done |
4283 | IFS=$as_save_IFS | |
a243b558 JF |
4284 | |
4285 | fi | |
4286 | fi | |
a93f15c0 JF |
4287 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4288 | if test -n "$ac_ct_CXX"; then | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4290 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4291 | else |
a243b558 JF |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4293 | $as_echo "no" >&6; } | |
9c60689e | 4294 | fi |
6b66678a DWT |
4295 | |
4296 | ||
a93f15c0 | 4297 | test -n "$ac_ct_CXX" && break |
a243b558 | 4298 | done |
6b66678a | 4299 | |
a93f15c0 JF |
4300 | if test "x$ac_ct_CXX" = x; then |
4301 | CXX="g++" | |
a243b558 JF |
4302 | else |
4303 | case $cross_compiling:$ac_tool_warned in | |
4304 | yes:) | |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4307 | ac_tool_warned=yes ;; | |
9c60689e | 4308 | esac |
a93f15c0 | 4309 | CXX=$ac_ct_CXX |
9c60689e | 4310 | fi |
9c60689e | 4311 | fi |
6b66678a | 4312 | |
a93f15c0 JF |
4313 | fi |
4314 | fi | |
a243b558 | 4315 | # Provide some information about the compiler. |
a93f15c0 | 4316 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4317 | set X $ac_compile |
4318 | ac_compiler=$2 | |
4319 | for ac_option in --version -v -V -qversion; do | |
4320 | { { ac_try="$ac_compiler $ac_option >&5" | |
4321 | case "(($ac_try" in | |
4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4323 | *) ac_try_echo=$ac_try;; | |
4324 | esac | |
4325 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4326 | $as_echo "$ac_try_echo"; } >&5 | |
4327 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4328 | ac_status=$? | |
4329 | if test -s conftest.err; then | |
4330 | sed '10a\ | |
4331 | ... rest of stderr output deleted ... | |
4332 | 10q' conftest.err >conftest.er1 | |
4333 | cat conftest.er1 >&5 | |
4334 | fi | |
4335 | rm -f conftest.er1 conftest.err | |
4336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4337 | test $ac_status = 0; } | |
4338 | done | |
6b66678a | 4339 | |
a93f15c0 JF |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4341 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4342 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4343 | $as_echo_n "(cached) " >&6 |
6b66678a | 4344 | else |
a243b558 JF |
4345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 | /* end confdefs.h. */ | |
6b66678a | 4347 | |
a243b558 JF |
4348 | int |
4349 | main () | |
4350 | { | |
4351 | #ifndef __GNUC__ | |
4352 | choke me | |
4353 | #endif | |
4354 | ||
4355 | ; | |
4356 | return 0; | |
4357 | } | |
4358 | _ACEOF | |
a93f15c0 | 4359 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4360 | ac_compiler_gnu=yes |
9c60689e | 4361 | else |
a243b558 | 4362 | ac_compiler_gnu=no |
6b66678a | 4363 | fi |
a243b558 | 4364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4365 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4366 | |
4367 | fi | |
a93f15c0 JF |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4369 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4370 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4371 | GXX=yes |
a243b558 | 4372 | else |
a93f15c0 | 4373 | GXX= |
a243b558 | 4374 | fi |
a93f15c0 JF |
4375 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4376 | ac_save_CXXFLAGS=$CXXFLAGS | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4378 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4379 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4380 | $as_echo_n "(cached) " >&6 |
4381 | else | |
a93f15c0 JF |
4382 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4383 | ac_cxx_werror_flag=yes | |
4384 | ac_cv_prog_cxx_g=no | |
4385 | CXXFLAGS="-g" | |
a243b558 JF |
4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4387 | /* end confdefs.h. */ | |
309b0535 | 4388 | |
a243b558 JF |
4389 | int |
4390 | main () | |
4391 | { | |
309b0535 | 4392 | |
a243b558 JF |
4393 | ; |
4394 | return 0; | |
4395 | } | |
4396 | _ACEOF | |
a93f15c0 JF |
4397 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4398 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4399 | else |
a93f15c0 | 4400 | CXXFLAGS="" |
a243b558 JF |
4401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4402 | /* end confdefs.h. */ | |
309b0535 | 4403 | |
a243b558 JF |
4404 | int |
4405 | main () | |
4406 | { | |
309b0535 | 4407 | |
a243b558 JF |
4408 | ; |
4409 | return 0; | |
4410 | } | |
4411 | _ACEOF | |
a93f15c0 | 4412 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4413 | |
a243b558 | 4414 | else |
a93f15c0 JF |
4415 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4416 | CXXFLAGS="-g" | |
a243b558 JF |
4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4418 | /* end confdefs.h. */ | |
309b0535 | 4419 | |
a243b558 JF |
4420 | int |
4421 | main () | |
4422 | { | |
309b0535 | 4423 | |
a243b558 JF |
4424 | ; |
4425 | return 0; | |
4426 | } | |
4427 | _ACEOF | |
a93f15c0 JF |
4428 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4429 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4430 | fi |
a243b558 | 4431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4432 | fi |
a243b558 | 4433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4434 | fi |
a243b558 | 4435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4436 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4437 | fi |
a93f15c0 JF |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4439 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4440 | if test "$ac_test_CXXFLAGS" = set; then | |
4441 | CXXFLAGS=$ac_save_CXXFLAGS | |
4442 | elif test $ac_cv_prog_cxx_g = yes; then | |
4443 | if test "$GXX" = yes; then | |
4444 | CXXFLAGS="-g -O2" | |
a243b558 | 4445 | else |
a93f15c0 | 4446 | CXXFLAGS="-g" |
a243b558 | 4447 | fi |
9c60689e | 4448 | else |
a93f15c0 JF |
4449 | if test "$GXX" = yes; then |
4450 | CXXFLAGS="-O2" | |
a243b558 | 4451 | else |
a93f15c0 | 4452 | CXXFLAGS= |
a243b558 | 4453 | fi |
9c60689e | 4454 | fi |
a243b558 JF |
4455 | ac_ext=c |
4456 | ac_cpp='$CPP $CPPFLAGS' | |
4457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4460 | |
a93f15c0 | 4461 | depcc="$CXX" am_compiler_list= |
309b0535 | 4462 | |
a243b558 JF |
4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4464 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4465 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4466 | $as_echo_n "(cached) " >&6 |
4467 | else | |
4468 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4469 | # We make a subdir and do the tests there. Otherwise we can end up | |
4470 | # making bogus files that we don't know about and never remove. For | |
4471 | # instance it was reported that on HP-UX the gcc test will end up | |
4472 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4473 | # in D". | |
4474 | rm -rf conftest.dir | |
4475 | mkdir conftest.dir | |
4476 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4477 | # using a relative directory. | |
4478 | cp "$am_depcomp" conftest.dir | |
4479 | cd conftest.dir | |
4480 | # We will build objects and dependencies in a subdirectory because | |
4481 | # it helps to detect inapplicable dependency modes. For instance | |
4482 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4483 | # side effect of compilation, but ICC will put the dependencies in | |
4484 | # the current directory while Tru64 will put them in the object | |
4485 | # directory. | |
4486 | mkdir sub | |
309b0535 | 4487 | |
a93f15c0 | 4488 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4489 | if test "$am_compiler_list" = ""; then |
4490 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4491 | fi | |
4492 | am__universal=false | |
a93f15c0 JF |
4493 | case " $depcc " in #( |
4494 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4495 | esac | |
9c60689e | 4496 | |
a243b558 JF |
4497 | for depmode in $am_compiler_list; do |
4498 | # Setup a source with many dependencies, because some compilers | |
4499 | # like to wrap large dependency lists on column 80 (with \), and | |
4500 | # we should not choose a depcomp mode which is confused by this. | |
4501 | # | |
4502 | # We need to recreate these files for each test, as the compiler may | |
4503 | # overwrite some of them when testing with obscure command lines. | |
4504 | # This happens at least with the AIX C compiler. | |
4505 | : > sub/conftest.c | |
4506 | for i in 1 2 3 4 5 6; do | |
4507 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4508 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4509 | # Solaris 10 /bin/sh. | |
4510 | echo '/* dummy */' > sub/conftst$i.h | |
4511 | done | |
4512 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4513 | |
a243b558 JF |
4514 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4515 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4516 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4517 | # versions had trouble with output in subdirs. | |
4518 | am__obj=sub/conftest.${OBJEXT-o} | |
4519 | am__minus_obj="-o $am__obj" | |
4520 | case $depmode in | |
4521 | gcc) | |
4522 | # This depmode causes a compiler race in universal mode. | |
4523 | test "$am__universal" = false || continue | |
4524 | ;; | |
4525 | nosideeffect) | |
4526 | # After this tag, mechanisms are not by side-effect, so they'll | |
4527 | # only be used when explicitly requested. | |
4528 | if test "x$enable_dependency_tracking" = xyes; then | |
4529 | continue | |
4530 | else | |
4531 | break | |
309b0535 | 4532 | fi |
a243b558 JF |
4533 | ;; |
4534 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4535 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4536 | # not run yet. These depmodes are late enough in the game, and | |
4537 | # so weak that their functioning should not be impacted. | |
4538 | am__obj=conftest.${OBJEXT-o} | |
4539 | am__minus_obj= | |
4540 | ;; | |
4541 | none) break ;; | |
4542 | esac | |
4543 | if depmode=$depmode \ | |
4544 | source=sub/conftest.c object=$am__obj \ | |
4545 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4546 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4547 | >/dev/null 2>conftest.err && | |
4548 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4550 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4552 | # icc doesn't choke on unknown options, it will just issue warnings | |
4553 | # or remarks (even with -Werror). So we grep stderr for any message | |
4554 | # that says an option was ignored or not supported. | |
4555 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4556 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4557 | # The diagnosis changed in icc 8.0: | |
4558 | # icc: Command line remark: option '-MP' not supported | |
4559 | if (grep 'ignoring option' conftest.err || | |
4560 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4561 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4562 | break |
4563 | fi | |
4564 | fi | |
309b0535 | 4565 | done |
a243b558 JF |
4566 | |
4567 | cd .. | |
4568 | rm -rf conftest.dir | |
4569 | else | |
a93f15c0 | 4570 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4571 | fi |
a243b558 | 4572 | |
9c60689e | 4573 | fi |
a93f15c0 JF |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4575 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4576 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4577 | |
4578 | if | |
4579 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4580 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4581 | am__fastdepCXX_TRUE= | |
4582 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4583 | else |
a93f15c0 JF |
4584 | am__fastdepCXX_TRUE='#' |
4585 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4586 | fi |
4587 | ||
4588 | ||
a93f15c0 JF |
4589 | ac_ext=mm |
4590 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4591 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4592 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4593 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4594 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4595 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4596 | do |
4597 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4598 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4600 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4601 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4602 | $as_echo_n "(cached) " >&6 |
4603 | else | |
a93f15c0 JF |
4604 | if test -n "$OBJCXX"; then |
4605 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4606 | else |
4607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4608 | for as_dir in $PATH | |
4609 | do | |
4610 | IFS=$as_save_IFS | |
4611 | test -z "$as_dir" && as_dir=. | |
4612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4614 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4616 | break 2 | |
9c60689e | 4617 | fi |
a243b558 JF |
4618 | done |
4619 | done | |
4620 | IFS=$as_save_IFS | |
9c60689e | 4621 | |
a243b558 JF |
4622 | fi |
4623 | fi | |
a93f15c0 JF |
4624 | OBJCXX=$ac_cv_prog_OBJCXX |
4625 | if test -n "$OBJCXX"; then | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4627 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4628 | else |
a243b558 JF |
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4630 | $as_echo "no" >&6; } | |
35fa52c0 | 4631 | fi |
9c60689e | 4632 | |
a243b558 | 4633 | |
a93f15c0 | 4634 | test -n "$OBJCXX" && break |
a243b558 JF |
4635 | done |
4636 | fi | |
a93f15c0 JF |
4637 | if test -z "$OBJCXX"; then |
4638 | ac_ct_OBJCXX=$OBJCXX | |
4639 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4640 | do |
4641 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4642 | set dummy $ac_prog; ac_word=$2 | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4644 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4645 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4646 | $as_echo_n "(cached) " >&6 |
4647 | else | |
a93f15c0 JF |
4648 | if test -n "$ac_ct_OBJCXX"; then |
4649 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4650 | else |
4651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4652 | for as_dir in $PATH | |
4653 | do | |
4654 | IFS=$as_save_IFS | |
4655 | test -z "$as_dir" && as_dir=. | |
4656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4658 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4660 | break 2 | |
4661 | fi | |
4662 | done | |
4663 | done | |
4664 | IFS=$as_save_IFS | |
9c60689e | 4665 | |
a243b558 JF |
4666 | fi |
4667 | fi | |
a93f15c0 JF |
4668 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4669 | if test -n "$ac_ct_OBJCXX"; then | |
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4671 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4672 | else |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4674 | $as_echo "no" >&6; } | |
4675 | fi | |
35fa52c0 | 4676 | |
35fa52c0 | 4677 | |
a93f15c0 | 4678 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4679 | done |
35fa52c0 | 4680 | |
a93f15c0 JF |
4681 | if test "x$ac_ct_OBJCXX" = x; then |
4682 | OBJCXX="g++" | |
a243b558 JF |
4683 | else |
4684 | case $cross_compiling:$ac_tool_warned in | |
4685 | yes:) | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4687 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4688 | ac_tool_warned=yes ;; | |
4689 | esac | |
a93f15c0 | 4690 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4691 | fi |
4692 | fi | |
ee134472 | 4693 | |
a243b558 | 4694 | # Provide some information about the compiler. |
a93f15c0 | 4695 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4696 | set X $ac_compile |
4697 | ac_compiler=$2 | |
4698 | for ac_option in --version -v -V -qversion; do | |
4699 | { { ac_try="$ac_compiler $ac_option >&5" | |
4700 | case "(($ac_try" in | |
4701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4702 | *) ac_try_echo=$ac_try;; | |
4703 | esac | |
4704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4705 | $as_echo "$ac_try_echo"; } >&5 | |
4706 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4707 | ac_status=$? | |
4708 | if test -s conftest.err; then | |
4709 | sed '10a\ | |
4710 | ... rest of stderr output deleted ... | |
4711 | 10q' conftest.err >conftest.er1 | |
4712 | cat conftest.er1 >&5 | |
4713 | fi | |
4714 | rm -f conftest.er1 conftest.err | |
4715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4716 | test $ac_status = 0; } | |
4717 | done | |
53ba6704 | 4718 | |
a93f15c0 JF |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4720 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4721 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4722 | $as_echo_n "(cached) " >&6 |
4723 | else | |
4724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4725 | /* end confdefs.h. */ | |
35fa52c0 | 4726 | |
a243b558 JF |
4727 | int |
4728 | main () | |
4729 | { | |
4730 | #ifndef __GNUC__ | |
4731 | choke me | |
4732 | #endif | |
9c60689e | 4733 | |
a243b558 JF |
4734 | ; |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
a93f15c0 | 4738 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4739 | ac_compiler_gnu=yes |
35fa52c0 | 4740 | else |
a243b558 | 4741 | ac_compiler_gnu=no |
35fa52c0 | 4742 | fi |
a243b558 | 4743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4744 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4745 | |
a243b558 | 4746 | fi |
a93f15c0 JF |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4748 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4749 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4750 | GOBJCXX=yes |
35fa52c0 | 4751 | else |
a93f15c0 | 4752 | GOBJCXX= |
9c60689e | 4753 | fi |
a93f15c0 JF |
4754 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4755 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4757 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4758 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4759 | $as_echo_n "(cached) " >&6 |
4760 | else | |
a93f15c0 JF |
4761 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4762 | ac_objcxx_werror_flag=yes | |
4763 | ac_cv_prog_objcxx_g=no | |
4764 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4766 | /* end confdefs.h. */ | |
9c60689e | 4767 | |
a243b558 JF |
4768 | int |
4769 | main () | |
4770 | { | |
9c60689e | 4771 | |
a243b558 JF |
4772 | ; |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
a93f15c0 JF |
4776 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4777 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4778 | else |
a93f15c0 | 4779 | OBJCXXFLAGS="" |
a243b558 JF |
4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4781 | /* end confdefs.h. */ | |
9c60689e | 4782 | |
a243b558 JF |
4783 | int |
4784 | main () | |
4785 | { | |
9c60689e | 4786 | |
a243b558 JF |
4787 | ; |
4788 | return 0; | |
4789 | } | |
4790 | _ACEOF | |
a93f15c0 | 4791 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4792 | |
a243b558 | 4793 | else |
a93f15c0 JF |
4794 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4795 | OBJCXXFLAGS="-g" | |
a243b558 | 4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4797 | /* end confdefs.h. */ |
4798 | ||
a243b558 JF |
4799 | int |
4800 | main () | |
4801 | { | |
a93f15c0 | 4802 | |
a243b558 JF |
4803 | ; |
4804 | return 0; | |
4805 | } | |
4806 | _ACEOF | |
a93f15c0 JF |
4807 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4808 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4809 | fi |
a93f15c0 | 4810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4811 | fi |
a93f15c0 JF |
4812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4813 | fi | |
4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4815 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4816 | fi | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4818 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4819 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4820 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4821 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4822 | if test "$GOBJCXX" = yes; then | |
4823 | OBJCXXFLAGS="-g -O2" | |
4824 | else | |
4825 | OBJCXXFLAGS="-g" | |
4826 | fi | |
4827 | else | |
4828 | if test "$GOBJCXX" = yes; then | |
4829 | OBJCXXFLAGS="-O2" | |
4830 | else | |
4831 | OBJCXXFLAGS= | |
4832 | fi | |
35fa52c0 | 4833 | fi |
a243b558 JF |
4834 | ac_ext=c |
4835 | ac_cpp='$CPP $CPPFLAGS' | |
4836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4839 | ||
a93f15c0 | 4840 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4841 | |
a243b558 JF |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4843 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4844 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4845 | $as_echo_n "(cached) " >&6 |
4846 | else | |
a243b558 JF |
4847 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4848 | # We make a subdir and do the tests there. Otherwise we can end up | |
4849 | # making bogus files that we don't know about and never remove. For | |
4850 | # instance it was reported that on HP-UX the gcc test will end up | |
4851 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4852 | # in D". | |
4853 | rm -rf conftest.dir | |
4854 | mkdir conftest.dir | |
4855 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4856 | # using a relative directory. | |
4857 | cp "$am_depcomp" conftest.dir | |
4858 | cd conftest.dir | |
4859 | # We will build objects and dependencies in a subdirectory because | |
4860 | # it helps to detect inapplicable dependency modes. For instance | |
4861 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4862 | # side effect of compilation, but ICC will put the dependencies in | |
4863 | # the current directory while Tru64 will put them in the object | |
4864 | # directory. | |
4865 | mkdir sub | |
4866 | ||
a93f15c0 | 4867 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4868 | if test "$am_compiler_list" = ""; then |
4869 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4870 | fi | |
4871 | am__universal=false | |
a93f15c0 | 4872 | |
a243b558 JF |
4873 | |
4874 | for depmode in $am_compiler_list; do | |
4875 | # Setup a source with many dependencies, because some compilers | |
4876 | # like to wrap large dependency lists on column 80 (with \), and | |
4877 | # we should not choose a depcomp mode which is confused by this. | |
4878 | # | |
4879 | # We need to recreate these files for each test, as the compiler may | |
4880 | # overwrite some of them when testing with obscure command lines. | |
4881 | # This happens at least with the AIX C compiler. | |
4882 | : > sub/conftest.c | |
4883 | for i in 1 2 3 4 5 6; do | |
4884 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4885 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4886 | # Solaris 10 /bin/sh. | |
4887 | echo '/* dummy */' > sub/conftst$i.h | |
4888 | done | |
4889 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4890 | ||
4891 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4892 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4893 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4894 | # versions had trouble with output in subdirs. | |
4895 | am__obj=sub/conftest.${OBJEXT-o} | |
4896 | am__minus_obj="-o $am__obj" | |
4897 | case $depmode in | |
4898 | gcc) | |
4899 | # This depmode causes a compiler race in universal mode. | |
4900 | test "$am__universal" = false || continue | |
4901 | ;; | |
4902 | nosideeffect) | |
4903 | # After this tag, mechanisms are not by side-effect, so they'll | |
4904 | # only be used when explicitly requested. | |
4905 | if test "x$enable_dependency_tracking" = xyes; then | |
4906 | continue | |
4907 | else | |
4908 | break | |
4909 | fi | |
4910 | ;; | |
4911 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4912 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4913 | # not run yet. These depmodes are late enough in the game, and | |
4914 | # so weak that their functioning should not be impacted. | |
4915 | am__obj=conftest.${OBJEXT-o} | |
4916 | am__minus_obj= | |
4917 | ;; | |
4918 | none) break ;; | |
4919 | esac | |
4920 | if depmode=$depmode \ | |
4921 | source=sub/conftest.c object=$am__obj \ | |
4922 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4923 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4924 | >/dev/null 2>conftest.err && | |
4925 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4926 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4927 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4928 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4929 | # icc doesn't choke on unknown options, it will just issue warnings | |
4930 | # or remarks (even with -Werror). So we grep stderr for any message | |
4931 | # that says an option was ignored or not supported. | |
4932 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4933 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4934 | # The diagnosis changed in icc 8.0: | |
4935 | # icc: Command line remark: option '-MP' not supported | |
4936 | if (grep 'ignoring option' conftest.err || | |
4937 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4938 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4939 | break |
4940 | fi | |
4941 | fi | |
4942 | done | |
9c60689e | 4943 | |
a243b558 JF |
4944 | cd .. |
4945 | rm -rf conftest.dir | |
4946 | else | |
a93f15c0 | 4947 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 4948 | fi |
a243b558 | 4949 | |
35fa52c0 | 4950 | fi |
a93f15c0 JF |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4952 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4953 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
4954 | |
4955 | if | |
4956 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4957 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
4958 | am__fastdepOBJCXX_TRUE= | |
4959 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 4960 | else |
a93f15c0 JF |
4961 | am__fastdepOBJCXX_TRUE='#' |
4962 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
4963 | fi |
4964 | ||
4965 | ||
4966 | ||
a93f15c0 | 4967 | |
a243b558 JF |
4968 | if test -n "$ac_tool_prefix"; then |
4969 | for ac_prog in ar lib "link -lib" | |
4970 | do | |
4971 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4972 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4974 | $as_echo_n "checking for $ac_word... " >&6; } | |
4975 | if ${ac_cv_prog_AR+:} false; then : | |
4976 | $as_echo_n "(cached) " >&6 | |
4977 | else | |
4978 | if test -n "$AR"; then | |
4979 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4980 | else | |
4981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4982 | for as_dir in $PATH | |
4983 | do | |
4984 | IFS=$as_save_IFS | |
4985 | test -z "$as_dir" && as_dir=. | |
4986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4988 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4990 | break 2 | |
4991 | fi | |
4992 | done | |
4993 | done | |
4994 | IFS=$as_save_IFS | |
4995 | ||
4996 | fi | |
4997 | fi | |
4998 | AR=$ac_cv_prog_AR | |
4999 | if test -n "$AR"; then | |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5001 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
5002 | else |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5004 | $as_echo "no" >&6; } | |
5005 | fi | |
9c60689e | 5006 | |
a243b558 JF |
5007 | |
5008 | test -n "$AR" && break | |
5009 | done | |
5010 | fi | |
5011 | if test -z "$AR"; then | |
5012 | ac_ct_AR=$AR | |
5013 | for ac_prog in ar lib "link -lib" | |
5014 | do | |
5015 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5016 | set dummy $ac_prog; ac_word=$2 | |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5018 | $as_echo_n "checking for $ac_word... " >&6; } | |
5019 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5020 | $as_echo_n "(cached) " >&6 | |
5021 | else | |
5022 | if test -n "$ac_ct_AR"; then | |
5023 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5024 | else | |
5025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5026 | for as_dir in $PATH | |
5027 | do | |
5028 | IFS=$as_save_IFS | |
5029 | test -z "$as_dir" && as_dir=. | |
5030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5032 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5034 | break 2 | |
5035 | fi | |
5036 | done | |
5037 | done | |
5038 | IFS=$as_save_IFS | |
5039 | ||
5040 | fi | |
5041 | fi | |
5042 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5043 | if test -n "$ac_ct_AR"; then | |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5045 | $as_echo "$ac_ct_AR" >&6; } | |
5046 | else | |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5048 | $as_echo "no" >&6; } | |
5049 | fi | |
5050 | ||
5051 | ||
5052 | test -n "$ac_ct_AR" && break | |
5053 | done | |
5054 | ||
5055 | if test "x$ac_ct_AR" = x; then | |
5056 | AR="false" | |
9c60689e DWT |
5057 | else |
5058 | case $cross_compiling:$ac_tool_warned in | |
5059 | yes:) | |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5061 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5062 | ac_tool_warned=yes ;; | |
35fa52c0 | 5063 | esac |
a243b558 | 5064 | AR=$ac_ct_AR |
9c60689e | 5065 | fi |
a243b558 JF |
5066 | fi |
5067 | ||
5068 | : ${AR=ar} | |
5069 | ||
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5071 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5072 | if ${am_cv_ar_interface+:} false; then : | |
5073 | $as_echo_n "(cached) " >&6 | |
9c60689e | 5074 | else |
a93f15c0 JF |
5075 | ac_ext=c |
5076 | ac_cpp='$CPP $CPPFLAGS' | |
5077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5080 | ||
5081 | am_cv_ar_interface=ar | |
a243b558 JF |
5082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5083 | /* end confdefs.h. */ | |
5084 | int some_variable = 0; | |
5085 | _ACEOF | |
5086 | if ac_fn_c_try_compile "$LINENO"; then : | |
5087 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5088 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5089 | (eval $am_ar_try) 2>&5 | |
5090 | ac_status=$? | |
5091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5092 | test $ac_status = 0; } | |
5093 | if test "$ac_status" -eq 0; then | |
5094 | am_cv_ar_interface=ar | |
5095 | else | |
5096 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5098 | (eval $am_ar_try) 2>&5 | |
5099 | ac_status=$? | |
5100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5101 | test $ac_status = 0; } | |
5102 | if test "$ac_status" -eq 0; then | |
5103 | am_cv_ar_interface=lib | |
5104 | else | |
5105 | am_cv_ar_interface=unknown | |
5106 | fi | |
5107 | fi | |
5108 | rm -f conftest.lib libconftest.a | |
5109 | ||
35fa52c0 | 5110 | fi |
a243b558 | 5111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
5112 | ac_ext=c |
5113 | ac_cpp='$CPP $CPPFLAGS' | |
5114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 5117 | |
a243b558 JF |
5118 | fi |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5120 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 5121 | |
a243b558 JF |
5122 | case $am_cv_ar_interface in |
5123 | ar) | |
5124 | ;; | |
5125 | lib) | |
5126 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5127 | # FIXME: It is wrong to rewrite AR. | |
5128 | # But if we don't then we get into trouble of one sort or another. | |
5129 | # A longer-term fix would be to have automake use am__AR in this case, | |
5130 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5131 | # similar. | |
5132 | AR="$am_aux_dir/ar-lib $AR" | |
5133 | ;; | |
5134 | unknown) | |
5135 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5136 | ;; | |
5137 | esac | |
35fa52c0 | 5138 | |
35fa52c0 | 5139 | |
35fa52c0 | 5140 | |
a243b558 JF |
5141 | case `pwd` in |
5142 | *\ * | *\ *) | |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5144 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5145 | esac | |
35fa52c0 DWT |
5146 | |
5147 | ||
5148 | ||
a243b558 JF |
5149 | macro_version='2.4.2' |
5150 | macro_revision='1.3337' | |
35fa52c0 DWT |
5151 | |
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | ||
5158 | ||
5159 | ||
35fa52c0 | 5160 | |
35fa52c0 | 5161 | |
ee134472 | 5162 | |
35fa52c0 | 5163 | |
a243b558 | 5164 | ltmain="$ac_aux_dir/ltmain.sh" |
35fa52c0 | 5165 | |
a243b558 JF |
5166 | # Make sure we can run config.sub. |
5167 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5168 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5169 | |
a243b558 JF |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5171 | $as_echo_n "checking build system type... " >&6; } | |
5172 | if ${ac_cv_build+:} false; then : | |
5173 | $as_echo_n "(cached) " >&6 | |
5174 | else | |
5175 | ac_build_alias=$build_alias | |
5176 | test "x$ac_build_alias" = x && | |
5177 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5178 | test "x$ac_build_alias" = x && | |
5179 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5180 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5181 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5182 | |
a243b558 JF |
5183 | fi |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5185 | $as_echo "$ac_cv_build" >&6; } | |
5186 | case $ac_cv_build in | |
5187 | *-*-*) ;; | |
5188 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5189 | esac | |
5190 | build=$ac_cv_build | |
5191 | ac_save_IFS=$IFS; IFS='-' | |
5192 | set x $ac_cv_build | |
5193 | shift | |
5194 | build_cpu=$1 | |
5195 | build_vendor=$2 | |
5196 | shift; shift | |
5197 | # Remember, the first character of IFS is used to create $*, | |
5198 | # except with old shells: | |
5199 | build_os=$* | |
5200 | IFS=$ac_save_IFS | |
5201 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5202 | |
35fa52c0 | 5203 | |
a243b558 JF |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5205 | $as_echo_n "checking host system type... " >&6; } | |
5206 | if ${ac_cv_host+:} false; then : | |
5207 | $as_echo_n "(cached) " >&6 | |
5208 | else | |
5209 | if test "x$host_alias" = x; then | |
5210 | ac_cv_host=$ac_cv_build | |
5211 | else | |
5212 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5213 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5214 | fi | |
35fa52c0 | 5215 | |
a243b558 JF |
5216 | fi |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5218 | $as_echo "$ac_cv_host" >&6; } | |
5219 | case $ac_cv_host in | |
5220 | *-*-*) ;; | |
5221 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5222 | esac | |
5223 | host=$ac_cv_host | |
5224 | ac_save_IFS=$IFS; IFS='-' | |
5225 | set x $ac_cv_host | |
5226 | shift | |
5227 | host_cpu=$1 | |
5228 | host_vendor=$2 | |
5229 | shift; shift | |
5230 | # Remember, the first character of IFS is used to create $*, | |
5231 | # except with old shells: | |
5232 | host_os=$* | |
5233 | IFS=$ac_save_IFS | |
5234 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5235 | |
9c60689e | 5236 | |
a243b558 JF |
5237 | # Backslashify metacharacters that are still active within |
5238 | # double-quoted strings. | |
5239 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5240 | |
a243b558 JF |
5241 | # Same as above, but do not quote variable references. |
5242 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5243 | |
a243b558 JF |
5244 | # Sed substitution to delay expansion of an escaped shell variable in a |
5245 | # double_quote_subst'ed string. | |
5246 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5247 | |
a243b558 JF |
5248 | # Sed substitution to delay expansion of an escaped single quote. |
5249 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5250 | |
a243b558 JF |
5251 | # Sed substitution to avoid accidental globbing in evaled expressions |
5252 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5253 | |
a243b558 JF |
5254 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5255 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5256 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5257 | |
a243b558 JF |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5259 | $as_echo_n "checking how to print strings... " >&6; } | |
5260 | # Test print first, because it will be a builtin if present. | |
5261 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5262 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5263 | ECHO='print -r --' | |
5264 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5265 | ECHO='printf %s\n' | |
5266 | else | |
5267 | # Use this function as a fallback that always works. | |
5268 | func_fallback_echo () | |
5269 | { | |
5270 | eval 'cat <<_LTECHO_EOF | |
5271 | $1 | |
5272 | _LTECHO_EOF' | |
5273 | } | |
5274 | ECHO='func_fallback_echo' | |
ee134472 JF |
5275 | fi |
5276 | ||
a243b558 JF |
5277 | # func_echo_all arg... |
5278 | # Invoke $ECHO with all args, space-separated. | |
5279 | func_echo_all () | |
5280 | { | |
5281 | $ECHO "" | |
5282 | } | |
35fa52c0 | 5283 | |
a243b558 JF |
5284 | case "$ECHO" in |
5285 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5286 | $as_echo "printf" >&6; } ;; | |
5287 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5288 | $as_echo "print -r" >&6; } ;; | |
5289 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5290 | $as_echo "cat" >&6; } ;; | |
5291 | esac | |
35fa52c0 | 5292 | |
35fa52c0 | 5293 | |
ee134472 JF |
5294 | |
5295 | ||
5296 | ||
5297 | ||
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
35fa52c0 | 5304 | |
9c60689e | 5305 | |
a243b558 JF |
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5307 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5308 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5309 | $as_echo_n "(cached) " >&6 |
5310 | else | |
a243b558 JF |
5311 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5312 | for ac_i in 1 2 3 4 5 6 7; do | |
5313 | ac_script="$ac_script$as_nl$ac_script" | |
5314 | done | |
5315 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5316 | { ac_script=; unset ac_script;} | |
5317 | if test -z "$SED"; then | |
5318 | ac_path_SED_found=false | |
5319 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5321 | for as_dir in $PATH |
5322 | do | |
5323 | IFS=$as_save_IFS | |
5324 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5325 | for ac_prog in sed gsed; do |
9c60689e | 5326 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5327 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5328 | as_fn_executable_p "$ac_path_SED" || continue | |
5329 | # Check for GNU ac_path_SED and select it if it is found. | |
5330 | # Check for GNU $ac_path_SED | |
5331 | case `"$ac_path_SED" --version 2>&1` in | |
5332 | *GNU*) | |
5333 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5334 | *) | |
5335 | ac_count=0 | |
5336 | $as_echo_n 0123456789 >"conftest.in" | |
5337 | while : | |
5338 | do | |
5339 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5340 | mv "conftest.tmp" "conftest.in" | |
5341 | cp "conftest.in" "conftest.nl" | |
5342 | $as_echo '' >> "conftest.nl" | |
5343 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5344 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5345 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5346 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5347 | # Best one so far, save it but keep looking for a better one | |
5348 | ac_cv_path_SED="$ac_path_SED" | |
5349 | ac_path_SED_max=$ac_count | |
5350 | fi | |
5351 | # 10*(2^10) chars as input seems more than enough | |
5352 | test $ac_count -gt 10 && break | |
35fa52c0 | 5353 | done |
a243b558 JF |
5354 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5355 | esac | |
9c60689e | 5356 | |
a243b558 JF |
5357 | $ac_path_SED_found && break 3 |
5358 | done | |
5359 | done | |
9c60689e DWT |
5360 | done |
5361 | IFS=$as_save_IFS | |
a243b558 JF |
5362 | if test -z "$ac_cv_path_SED"; then |
5363 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5364 | fi |
5365 | else | |
a243b558 | 5366 | ac_cv_path_SED=$SED |
9c60689e DWT |
5367 | fi |
5368 | ||
a243b558 JF |
5369 | fi |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5371 | $as_echo "$ac_cv_path_SED" >&6; } | |
5372 | SED="$ac_cv_path_SED" | |
5373 | rm -f conftest.sed | |
9c60689e | 5374 | |
a243b558 JF |
5375 | test -z "$SED" && SED=sed |
5376 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5377 | |
ee134472 | 5378 | |
ee134472 | 5379 | |
9c60689e DWT |
5380 | |
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
a243b558 JF |
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5389 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5390 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5391 | $as_echo_n "(cached) " >&6 |
5392 | else | |
a243b558 JF |
5393 | if test -z "$GREP"; then |
5394 | ac_path_GREP_found=false | |
5395 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5397 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5398 | do |
5399 | IFS=$as_save_IFS | |
5400 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5401 | for ac_prog in grep ggrep; do |
9c60689e | 5402 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5403 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5404 | as_fn_executable_p "$ac_path_GREP" || continue | |
5405 | # Check for GNU ac_path_GREP and select it if it is found. | |
5406 | # Check for GNU $ac_path_GREP | |
5407 | case `"$ac_path_GREP" --version 2>&1` in | |
5408 | *GNU*) | |
5409 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5410 | *) | |
5411 | ac_count=0 | |
5412 | $as_echo_n 0123456789 >"conftest.in" | |
5413 | while : | |
5414 | do | |
5415 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5416 | mv "conftest.tmp" "conftest.in" | |
5417 | cp "conftest.in" "conftest.nl" | |
5418 | $as_echo 'GREP' >> "conftest.nl" | |
5419 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5420 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5421 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5422 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5423 | # Best one so far, save it but keep looking for a better one | |
5424 | ac_cv_path_GREP="$ac_path_GREP" | |
5425 | ac_path_GREP_max=$ac_count | |
5426 | fi | |
5427 | # 10*(2^10) chars as input seems more than enough | |
5428 | test $ac_count -gt 10 && break | |
5429 | done | |
5430 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5431 | esac | |
9c60689e | 5432 | |
a243b558 JF |
5433 | $ac_path_GREP_found && break 3 |
5434 | done | |
ee134472 | 5435 | done |
a243b558 JF |
5436 | done |
5437 | IFS=$as_save_IFS | |
5438 | if test -z "$ac_cv_path_GREP"; then | |
5439 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5440 | fi | |
5441 | else | |
5442 | ac_cv_path_GREP=$GREP | |
9c60689e | 5443 | fi |
a243b558 JF |
5444 | |
5445 | fi | |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5447 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5448 | GREP="$ac_cv_path_GREP" | |
5449 | ||
5450 | ||
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5452 | $as_echo_n "checking for egrep... " >&6; } | |
5453 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5454 | $as_echo_n "(cached) " >&6 |
5455 | else | |
a243b558 JF |
5456 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5457 | then ac_cv_path_EGREP="$GREP -E" | |
5458 | else | |
5459 | if test -z "$EGREP"; then | |
5460 | ac_path_EGREP_found=false | |
5461 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5463 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5464 | do |
5465 | IFS=$as_save_IFS | |
5466 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5467 | for ac_prog in egrep; do |
9c60689e | 5468 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5469 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5470 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5471 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5472 | # Check for GNU $ac_path_EGREP | |
5473 | case `"$ac_path_EGREP" --version 2>&1` in | |
5474 | *GNU*) | |
5475 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5476 | *) | |
5477 | ac_count=0 | |
5478 | $as_echo_n 0123456789 >"conftest.in" | |
5479 | while : | |
5480 | do | |
5481 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5482 | mv "conftest.tmp" "conftest.in" | |
5483 | cp "conftest.in" "conftest.nl" | |
5484 | $as_echo 'EGREP' >> "conftest.nl" | |
5485 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5486 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5487 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5488 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5489 | # Best one so far, save it but keep looking for a better one | |
5490 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5491 | ac_path_EGREP_max=$ac_count | |
5492 | fi | |
5493 | # 10*(2^10) chars as input seems more than enough | |
5494 | test $ac_count -gt 10 && break | |
9c60689e | 5495 | done |
a243b558 JF |
5496 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5497 | esac | |
9c60689e | 5498 | |
a243b558 JF |
5499 | $ac_path_EGREP_found && break 3 |
5500 | done | |
5501 | done | |
5502 | done | |
5503 | IFS=$as_save_IFS | |
5504 | if test -z "$ac_cv_path_EGREP"; then | |
5505 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5506 | fi | |
9c60689e | 5507 | else |
a243b558 | 5508 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5509 | fi |
5510 | ||
a243b558 JF |
5511 | fi |
5512 | fi | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5514 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5515 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5516 | |
ee134472 | 5517 | |
a243b558 JF |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5519 | $as_echo_n "checking for fgrep... " >&6; } | |
5520 | if ${ac_cv_path_FGREP+:} false; then : | |
5521 | $as_echo_n "(cached) " >&6 | |
5522 | else | |
5523 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5524 | then ac_cv_path_FGREP="$GREP -F" | |
5525 | else | |
5526 | if test -z "$FGREP"; then | |
5527 | ac_path_FGREP_found=false | |
5528 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5530 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5531 | do | |
5532 | IFS=$as_save_IFS | |
5533 | test -z "$as_dir" && as_dir=. | |
5534 | for ac_prog in fgrep; do | |
5535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5536 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5537 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5538 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5539 | # Check for GNU $ac_path_FGREP | |
5540 | case `"$ac_path_FGREP" --version 2>&1` in | |
5541 | *GNU*) | |
5542 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5543 | *) | |
5544 | ac_count=0 | |
5545 | $as_echo_n 0123456789 >"conftest.in" | |
5546 | while : | |
5547 | do | |
5548 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5549 | mv "conftest.tmp" "conftest.in" | |
5550 | cp "conftest.in" "conftest.nl" | |
5551 | $as_echo 'FGREP' >> "conftest.nl" | |
5552 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5553 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5554 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5555 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5556 | # Best one so far, save it but keep looking for a better one | |
5557 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5558 | ac_path_FGREP_max=$ac_count | |
5559 | fi | |
5560 | # 10*(2^10) chars as input seems more than enough | |
5561 | test $ac_count -gt 10 && break | |
5562 | done | |
5563 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5564 | esac |
a243b558 JF |
5565 | |
5566 | $ac_path_FGREP_found && break 3 | |
5567 | done | |
5568 | done | |
5569 | done | |
5570 | IFS=$as_save_IFS | |
5571 | if test -z "$ac_cv_path_FGREP"; then | |
5572 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5573 | fi |
a243b558 JF |
5574 | else |
5575 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5576 | fi |
5577 | ||
a243b558 JF |
5578 | fi |
5579 | fi | |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5581 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5582 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5583 | |
5584 | ||
a243b558 | 5585 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5586 | |
5587 | ||
5588 | ||
5589 | ||
5590 | ||
5591 | ||
5592 | ||
ee134472 | 5593 | |
ee134472 | 5594 | |
ee134472 | 5595 | |
ee134472 | 5596 | |
ee134472 | 5597 | |
ee134472 JF |
5598 | |
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
a243b558 JF |
5605 | # Check whether --with-gnu-ld was given. |
5606 | if test "${with_gnu_ld+set}" = set; then : | |
5607 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5608 | else | |
5609 | with_gnu_ld=no | |
5610 | fi | |
5611 | ||
5612 | ac_prog=ld | |
5613 | if test "$GCC" = yes; then | |
5614 | # Check if gcc -print-prog-name=ld gives a path. | |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5616 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5617 | case $host in | |
5618 | *-*-mingw*) | |
5619 | # gcc leaves a trailing carriage return which upsets mingw | |
5620 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5621 | *) | |
5622 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5623 | esac | |
5624 | case $ac_prog in | |
5625 | # Accept absolute paths. | |
5626 | [\\/]* | ?:[\\/]*) | |
5627 | re_direlt='/[^/][^/]*/\.\./' | |
5628 | # Canonicalize the pathname of ld | |
5629 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5630 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5631 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5632 | done | |
5633 | test -z "$LD" && LD="$ac_prog" | |
5634 | ;; | |
5635 | "") | |
5636 | # If it fails, then pretend we aren't using GCC. | |
5637 | ac_prog=ld | |
5638 | ;; | |
5639 | *) | |
5640 | # If it is relative, then search for the first ld in PATH. | |
5641 | with_gnu_ld=unknown | |
5642 | ;; | |
5643 | esac | |
5644 | elif test "$with_gnu_ld" = yes; then | |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5646 | $as_echo_n "checking for GNU ld... " >&6; } | |
5647 | else | |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5649 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5650 | fi | |
5651 | if ${lt_cv_path_LD+:} false; then : | |
5652 | $as_echo_n "(cached) " >&6 | |
5653 | else | |
5654 | if test -z "$LD"; then | |
5655 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5656 | for ac_dir in $PATH; do | |
5657 | IFS="$lt_save_ifs" | |
5658 | test -z "$ac_dir" && ac_dir=. | |
5659 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5660 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5661 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5662 | # but apparently some variants of GNU ld only accept -v. | |
5663 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5664 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5665 | *GNU* | *'with BFD'*) | |
5666 | test "$with_gnu_ld" != no && break | |
5667 | ;; | |
5668 | *) | |
5669 | test "$with_gnu_ld" != yes && break | |
5670 | ;; | |
5671 | esac | |
5672 | fi | |
5673 | done | |
5674 | IFS="$lt_save_ifs" | |
5675 | else | |
5676 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5677 | fi | |
5678 | fi | |
5679 | ||
5680 | LD="$lt_cv_path_LD" | |
5681 | if test -n "$LD"; then | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5683 | $as_echo "$LD" >&6; } | |
5684 | else | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5686 | $as_echo "no" >&6; } | |
5687 | fi | |
5688 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5690 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5691 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5692 | $as_echo_n "(cached) " >&6 | |
5693 | else | |
5694 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5695 | case `$LD -v 2>&1 </dev/null` in | |
5696 | *GNU* | *'with BFD'*) | |
5697 | lt_cv_prog_gnu_ld=yes | |
5698 | ;; | |
5699 | *) | |
5700 | lt_cv_prog_gnu_ld=no | |
5701 | ;; | |
5702 | esac | |
5703 | fi | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5705 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5706 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | ||
5712 | ||
5713 | ||
5714 | ||
5715 | ||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5717 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5718 | if ${lt_cv_path_NM+:} false; then : | |
5719 | $as_echo_n "(cached) " >&6 | |
5720 | else | |
5721 | if test -n "$NM"; then | |
5722 | # Let the user override the test. | |
5723 | lt_cv_path_NM="$NM" | |
5724 | else | |
5725 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5726 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5727 | lt_nm_to_check="$lt_nm_to_check nm" | |
5728 | fi | |
5729 | for lt_tmp_nm in $lt_nm_to_check; do | |
5730 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5731 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5732 | IFS="$lt_save_ifs" | |
5733 | test -z "$ac_dir" && ac_dir=. | |
5734 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5735 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5736 | # Check to see if the nm accepts a BSD-compat flag. | |
5737 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5738 | # nm: unknown option "B" ignored | |
5739 | # Tru64's nm complains that /dev/null is an invalid object file | |
5740 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5741 | */dev/null* | *'Invalid file or object type'*) | |
5742 | lt_cv_path_NM="$tmp_nm -B" | |
5743 | break | |
5744 | ;; | |
5745 | *) | |
5746 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5747 | */dev/null*) | |
5748 | lt_cv_path_NM="$tmp_nm -p" | |
5749 | break | |
5750 | ;; | |
5751 | *) | |
5752 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5753 | continue # so that we can try to find one that supports BSD flags | |
5754 | ;; | |
5755 | esac | |
5756 | ;; | |
5757 | esac | |
5758 | fi | |
5759 | done | |
5760 | IFS="$lt_save_ifs" | |
5761 | done | |
5762 | : ${lt_cv_path_NM=no} | |
5763 | fi | |
5764 | fi | |
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5766 | $as_echo "$lt_cv_path_NM" >&6; } | |
5767 | if test "$lt_cv_path_NM" != "no"; then | |
5768 | NM="$lt_cv_path_NM" | |
5769 | else | |
5770 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5771 | if test -n "$DUMPBIN"; then : | |
5772 | # Let the user override the test. | |
5773 | else | |
5774 | if test -n "$ac_tool_prefix"; then | |
5775 | for ac_prog in dumpbin "link -dump" | |
5776 | do | |
5777 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5778 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5780 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5781 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5782 | $as_echo_n "(cached) " >&6 |
5783 | else | |
a243b558 JF |
5784 | if test -n "$DUMPBIN"; then |
5785 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5786 | else |
5787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5788 | for as_dir in $PATH | |
5789 | do | |
5790 | IFS=$as_save_IFS | |
5791 | test -z "$as_dir" && as_dir=. | |
5792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5794 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5796 | break 2 | |
5797 | fi | |
5798 | done | |
5799 | done | |
5800 | IFS=$as_save_IFS | |
5801 | ||
5802 | fi | |
5803 | fi | |
a243b558 JF |
5804 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5805 | if test -n "$DUMPBIN"; then | |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5807 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5808 | else |
5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5810 | $as_echo "no" >&6; } | |
5811 | fi | |
5812 | ||
5813 | ||
a243b558 JF |
5814 | test -n "$DUMPBIN" && break |
5815 | done | |
ee134472 | 5816 | fi |
a243b558 JF |
5817 | if test -z "$DUMPBIN"; then |
5818 | ac_ct_DUMPBIN=$DUMPBIN | |
5819 | for ac_prog in dumpbin "link -dump" | |
5820 | do | |
5821 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5822 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5824 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5825 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5826 | $as_echo_n "(cached) " >&6 |
5827 | else | |
a243b558 JF |
5828 | if test -n "$ac_ct_DUMPBIN"; then |
5829 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5830 | else |
5831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5832 | for as_dir in $PATH | |
5833 | do | |
5834 | IFS=$as_save_IFS | |
5835 | test -z "$as_dir" && as_dir=. | |
5836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5838 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5840 | break 2 | |
5841 | fi | |
5842 | done | |
5843 | done | |
5844 | IFS=$as_save_IFS | |
5845 | ||
5846 | fi | |
5847 | fi | |
a243b558 JF |
5848 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5849 | if test -n "$ac_ct_DUMPBIN"; then | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5851 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5852 | else |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5854 | $as_echo "no" >&6; } | |
5855 | fi | |
5856 | ||
a243b558 JF |
5857 | |
5858 | test -n "$ac_ct_DUMPBIN" && break | |
5859 | done | |
5860 | ||
5861 | if test "x$ac_ct_DUMPBIN" = x; then | |
5862 | DUMPBIN=":" | |
ee134472 JF |
5863 | else |
5864 | case $cross_compiling:$ac_tool_warned in | |
5865 | yes:) | |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5868 | ac_tool_warned=yes ;; | |
5869 | esac | |
a243b558 | 5870 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5871 | fi |
9c60689e DWT |
5872 | fi |
5873 | ||
a243b558 JF |
5874 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5875 | *COFF*) | |
5876 | DUMPBIN="$DUMPBIN -symbols" | |
5877 | ;; | |
5878 | *) | |
5879 | DUMPBIN=: | |
5880 | ;; | |
5881 | esac | |
5882 | fi | |
9c60689e | 5883 | |
a243b558 JF |
5884 | if test "$DUMPBIN" != ":"; then |
5885 | NM="$DUMPBIN" | |
5886 | fi | |
5887 | fi | |
5888 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5889 | |
5890 | ||
5891 | ||
5892 | ||
5893 | ||
a243b558 JF |
5894 | |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5896 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5897 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5898 | $as_echo_n "(cached) " >&6 |
5899 | else | |
a243b558 JF |
5900 | lt_cv_nm_interface="BSD nm" |
5901 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5902 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5903 | (eval "$ac_compile" 2>conftest.err) | |
5904 | cat conftest.err >&5 | |
5905 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5906 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5907 | cat conftest.err >&5 | |
5908 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5909 | cat conftest.out >&5 | |
5910 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5911 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5912 | fi |
a93f15c0 | 5913 | rm -f conftest* |
9c60689e | 5914 | fi |
a243b558 JF |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5916 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5917 | ||
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5919 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5920 | LN_S=$as_ln_s | |
5921 | if test "$LN_S" = "ln -s"; then | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5923 | $as_echo "yes" >&6; } | |
9c60689e | 5924 | else |
a243b558 JF |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5926 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5927 | fi |
5928 | ||
a243b558 JF |
5929 | # find the maximum length of command line arguments |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5931 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5932 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5933 | $as_echo_n "(cached) " >&6 |
5934 | else | |
a243b558 JF |
5935 | i=0 |
5936 | teststring="ABCD" | |
9c60689e | 5937 | |
a243b558 JF |
5938 | case $build_os in |
5939 | msdosdjgpp*) | |
5940 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5941 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5942 | # during glob expansion). Even if it were fixed, the result of this | |
5943 | # check would be larger than it should be. | |
5944 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5945 | ;; | |
9c60689e | 5946 | |
a243b558 JF |
5947 | gnu*) |
5948 | # Under GNU Hurd, this test is not required because there is | |
5949 | # no limit to the length of command line arguments. | |
5950 | # Libtool will interpret -1 as no limit whatsoever | |
5951 | lt_cv_sys_max_cmd_len=-1; | |
5952 | ;; | |
9c60689e | 5953 | |
a243b558 JF |
5954 | cygwin* | mingw* | cegcc*) |
5955 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5956 | # about 5 minutes as the teststring grows exponentially. | |
5957 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5958 | # you end up with a "frozen" computer, even though with patience | |
5959 | # the test eventually succeeds (with a max line length of 256k). | |
5960 | # Instead, let's just punt: use the minimum linelength reported by | |
5961 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5962 | lt_cv_sys_max_cmd_len=8192; | |
5963 | ;; | |
9c60689e | 5964 | |
a243b558 JF |
5965 | mint*) |
5966 | # On MiNT this can take a long time and run out of memory. | |
5967 | lt_cv_sys_max_cmd_len=8192; | |
5968 | ;; | |
9c60689e | 5969 | |
a243b558 JF |
5970 | amigaos*) |
5971 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5972 | # So we just punt and use a minimum line length of 8192. | |
5973 | lt_cv_sys_max_cmd_len=8192; | |
5974 | ;; | |
9c60689e | 5975 | |
a243b558 JF |
5976 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5977 | # This has been around since 386BSD, at least. Likely further. | |
5978 | if test -x /sbin/sysctl; then | |
5979 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5980 | elif test -x /usr/sbin/sysctl; then | |
5981 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5982 | else | |
5983 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5984 | fi | |
5985 | # And add a safety zone | |
5986 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5987 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5988 | ;; | |
9c60689e | 5989 | |
a243b558 JF |
5990 | interix*) |
5991 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5992 | lt_cv_sys_max_cmd_len=196608 | |
5993 | ;; | |
9c60689e | 5994 | |
a243b558 JF |
5995 | os2*) |
5996 | # The test takes a long time on OS/2. | |
5997 | lt_cv_sys_max_cmd_len=8192 | |
5998 | ;; | |
9c60689e | 5999 | |
a243b558 JF |
6000 | osf*) |
6001 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6002 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6003 | # nice to cause kernel panics so lets avoid the loop below. | |
6004 | # First set a reasonable default. | |
6005 | lt_cv_sys_max_cmd_len=16384 | |
6006 | # | |
6007 | if test -x /sbin/sysconfig; then | |
6008 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6009 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6010 | esac | |
6011 | fi | |
6012 | ;; | |
6013 | sco3.2v5*) | |
6014 | lt_cv_sys_max_cmd_len=102400 | |
6015 | ;; | |
6016 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6017 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6018 | if test -n "$kargmax"; then | |
6019 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6020 | else | |
6021 | lt_cv_sys_max_cmd_len=32768 | |
6022 | fi | |
9c60689e DWT |
6023 | ;; |
6024 | *) | |
a243b558 JF |
6025 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6026 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6027 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6028 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6029 | else | |
6030 | # Make teststring a little bigger before we do anything with it. | |
6031 | # a 1K string should be a reasonable start. | |
6032 | for i in 1 2 3 4 5 6 7 8 ; do | |
6033 | teststring=$teststring$teststring | |
6034 | done | |
6035 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6036 | # If test is not a shell built-in, we'll probably end up computing a | |
6037 | # maximum length that is only half of the actual maximum length, but | |
6038 | # we can't tell. | |
6039 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
6040 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6041 | test $i != 17 # 1/2 MB should be enough | |
6042 | do | |
6043 | i=`expr $i + 1` | |
6044 | teststring=$teststring$teststring | |
6045 | done | |
6046 | # Only check the string length outside the loop. | |
6047 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6048 | teststring= | |
6049 | # Add a significant safety factor because C++ compilers can tack on | |
6050 | # massive amounts of additional arguments before passing them to the | |
6051 | # linker. It appears as though 1/2 is a usable value. | |
6052 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6053 | fi | |
9c60689e DWT |
6054 | ;; |
6055 | esac | |
ee134472 | 6056 | |
a243b558 | 6057 | fi |
ee134472 | 6058 | |
a243b558 JF |
6059 | if test -n $lt_cv_sys_max_cmd_len ; then |
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6061 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6062 | else | |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6064 | $as_echo "none" >&6; } | |
6065 | fi | |
6066 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
6067 | |
6068 | ||
9c60689e DWT |
6069 | |
6070 | ||
6071 | ||
6072 | ||
a243b558 JF |
6073 | : ${CP="cp -f"} |
6074 | : ${MV="mv -f"} | |
6075 | : ${RM="rm -f"} | |
9c60689e | 6076 | |
a243b558 JF |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6078 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6079 | # Try some XSI features | |
6080 | xsi_shell=no | |
6081 | ( _lt_dummy="a/b/c" | |
6082 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
6083 | = c,a/b,b/c, \ | |
6084 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6085 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6086 | && xsi_shell=yes | |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6088 | $as_echo "$xsi_shell" >&6; } | |
9c60689e DWT |
6089 | |
6090 | ||
a243b558 JF |
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6092 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6093 | lt_shell_append=no | |
6094 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6095 | >/dev/null 2>&1 \ | |
6096 | && lt_shell_append=yes | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6098 | $as_echo "$lt_shell_append" >&6; } | |
9c60689e DWT |
6099 | |
6100 | ||
a243b558 JF |
6101 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6102 | lt_unset=unset | |
6103 | else | |
6104 | lt_unset=false | |
6105 | fi | |
9c60689e DWT |
6106 | |
6107 | ||
6108 | ||
6109 | ||
6110 | ||
a243b558 JF |
6111 | # test EBCDIC or ASCII |
6112 | case `echo X|tr X '\101'` in | |
6113 | A) # ASCII based system | |
6114 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6115 | lt_SP2NL='tr \040 \012' | |
6116 | lt_NL2SP='tr \015\012 \040\040' | |
6117 | ;; | |
6118 | *) # EBCDIC based system | |
6119 | lt_SP2NL='tr \100 \n' | |
6120 | lt_NL2SP='tr \r\n \100\100' | |
6121 | ;; | |
6122 | esac | |
9c60689e DWT |
6123 | |
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
a243b558 JF |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6133 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6134 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6135 | $as_echo_n "(cached) " >&6 | |
6136 | else | |
6137 | case $host in | |
6138 | *-*-mingw* ) | |
6139 | case $build in | |
6140 | *-*-mingw* ) # actually msys | |
6141 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6142 | ;; | |
6143 | *-*-cygwin* ) | |
6144 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6145 | ;; | |
6146 | * ) # otherwise, assume *nix | |
6147 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6148 | ;; | |
6149 | esac | |
6150 | ;; | |
6151 | *-*-cygwin* ) | |
6152 | case $build in | |
6153 | *-*-mingw* ) # actually msys | |
6154 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6155 | ;; | |
6156 | *-*-cygwin* ) | |
6157 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6158 | ;; | |
6159 | * ) # otherwise, assume *nix | |
6160 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6161 | ;; | |
6162 | esac | |
6163 | ;; | |
6164 | * ) # unhandled hosts (and "normal" native builds) | |
6165 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6166 | ;; | |
6167 | esac | |
9c60689e | 6168 | |
a243b558 | 6169 | fi |
9c60689e | 6170 | |
a243b558 JF |
6171 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6173 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6174 | |
6175 | ||
6176 | ||
6177 | ||
6178 | ||
a243b558 JF |
6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6180 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6181 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6182 | $as_echo_n "(cached) " >&6 | |
6183 | else | |
6184 | #assume ordinary cross tools, or native build. | |
6185 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6186 | case $host in | |
6187 | *-*-mingw* ) | |
6188 | case $build in | |
6189 | *-*-mingw* ) # actually msys | |
6190 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6191 | ;; | |
6192 | esac | |
6193 | ;; | |
6194 | esac | |
9c60689e | 6195 | |
a243b558 | 6196 | fi |
9c60689e | 6197 | |
a243b558 JF |
6198 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6200 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6201 | |
9c60689e | 6202 | |
9c60689e | 6203 | |
9c60689e DWT |
6204 | |
6205 | ||
a243b558 JF |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6207 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6208 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6209 | $as_echo_n "(cached) " >&6 |
6210 | else | |
a243b558 JF |
6211 | lt_cv_ld_reload_flag='-r' |
6212 | fi | |
6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6214 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6215 | reload_flag=$lt_cv_ld_reload_flag | |
6216 | case $reload_flag in | |
6217 | "" | " "*) ;; | |
6218 | *) reload_flag=" $reload_flag" ;; | |
6219 | esac | |
6220 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6221 | case $host_os in |
a243b558 JF |
6222 | cygwin* | mingw* | pw32* | cegcc*) |
6223 | if test "$GCC" != yes; then | |
6224 | reload_cmds=false | |
6225 | fi | |
6226 | ;; | |
6227 | darwin*) | |
6228 | if test "$GCC" = yes; then | |
6229 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6230 | else | |
6231 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6232 | fi | |
6233 | ;; | |
9c60689e DWT |
6234 | esac |
6235 | ||
9c60689e | 6236 | |
9c60689e | 6237 | |
9c60689e | 6238 | |
9c60689e | 6239 | |
9c60689e | 6240 | |
9c60689e | 6241 | |
9c60689e | 6242 | |
9c60689e | 6243 | |
a243b558 JF |
6244 | if test -n "$ac_tool_prefix"; then |
6245 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6246 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6248 | $as_echo_n "checking for $ac_word... " >&6; } | |
6249 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6250 | $as_echo_n "(cached) " >&6 | |
6251 | else | |
6252 | if test -n "$OBJDUMP"; then | |
6253 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6254 | else | |
6255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6256 | for as_dir in $PATH | |
6257 | do | |
6258 | IFS=$as_save_IFS | |
6259 | test -z "$as_dir" && as_dir=. | |
6260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6262 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6264 | break 2 | |
6265 | fi | |
6266 | done | |
6267 | done | |
6268 | IFS=$as_save_IFS | |
9c60689e | 6269 | |
a243b558 JF |
6270 | fi |
6271 | fi | |
6272 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6273 | if test -n "$OBJDUMP"; then | |
6274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6275 | $as_echo "$OBJDUMP" >&6; } | |
6276 | else | |
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6278 | $as_echo "no" >&6; } | |
6279 | fi | |
9c60689e | 6280 | |
9c60689e | 6281 | |
a243b558 JF |
6282 | fi |
6283 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6284 | ac_ct_OBJDUMP=$OBJDUMP | |
6285 | # Extract the first word of "objdump", so it can be a program name with args. | |
6286 | set dummy objdump; ac_word=$2 | |
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6288 | $as_echo_n "checking for $ac_word... " >&6; } | |
6289 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6290 | $as_echo_n "(cached) " >&6 | |
6291 | else | |
6292 | if test -n "$ac_ct_OBJDUMP"; then | |
6293 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6294 | else | |
6295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6296 | for as_dir in $PATH | |
6297 | do | |
6298 | IFS=$as_save_IFS | |
6299 | test -z "$as_dir" && as_dir=. | |
6300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6302 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6304 | break 2 | |
9c60689e DWT |
6305 | fi |
6306 | done | |
a243b558 JF |
6307 | done |
6308 | IFS=$as_save_IFS | |
9c60689e DWT |
6309 | |
6310 | fi | |
9c60689e | 6311 | fi |
a243b558 JF |
6312 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6313 | if test -n "$ac_ct_OBJDUMP"; then | |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6315 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6316 | else |
a243b558 JF |
6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6318 | $as_echo "no" >&6; } | |
9c60689e DWT |
6319 | fi |
6320 | ||
a243b558 JF |
6321 | if test "x$ac_ct_OBJDUMP" = x; then |
6322 | OBJDUMP="false" | |
6323 | else | |
6324 | case $cross_compiling:$ac_tool_warned in | |
6325 | yes:) | |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6327 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6328 | ac_tool_warned=yes ;; | |
6329 | esac | |
6330 | OBJDUMP=$ac_ct_OBJDUMP | |
6331 | fi | |
6332 | else | |
6333 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6334 | fi |
6335 | ||
a243b558 | 6336 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6337 | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
a243b558 JF |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6347 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6348 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6349 | $as_echo_n "(cached) " >&6 | |
6350 | else | |
6351 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6352 | lt_cv_file_magic_test_file= | |
6353 | lt_cv_deplibs_check_method='unknown' | |
6354 | # Need to set the preceding variable on all platforms that support | |
6355 | # interlibrary dependencies. | |
6356 | # 'none' -- dependencies not supported. | |
6357 | # `unknown' -- same as none, but documents that we really don't know. | |
6358 | # 'pass_all' -- all dependencies passed with no checks. | |
6359 | # 'test_compile' -- check by making test program. | |
6360 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6361 | # which responds to the $file_magic_cmd with a given extended regex. | |
6362 | # If you have `file' or equivalent on your system and you're not sure | |
6363 | # whether `pass_all' will *always* work, you probably want this one. | |
9c60689e | 6364 | |
a243b558 JF |
6365 | case $host_os in |
6366 | aix[4-9]*) | |
6367 | lt_cv_deplibs_check_method=pass_all | |
6368 | ;; | |
9c60689e | 6369 | |
a243b558 JF |
6370 | beos*) |
6371 | lt_cv_deplibs_check_method=pass_all | |
6372 | ;; | |
9c60689e | 6373 | |
a243b558 JF |
6374 | bsdi[45]*) |
6375 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6376 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6377 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6378 | ;; | |
9c60689e | 6379 | |
a243b558 JF |
6380 | cygwin*) |
6381 | # func_win32_libid is a shell function defined in ltmain.sh | |
6382 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6383 | lt_cv_file_magic_cmd='func_win32_libid' | |
6384 | ;; | |
9c60689e | 6385 | |
a243b558 JF |
6386 | mingw* | pw32*) |
6387 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6388 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6389 | # unless we find 'file', for example because we are cross-compiling. | |
6390 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6391 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6392 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6393 | lt_cv_file_magic_cmd='func_win32_libid' | |
6394 | else | |
6395 | # Keep this pattern in sync with the one in func_win32_libid. | |
6396 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6397 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6398 | fi | |
6399 | ;; | |
9c60689e | 6400 | |
a243b558 JF |
6401 | cegcc*) |
6402 | # use the weaker test based on 'objdump'. See mingw*. | |
6403 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6404 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6405 | ;; | |
9c60689e | 6406 | |
a243b558 JF |
6407 | darwin* | rhapsody*) |
6408 | lt_cv_deplibs_check_method=pass_all | |
6409 | ;; | |
9c60689e | 6410 | |
a243b558 JF |
6411 | freebsd* | dragonfly*) |
6412 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6413 | case $host_cpu in | |
6414 | i*86 ) | |
6415 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6416 | # Let's accept both of them until this is cleared up. | |
6417 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6418 | lt_cv_file_magic_cmd=/usr/bin/file | |
6419 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6420 | ;; | |
6421 | esac | |
6422 | else | |
6423 | lt_cv_deplibs_check_method=pass_all | |
6424 | fi | |
6425 | ;; | |
9c60689e | 6426 | |
a243b558 JF |
6427 | gnu*) |
6428 | lt_cv_deplibs_check_method=pass_all | |
6429 | ;; | |
9c60689e | 6430 | |
a243b558 JF |
6431 | haiku*) |
6432 | lt_cv_deplibs_check_method=pass_all | |
6433 | ;; | |
9c60689e | 6434 | |
a243b558 JF |
6435 | hpux10.20* | hpux11*) |
6436 | lt_cv_file_magic_cmd=/usr/bin/file | |
6437 | case $host_cpu in | |
6438 | ia64*) | |
6439 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6440 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6441 | ;; | |
6442 | hppa*64*) | |
6443 | 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]' | |
6444 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6445 | ;; | |
6446 | *) | |
6447 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6448 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6449 | ;; | |
6450 | esac | |
6451 | ;; | |
9c60689e | 6452 | |
a243b558 JF |
6453 | interix[3-9]*) |
6454 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6455 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6456 | ;; | |
9c60689e | 6457 | |
a243b558 JF |
6458 | irix5* | irix6* | nonstopux*) |
6459 | case $LD in | |
6460 | *-32|*"-32 ") libmagic=32-bit;; | |
6461 | *-n32|*"-n32 ") libmagic=N32;; | |
6462 | *-64|*"-64 ") libmagic=64-bit;; | |
6463 | *) libmagic=never-match;; | |
6464 | esac | |
6465 | lt_cv_deplibs_check_method=pass_all | |
6466 | ;; | |
9c60689e | 6467 | |
a243b558 JF |
6468 | # This must be glibc/ELF. |
6469 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6470 | lt_cv_deplibs_check_method=pass_all | |
6471 | ;; | |
9c60689e | 6472 | |
a243b558 JF |
6473 | netbsd*) |
6474 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6475 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6476 | else | |
6477 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6478 | fi | |
6479 | ;; | |
9c60689e | 6480 | |
a243b558 JF |
6481 | newos6*) |
6482 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6483 | lt_cv_file_magic_cmd=/usr/bin/file | |
6484 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6485 | ;; | |
9c60689e | 6486 | |
a243b558 JF |
6487 | *nto* | *qnx*) |
6488 | lt_cv_deplibs_check_method=pass_all | |
6489 | ;; | |
9c60689e | 6490 | |
a243b558 JF |
6491 | openbsd*) |
6492 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6493 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6494 | else | |
6495 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6496 | fi | |
6497 | ;; | |
9c60689e | 6498 | |
a243b558 JF |
6499 | osf3* | osf4* | osf5*) |
6500 | lt_cv_deplibs_check_method=pass_all | |
6501 | ;; | |
9c60689e | 6502 | |
a243b558 JF |
6503 | rdos*) |
6504 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6505 | ;; |
a243b558 JF |
6506 | |
6507 | solaris*) | |
6508 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6509 | ;; |
6510 | ||
a243b558 JF |
6511 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6512 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6513 | ;; |
6514 | ||
a243b558 JF |
6515 | sysv4 | sysv4.3*) |
6516 | case $host_vendor in | |
6517 | motorola) | |
6518 | 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]' | |
6519 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6520 | ;; | |
6521 | ncr) | |
6522 | lt_cv_deplibs_check_method=pass_all | |
6523 | ;; | |
6524 | sequent) | |
6525 | lt_cv_file_magic_cmd='/bin/file' | |
6526 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6527 | ;; | |
6528 | sni) | |
6529 | lt_cv_file_magic_cmd='/bin/file' | |
6530 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6531 | lt_cv_file_magic_test_file=/lib/libc.so | |
6532 | ;; | |
6533 | siemens) | |
6534 | lt_cv_deplibs_check_method=pass_all | |
6535 | ;; | |
6536 | pc) | |
6537 | lt_cv_deplibs_check_method=pass_all | |
6538 | ;; | |
6539 | esac | |
6540 | ;; | |
9c60689e | 6541 | |
a243b558 JF |
6542 | tpf*) |
6543 | lt_cv_deplibs_check_method=pass_all | |
6544 | ;; | |
6545 | esac | |
9c60689e | 6546 | |
a243b558 JF |
6547 | fi |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6549 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6550 | |
a243b558 JF |
6551 | file_magic_glob= |
6552 | want_nocaseglob=no | |
6553 | if test "$build" = "$host"; then | |
6554 | case $host_os in | |
6555 | mingw* | pw32*) | |
6556 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6557 | want_nocaseglob=yes | |
6558 | else | |
6559 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6560 | fi | |
6561 | ;; | |
6562 | esac | |
9c60689e | 6563 | fi |
9c60689e | 6564 | |
a243b558 JF |
6565 | file_magic_cmd=$lt_cv_file_magic_cmd |
6566 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6567 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | ||
6586 | ||
6587 | ||
9c60689e | 6588 | |
9c60689e | 6589 | |
ee134472 | 6590 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6591 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6592 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6594 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6595 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6596 | $as_echo_n "(cached) " >&6 |
6597 | else | |
a243b558 JF |
6598 | if test -n "$DLLTOOL"; then |
6599 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6600 | else |
6601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6602 | for as_dir in $PATH | |
6603 | do | |
6604 | IFS=$as_save_IFS | |
6605 | test -z "$as_dir" && as_dir=. | |
6606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6607 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6608 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6610 | break 2 | |
6611 | fi | |
6612 | done | |
6613 | done | |
6614 | IFS=$as_save_IFS | |
6615 | ||
6616 | fi | |
6617 | fi | |
a243b558 JF |
6618 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6619 | if test -n "$DLLTOOL"; then | |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6621 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6622 | else |
6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6624 | $as_echo "no" >&6; } | |
6625 | fi | |
6626 | ||
6627 | ||
6628 | fi | |
a243b558 JF |
6629 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6630 | ac_ct_DLLTOOL=$DLLTOOL | |
6631 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6632 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6634 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6635 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6636 | $as_echo_n "(cached) " >&6 |
6637 | else | |
a243b558 JF |
6638 | if test -n "$ac_ct_DLLTOOL"; then |
6639 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6640 | else |
6641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6642 | for as_dir in $PATH | |
6643 | do | |
6644 | IFS=$as_save_IFS | |
6645 | test -z "$as_dir" && as_dir=. | |
6646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6648 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6650 | break 2 | |
6651 | fi | |
6652 | done | |
6653 | done | |
6654 | IFS=$as_save_IFS | |
6655 | ||
6656 | fi | |
6657 | fi | |
a243b558 JF |
6658 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6659 | if test -n "$ac_ct_DLLTOOL"; then | |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6661 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6662 | else |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6664 | $as_echo "no" >&6; } | |
6665 | fi | |
6666 | ||
a243b558 JF |
6667 | if test "x$ac_ct_DLLTOOL" = x; then |
6668 | DLLTOOL="false" | |
ee134472 JF |
6669 | else |
6670 | case $cross_compiling:$ac_tool_warned in | |
6671 | yes:) | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6673 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6674 | ac_tool_warned=yes ;; | |
6675 | esac | |
a243b558 | 6676 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6677 | fi |
6678 | else | |
a243b558 | 6679 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6680 | fi |
6681 | ||
a243b558 JF |
6682 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | ||
6692 | ||
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6694 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6695 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6696 | $as_echo_n "(cached) " >&6 |
6697 | else | |
a243b558 JF |
6698 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6699 | ||
6700 | case $host_os in | |
6701 | cygwin* | mingw* | pw32* | cegcc*) | |
6702 | # two different shell functions defined in ltmain.sh | |
6703 | # decide which to use based on capabilities of $DLLTOOL | |
6704 | case `$DLLTOOL --help 2>&1` in | |
6705 | *--identify-strict*) | |
6706 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6707 | ;; | |
6708 | *) | |
6709 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6710 | ;; | |
6711 | esac | |
6712 | ;; | |
6713 | *) | |
6714 | # fallback: assume linklib IS sharedlib | |
6715 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6716 | ;; | |
6717 | esac | |
6718 | ||
ee134472 | 6719 | fi |
a243b558 JF |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6721 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6722 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6723 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6724 | |
6725 | ||
6726 | ||
6727 | ||
6728 | ||
9c60689e | 6729 | |
a243b558 JF |
6730 | |
6731 | if test -n "$ac_tool_prefix"; then | |
6732 | for ac_prog in ar | |
6733 | do | |
6734 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6735 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6737 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6738 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6739 | $as_echo_n "(cached) " >&6 |
6740 | else | |
a243b558 JF |
6741 | if test -n "$AR"; then |
6742 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6743 | else |
6744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6745 | for as_dir in $PATH | |
6746 | do | |
6747 | IFS=$as_save_IFS | |
6748 | test -z "$as_dir" && as_dir=. | |
6749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6751 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6753 | break 2 | |
6754 | fi | |
6755 | done | |
6756 | done | |
6757 | IFS=$as_save_IFS | |
6758 | ||
6759 | fi | |
6760 | fi | |
a243b558 JF |
6761 | AR=$ac_cv_prog_AR |
6762 | if test -n "$AR"; then | |
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6764 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6765 | else |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6767 | $as_echo "no" >&6; } | |
6768 | fi | |
6769 | ||
6770 | ||
a243b558 JF |
6771 | test -n "$AR" && break |
6772 | done | |
9c60689e | 6773 | fi |
a243b558 JF |
6774 | if test -z "$AR"; then |
6775 | ac_ct_AR=$AR | |
6776 | for ac_prog in ar | |
6777 | do | |
6778 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6779 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6781 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6782 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6783 | $as_echo_n "(cached) " >&6 |
6784 | else | |
a243b558 JF |
6785 | if test -n "$ac_ct_AR"; then |
6786 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6787 | else |
6788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6789 | for as_dir in $PATH | |
6790 | do | |
6791 | IFS=$as_save_IFS | |
6792 | test -z "$as_dir" && as_dir=. | |
6793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6795 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6797 | break 2 | |
6798 | fi | |
6799 | done | |
6800 | done | |
6801 | IFS=$as_save_IFS | |
6802 | ||
6803 | fi | |
6804 | fi | |
a243b558 JF |
6805 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6806 | if test -n "$ac_ct_AR"; then | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6808 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6809 | else |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6811 | $as_echo "no" >&6; } | |
6812 | fi | |
6813 | ||
a243b558 JF |
6814 | |
6815 | test -n "$ac_ct_AR" && break | |
6816 | done | |
6817 | ||
6818 | if test "x$ac_ct_AR" = x; then | |
6819 | AR="false" | |
9c60689e DWT |
6820 | else |
6821 | case $cross_compiling:$ac_tool_warned in | |
6822 | yes:) | |
6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6824 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6825 | ac_tool_warned=yes ;; | |
6826 | esac | |
a243b558 | 6827 | AR=$ac_ct_AR |
9c60689e | 6828 | fi |
a243b558 JF |
6829 | fi |
6830 | ||
6831 | : ${AR=ar} | |
6832 | : ${AR_FLAGS=cru} | |
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | ||
6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6845 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6846 | if ${lt_cv_ar_at_file+:} false; then : | |
6847 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6848 | else |
a243b558 JF |
6849 | lt_cv_ar_at_file=no |
6850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6851 | /* end confdefs.h. */ | |
6852 | ||
6853 | int | |
6854 | main () | |
6855 | { | |
6856 | ||
6857 | ; | |
6858 | return 0; | |
6859 | } | |
6860 | _ACEOF | |
6861 | if ac_fn_c_try_compile "$LINENO"; then : | |
6862 | echo conftest.$ac_objext > conftest.lst | |
6863 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6864 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6865 | (eval $lt_ar_try) 2>&5 | |
6866 | ac_status=$? | |
6867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6868 | test $ac_status = 0; } | |
6869 | if test "$ac_status" -eq 0; then | |
6870 | # Ensure the archiver fails upon bogus file names. | |
6871 | rm -f conftest.$ac_objext libconftest.a | |
6872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6873 | (eval $lt_ar_try) 2>&5 | |
6874 | ac_status=$? | |
6875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6876 | test $ac_status = 0; } | |
6877 | if test "$ac_status" -ne 0; then | |
6878 | lt_cv_ar_at_file=@ | |
6879 | fi | |
6880 | fi | |
6881 | rm -f conftest.* libconftest.a | |
6882 | ||
9c60689e | 6883 | fi |
a243b558 | 6884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6885 | |
a243b558 JF |
6886 | fi |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6888 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6889 | ||
6890 | if test "x$lt_cv_ar_at_file" = xno; then | |
6891 | archiver_list_spec= | |
6892 | else | |
6893 | archiver_list_spec=$lt_cv_ar_at_file | |
6894 | fi | |
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | if test -n "$ac_tool_prefix"; then | |
6903 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6904 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6906 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6907 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6908 | $as_echo_n "(cached) " >&6 |
6909 | else | |
a243b558 JF |
6910 | if test -n "$STRIP"; then |
6911 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6912 | else |
6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6914 | for as_dir in $PATH | |
6915 | do | |
6916 | IFS=$as_save_IFS | |
6917 | test -z "$as_dir" && as_dir=. | |
6918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6920 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6922 | break 2 | |
6923 | fi | |
6924 | done | |
6925 | done | |
6926 | IFS=$as_save_IFS | |
6927 | ||
6928 | fi | |
6929 | fi | |
a243b558 JF |
6930 | STRIP=$ac_cv_prog_STRIP |
6931 | if test -n "$STRIP"; then | |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6933 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6934 | else |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6936 | $as_echo "no" >&6; } | |
6937 | fi | |
6938 | ||
6939 | ||
6940 | fi | |
a243b558 JF |
6941 | if test -z "$ac_cv_prog_STRIP"; then |
6942 | ac_ct_STRIP=$STRIP | |
6943 | # Extract the first word of "strip", so it can be a program name with args. | |
6944 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6946 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6947 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6948 | $as_echo_n "(cached) " >&6 |
6949 | else | |
a243b558 JF |
6950 | if test -n "$ac_ct_STRIP"; then |
6951 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6952 | else |
6953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6954 | for as_dir in $PATH | |
6955 | do | |
6956 | IFS=$as_save_IFS | |
6957 | test -z "$as_dir" && as_dir=. | |
6958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6960 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6962 | break 2 | |
6963 | fi | |
6964 | done | |
6965 | done | |
6966 | IFS=$as_save_IFS | |
6967 | ||
6968 | fi | |
6969 | fi | |
a243b558 JF |
6970 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6971 | if test -n "$ac_ct_STRIP"; then | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6973 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6974 | else |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6976 | $as_echo "no" >&6; } | |
6977 | fi | |
6978 | ||
a243b558 JF |
6979 | if test "x$ac_ct_STRIP" = x; then |
6980 | STRIP=":" | |
9c60689e DWT |
6981 | else |
6982 | case $cross_compiling:$ac_tool_warned in | |
6983 | yes:) | |
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6986 | ac_tool_warned=yes ;; | |
6987 | esac | |
a243b558 | 6988 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6989 | fi |
6990 | else | |
a243b558 | 6991 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6992 | fi |
6993 | ||
a243b558 JF |
6994 | test -z "$STRIP" && STRIP=: |
6995 | ||
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | if test -n "$ac_tool_prefix"; then | |
7002 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7003 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7005 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7006 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
7007 | $as_echo_n "(cached) " >&6 |
7008 | else | |
a243b558 JF |
7009 | if test -n "$RANLIB"; then |
7010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
7011 | else |
7012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7013 | for as_dir in $PATH | |
7014 | do | |
7015 | IFS=$as_save_IFS | |
7016 | test -z "$as_dir" && as_dir=. | |
7017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7019 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
7020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7021 | break 2 | |
7022 | fi | |
7023 | done | |
7024 | done | |
7025 | IFS=$as_save_IFS | |
7026 | ||
7027 | fi | |
7028 | fi | |
a243b558 JF |
7029 | RANLIB=$ac_cv_prog_RANLIB |
7030 | if test -n "$RANLIB"; then | |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7032 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
7033 | else |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7035 | $as_echo "no" >&6; } | |
7036 | fi | |
7037 | ||
7038 | ||
7039 | fi | |
a243b558 JF |
7040 | if test -z "$ac_cv_prog_RANLIB"; then |
7041 | ac_ct_RANLIB=$RANLIB | |
7042 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7043 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7045 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7046 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
7047 | $as_echo_n "(cached) " >&6 |
7048 | else | |
a243b558 JF |
7049 | if test -n "$ac_ct_RANLIB"; then |
7050 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
7051 | else |
7052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7053 | for as_dir in $PATH | |
7054 | do | |
7055 | IFS=$as_save_IFS | |
7056 | test -z "$as_dir" && as_dir=. | |
7057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7059 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
7060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7061 | break 2 | |
7062 | fi | |
7063 | done | |
7064 | done | |
7065 | IFS=$as_save_IFS | |
7066 | ||
7067 | fi | |
7068 | fi | |
a243b558 JF |
7069 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7070 | if test -n "$ac_ct_RANLIB"; then | |
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7072 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
7073 | else |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7075 | $as_echo "no" >&6; } | |
7076 | fi | |
7077 | ||
a243b558 JF |
7078 | if test "x$ac_ct_RANLIB" = x; then |
7079 | RANLIB=":" | |
9c60689e DWT |
7080 | else |
7081 | case $cross_compiling:$ac_tool_warned in | |
7082 | yes:) | |
7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7084 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7085 | ac_tool_warned=yes ;; | |
7086 | esac | |
a243b558 | 7087 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
7088 | fi |
7089 | else | |
a243b558 | 7090 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
7091 | fi |
7092 | ||
a243b558 JF |
7093 | test -z "$RANLIB" && RANLIB=: |
7094 | ||
7095 | ||
9c60689e | 7096 | |
9c60689e DWT |
7097 | |
7098 | ||
a243b558 JF |
7099 | |
7100 | # Determine commands to create old-style static archives. | |
7101 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7102 | old_postinstall_cmds='chmod 644 $oldlib' | |
7103 | old_postuninstall_cmds= | |
7104 | ||
7105 | if test -n "$RANLIB"; then | |
7106 | case $host_os in | |
7107 | openbsd*) | |
7108 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7109 | ;; | |
7110 | *) | |
7111 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7112 | ;; | |
7113 | esac | |
7114 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
7115 | fi |
7116 | ||
a243b558 JF |
7117 | case $host_os in |
7118 | darwin*) | |
7119 | lock_old_archive_extraction=yes ;; | |
7120 | *) | |
7121 | lock_old_archive_extraction=no ;; | |
9c60689e | 7122 | esac |
9c60689e | 7123 | |
9c60689e | 7124 | |
9c60689e DWT |
7125 | |
7126 | ||
9c60689e | 7127 | |
9c60689e | 7128 | |
9c60689e DWT |
7129 | |
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | ||
53ba6704 | 7156 | |
9c60689e | 7157 | |
9c60689e | 7158 | |
9c60689e | 7159 | |
53ba6704 | 7160 | |
a243b558 JF |
7161 | |
7162 | # If no C compiler was specified, use CC. | |
7163 | LTCC=${LTCC-"$CC"} | |
7164 | ||
7165 | # If no C compiler flags were specified, use CFLAGS. | |
7166 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7167 | ||
7168 | # Allow CC to be a program name with arguments. | |
7169 | compiler=$CC | |
7170 | ||
7171 | ||
7172 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7174 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7175 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7176 | $as_echo_n "(cached) " >&6 |
7177 | else | |
ee134472 | 7178 | |
a243b558 JF |
7179 | # These are sane defaults that work on at least a few old systems. |
7180 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7181 | |
a243b558 JF |
7182 | # Character class describing NM global symbol codes. |
7183 | symcode='[BCDEGRST]' | |
9c60689e | 7184 | |
a243b558 JF |
7185 | # Regexp to match symbols that can be accessed directly from C. |
7186 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7187 | |
a243b558 JF |
7188 | # Define system-specific variables. |
7189 | case $host_os in | |
7190 | aix*) | |
7191 | symcode='[BCDT]' | |
7192 | ;; | |
7193 | cygwin* | mingw* | pw32* | cegcc*) | |
7194 | symcode='[ABCDGISTW]' | |
7195 | ;; | |
7196 | hpux*) | |
7197 | if test "$host_cpu" = ia64; then | |
7198 | symcode='[ABCDEGRST]' | |
7199 | fi | |
7200 | ;; | |
7201 | irix* | nonstopux*) | |
7202 | symcode='[BCDEGRST]' | |
7203 | ;; | |
7204 | osf*) | |
7205 | symcode='[BCDEGQRST]' | |
7206 | ;; | |
7207 | solaris*) | |
7208 | symcode='[BDRT]' | |
7209 | ;; | |
7210 | sco3.2v5*) | |
7211 | symcode='[DT]' | |
7212 | ;; | |
7213 | sysv4.2uw2*) | |
7214 | symcode='[DT]' | |
7215 | ;; | |
7216 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7217 | symcode='[ABDT]' | |
7218 | ;; | |
7219 | sysv4) | |
7220 | symcode='[DFNSTU]' | |
7221 | ;; | |
7222 | esac | |
9c60689e | 7223 | |
a243b558 JF |
7224 | # If we're using GNU nm, then use its standard symbol codes. |
7225 | case `$NM -V 2>&1` in | |
7226 | *GNU* | *'with BFD'*) | |
7227 | symcode='[ABCDGIRSTW]' ;; | |
7228 | esac | |
9c60689e | 7229 | |
a243b558 JF |
7230 | # Transform an extracted symbol line into a proper C declaration. |
7231 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7232 | # so use this general approach. | |
7233 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7234 | |
a243b558 JF |
7235 | # Transform an extracted symbol line into symbol name and symbol address |
7236 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7237 | 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 | 7238 | |
a243b558 JF |
7239 | # Handle CRLF in mingw tool chain |
7240 | opt_cr= | |
7241 | case $build_os in | |
7242 | mingw*) | |
7243 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7244 | ;; | |
7245 | esac | |
9c60689e | 7246 | |
a243b558 JF |
7247 | # Try without a prefix underscore, then with it. |
7248 | for ac_symprfx in "" "_"; do | |
9c60689e | 7249 | |
a243b558 JF |
7250 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7251 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7252 | |
a243b558 JF |
7253 | # Write the raw and C identifiers. |
7254 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7255 | # Fake it for dumpbin and say T for any non-static function | |
7256 | # and D for any global variable. | |
7257 | # Also find C++ and __fastcall symbols from MSVC++, | |
7258 | # which start with @ or ?. | |
7259 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7260 | " {last_section=section; section=\$ 3};"\ | |
7261 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7262 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7263 | " \$ 0!~/External *\|/{next};"\ | |
7264 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7265 | " {if(hide[section]) next};"\ | |
7266 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7267 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7268 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7269 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7270 | " ' prfx=^$ac_symprfx" | |
7271 | else | |
7272 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7273 | fi | |
7274 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7275 | |
a243b558 JF |
7276 | # Check to see that the pipe works correctly. |
7277 | pipe_works=no | |
9c60689e | 7278 | |
a93f15c0 | 7279 | rm -f conftest* |
a243b558 JF |
7280 | cat > conftest.$ac_ext <<_LT_EOF |
7281 | #ifdef __cplusplus | |
7282 | extern "C" { | |
7283 | #endif | |
7284 | char nm_test_var; | |
7285 | void nm_test_func(void); | |
7286 | void nm_test_func(void){} | |
7287 | #ifdef __cplusplus | |
7288 | } | |
7289 | #endif | |
7290 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7291 | _LT_EOF | |
9c60689e | 7292 | |
a243b558 JF |
7293 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7294 | (eval $ac_compile) 2>&5 | |
7295 | ac_status=$? | |
7296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7297 | test $ac_status = 0; }; then | |
7298 | # Now try to grab the symbols. | |
7299 | nlist=conftest.nm | |
7300 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7301 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7302 | ac_status=$? | |
7303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7304 | test $ac_status = 0; } && test -s "$nlist"; then | |
7305 | # Try sorting and uniquifying the output. | |
7306 | if sort "$nlist" | uniq > "$nlist"T; then | |
7307 | mv -f "$nlist"T "$nlist" | |
7308 | else | |
7309 | rm -f "$nlist"T | |
7310 | fi | |
9c60689e | 7311 | |
a243b558 JF |
7312 | # Make sure that we snagged all the symbols we need. |
7313 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7314 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7315 | cat <<_LT_EOF > conftest.$ac_ext | |
7316 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7317 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7318 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7319 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7320 | # define LT_DLSYM_CONST | |
7321 | #elif defined(__osf__) | |
7322 | /* This system does not cope well with relocations in const data. */ | |
7323 | # define LT_DLSYM_CONST | |
7324 | #else | |
7325 | # define LT_DLSYM_CONST const | |
7326 | #endif | |
9c60689e | 7327 | |
a243b558 JF |
7328 | #ifdef __cplusplus |
7329 | extern "C" { | |
7330 | #endif | |
9c60689e | 7331 | |
a243b558 JF |
7332 | _LT_EOF |
7333 | # Now generate the symbol file. | |
7334 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7335 | |
a243b558 | 7336 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7337 | |
a243b558 JF |
7338 | /* The mapping between symbol names and symbols. */ |
7339 | LT_DLSYM_CONST struct { | |
7340 | const char *name; | |
7341 | void *address; | |
7342 | } | |
7343 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7344 | { | |
7345 | { "@PROGRAM@", (void *) 0 }, | |
7346 | _LT_EOF | |
7347 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7348 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7349 | {0, (void *) 0} | |
7350 | }; | |
9c60689e | 7351 | |
a243b558 JF |
7352 | /* This works around a problem in FreeBSD linker */ |
7353 | #ifdef FREEBSD_WORKAROUND | |
7354 | static const void *lt_preloaded_setup() { | |
7355 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7356 | } | |
7357 | #endif | |
9c60689e | 7358 | |
a243b558 JF |
7359 | #ifdef __cplusplus |
7360 | } | |
7361 | #endif | |
7362 | _LT_EOF | |
7363 | # Now try linking the two files. | |
7364 | mv conftest.$ac_objext conftstm.$ac_objext | |
7365 | lt_globsym_save_LIBS=$LIBS | |
7366 | lt_globsym_save_CFLAGS=$CFLAGS | |
7367 | LIBS="conftstm.$ac_objext" | |
7368 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7370 | (eval $ac_link) 2>&5 | |
7371 | ac_status=$? | |
7372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7373 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7374 | pipe_works=yes | |
7375 | fi | |
7376 | LIBS=$lt_globsym_save_LIBS | |
7377 | CFLAGS=$lt_globsym_save_CFLAGS | |
7378 | else | |
7379 | echo "cannot find nm_test_func in $nlist" >&5 | |
7380 | fi | |
7381 | else | |
7382 | echo "cannot find nm_test_var in $nlist" >&5 | |
7383 | fi | |
7384 | else | |
7385 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7386 | fi | |
7387 | else | |
7388 | echo "$progname: failed program was:" >&5 | |
7389 | cat conftest.$ac_ext >&5 | |
7390 | fi | |
7391 | rm -rf conftest* conftst* | |
9c60689e | 7392 | |
a243b558 JF |
7393 | # Do not use the global_symbol_pipe unless it works. |
7394 | if test "$pipe_works" = yes; then | |
7395 | break | |
7396 | else | |
7397 | lt_cv_sys_global_symbol_pipe= | |
7398 | fi | |
7399 | done | |
9c60689e | 7400 | |
9c60689e | 7401 | fi |
9c60689e | 7402 | |
a243b558 JF |
7403 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7404 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7405 | fi |
a243b558 JF |
7406 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7408 | $as_echo "failed" >&6; } | |
9c60689e | 7409 | else |
a243b558 JF |
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7411 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7412 | fi |
7413 | ||
a243b558 JF |
7414 | # Response file support. |
7415 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7416 | nm_file_list_spec='@' | |
7417 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7418 | nm_file_list_spec='@' | |
9c60689e | 7419 | fi |
9c60689e | 7420 | |
9c60689e | 7421 | |
9c60689e | 7422 | |
9c60689e | 7423 | |
9c60689e | 7424 | |
9c60689e DWT |
7425 | |
7426 | ||
9c60689e | 7427 | |
9c60689e | 7428 | |
9c60689e DWT |
7429 | |
7430 | ||
7431 | ||
ee134472 JF |
7432 | |
7433 | ||
9c60689e DWT |
7434 | |
7435 | ||
7436 | ||
7437 | ||
7438 | ||
7439 | ||
7440 | ||
7441 | ||
7442 | ||
549f29b5 | 7443 | |
549f29b5 DWT |
7444 | |
7445 | ||
549f29b5 | 7446 | |
a243b558 JF |
7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7448 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7449 | |
a243b558 JF |
7450 | # Check whether --with-sysroot was given. |
7451 | if test "${with_sysroot+set}" = set; then : | |
7452 | withval=$with_sysroot; | |
9c60689e | 7453 | else |
a243b558 | 7454 | with_sysroot=no |
9c60689e DWT |
7455 | fi |
7456 | ||
7457 | ||
a243b558 JF |
7458 | lt_sysroot= |
7459 | case ${with_sysroot} in #( | |
7460 | yes) | |
7461 | if test "$GCC" = yes; then | |
7462 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7463 | fi | |
7464 | ;; #( | |
7465 | /*) | |
7466 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7467 | ;; #( | |
7468 | no|'') | |
7469 | ;; #( | |
7470 | *) | |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7472 | $as_echo "${with_sysroot}" >&6; } | |
7473 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7474 | ;; | |
7475 | esac | |
9c60689e | 7476 | |
a243b558 JF |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7478 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7479 | |
7480 | ||
7481 | ||
7482 | ||
7483 | ||
a243b558 JF |
7484 | # Check whether --enable-libtool-lock was given. |
7485 | if test "${enable_libtool_lock+set}" = set; then : | |
7486 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7487 | fi |
7488 | ||
a243b558 | 7489 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
9c60689e | 7490 | |
a243b558 JF |
7491 | # Some flags need to be propagated to the compiler or linker for good |
7492 | # libtool support. | |
7493 | case $host in | |
7494 | ia64-*-hpux*) | |
7495 | # Find out which ABI we are using. | |
7496 | echo 'int i;' > conftest.$ac_ext | |
7497 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7498 | (eval $ac_compile) 2>&5 | |
7499 | ac_status=$? | |
7500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7501 | test $ac_status = 0; }; then | |
7502 | case `/usr/bin/file conftest.$ac_objext` in | |
7503 | *ELF-32*) | |
7504 | HPUX_IA64_MODE="32" | |
7505 | ;; | |
7506 | *ELF-64*) | |
7507 | HPUX_IA64_MODE="64" | |
7508 | ;; | |
7509 | esac | |
7510 | fi | |
7511 | rm -rf conftest* | |
7512 | ;; | |
7513 | *-*-irix6*) | |
7514 | # Find out which ABI we are using. | |
7515 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7516 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7517 | (eval $ac_compile) 2>&5 | |
7518 | ac_status=$? | |
7519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7520 | test $ac_status = 0; }; then | |
7521 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7522 | case `/usr/bin/file conftest.$ac_objext` in | |
7523 | *32-bit*) | |
7524 | LD="${LD-ld} -melf32bsmip" | |
7525 | ;; | |
7526 | *N32*) | |
7527 | LD="${LD-ld} -melf32bmipn32" | |
7528 | ;; | |
7529 | *64-bit*) | |
7530 | LD="${LD-ld} -melf64bmip" | |
7531 | ;; | |
7532 | esac | |
7533 | else | |
7534 | case `/usr/bin/file conftest.$ac_objext` in | |
7535 | *32-bit*) | |
7536 | LD="${LD-ld} -32" | |
7537 | ;; | |
7538 | *N32*) | |
7539 | LD="${LD-ld} -n32" | |
7540 | ;; | |
7541 | *64-bit*) | |
7542 | LD="${LD-ld} -64" | |
7543 | ;; | |
7544 | esac | |
7545 | fi | |
7546 | fi | |
7547 | rm -rf conftest* | |
7548 | ;; | |
9c60689e | 7549 | |
a243b558 JF |
7550 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7551 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7552 | # Find out which ABI we are using. | |
7553 | echo 'int i;' > conftest.$ac_ext | |
7554 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7555 | (eval $ac_compile) 2>&5 | |
7556 | ac_status=$? | |
7557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7558 | test $ac_status = 0; }; then | |
7559 | case `/usr/bin/file conftest.o` in | |
7560 | *32-bit*) | |
7561 | case $host in | |
7562 | x86_64-*kfreebsd*-gnu) | |
7563 | LD="${LD-ld} -m elf_i386_fbsd" | |
7564 | ;; | |
7565 | x86_64-*linux*) | |
7566 | LD="${LD-ld} -m elf_i386" | |
7567 | ;; | |
7568 | ppc64-*linux*|powerpc64-*linux*) | |
7569 | LD="${LD-ld} -m elf32ppclinux" | |
7570 | ;; | |
7571 | s390x-*linux*) | |
7572 | LD="${LD-ld} -m elf_s390" | |
7573 | ;; | |
7574 | sparc64-*linux*) | |
7575 | LD="${LD-ld} -m elf32_sparc" | |
7576 | ;; | |
7577 | esac | |
7578 | ;; | |
7579 | *64-bit*) | |
7580 | case $host in | |
7581 | x86_64-*kfreebsd*-gnu) | |
7582 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7583 | ;; | |
7584 | x86_64-*linux*) | |
7585 | LD="${LD-ld} -m elf_x86_64" | |
7586 | ;; | |
7587 | ppc*-*linux*|powerpc*-*linux*) | |
7588 | LD="${LD-ld} -m elf64ppc" | |
7589 | ;; | |
7590 | s390*-*linux*|s390*-*tpf*) | |
7591 | LD="${LD-ld} -m elf64_s390" | |
7592 | ;; | |
7593 | sparc*-*linux*) | |
7594 | LD="${LD-ld} -m elf64_sparc" | |
7595 | ;; | |
7596 | esac | |
7597 | ;; | |
7598 | esac | |
7599 | fi | |
7600 | rm -rf conftest* | |
7601 | ;; | |
9c60689e | 7602 | |
a243b558 JF |
7603 | *-*-sco3.2v5*) |
7604 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7605 | SAVE_CFLAGS="$CFLAGS" | |
7606 | CFLAGS="$CFLAGS -belf" | |
7607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7608 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7609 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7610 | $as_echo_n "(cached) " >&6 | |
7611 | else | |
7612 | ac_ext=c | |
7613 | ac_cpp='$CPP $CPPFLAGS' | |
7614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7617 | |
a243b558 JF |
7618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7619 | /* end confdefs.h. */ | |
9c60689e | 7620 | |
a243b558 JF |
7621 | int |
7622 | main () | |
7623 | { | |
9c60689e | 7624 | |
a243b558 JF |
7625 | ; |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | if ac_fn_c_try_link "$LINENO"; then : | |
7630 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7631 | else |
a243b558 | 7632 | lt_cv_cc_needs_belf=no |
9c60689e | 7633 | fi |
a243b558 JF |
7634 | rm -f core conftest.err conftest.$ac_objext \ |
7635 | conftest$ac_exeext conftest.$ac_ext | |
7636 | ac_ext=c | |
7637 | ac_cpp='$CPP $CPPFLAGS' | |
7638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7641 | |
a243b558 JF |
7642 | fi |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7644 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7645 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7646 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7647 | CFLAGS="$SAVE_CFLAGS" | |
7648 | fi | |
7649 | ;; | |
7650 | *-*solaris*) | |
7651 | # Find out which ABI we are using. | |
7652 | echo 'int i;' > conftest.$ac_ext | |
7653 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7654 | (eval $ac_compile) 2>&5 | |
7655 | ac_status=$? | |
7656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7657 | test $ac_status = 0; }; then | |
7658 | case `/usr/bin/file conftest.o` in | |
7659 | *64-bit*) | |
7660 | case $lt_cv_prog_gnu_ld in | |
7661 | yes*) | |
7662 | case $host in | |
7663 | i?86-*-solaris*) | |
7664 | LD="${LD-ld} -m elf_x86_64" | |
7665 | ;; | |
7666 | sparc*-*-solaris*) | |
7667 | LD="${LD-ld} -m elf64_sparc" | |
7668 | ;; | |
7669 | esac | |
7670 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7671 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7672 | LD="${LD-ld}_sol2" | |
7673 | fi | |
7674 | ;; | |
7675 | *) | |
7676 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7677 | LD="${LD-ld} -64" | |
7678 | fi | |
7679 | ;; | |
7680 | esac | |
7681 | ;; | |
7682 | esac | |
7683 | fi | |
7684 | rm -rf conftest* | |
7685 | ;; | |
7686 | esac | |
9c60689e | 7687 | |
a243b558 | 7688 | need_locks="$enable_libtool_lock" |
9c60689e | 7689 | |
a243b558 JF |
7690 | if test -n "$ac_tool_prefix"; then |
7691 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7692 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7694 | $as_echo_n "checking for $ac_word... " >&6; } | |
7695 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7696 | $as_echo_n "(cached) " >&6 | |
7697 | else | |
7698 | if test -n "$MANIFEST_TOOL"; then | |
7699 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7700 | else | |
7701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7702 | for as_dir in $PATH | |
7703 | do | |
7704 | IFS=$as_save_IFS | |
7705 | test -z "$as_dir" && as_dir=. | |
7706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7708 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7710 | break 2 | |
7711 | fi | |
7712 | done | |
7713 | done | |
7714 | IFS=$as_save_IFS | |
9c60689e | 7715 | |
a243b558 JF |
7716 | fi |
7717 | fi | |
7718 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7719 | if test -n "$MANIFEST_TOOL"; then | |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7721 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7722 | else | |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7724 | $as_echo "no" >&6; } | |
7725 | fi | |
9c60689e DWT |
7726 | |
7727 | ||
a243b558 JF |
7728 | fi |
7729 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7730 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7731 | # Extract the first word of "mt", so it can be a program name with args. | |
7732 | set dummy mt; ac_word=$2 | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7734 | $as_echo_n "checking for $ac_word... " >&6; } | |
7735 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7736 | $as_echo_n "(cached) " >&6 | |
7737 | else | |
7738 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7739 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7740 | else | |
7741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7742 | for as_dir in $PATH | |
7743 | do | |
7744 | IFS=$as_save_IFS | |
7745 | test -z "$as_dir" && as_dir=. | |
7746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7748 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7750 | break 2 | |
7751 | fi | |
7752 | done | |
7753 | done | |
7754 | IFS=$as_save_IFS | |
9c60689e | 7755 | |
a243b558 JF |
7756 | fi |
7757 | fi | |
7758 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7759 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7761 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7762 | else | |
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7764 | $as_echo "no" >&6; } | |
7765 | fi | |
9c60689e | 7766 | |
a243b558 JF |
7767 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7768 | MANIFEST_TOOL=":" | |
7769 | else | |
7770 | case $cross_compiling:$ac_tool_warned in | |
7771 | yes:) | |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7774 | ac_tool_warned=yes ;; | |
7775 | esac | |
7776 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7777 | fi | |
7778 | else | |
7779 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7780 | fi | |
9c60689e | 7781 | |
a243b558 JF |
7782 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7784 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7785 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7786 | $as_echo_n "(cached) " >&6 | |
7787 | else | |
7788 | lt_cv_path_mainfest_tool=no | |
7789 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7790 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7791 | cat conftest.err >&5 | |
7792 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7793 | lt_cv_path_mainfest_tool=yes | |
7794 | fi | |
a93f15c0 | 7795 | rm -f conftest* |
a243b558 JF |
7796 | fi |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7798 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7799 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7800 | MANIFEST_TOOL=: | |
7801 | fi | |
9c60689e DWT |
7802 | |
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
a243b558 JF |
7808 | case $host_os in |
7809 | rhapsody* | darwin*) | |
7810 | if test -n "$ac_tool_prefix"; then | |
7811 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7812 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7814 | $as_echo_n "checking for $ac_word... " >&6; } | |
7815 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7816 | $as_echo_n "(cached) " >&6 | |
7817 | else | |
7818 | if test -n "$DSYMUTIL"; then | |
7819 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7820 | else | |
7821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7822 | for as_dir in $PATH | |
7823 | do | |
7824 | IFS=$as_save_IFS | |
7825 | test -z "$as_dir" && as_dir=. | |
7826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7828 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7830 | break 2 | |
7831 | fi | |
7832 | done | |
7833 | done | |
7834 | IFS=$as_save_IFS | |
9c60689e | 7835 | |
a243b558 JF |
7836 | fi |
7837 | fi | |
7838 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7839 | if test -n "$DSYMUTIL"; then | |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7841 | $as_echo "$DSYMUTIL" >&6; } | |
7842 | else | |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7844 | $as_echo "no" >&6; } | |
7845 | fi | |
9c60689e DWT |
7846 | |
7847 | ||
9c60689e | 7848 | fi |
a243b558 JF |
7849 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7850 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7851 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7852 | set dummy dsymutil; ac_word=$2 | |
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7854 | $as_echo_n "checking for $ac_word... " >&6; } | |
7855 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
7856 | $as_echo_n "(cached) " >&6 |
7857 | else | |
a243b558 JF |
7858 | if test -n "$ac_ct_DSYMUTIL"; then |
7859 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 7860 | else |
a243b558 JF |
7861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7862 | for as_dir in $PATH | |
7863 | do | |
7864 | IFS=$as_save_IFS | |
7865 | test -z "$as_dir" && as_dir=. | |
7866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7868 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7870 | break 2 | |
7871 | fi | |
7872 | done | |
7873 | done | |
7874 | IFS=$as_save_IFS | |
7875 | ||
9c60689e | 7876 | fi |
9c60689e | 7877 | fi |
a243b558 JF |
7878 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7879 | if test -n "$ac_ct_DSYMUTIL"; then | |
7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7881 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7882 | else | |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7884 | $as_echo "no" >&6; } | |
7885 | fi | |
9c60689e | 7886 | |
a243b558 JF |
7887 | if test "x$ac_ct_DSYMUTIL" = x; then |
7888 | DSYMUTIL=":" | |
7889 | else | |
7890 | case $cross_compiling:$ac_tool_warned in | |
7891 | yes:) | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7894 | ac_tool_warned=yes ;; | |
9c60689e | 7895 | esac |
a243b558 JF |
7896 | DSYMUTIL=$ac_ct_DSYMUTIL |
7897 | fi | |
7898 | else | |
7899 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7900 | fi | |
9c60689e | 7901 | |
a243b558 JF |
7902 | if test -n "$ac_tool_prefix"; then |
7903 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7904 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7906 | $as_echo_n "checking for $ac_word... " >&6; } | |
7907 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
7908 | $as_echo_n "(cached) " >&6 |
7909 | else | |
a243b558 JF |
7910 | if test -n "$NMEDIT"; then |
7911 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7912 | else | |
7913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7914 | for as_dir in $PATH | |
7915 | do | |
7916 | IFS=$as_save_IFS | |
7917 | test -z "$as_dir" && as_dir=. | |
7918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7920 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7922 | break 2 | |
7923 | fi | |
7924 | done | |
9c60689e | 7925 | done |
a243b558 | 7926 | IFS=$as_save_IFS |
9c60689e | 7927 | |
a243b558 JF |
7928 | fi |
7929 | fi | |
7930 | NMEDIT=$ac_cv_prog_NMEDIT | |
7931 | if test -n "$NMEDIT"; then | |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7933 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
7934 | else |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7936 | $as_echo "no" >&6; } | |
7937 | fi | |
7938 | ||
7939 | ||
a243b558 JF |
7940 | fi |
7941 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7942 | ac_ct_NMEDIT=$NMEDIT | |
7943 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7944 | set dummy nmedit; ac_word=$2 | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7946 | $as_echo_n "checking for $ac_word... " >&6; } | |
7947 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
7948 | $as_echo_n "(cached) " >&6 |
7949 | else | |
a243b558 JF |
7950 | if test -n "$ac_ct_NMEDIT"; then |
7951 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7952 | else | |
7953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7954 | for as_dir in $PATH | |
7955 | do | |
7956 | IFS=$as_save_IFS | |
7957 | test -z "$as_dir" && as_dir=. | |
7958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7960 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7962 | break 2 | |
7963 | fi | |
7964 | done | |
9c60689e | 7965 | done |
a243b558 | 7966 | IFS=$as_save_IFS |
9c60689e | 7967 | |
a243b558 JF |
7968 | fi |
7969 | fi | |
7970 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7971 | if test -n "$ac_ct_NMEDIT"; then | |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7973 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
7974 | else |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7976 | $as_echo "no" >&6; } | |
7977 | fi | |
7978 | ||
a243b558 JF |
7979 | if test "x$ac_ct_NMEDIT" = x; then |
7980 | NMEDIT=":" | |
9c60689e | 7981 | else |
a243b558 JF |
7982 | case $cross_compiling:$ac_tool_warned in |
7983 | yes:) | |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7986 | ac_tool_warned=yes ;; | |
7987 | esac | |
7988 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 7989 | fi |
a243b558 JF |
7990 | else |
7991 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
7992 | fi |
7993 | ||
a243b558 JF |
7994 | if test -n "$ac_tool_prefix"; then |
7995 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7996 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7998 | $as_echo_n "checking for $ac_word... " >&6; } | |
7999 | if ${ac_cv_prog_LIPO+:} false; then : | |
8000 | $as_echo_n "(cached) " >&6 | |
8001 | else | |
8002 | if test -n "$LIPO"; then | |
8003 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8004 | else | |
8005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8006 | for as_dir in $PATH | |
8007 | do | |
8008 | IFS=$as_save_IFS | |
8009 | test -z "$as_dir" && as_dir=. | |
8010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8012 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8014 | break 2 | |
8015 | fi | |
8016 | done | |
8017 | done | |
8018 | IFS=$as_save_IFS | |
9c60689e | 8019 | |
a243b558 JF |
8020 | fi |
8021 | fi | |
8022 | LIPO=$ac_cv_prog_LIPO | |
8023 | if test -n "$LIPO"; then | |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8025 | $as_echo "$LIPO" >&6; } | |
8026 | else | |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8028 | $as_echo "no" >&6; } | |
8029 | fi | |
9c60689e | 8030 | |
9c60689e | 8031 | |
a243b558 JF |
8032 | fi |
8033 | if test -z "$ac_cv_prog_LIPO"; then | |
8034 | ac_ct_LIPO=$LIPO | |
8035 | # Extract the first word of "lipo", so it can be a program name with args. | |
8036 | set dummy lipo; ac_word=$2 | |
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8038 | $as_echo_n "checking for $ac_word... " >&6; } | |
8039 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
8040 | $as_echo_n "(cached) " >&6 |
8041 | else | |
a243b558 JF |
8042 | if test -n "$ac_ct_LIPO"; then |
8043 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8044 | else | |
8045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8046 | for as_dir in $PATH | |
8047 | do | |
8048 | IFS=$as_save_IFS | |
8049 | test -z "$as_dir" && as_dir=. | |
8050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8052 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8054 | break 2 | |
8055 | fi | |
8056 | done | |
8057 | done | |
8058 | IFS=$as_save_IFS | |
9c60689e DWT |
8059 | |
8060 | fi | |
a243b558 JF |
8061 | fi |
8062 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8063 | if test -n "$ac_ct_LIPO"; then | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8065 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 8066 | else |
a243b558 JF |
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8068 | $as_echo "no" >&6; } | |
9c60689e DWT |
8069 | fi |
8070 | ||
a243b558 JF |
8071 | if test "x$ac_ct_LIPO" = x; then |
8072 | LIPO=":" | |
8073 | else | |
8074 | case $cross_compiling:$ac_tool_warned in | |
8075 | yes:) | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8078 | ac_tool_warned=yes ;; | |
8079 | esac | |
8080 | LIPO=$ac_ct_LIPO | |
8081 | fi | |
8082 | else | |
8083 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
8084 | fi |
8085 | ||
a243b558 JF |
8086 | if test -n "$ac_tool_prefix"; then |
8087 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8088 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8090 | $as_echo_n "checking for $ac_word... " >&6; } | |
8091 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8092 | $as_echo_n "(cached) " >&6 | |
8093 | else | |
8094 | if test -n "$OTOOL"; then | |
8095 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8096 | else | |
8097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8098 | for as_dir in $PATH | |
8099 | do | |
8100 | IFS=$as_save_IFS | |
8101 | test -z "$as_dir" && as_dir=. | |
8102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8104 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8106 | break 2 | |
8107 | fi | |
8108 | done | |
8109 | done | |
8110 | IFS=$as_save_IFS | |
9c60689e | 8111 | |
a243b558 JF |
8112 | fi |
8113 | fi | |
8114 | OTOOL=$ac_cv_prog_OTOOL | |
8115 | if test -n "$OTOOL"; then | |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8117 | $as_echo "$OTOOL" >&6; } | |
8118 | else | |
8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8120 | $as_echo "no" >&6; } | |
8121 | fi | |
9c60689e DWT |
8122 | |
8123 | ||
a243b558 JF |
8124 | fi |
8125 | if test -z "$ac_cv_prog_OTOOL"; then | |
8126 | ac_ct_OTOOL=$OTOOL | |
8127 | # Extract the first word of "otool", so it can be a program name with args. | |
8128 | set dummy otool; ac_word=$2 | |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8130 | $as_echo_n "checking for $ac_word... " >&6; } | |
8131 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8132 | $as_echo_n "(cached) " >&6 | |
8133 | else | |
8134 | if test -n "$ac_ct_OTOOL"; then | |
8135 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8136 | else | |
8137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8138 | for as_dir in $PATH | |
8139 | do | |
8140 | IFS=$as_save_IFS | |
8141 | test -z "$as_dir" && as_dir=. | |
8142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8144 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8146 | break 2 | |
8147 | fi | |
8148 | done | |
8149 | done | |
8150 | IFS=$as_save_IFS | |
9c60689e | 8151 | |
a243b558 JF |
8152 | fi |
8153 | fi | |
8154 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8155 | if test -n "$ac_ct_OTOOL"; then | |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8157 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8158 | else | |
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8160 | $as_echo "no" >&6; } | |
8161 | fi | |
9c60689e | 8162 | |
a243b558 JF |
8163 | if test "x$ac_ct_OTOOL" = x; then |
8164 | OTOOL=":" | |
8165 | else | |
8166 | case $cross_compiling:$ac_tool_warned in | |
8167 | yes:) | |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8170 | ac_tool_warned=yes ;; | |
8171 | esac | |
8172 | OTOOL=$ac_ct_OTOOL | |
8173 | fi | |
8174 | else | |
8175 | OTOOL="$ac_cv_prog_OTOOL" | |
8176 | fi | |
9c60689e | 8177 | |
a243b558 JF |
8178 | if test -n "$ac_tool_prefix"; then |
8179 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8180 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8182 | $as_echo_n "checking for $ac_word... " >&6; } | |
8183 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8184 | $as_echo_n "(cached) " >&6 | |
8185 | else | |
8186 | if test -n "$OTOOL64"; then | |
8187 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8188 | else | |
8189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8190 | for as_dir in $PATH | |
8191 | do | |
8192 | IFS=$as_save_IFS | |
8193 | test -z "$as_dir" && as_dir=. | |
8194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8196 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8198 | break 2 | |
8199 | fi | |
8200 | done | |
8201 | done | |
8202 | IFS=$as_save_IFS | |
9c60689e | 8203 | |
a243b558 JF |
8204 | fi |
8205 | fi | |
8206 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8207 | if test -n "$OTOOL64"; then | |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8209 | $as_echo "$OTOOL64" >&6; } | |
8210 | else | |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8212 | $as_echo "no" >&6; } | |
8213 | fi | |
9c60689e | 8214 | |
9c60689e | 8215 | |
a243b558 JF |
8216 | fi |
8217 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8218 | ac_ct_OTOOL64=$OTOOL64 | |
8219 | # Extract the first word of "otool64", so it can be a program name with args. | |
8220 | set dummy otool64; ac_word=$2 | |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8222 | $as_echo_n "checking for $ac_word... " >&6; } | |
8223 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8224 | $as_echo_n "(cached) " >&6 | |
8225 | else | |
8226 | if test -n "$ac_ct_OTOOL64"; then | |
8227 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8228 | else | |
8229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8230 | for as_dir in $PATH | |
8231 | do | |
8232 | IFS=$as_save_IFS | |
8233 | test -z "$as_dir" && as_dir=. | |
8234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8236 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8238 | break 2 | |
8239 | fi | |
8240 | done | |
8241 | done | |
8242 | IFS=$as_save_IFS | |
9c60689e | 8243 | |
a243b558 JF |
8244 | fi |
8245 | fi | |
8246 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8247 | if test -n "$ac_ct_OTOOL64"; then | |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8249 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8250 | else | |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8252 | $as_echo "no" >&6; } | |
8253 | fi | |
9c60689e | 8254 | |
a243b558 JF |
8255 | if test "x$ac_ct_OTOOL64" = x; then |
8256 | OTOOL64=":" | |
8257 | else | |
8258 | case $cross_compiling:$ac_tool_warned in | |
8259 | yes:) | |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8262 | ac_tool_warned=yes ;; | |
8263 | esac | |
8264 | OTOOL64=$ac_ct_OTOOL64 | |
8265 | fi | |
8266 | else | |
8267 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8268 | fi | |
ee134472 | 8269 | |
9c60689e | 8270 | |
9c60689e | 8271 | |
9c60689e | 8272 | |
9c60689e | 8273 | |
9c60689e | 8274 | |
ee134472 | 8275 | |
9c60689e | 8276 | |
9c60689e | 8277 | |
9c60689e | 8278 | |
9c60689e | 8279 | |
9c60689e | 8280 | |
9c60689e | 8281 | |
9c60689e | 8282 | |
9c60689e | 8283 | |
9c60689e | 8284 | |
9c60689e | 8285 | |
9c60689e | 8286 | |
9c60689e | 8287 | |
9c60689e | 8288 | |
9c60689e | 8289 | |
9c60689e | 8290 | |
9c60689e | 8291 | |
9c60689e | 8292 | |
9c60689e | 8293 | |
a243b558 JF |
8294 | |
8295 | ||
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8297 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8298 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8299 | $as_echo_n "(cached) " >&6 |
8300 | else | |
a243b558 JF |
8301 | lt_cv_apple_cc_single_mod=no |
8302 | if test -z "${LT_MULTI_MODULE}"; then | |
8303 | # By default we will add the -single_module flag. You can override | |
8304 | # by either setting the environment variable LT_MULTI_MODULE | |
8305 | # non-empty at configure time, or by adding -multi_module to the | |
8306 | # link flags. | |
8307 | rm -rf libconftest.dylib* | |
8308 | echo "int foo(void){return 1;}" > conftest.c | |
8309 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8310 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8311 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8312 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8313 | _lt_result=$? | |
8314 | # If there is a non-empty error log, and "single_module" | |
8315 | # appears in it, assume the flag caused a linker warning | |
8316 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8317 | cat conftest.err >&5 | |
8318 | # Otherwise, if the output was created with a 0 exit code from | |
8319 | # the compiler, it worked. | |
8320 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8321 | lt_cv_apple_cc_single_mod=yes | |
8322 | else | |
8323 | cat conftest.err >&5 | |
8324 | fi | |
8325 | rm -rf libconftest.dylib* | |
8326 | rm -f conftest.* | |
8327 | fi | |
ee134472 | 8328 | fi |
a243b558 JF |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8330 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8331 | |
a243b558 JF |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8333 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8334 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8335 | $as_echo_n "(cached) " >&6 |
8336 | else | |
a243b558 JF |
8337 | lt_cv_ld_exported_symbols_list=no |
8338 | save_LDFLAGS=$LDFLAGS | |
8339 | echo "_main" > conftest.sym | |
8340 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8342 | /* end confdefs.h. */ | |
9c60689e | 8343 | |
a243b558 JF |
8344 | int |
8345 | main () | |
8346 | { | |
9c60689e | 8347 | |
a243b558 JF |
8348 | ; |
8349 | return 0; | |
8350 | } | |
8351 | _ACEOF | |
8352 | if ac_fn_c_try_link "$LINENO"; then : | |
8353 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8354 | else |
a243b558 | 8355 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8356 | fi |
a243b558 JF |
8357 | rm -f core conftest.err conftest.$ac_objext \ |
8358 | conftest$ac_exeext conftest.$ac_ext | |
8359 | LDFLAGS="$save_LDFLAGS" | |
9c60689e DWT |
8360 | |
8361 | fi | |
a243b558 JF |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8363 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8364 | |
a243b558 JF |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8366 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8367 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8368 | $as_echo_n "(cached) " >&6 |
8369 | else | |
a243b558 JF |
8370 | lt_cv_ld_force_load=no |
8371 | cat > conftest.c << _LT_EOF | |
8372 | int forced_loaded() { return 2;} | |
8373 | _LT_EOF | |
8374 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8375 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8376 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8377 | $AR cru libconftest.a conftest.o 2>&5 | |
8378 | echo "$RANLIB libconftest.a" >&5 | |
8379 | $RANLIB libconftest.a 2>&5 | |
8380 | cat > conftest.c << _LT_EOF | |
8381 | int main() { return 0;} | |
8382 | _LT_EOF | |
8383 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8384 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8385 | _lt_result=$? | |
8386 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8387 | cat conftest.err >&5 | |
8388 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8389 | lt_cv_ld_force_load=yes | |
8390 | else | |
8391 | cat conftest.err >&5 | |
8392 | fi | |
8393 | rm -f conftest.err libconftest.a conftest conftest.c | |
8394 | rm -rf conftest.dSYM | |
9c60689e DWT |
8395 | |
8396 | fi | |
a243b558 JF |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8398 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8399 | case $host_os in | |
8400 | rhapsody* | darwin1.[012]) | |
8401 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8402 | darwin1.*) | |
8403 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8404 | darwin*) # darwin 5.x on | |
8405 | # if running on 10.5 or later, the deployment target defaults | |
8406 | # to the OS version, if on x86, and 10.4, the deployment | |
8407 | # target defaults to 10.4. Don't you love it? | |
8408 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8409 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8410 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8411 | 10.[012]*) | |
8412 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8413 | 10.*) | |
8414 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8415 | esac | |
8416 | ;; | |
8417 | esac | |
8418 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8419 | _lt_dar_single_mod='$single_module' | |
8420 | fi | |
8421 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8422 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8423 | else | |
8424 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8425 | fi | |
8426 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8427 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8428 | else | |
8429 | _lt_dsymutil= | |
8430 | fi | |
8431 | ;; | |
8432 | esac | |
9c60689e | 8433 | |
a243b558 JF |
8434 | ac_ext=c |
8435 | ac_cpp='$CPP $CPPFLAGS' | |
8436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8440 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8441 | # On Suns, sometimes $CPP names a directory. | |
8442 | if test -n "$CPP" && test -d "$CPP"; then | |
8443 | CPP= | |
9c60689e | 8444 | fi |
a243b558 JF |
8445 | if test -z "$CPP"; then |
8446 | if ${ac_cv_prog_CPP+:} false; then : | |
8447 | $as_echo_n "(cached) " >&6 | |
8448 | else | |
8449 | # Double quotes because CPP needs to be expanded | |
8450 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8451 | do | |
8452 | ac_preproc_ok=false | |
8453 | for ac_c_preproc_warn_flag in '' yes | |
8454 | do | |
8455 | # Use a header file that comes with gcc, so configuring glibc | |
8456 | # with a fresh cross-compiler works. | |
8457 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8458 | # <limits.h> exists even on freestanding compilers. | |
8459 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8460 | # not just through cpp. "Syntax error" is here to catch this case. | |
8461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8462 | /* end confdefs.h. */ | |
8463 | #ifdef __STDC__ | |
8464 | # include <limits.h> | |
8465 | #else | |
8466 | # include <assert.h> | |
8467 | #endif | |
8468 | Syntax error | |
8469 | _ACEOF | |
8470 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8471 | |
a243b558 JF |
8472 | else |
8473 | # Broken: fails on valid input. | |
8474 | continue | |
8475 | fi | |
8476 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8477 | |
a243b558 JF |
8478 | # OK, works on sane cases. Now check whether nonexistent headers |
8479 | # can be detected and how. | |
8480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8481 | /* end confdefs.h. */ | |
8482 | #include <ac_nonexistent.h> | |
8483 | _ACEOF | |
8484 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8485 | # Broken: success on invalid input. | |
8486 | continue | |
8487 | else | |
8488 | # Passes both tests. | |
8489 | ac_preproc_ok=: | |
8490 | break | |
8491 | fi | |
8492 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8493 | |
a243b558 JF |
8494 | done |
8495 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8496 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8497 | if $ac_preproc_ok; then : | |
8498 | break | |
8499 | fi | |
9c60689e | 8500 | |
a243b558 JF |
8501 | done |
8502 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8503 | |
a243b558 JF |
8504 | fi |
8505 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8506 | else |
a243b558 JF |
8507 | ac_cv_prog_CPP=$CPP |
8508 | fi | |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8510 | $as_echo "$CPP" >&6; } | |
8511 | ac_preproc_ok=false | |
8512 | for ac_c_preproc_warn_flag in '' yes | |
8513 | do | |
8514 | # Use a header file that comes with gcc, so configuring glibc | |
8515 | # with a fresh cross-compiler works. | |
8516 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8517 | # <limits.h> exists even on freestanding compilers. | |
8518 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8519 | # not just through cpp. "Syntax error" is here to catch this case. | |
8520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8521 | /* end confdefs.h. */ | |
8522 | #ifdef __STDC__ | |
8523 | # include <limits.h> | |
8524 | #else | |
8525 | # include <assert.h> | |
8526 | #endif | |
8527 | Syntax error | |
8528 | _ACEOF | |
8529 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8530 | |
a243b558 JF |
8531 | else |
8532 | # Broken: fails on valid input. | |
8533 | continue | |
9c60689e | 8534 | fi |
a243b558 | 8535 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8536 | |
a243b558 JF |
8537 | # OK, works on sane cases. Now check whether nonexistent headers |
8538 | # can be detected and how. | |
8539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8540 | /* end confdefs.h. */ | |
8541 | #include <ac_nonexistent.h> | |
8542 | _ACEOF | |
8543 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8544 | # Broken: success on invalid input. | |
8545 | continue | |
8546 | else | |
8547 | # Passes both tests. | |
8548 | ac_preproc_ok=: | |
8549 | break | |
8550 | fi | |
8551 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8552 | |
a243b558 JF |
8553 | done |
8554 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8555 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8556 | if $ac_preproc_ok; then : | |
9c60689e | 8557 | |
a243b558 JF |
8558 | else |
8559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8561 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8562 | See \`config.log' for more details" "$LINENO" 5; } | |
8563 | fi | |
9c60689e | 8564 | |
a243b558 JF |
8565 | ac_ext=c |
8566 | ac_cpp='$CPP $CPPFLAGS' | |
8567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8570 | |
8571 | ||
a243b558 JF |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8573 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8574 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8575 | $as_echo_n "(cached) " >&6 |
8576 | else | |
a243b558 JF |
8577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8578 | /* end confdefs.h. */ | |
8579 | #include <stdlib.h> | |
8580 | #include <stdarg.h> | |
8581 | #include <string.h> | |
8582 | #include <float.h> | |
9c60689e | 8583 | |
a243b558 JF |
8584 | int |
8585 | main () | |
8586 | { | |
9c60689e | 8587 | |
a243b558 JF |
8588 | ; |
8589 | return 0; | |
8590 | } | |
8591 | _ACEOF | |
8592 | if ac_fn_c_try_compile "$LINENO"; then : | |
8593 | ac_cv_header_stdc=yes | |
8594 | else | |
8595 | ac_cv_header_stdc=no | |
9c60689e | 8596 | fi |
a243b558 JF |
8597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8598 | ||
8599 | if test $ac_cv_header_stdc = yes; then | |
8600 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8602 | /* end confdefs.h. */ | |
8603 | #include <string.h> | |
9c60689e | 8604 | |
a243b558 JF |
8605 | _ACEOF |
8606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8607 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8608 | |
a243b558 JF |
8609 | else |
8610 | ac_cv_header_stdc=no | |
8611 | fi | |
8612 | rm -f conftest* | |
9c60689e | 8613 | |
a243b558 JF |
8614 | fi |
8615 | ||
8616 | if test $ac_cv_header_stdc = yes; then | |
8617 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8619 | /* end confdefs.h. */ | |
8620 | #include <stdlib.h> | |
8621 | ||
8622 | _ACEOF | |
8623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8624 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8625 | |
9c60689e | 8626 | else |
a243b558 | 8627 | ac_cv_header_stdc=no |
9c60689e | 8628 | fi |
a243b558 | 8629 | rm -f conftest* |
9c60689e | 8630 | |
a243b558 | 8631 | fi |
9c60689e | 8632 | |
a243b558 JF |
8633 | if test $ac_cv_header_stdc = yes; then |
8634 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8635 | if test "$cross_compiling" = yes; then : | |
8636 | : | |
8637 | else | |
8638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8639 | /* end confdefs.h. */ | |
8640 | #include <ctype.h> | |
8641 | #include <stdlib.h> | |
8642 | #if ((' ' & 0x0FF) == 0x020) | |
8643 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8644 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8645 | #else | |
8646 | # define ISLOWER(c) \ | |
8647 | (('a' <= (c) && (c) <= 'i') \ | |
8648 | || ('j' <= (c) && (c) <= 'r') \ | |
8649 | || ('s' <= (c) && (c) <= 'z')) | |
8650 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8651 | #endif | |
9c60689e | 8652 | |
a243b558 JF |
8653 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8654 | int | |
8655 | main () | |
8656 | { | |
8657 | int i; | |
8658 | for (i = 0; i < 256; i++) | |
8659 | if (XOR (islower (i), ISLOWER (i)) | |
8660 | || toupper (i) != TOUPPER (i)) | |
8661 | return 2; | |
8662 | return 0; | |
8663 | } | |
8664 | _ACEOF | |
8665 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8666 | |
a243b558 JF |
8667 | else |
8668 | ac_cv_header_stdc=no | |
8669 | fi | |
8670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8671 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8672 | fi | |
9c60689e | 8673 | |
a243b558 JF |
8674 | fi |
8675 | fi | |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8677 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8678 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8679 | |
a243b558 | 8680 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8681 | |
a243b558 | 8682 | fi |
9c60689e | 8683 | |
a243b558 JF |
8684 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8685 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8686 | inttypes.h stdint.h unistd.h | |
8687 | do : | |
8688 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8689 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8690 | " | |
8691 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8692 | cat >>confdefs.h <<_ACEOF | |
8693 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8694 | _ACEOF | |
9c60689e | 8695 | |
a243b558 | 8696 | fi |
ee134472 | 8697 | |
a243b558 | 8698 | done |
ee134472 | 8699 | |
9c60689e | 8700 | |
a243b558 JF |
8701 | for ac_header in dlfcn.h |
8702 | do : | |
8703 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8704 | " | |
8705 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8706 | cat >>confdefs.h <<_ACEOF | |
8707 | #define HAVE_DLFCN_H 1 | |
8708 | _ACEOF | |
9c60689e | 8709 | |
a243b558 | 8710 | fi |
9c60689e | 8711 | |
a243b558 | 8712 | done |
9c60689e | 8713 | |
9c60689e | 8714 | |
9c60689e | 8715 | |
9c60689e | 8716 | |
a243b558 JF |
8717 | func_stripname_cnf () |
8718 | { | |
8719 | case ${2} in | |
8720 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8721 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8722 | esac | |
8723 | } # func_stripname_cnf | |
9c60689e | 8724 | |
9c60689e | 8725 | |
ee134472 | 8726 | |
a243b558 JF |
8727 | |
8728 | ||
8729 | # Set options | |
8730 | # Check whether --enable-static was given. | |
8731 | if test "${enable_static+set}" = set; then : | |
8732 | enableval=$enable_static; p=${PACKAGE-default} | |
8733 | case $enableval in | |
8734 | yes) enable_static=yes ;; | |
8735 | no) enable_static=no ;; | |
8736 | *) | |
8737 | enable_static=no | |
8738 | # Look at the argument we got. We use all the common list separators. | |
8739 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8740 | for pkg in $enableval; do | |
8741 | IFS="$lt_save_ifs" | |
8742 | if test "X$pkg" = "X$p"; then | |
8743 | enable_static=yes | |
8744 | fi | |
8745 | done | |
8746 | IFS="$lt_save_ifs" | |
9c60689e | 8747 | ;; |
a243b558 JF |
8748 | esac |
8749 | else | |
8750 | enable_static=no | |
8751 | fi | |
9c60689e | 8752 | |
9c60689e | 8753 | |
9c60689e | 8754 | |
9c60689e | 8755 | |
9c60689e | 8756 | |
9c60689e | 8757 | |
9c60689e | 8758 | |
9c60689e | 8759 | |
9c60689e | 8760 | |
9c60689e | 8761 | |
a243b558 | 8762 | enable_dlopen=no |
9c60689e | 8763 | |
9c60689e | 8764 | |
a243b558 JF |
8765 | enable_win32_dll=no |
8766 | ||
8767 | ||
8768 | # Check whether --enable-shared was given. | |
8769 | if test "${enable_shared+set}" = set; then : | |
8770 | enableval=$enable_shared; p=${PACKAGE-default} | |
8771 | case $enableval in | |
8772 | yes) enable_shared=yes ;; | |
8773 | no) enable_shared=no ;; | |
9c60689e | 8774 | *) |
a243b558 JF |
8775 | enable_shared=no |
8776 | # Look at the argument we got. We use all the common list separators. | |
8777 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8778 | for pkg in $enableval; do | |
8779 | IFS="$lt_save_ifs" | |
8780 | if test "X$pkg" = "X$p"; then | |
8781 | enable_shared=yes | |
8782 | fi | |
8783 | done | |
8784 | IFS="$lt_save_ifs" | |
9c60689e DWT |
8785 | ;; |
8786 | esac | |
a243b558 JF |
8787 | else |
8788 | enable_shared=yes | |
8789 | fi | |
9c60689e | 8790 | |
9c60689e | 8791 | |
9c60689e | 8792 | |
9c60689e | 8793 | |
9c60689e | 8794 | |
9c60689e | 8795 | |
9c60689e | 8796 | |
9c60689e | 8797 | |
9c60689e | 8798 | |
9c60689e | 8799 | |
9c60689e | 8800 | |
a243b558 JF |
8801 | # Check whether --with-pic was given. |
8802 | if test "${with_pic+set}" = set; then : | |
8803 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8804 | case $withval in | |
8805 | yes|no) pic_mode=$withval ;; | |
8806 | *) | |
8807 | pic_mode=default | |
8808 | # Look at the argument we got. We use all the common list separators. | |
8809 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8810 | for lt_pkg in $withval; do | |
8811 | IFS="$lt_save_ifs" | |
8812 | if test "X$lt_pkg" = "X$lt_p"; then | |
8813 | pic_mode=yes | |
8814 | fi | |
8815 | done | |
8816 | IFS="$lt_save_ifs" | |
8817 | ;; | |
8818 | esac | |
8819 | else | |
8820 | pic_mode=default | |
9c60689e | 8821 | fi |
ee134472 | 8822 | |
ee134472 | 8823 | |
a243b558 | 8824 | test -z "$pic_mode" && pic_mode=default |
9c60689e | 8825 | |
9c60689e | 8826 | |
9c60689e | 8827 | |
9c60689e | 8828 | |
ee134472 | 8829 | |
ee134472 | 8830 | |
9c60689e | 8831 | |
a243b558 JF |
8832 | # Check whether --enable-fast-install was given. |
8833 | if test "${enable_fast_install+set}" = set; then : | |
8834 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8835 | case $enableval in | |
8836 | yes) enable_fast_install=yes ;; | |
8837 | no) enable_fast_install=no ;; | |
8838 | *) | |
8839 | enable_fast_install=no | |
8840 | # Look at the argument we got. We use all the common list separators. | |
8841 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8842 | for pkg in $enableval; do | |
8843 | IFS="$lt_save_ifs" | |
8844 | if test "X$pkg" = "X$p"; then | |
8845 | enable_fast_install=yes | |
9c60689e | 8846 | fi |
a243b558 JF |
8847 | done |
8848 | IFS="$lt_save_ifs" | |
9c60689e | 8849 | ;; |
a243b558 JF |
8850 | esac |
8851 | else | |
8852 | enable_fast_install=yes | |
8853 | fi | |
9c60689e | 8854 | |
9c60689e | 8855 | |
9c60689e | 8856 | |
9c60689e | 8857 | |
9c60689e DWT |
8858 | |
8859 | ||
53ba6704 | 8860 | |
9c60689e | 8861 | |
9c60689e | 8862 | |
9c60689e | 8863 | |
9c60689e | 8864 | |
a243b558 JF |
8865 | # This can be used to rebuild libtool when needed |
8866 | LIBTOOL_DEPS="$ltmain" | |
9c60689e | 8867 | |
a243b558 JF |
8868 | # Always use our own libtool. |
8869 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 8870 | |
9c60689e | 8871 | |
9c60689e | 8872 | |
9c60689e | 8873 | |
9c60689e | 8874 | |
ee134472 | 8875 | |
ee134472 | 8876 | |
ee134472 | 8877 | |
ee134472 | 8878 | |
9c60689e | 8879 | |
9c60689e | 8880 | |
9c60689e | 8881 | |
9c60689e | 8882 | |
9c60689e | 8883 | |
9c60689e | 8884 | |
9c60689e | 8885 | |
9c60689e | 8886 | |
9c60689e | 8887 | |
9c60689e | 8888 | |
9c60689e | 8889 | |
9c60689e | 8890 | |
9c60689e | 8891 | |
9c60689e | 8892 | |
9c60689e | 8893 | |
9c60689e | 8894 | |
9c60689e | 8895 | |
9c60689e | 8896 | |
9c60689e | 8897 | |
9c60689e | 8898 | |
9c60689e | 8899 | |
a243b558 | 8900 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
8901 | |
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | ||
a243b558 JF |
8915 | if test -n "${ZSH_VERSION+set}" ; then |
8916 | setopt NO_GLOB_SUBST | |
8917 | fi | |
9c60689e | 8918 | |
a243b558 JF |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8920 | $as_echo_n "checking for objdir... " >&6; } | |
8921 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
8922 | $as_echo_n "(cached) " >&6 |
8923 | else | |
a243b558 JF |
8924 | rm -f .libs 2>/dev/null |
8925 | mkdir .libs 2>/dev/null | |
8926 | if test -d .libs; then | |
8927 | lt_cv_objdir=.libs | |
8928 | else | |
8929 | # MS-DOS does not allow filenames that begin with a dot. | |
8930 | lt_cv_objdir=_libs | |
ee134472 | 8931 | fi |
a243b558 JF |
8932 | rmdir .libs 2>/dev/null |
8933 | fi | |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8935 | $as_echo "$lt_cv_objdir" >&6; } | |
8936 | objdir=$lt_cv_objdir | |
9c60689e DWT |
8937 | |
8938 | ||
8939 | ||
8940 | ||
8941 | ||
a243b558 JF |
8942 | cat >>confdefs.h <<_ACEOF |
8943 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8944 | _ACEOF | |
9c60689e DWT |
8945 | |
8946 | ||
8947 | ||
8948 | ||
a243b558 JF |
8949 | case $host_os in |
8950 | aix3*) | |
8951 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8952 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8953 | # vanish in a puff of smoke. | |
8954 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8955 | COLLECT_NAMES= | |
8956 | export COLLECT_NAMES | |
8957 | fi | |
8958 | ;; | |
8959 | esac | |
9c60689e | 8960 | |
a243b558 JF |
8961 | # Global variables: |
8962 | ofile=libtool | |
8963 | can_build_shared=yes | |
9c60689e | 8964 | |
a243b558 JF |
8965 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8966 | # which needs '.lib'). | |
8967 | libext=a | |
9c60689e | 8968 | |
a243b558 | 8969 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
9c60689e | 8970 | |
a243b558 JF |
8971 | old_CC="$CC" |
8972 | old_CFLAGS="$CFLAGS" | |
9c60689e | 8973 | |
a243b558 JF |
8974 | # Set sane defaults for various variables |
8975 | test -z "$CC" && CC=cc | |
8976 | test -z "$LTCC" && LTCC=$CC | |
8977 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8978 | test -z "$LD" && LD=ld | |
8979 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 8980 | |
a243b558 JF |
8981 | for cc_temp in $compiler""; do |
8982 | case $cc_temp in | |
8983 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8984 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8985 | \-*) ;; | |
8986 | *) break;; | |
8987 | esac | |
8988 | done | |
8989 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9c60689e DWT |
8990 | |
8991 | ||
a243b558 JF |
8992 | # Only perform the check for file, if the check method requires it |
8993 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8994 | case $deplibs_check_method in | |
8995 | file_magic*) | |
8996 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8998 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8999 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9000 | $as_echo_n "(cached) " >&6 | |
9001 | else | |
9002 | case $MAGIC_CMD in | |
9003 | [\\/*] | ?:[\\/]*) | |
9004 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9005 | ;; | |
9006 | *) | |
9007 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9008 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9009 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9010 | for ac_dir in $ac_dummy; do | |
9011 | IFS="$lt_save_ifs" | |
9012 | test -z "$ac_dir" && ac_dir=. | |
9013 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9014 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9015 | if test -n "$file_magic_test_file"; then | |
9016 | case $deplibs_check_method in | |
9017 | "file_magic "*) | |
9018 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9019 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9020 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9021 | $EGREP "$file_magic_regex" > /dev/null; then | |
9022 | : | |
9023 | else | |
9024 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9025 | |
a243b558 JF |
9026 | *** Warning: the command libtool uses to detect shared libraries, |
9027 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9028 | *** The result is that libtool may fail to recognize shared libraries | |
9029 | *** as such. This will affect the creation of libtool libraries that | |
9030 | *** depend on shared libraries, but programs linked with such libtool | |
9031 | *** libraries will work regardless of this problem. Nevertheless, you | |
9032 | *** may want to report the problem to your system manager and/or to | |
9033 | *** bug-libtool@gnu.org | |
9c60689e | 9034 | |
a243b558 JF |
9035 | _LT_EOF |
9036 | fi ;; | |
9037 | esac | |
9038 | fi | |
9039 | break | |
9040 | fi | |
9041 | done | |
9042 | IFS="$lt_save_ifs" | |
9043 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9044 | ;; | |
9045 | esac | |
9046 | fi | |
9c60689e | 9047 | |
a243b558 JF |
9048 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9049 | if test -n "$MAGIC_CMD"; then | |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9051 | $as_echo "$MAGIC_CMD" >&6; } | |
9052 | else | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9054 | $as_echo "no" >&6; } | |
9055 | fi | |
9c60689e DWT |
9056 | |
9057 | ||
9058 | ||
9059 | ||
9060 | ||
a243b558 JF |
9061 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9062 | if test -n "$ac_tool_prefix"; then | |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9064 | $as_echo_n "checking for file... " >&6; } | |
9065 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9066 | $as_echo_n "(cached) " >&6 | |
9067 | else | |
9068 | case $MAGIC_CMD in | |
9069 | [\\/*] | ?:[\\/]*) | |
9070 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9071 | ;; | |
9072 | *) | |
9073 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9074 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9075 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9076 | for ac_dir in $ac_dummy; do | |
9077 | IFS="$lt_save_ifs" | |
9078 | test -z "$ac_dir" && ac_dir=. | |
9079 | if test -f $ac_dir/file; then | |
9080 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9081 | if test -n "$file_magic_test_file"; then | |
9082 | case $deplibs_check_method in | |
9083 | "file_magic "*) | |
9084 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9085 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9086 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9087 | $EGREP "$file_magic_regex" > /dev/null; then | |
9088 | : | |
9089 | else | |
9090 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9091 | |
a243b558 JF |
9092 | *** Warning: the command libtool uses to detect shared libraries, |
9093 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9094 | *** The result is that libtool may fail to recognize shared libraries | |
9095 | *** as such. This will affect the creation of libtool libraries that | |
9096 | *** depend on shared libraries, but programs linked with such libtool | |
9097 | *** libraries will work regardless of this problem. Nevertheless, you | |
9098 | *** may want to report the problem to your system manager and/or to | |
9099 | *** bug-libtool@gnu.org | |
9c60689e | 9100 | |
a243b558 JF |
9101 | _LT_EOF |
9102 | fi ;; | |
9103 | esac | |
9104 | fi | |
9105 | break | |
9106 | fi | |
9107 | done | |
9108 | IFS="$lt_save_ifs" | |
9109 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9110 | ;; | |
9111 | esac | |
9112 | fi | |
9c60689e | 9113 | |
a243b558 JF |
9114 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9115 | if test -n "$MAGIC_CMD"; then | |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9117 | $as_echo "$MAGIC_CMD" >&6; } | |
9118 | else | |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9120 | $as_echo "no" >&6; } | |
9121 | fi | |
9c60689e DWT |
9122 | |
9123 | ||
a243b558 JF |
9124 | else |
9125 | MAGIC_CMD=: | |
9126 | fi | |
9127 | fi | |
9c60689e | 9128 | |
a243b558 JF |
9129 | fi |
9130 | ;; | |
9131 | esac | |
9c60689e | 9132 | |
a243b558 | 9133 | # Use C for the default configuration in the libtool script |
9c60689e | 9134 | |
a243b558 JF |
9135 | lt_save_CC="$CC" |
9136 | ac_ext=c | |
9137 | ac_cpp='$CPP $CPPFLAGS' | |
9138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
9141 | |
9142 | ||
a243b558 JF |
9143 | # Source file extension for C test sources. |
9144 | ac_ext=c | |
9c60689e | 9145 | |
a243b558 JF |
9146 | # Object file extension for compiled C test sources. |
9147 | objext=o | |
9148 | objext=$objext | |
9c60689e | 9149 | |
a243b558 JF |
9150 | # Code to be used in simple compile tests |
9151 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9152 | |
a243b558 JF |
9153 | # Code to be used in simple link tests |
9154 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9155 | |
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
a243b558 JF |
9162 | # If no C compiler was specified, use CC. |
9163 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9164 | |
a243b558 JF |
9165 | # If no C compiler flags were specified, use CFLAGS. |
9166 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9167 | |
a243b558 JF |
9168 | # Allow CC to be a program name with arguments. |
9169 | compiler=$CC | |
9c60689e | 9170 | |
a243b558 JF |
9171 | # Save the default compiler, since it gets overwritten when the other |
9172 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9173 | compiler_DEFAULT=$CC | |
9c60689e | 9174 | |
a243b558 JF |
9175 | # save warnings/boilerplate of simple test code |
9176 | ac_outfile=conftest.$ac_objext | |
9177 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9178 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9179 | _lt_compiler_boilerplate=`cat conftest.err` | |
a93f15c0 | 9180 | $RM conftest* |
9c60689e | 9181 | |
a243b558 JF |
9182 | ac_outfile=conftest.$ac_objext |
9183 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9184 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9185 | _lt_linker_boilerplate=`cat conftest.err` | |
9186 | $RM -r conftest* | |
9c60689e DWT |
9187 | |
9188 | ||
a243b558 JF |
9189 | ## CAVEAT EMPTOR: |
9190 | ## There is no encapsulation within the following macros, do not change | |
9191 | ## the running order or otherwise move them around unless you know exactly | |
9192 | ## what you are doing... | |
9193 | if test -n "$compiler"; then | |
9c60689e | 9194 | |
a243b558 | 9195 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9196 | |
a243b558 JF |
9197 | if test "$GCC" = yes; then |
9198 | case $cc_basename in | |
9199 | nvcc*) | |
9200 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9201 | *) | |
9202 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9203 | esac | |
9c60689e | 9204 | |
a243b558 JF |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9206 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9207 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9208 | $as_echo_n "(cached) " >&6 | |
9209 | else | |
9210 | lt_cv_prog_compiler_rtti_exceptions=no | |
9211 | ac_outfile=conftest.$ac_objext | |
9212 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9213 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9214 | # Insert the option either (1) after the last *FLAGS variable, or | |
9215 | # (2) before a word containing "conftest.", or (3) at the end. | |
9216 | # Note that $ac_compile itself does not contain backslashes and begins | |
9217 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9218 | # The option is referenced via a variable to avoid confusing sed. | |
9219 | lt_compile=`echo "$ac_compile" | $SED \ | |
9220 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9221 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9222 | -e 's:$: $lt_compiler_flag:'` | |
9223 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9224 | (eval "$lt_compile" 2>conftest.err) | |
9225 | ac_status=$? | |
9226 | cat conftest.err >&5 | |
9227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9228 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9229 | # The compiler can only warn and ignore the option if not recognized | |
9230 | # So say no if there are warnings other than the usual output. | |
9231 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9232 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9233 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9234 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9235 | fi | |
9236 | fi | |
a93f15c0 | 9237 | $RM conftest* |
9c60689e | 9238 | |
a243b558 JF |
9239 | fi |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9241 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9242 | |
a243b558 JF |
9243 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9244 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9245 | else | |
9246 | : | |
9247 | fi | |
9c60689e | 9248 | |
a243b558 | 9249 | fi |
9c60689e DWT |
9250 | |
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
a243b558 JF |
9256 | lt_prog_compiler_wl= |
9257 | lt_prog_compiler_pic= | |
9258 | lt_prog_compiler_static= | |
9c60689e DWT |
9259 | |
9260 | ||
a243b558 JF |
9261 | if test "$GCC" = yes; then |
9262 | lt_prog_compiler_wl='-Wl,' | |
9263 | lt_prog_compiler_static='-static' | |
9c60689e | 9264 | |
a243b558 JF |
9265 | case $host_os in |
9266 | aix*) | |
9267 | # All AIX code is PIC. | |
9268 | if test "$host_cpu" = ia64; then | |
9269 | # AIX 5 now supports IA64 processor | |
9270 | lt_prog_compiler_static='-Bstatic' | |
9271 | fi | |
9272 | ;; | |
9c60689e | 9273 | |
a243b558 JF |
9274 | amigaos*) |
9275 | case $host_cpu in | |
9276 | powerpc) | |
9277 | # see comment about AmigaOS4 .so support | |
9278 | lt_prog_compiler_pic='-fPIC' | |
9279 | ;; | |
9280 | m68k) | |
9281 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9282 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9283 | # like `-m68040'. | |
9284 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9285 | ;; | |
9286 | esac | |
9287 | ;; | |
9c60689e | 9288 | |
a243b558 JF |
9289 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9290 | # PIC is the default for these OSes. | |
9291 | ;; | |
9c60689e | 9292 | |
a243b558 JF |
9293 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9294 | # This hack is so that the source file can tell whether it is being | |
9295 | # built for inclusion in a dll (and should export symbols for example). | |
9296 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9297 | # (--disable-auto-import) libraries | |
9298 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9299 | ;; | |
9c60689e | 9300 | |
a243b558 JF |
9301 | darwin* | rhapsody*) |
9302 | # PIC is the default on this platform | |
9303 | # Common symbols not allowed in MH_DYLIB files | |
9304 | lt_prog_compiler_pic='-fno-common' | |
9305 | ;; | |
9c60689e | 9306 | |
a243b558 JF |
9307 | haiku*) |
9308 | # PIC is the default for Haiku. | |
9309 | # The "-static" flag exists, but is broken. | |
9310 | lt_prog_compiler_static= | |
9311 | ;; | |
9c60689e | 9312 | |
a243b558 JF |
9313 | hpux*) |
9314 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9315 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9316 | # sets the default TLS model and affects inlining. | |
9317 | case $host_cpu in | |
9318 | hppa*64*) | |
9319 | # +Z the default | |
9320 | ;; | |
9321 | *) | |
9322 | lt_prog_compiler_pic='-fPIC' | |
9323 | ;; | |
9324 | esac | |
9325 | ;; | |
9c60689e | 9326 | |
a243b558 JF |
9327 | interix[3-9]*) |
9328 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9329 | # Instead, we relocate shared libraries at runtime. | |
9330 | ;; | |
9c60689e | 9331 | |
a243b558 JF |
9332 | msdosdjgpp*) |
9333 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9334 | # on systems that don't support them. | |
9335 | lt_prog_compiler_can_build_shared=no | |
9336 | enable_shared=no | |
9337 | ;; | |
9c60689e | 9338 | |
a243b558 JF |
9339 | *nto* | *qnx*) |
9340 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9341 | # it will coredump. | |
9342 | lt_prog_compiler_pic='-fPIC -shared' | |
9343 | ;; | |
9c60689e | 9344 | |
a243b558 JF |
9345 | sysv4*MP*) |
9346 | if test -d /usr/nec; then | |
9347 | lt_prog_compiler_pic=-Kconform_pic | |
9348 | fi | |
9349 | ;; | |
9c60689e | 9350 | |
a243b558 JF |
9351 | *) |
9352 | lt_prog_compiler_pic='-fPIC' | |
9353 | ;; | |
9354 | esac | |
9c60689e | 9355 | |
a243b558 JF |
9356 | case $cc_basename in |
9357 | nvcc*) # Cuda Compiler Driver 2.2 | |
9358 | lt_prog_compiler_wl='-Xlinker ' | |
9359 | if test -n "$lt_prog_compiler_pic"; then | |
9360 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9361 | fi | |
9362 | ;; | |
9363 | esac | |
9364 | else | |
9365 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9366 | case $host_os in | |
9367 | aix*) | |
9368 | lt_prog_compiler_wl='-Wl,' | |
9369 | if test "$host_cpu" = ia64; then | |
9370 | # AIX 5 now supports IA64 processor | |
9371 | lt_prog_compiler_static='-Bstatic' | |
9372 | else | |
9373 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9374 | fi | |
9375 | ;; | |
9c60689e | 9376 | |
a243b558 JF |
9377 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9378 | # This hack is so that the source file can tell whether it is being | |
9379 | # built for inclusion in a dll (and should export symbols for example). | |
9380 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9381 | ;; | |
9c60689e | 9382 | |
a243b558 JF |
9383 | hpux9* | hpux10* | hpux11*) |
9384 | lt_prog_compiler_wl='-Wl,' | |
9385 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9386 | # not for PA HP-UX. | |
9387 | case $host_cpu in | |
9388 | hppa*64*|ia64*) | |
9389 | # +Z the default | |
9390 | ;; | |
9391 | *) | |
9392 | lt_prog_compiler_pic='+Z' | |
9393 | ;; | |
9394 | esac | |
9395 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9396 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9397 | ;; | |
9c60689e | 9398 | |
a243b558 JF |
9399 | irix5* | irix6* | nonstopux*) |
9400 | lt_prog_compiler_wl='-Wl,' | |
9401 | # PIC (with -KPIC) is the default. | |
9402 | lt_prog_compiler_static='-non_shared' | |
9403 | ;; | |
9c60689e | 9404 | |
a243b558 JF |
9405 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9406 | case $cc_basename in | |
9407 | # old Intel for x86_64 which still supported -KPIC. | |
9408 | ecc*) | |
9409 | lt_prog_compiler_wl='-Wl,' | |
9410 | lt_prog_compiler_pic='-KPIC' | |
9411 | lt_prog_compiler_static='-static' | |
9412 | ;; | |
9413 | # icc used to be incompatible with GCC. | |
9414 | # ICC 10 doesn't accept -KPIC any more. | |
9415 | icc* | ifort*) | |
9416 | lt_prog_compiler_wl='-Wl,' | |
9417 | lt_prog_compiler_pic='-fPIC' | |
9418 | lt_prog_compiler_static='-static' | |
9419 | ;; | |
9420 | # Lahey Fortran 8.1. | |
9421 | lf95*) | |
9422 | lt_prog_compiler_wl='-Wl,' | |
9423 | lt_prog_compiler_pic='--shared' | |
9424 | lt_prog_compiler_static='--static' | |
9425 | ;; | |
9426 | nagfor*) | |
9427 | # NAG Fortran compiler | |
9428 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9429 | lt_prog_compiler_pic='-PIC' | |
9430 | lt_prog_compiler_static='-Bstatic' | |
9431 | ;; | |
9432 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9433 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9434 | # which looks to be a dead project) | |
9435 | lt_prog_compiler_wl='-Wl,' | |
9436 | lt_prog_compiler_pic='-fpic' | |
9437 | lt_prog_compiler_static='-Bstatic' | |
9438 | ;; | |
9439 | ccc*) | |
9440 | lt_prog_compiler_wl='-Wl,' | |
9441 | # All Alpha code is PIC. | |
9442 | lt_prog_compiler_static='-non_shared' | |
9443 | ;; | |
9444 | xl* | bgxl* | bgf* | mpixl*) | |
9445 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9446 | lt_prog_compiler_wl='-Wl,' | |
9447 | lt_prog_compiler_pic='-qpic' | |
9448 | lt_prog_compiler_static='-qstaticlink' | |
9449 | ;; | |
9450 | *) | |
9451 | case `$CC -V 2>&1 | sed 5q` in | |
9452 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9453 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9454 | lt_prog_compiler_pic='-KPIC' | |
9455 | lt_prog_compiler_static='-Bstatic' | |
9456 | lt_prog_compiler_wl='' | |
9457 | ;; | |
9458 | *Sun\ F* | *Sun*Fortran*) | |
9459 | lt_prog_compiler_pic='-KPIC' | |
9460 | lt_prog_compiler_static='-Bstatic' | |
9461 | lt_prog_compiler_wl='-Qoption ld ' | |
9462 | ;; | |
9463 | *Sun\ C*) | |
9464 | # Sun C 5.9 | |
9465 | lt_prog_compiler_pic='-KPIC' | |
9466 | lt_prog_compiler_static='-Bstatic' | |
9467 | lt_prog_compiler_wl='-Wl,' | |
9468 | ;; | |
9469 | *Intel*\ [CF]*Compiler*) | |
9470 | lt_prog_compiler_wl='-Wl,' | |
9471 | lt_prog_compiler_pic='-fPIC' | |
9472 | lt_prog_compiler_static='-static' | |
9473 | ;; | |
9474 | *Portland\ Group*) | |
9475 | lt_prog_compiler_wl='-Wl,' | |
9476 | lt_prog_compiler_pic='-fpic' | |
9477 | lt_prog_compiler_static='-Bstatic' | |
9478 | ;; | |
9479 | esac | |
9480 | ;; | |
9481 | esac | |
9482 | ;; | |
9c60689e | 9483 | |
a243b558 JF |
9484 | newsos6) |
9485 | lt_prog_compiler_pic='-KPIC' | |
9486 | lt_prog_compiler_static='-Bstatic' | |
9487 | ;; | |
9c60689e | 9488 | |
a243b558 JF |
9489 | *nto* | *qnx*) |
9490 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9491 | # it will coredump. | |
9492 | lt_prog_compiler_pic='-fPIC -shared' | |
9493 | ;; | |
9c60689e | 9494 | |
a243b558 JF |
9495 | osf3* | osf4* | osf5*) |
9496 | lt_prog_compiler_wl='-Wl,' | |
9497 | # All OSF/1 code is PIC. | |
9498 | lt_prog_compiler_static='-non_shared' | |
9499 | ;; | |
9c60689e | 9500 | |
a243b558 JF |
9501 | rdos*) |
9502 | lt_prog_compiler_static='-non_shared' | |
9503 | ;; | |
9c60689e | 9504 | |
a243b558 JF |
9505 | solaris*) |
9506 | lt_prog_compiler_pic='-KPIC' | |
9507 | lt_prog_compiler_static='-Bstatic' | |
9508 | case $cc_basename in | |
9509 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9510 | lt_prog_compiler_wl='-Qoption ld ';; | |
9511 | *) | |
9512 | lt_prog_compiler_wl='-Wl,';; | |
9513 | esac | |
9514 | ;; | |
9c60689e | 9515 | |
a243b558 JF |
9516 | sunos4*) |
9517 | lt_prog_compiler_wl='-Qoption ld ' | |
9518 | lt_prog_compiler_pic='-PIC' | |
9519 | lt_prog_compiler_static='-Bstatic' | |
9520 | ;; | |
9c60689e | 9521 | |
a243b558 JF |
9522 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9523 | lt_prog_compiler_wl='-Wl,' | |
9524 | lt_prog_compiler_pic='-KPIC' | |
9525 | lt_prog_compiler_static='-Bstatic' | |
9526 | ;; | |
9c60689e | 9527 | |
a243b558 JF |
9528 | sysv4*MP*) |
9529 | if test -d /usr/nec ;then | |
9530 | lt_prog_compiler_pic='-Kconform_pic' | |
9531 | lt_prog_compiler_static='-Bstatic' | |
9532 | fi | |
9533 | ;; | |
9c60689e | 9534 | |
a243b558 JF |
9535 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9536 | lt_prog_compiler_wl='-Wl,' | |
9537 | lt_prog_compiler_pic='-KPIC' | |
9538 | lt_prog_compiler_static='-Bstatic' | |
9539 | ;; | |
9c60689e | 9540 | |
a243b558 JF |
9541 | unicos*) |
9542 | lt_prog_compiler_wl='-Wl,' | |
9543 | lt_prog_compiler_can_build_shared=no | |
9544 | ;; | |
9c60689e | 9545 | |
a243b558 JF |
9546 | uts4*) |
9547 | lt_prog_compiler_pic='-pic' | |
9548 | lt_prog_compiler_static='-Bstatic' | |
9549 | ;; | |
9c60689e | 9550 | |
a243b558 JF |
9551 | *) |
9552 | lt_prog_compiler_can_build_shared=no | |
9553 | ;; | |
9554 | esac | |
9555 | fi | |
9c60689e | 9556 | |
a243b558 JF |
9557 | case $host_os in |
9558 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9559 | *djgpp*) | |
9560 | lt_prog_compiler_pic= | |
9561 | ;; | |
9562 | *) | |
9563 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9564 | ;; | |
9565 | esac | |
9c60689e | 9566 | |
a243b558 JF |
9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9568 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9569 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9570 | $as_echo_n "(cached) " >&6 | |
9571 | else | |
9572 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9573 | fi | |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9575 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9576 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9577 | |
a243b558 JF |
9578 | # |
9579 | # Check to make sure the PIC flag actually works. | |
9580 | # | |
9581 | if test -n "$lt_prog_compiler_pic"; then | |
9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9583 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9584 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9585 | $as_echo_n "(cached) " >&6 | |
9586 | else | |
9587 | lt_cv_prog_compiler_pic_works=no | |
9588 | ac_outfile=conftest.$ac_objext | |
9589 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9590 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9591 | # Insert the option either (1) after the last *FLAGS variable, or | |
9592 | # (2) before a word containing "conftest.", or (3) at the end. | |
9593 | # Note that $ac_compile itself does not contain backslashes and begins | |
9594 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9595 | # The option is referenced via a variable to avoid confusing sed. | |
9596 | lt_compile=`echo "$ac_compile" | $SED \ | |
9597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9599 | -e 's:$: $lt_compiler_flag:'` | |
9600 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9601 | (eval "$lt_compile" 2>conftest.err) | |
9602 | ac_status=$? | |
9603 | cat conftest.err >&5 | |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9605 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9606 | # The compiler can only warn and ignore the option if not recognized | |
9607 | # So say no if there are warnings other than the usual output. | |
9608 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9609 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9610 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9611 | lt_cv_prog_compiler_pic_works=yes | |
9612 | fi | |
9613 | fi | |
a93f15c0 | 9614 | $RM conftest* |
9c60689e | 9615 | |
a243b558 JF |
9616 | fi |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9618 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9619 | |
a243b558 JF |
9620 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9621 | case $lt_prog_compiler_pic in | |
9622 | "" | " "*) ;; | |
9623 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9624 | esac | |
9625 | else | |
9626 | lt_prog_compiler_pic= | |
9627 | lt_prog_compiler_can_build_shared=no | |
9628 | fi | |
9c60689e | 9629 | |
a243b558 | 9630 | fi |
9c60689e DWT |
9631 | |
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9c60689e DWT |
9637 | |
9638 | ||
9639 | ||
9640 | ||
9641 | ||
a243b558 JF |
9642 | # |
9643 | # Check to make sure the static flag actually works. | |
9644 | # | |
9645 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9647 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9648 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9649 | $as_echo_n "(cached) " >&6 | |
9650 | else | |
9651 | lt_cv_prog_compiler_static_works=no | |
9652 | save_LDFLAGS="$LDFLAGS" | |
9653 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9654 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9655 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9656 | # The linker can only warn and ignore the option if not recognized | |
9657 | # So say no if there are warnings | |
9658 | if test -s conftest.err; then | |
9659 | # Append any errors to the config.log. | |
9660 | cat conftest.err 1>&5 | |
9661 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9662 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9663 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9664 | lt_cv_prog_compiler_static_works=yes | |
9665 | fi | |
9666 | else | |
9667 | lt_cv_prog_compiler_static_works=yes | |
9668 | fi | |
9669 | fi | |
9670 | $RM -r conftest* | |
9671 | LDFLAGS="$save_LDFLAGS" | |
9c60689e | 9672 | |
a243b558 JF |
9673 | fi |
9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9675 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9676 | |
a243b558 JF |
9677 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9678 | : | |
9c60689e | 9679 | else |
a243b558 | 9680 | lt_prog_compiler_static= |
9c60689e | 9681 | fi |
9c60689e | 9682 | |
9c60689e | 9683 | |
9c60689e | 9684 | |
9c60689e | 9685 | |
9c60689e | 9686 | |
9c60689e | 9687 | |
9c60689e | 9688 | |
a243b558 JF |
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9690 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9691 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9692 | $as_echo_n "(cached) " >&6 | |
9693 | else | |
9694 | lt_cv_prog_compiler_c_o=no | |
9695 | $RM -r conftest 2>/dev/null | |
9696 | mkdir conftest | |
9697 | cd conftest | |
9698 | mkdir out | |
9699 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9700 | |
a243b558 JF |
9701 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9702 | # Insert the option either (1) after the last *FLAGS variable, or | |
9703 | # (2) before a word containing "conftest.", or (3) at the end. | |
9704 | # Note that $ac_compile itself does not contain backslashes and begins | |
9705 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9706 | lt_compile=`echo "$ac_compile" | $SED \ | |
9707 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9708 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9709 | -e 's:$: $lt_compiler_flag:'` | |
9710 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9711 | (eval "$lt_compile" 2>out/conftest.err) | |
9712 | ac_status=$? | |
9713 | cat out/conftest.err >&5 | |
9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9715 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9716 | then | |
9717 | # The compiler can only warn and ignore the option if not recognized | |
9718 | # So say no if there are warnings | |
9719 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9720 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9721 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9722 | lt_cv_prog_compiler_c_o=yes | |
9723 | fi | |
9724 | fi | |
9725 | chmod u+w . 2>&5 | |
a93f15c0 | 9726 | $RM conftest* |
a243b558 JF |
9727 | # SGI C++ compiler will create directory out/ii_files/ for |
9728 | # template instantiation | |
9729 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9730 | $RM out/* && rmdir out | |
9731 | cd .. | |
9732 | $RM -r conftest | |
a93f15c0 | 9733 | $RM conftest* |
9c60689e | 9734 | |
a243b558 JF |
9735 | fi |
9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9737 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9738 | |
ee134472 | 9739 | |
ee134472 | 9740 | |
ee134472 | 9741 | |
ee134472 | 9742 | |
9c60689e | 9743 | |
a243b558 JF |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9745 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9746 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9747 | $as_echo_n "(cached) " >&6 | |
9748 | else | |
9749 | lt_cv_prog_compiler_c_o=no | |
9750 | $RM -r conftest 2>/dev/null | |
9751 | mkdir conftest | |
9752 | cd conftest | |
9753 | mkdir out | |
9754 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9755 | |
a243b558 JF |
9756 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9757 | # Insert the option either (1) after the last *FLAGS variable, or | |
9758 | # (2) before a word containing "conftest.", or (3) at the end. | |
9759 | # Note that $ac_compile itself does not contain backslashes and begins | |
9760 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9761 | lt_compile=`echo "$ac_compile" | $SED \ | |
9762 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9763 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9764 | -e 's:$: $lt_compiler_flag:'` | |
9765 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9766 | (eval "$lt_compile" 2>out/conftest.err) | |
9767 | ac_status=$? | |
9768 | cat out/conftest.err >&5 | |
9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9770 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9771 | then | |
9772 | # The compiler can only warn and ignore the option if not recognized | |
9773 | # So say no if there are warnings | |
9774 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9775 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9776 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9777 | lt_cv_prog_compiler_c_o=yes | |
9778 | fi | |
9779 | fi | |
9780 | chmod u+w . 2>&5 | |
a93f15c0 | 9781 | $RM conftest* |
a243b558 JF |
9782 | # SGI C++ compiler will create directory out/ii_files/ for |
9783 | # template instantiation | |
9784 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9785 | $RM out/* && rmdir out | |
9786 | cd .. | |
9787 | $RM -r conftest | |
a93f15c0 | 9788 | $RM conftest* |
9c60689e | 9789 | |
a243b558 JF |
9790 | fi |
9791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9792 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9793 | |
9c60689e | 9794 | |
a243b558 JF |
9795 | |
9796 | ||
9797 | hard_links="nottested" | |
9798 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9799 | # do not overwrite the value of need_locks provided by the user | |
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9801 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9802 | hard_links=yes | |
a93f15c0 | 9803 | $RM conftest* |
a243b558 JF |
9804 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9805 | touch conftest.a | |
9806 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9807 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9809 | $as_echo "$hard_links" >&6; } | |
9810 | if test "$hard_links" = no; then | |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9812 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9813 | need_locks=warn | |
9c60689e | 9814 | fi |
a243b558 JF |
9815 | else |
9816 | need_locks=no | |
9817 | fi | |
9c60689e | 9818 | |
ee134472 | 9819 | |
9c60689e | 9820 | |
9c60689e | 9821 | |
9c60689e | 9822 | |
a243b558 JF |
9823 | |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9825 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9826 | ||
9827 | runpath_var= | |
9828 | allow_undefined_flag= | |
9829 | always_export_symbols=no | |
9830 | archive_cmds= | |
9831 | archive_expsym_cmds= | |
9832 | compiler_needs_object=no | |
9833 | enable_shared_with_static_runtimes=no | |
9834 | export_dynamic_flag_spec= | |
9835 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9836 | hardcode_automatic=no | |
9837 | hardcode_direct=no | |
9838 | hardcode_direct_absolute=no | |
9839 | hardcode_libdir_flag_spec= | |
9840 | hardcode_libdir_separator= | |
9841 | hardcode_minus_L=no | |
9842 | hardcode_shlibpath_var=unsupported | |
9843 | inherit_rpath=no | |
9844 | link_all_deplibs=unknown | |
9845 | module_cmds= | |
9846 | module_expsym_cmds= | |
9847 | old_archive_from_new_cmds= | |
9848 | old_archive_from_expsyms_cmds= | |
9849 | thread_safe_flag_spec= | |
9850 | whole_archive_flag_spec= | |
9851 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9852 | # included in the symbol list | |
9853 | include_expsyms= | |
9854 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9855 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9856 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9857 | # as well as any symbol that contains `d'. | |
9858 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9859 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9860 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9861 | # the symbol is explicitly referenced. Since portable code cannot | |
9862 | # rely on this symbol name, it's probably fine to never include it in | |
9863 | # preloaded symbol tables. | |
9864 | # Exclude shared library initialization/finalization symbols. | |
9865 | extract_expsyms_cmds= | |
9866 | ||
9c60689e | 9867 | case $host_os in |
a243b558 JF |
9868 | cygwin* | mingw* | pw32* | cegcc*) |
9869 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9870 | # When not using gcc, we currently assume that we are using | |
9871 | # Microsoft Visual C++. | |
9872 | if test "$GCC" != yes; then | |
9873 | with_gnu_ld=no | |
9874 | fi | |
9c60689e | 9875 | ;; |
a243b558 JF |
9876 | interix*) |
9877 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9878 | with_gnu_ld=yes | |
9879 | ;; | |
9880 | openbsd*) | |
9881 | with_gnu_ld=no | |
9c60689e DWT |
9882 | ;; |
9883 | esac | |
9c60689e | 9884 | |
a243b558 | 9885 | ld_shlibs=yes |
ee134472 | 9886 | |
a243b558 JF |
9887 | # On some targets, GNU ld is compatible enough with the native linker |
9888 | # that we're better off using the native interface for both. | |
9889 | lt_use_gnu_ld_interface=no | |
9890 | if test "$with_gnu_ld" = yes; then | |
9891 | case $host_os in | |
9892 | aix*) | |
9893 | # The AIX port of GNU ld has always aspired to compatibility | |
9894 | # with the native linker. However, as the warning in the GNU ld | |
9895 | # block says, versions before 2.19.5* couldn't really create working | |
9896 | # shared libraries, regardless of the interface used. | |
9897 | case `$LD -v 2>&1` in | |
9898 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9899 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9900 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9901 | *) | |
9902 | lt_use_gnu_ld_interface=yes | |
9903 | ;; | |
9904 | esac | |
9905 | ;; | |
9906 | *) | |
9907 | lt_use_gnu_ld_interface=yes | |
9908 | ;; | |
9909 | esac | |
9910 | fi | |
9c60689e | 9911 | |
a243b558 JF |
9912 | if test "$lt_use_gnu_ld_interface" = yes; then |
9913 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9914 | wlarc='${wl}' | |
9c60689e | 9915 | |
a243b558 JF |
9916 | # Set some defaults for GNU ld with shared library support. These |
9917 | # are reset later if shared libraries are not supported. Putting them | |
9918 | # here allows them to be overridden if necessary. | |
9919 | runpath_var=LD_RUN_PATH | |
9920 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9921 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9922 | # ancient GNU ld didn't support --whole-archive et. al. | |
9923 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9924 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9925 | else | |
9926 | whole_archive_flag_spec= | |
9927 | fi | |
9928 | supports_anon_versioning=no | |
9929 | case `$LD -v 2>&1` in | |
9930 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9931 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9932 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9933 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9934 | *\ 2.11.*) ;; # other 2.11 versions | |
9935 | *) supports_anon_versioning=yes ;; | |
9936 | esac | |
ee134472 | 9937 | |
a243b558 JF |
9938 | # See if GNU ld supports shared libraries. |
9939 | case $host_os in | |
9940 | aix[3-9]*) | |
9941 | # On AIX/PPC, the GNU linker is very broken | |
9942 | if test "$host_cpu" != ia64; then | |
9943 | ld_shlibs=no | |
9944 | cat <<_LT_EOF 1>&2 | |
ee134472 | 9945 | |
a243b558 JF |
9946 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9947 | *** to be unable to reliably create shared libraries on AIX. | |
9948 | *** Therefore, libtool is disabling shared libraries support. If you | |
9949 | *** really care for shared libraries, you may want to install binutils | |
9950 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9951 | *** You will then need to restart the configuration process. | |
9c60689e | 9952 | |
a243b558 JF |
9953 | _LT_EOF |
9954 | fi | |
9955 | ;; | |
9c60689e | 9956 | |
a243b558 JF |
9957 | amigaos*) |
9958 | case $host_cpu in | |
9959 | powerpc) | |
9960 | # see comment about AmigaOS4 .so support | |
9961 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9962 | archive_expsym_cmds='' | |
9963 | ;; | |
9964 | m68k) | |
9965 | 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)' | |
9966 | hardcode_libdir_flag_spec='-L$libdir' | |
9967 | hardcode_minus_L=yes | |
9968 | ;; | |
9969 | esac | |
9970 | ;; | |
9c60689e | 9971 | |
a243b558 JF |
9972 | beos*) |
9973 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9974 | allow_undefined_flag=unsupported | |
9975 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9976 | # support --undefined. This deserves some investigation. FIXME | |
9977 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9978 | else | |
9979 | ld_shlibs=no | |
9980 | fi | |
9981 | ;; | |
9c60689e | 9982 | |
a243b558 JF |
9983 | cygwin* | mingw* | pw32* | cegcc*) |
9984 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9985 | # as there is no search path for DLLs. | |
9986 | hardcode_libdir_flag_spec='-L$libdir' | |
9987 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9988 | allow_undefined_flag=unsupported | |
9989 | always_export_symbols=no | |
9990 | enable_shared_with_static_runtimes=yes | |
9991 | 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' | |
9992 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 9993 | |
a243b558 JF |
9994 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9995 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9996 | # If the export-symbols file already is a .def file (1st line | |
9997 | # is EXPORTS), use it as is; otherwise, prepend... | |
9998 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9999 | cp $export_symbols $output_objdir/$soname.def; | |
10000 | else | |
10001 | echo EXPORTS > $output_objdir/$soname.def; | |
10002 | cat $export_symbols >> $output_objdir/$soname.def; | |
10003 | fi~ | |
10004 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10005 | else | |
10006 | ld_shlibs=no | |
10007 | fi | |
10008 | ;; | |
9c60689e | 10009 | |
a243b558 JF |
10010 | haiku*) |
10011 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10012 | link_all_deplibs=yes | |
10013 | ;; | |
9c60689e | 10014 | |
a243b558 JF |
10015 | interix[3-9]*) |
10016 | hardcode_direct=no | |
10017 | hardcode_shlibpath_var=no | |
10018 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10019 | export_dynamic_flag_spec='${wl}-E' | |
10020 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10021 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10022 | # default) and relocated if they conflict, which is a slow very memory | |
10023 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10024 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10025 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10026 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10027 | 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' | |
10028 | ;; | |
9c60689e | 10029 | |
a243b558 JF |
10030 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
10031 | tmp_diet=no | |
10032 | if test "$host_os" = linux-dietlibc; then | |
10033 | case $cc_basename in | |
10034 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10035 | esac | |
10036 | fi | |
10037 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10038 | && test "$tmp_diet" = no | |
10039 | then | |
10040 | tmp_addflag=' $pic_flag' | |
10041 | tmp_sharedflag='-shared' | |
10042 | case $cc_basename,$host_cpu in | |
10043 | pgcc*) # Portland Group C compiler | |
10044 | 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' | |
10045 | tmp_addflag=' $pic_flag' | |
10046 | ;; | |
10047 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10048 | # Portland Group f77 and f90 compilers | |
10049 | 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' | |
10050 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10051 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10052 | tmp_addflag=' -i_dynamic' ;; | |
10053 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10054 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10055 | ifc* | ifort*) # Intel Fortran compiler | |
10056 | tmp_addflag=' -nofor_main' ;; | |
10057 | lf95*) # Lahey Fortran 8.1 | |
10058 | whole_archive_flag_spec= | |
10059 | tmp_sharedflag='--shared' ;; | |
10060 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10061 | tmp_sharedflag='-qmkshrobj' | |
10062 | tmp_addflag= ;; | |
10063 | nvcc*) # Cuda Compiler Driver 2.2 | |
10064 | 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' | |
10065 | compiler_needs_object=yes | |
10066 | ;; | |
10067 | esac | |
10068 | case `$CC -V 2>&1 | sed 5q` in | |
10069 | *Sun\ C*) # Sun C 5.9 | |
10070 | 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' | |
10071 | compiler_needs_object=yes | |
10072 | tmp_sharedflag='-G' ;; | |
10073 | *Sun\ F*) # Sun Fortran 8.3 | |
10074 | tmp_sharedflag='-G' ;; | |
10075 | esac | |
10076 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9c60689e | 10077 | |
a243b558 JF |
10078 | if test "x$supports_anon_versioning" = xyes; then |
10079 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10080 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10081 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10082 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10083 | fi | |
9c60689e | 10084 | |
a243b558 JF |
10085 | case $cc_basename in |
10086 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10087 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10088 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10089 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10090 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10091 | if test "x$supports_anon_versioning" = xyes; then | |
10092 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10093 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10094 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10095 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10096 | fi | |
10097 | ;; | |
10098 | esac | |
10099 | else | |
10100 | ld_shlibs=no | |
10101 | fi | |
10102 | ;; | |
9c60689e | 10103 | |
a243b558 JF |
10104 | netbsd*) |
10105 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10106 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10107 | wlarc= | |
10108 | else | |
10109 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10110 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10111 | fi | |
10112 | ;; | |
9c60689e | 10113 | |
a243b558 JF |
10114 | solaris*) |
10115 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10116 | ld_shlibs=no | |
10117 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10118 | |
a243b558 JF |
10119 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10120 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10121 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10122 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10123 | *** your PATH or compiler configuration so that the native linker is | |
10124 | *** used, and then restart. | |
9c60689e | 10125 | |
a243b558 JF |
10126 | _LT_EOF |
10127 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10128 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10129 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10130 | else | |
10131 | ld_shlibs=no | |
10132 | fi | |
10133 | ;; | |
9c60689e | 10134 | |
a243b558 JF |
10135 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10136 | case `$LD -v 2>&1` in | |
10137 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10138 | ld_shlibs=no | |
10139 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10140 | |
a243b558 JF |
10141 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
10142 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10143 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10144 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10145 | *** your PATH or compiler configuration so that the native linker is | |
10146 | *** used, and then restart. | |
9c60689e | 10147 | |
a243b558 JF |
10148 | _LT_EOF |
10149 | ;; | |
10150 | *) | |
10151 | # For security reasons, it is highly recommended that you always | |
10152 | # use absolute paths for naming shared libraries, and exclude the | |
10153 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10154 | # requires that you compile everything twice, which is a pain. | |
10155 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10156 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10157 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10158 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10159 | else | |
10160 | ld_shlibs=no | |
10161 | fi | |
10162 | ;; | |
10163 | esac | |
10164 | ;; | |
9c60689e | 10165 | |
a243b558 JF |
10166 | sunos4*) |
10167 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10168 | wlarc= | |
10169 | hardcode_direct=yes | |
10170 | hardcode_shlibpath_var=no | |
10171 | ;; | |
9c60689e | 10172 | |
a243b558 JF |
10173 | *) |
10174 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10175 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10176 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10177 | else | |
10178 | ld_shlibs=no | |
10179 | fi | |
10180 | ;; | |
10181 | esac | |
9c60689e | 10182 | |
a243b558 JF |
10183 | if test "$ld_shlibs" = no; then |
10184 | runpath_var= | |
10185 | hardcode_libdir_flag_spec= | |
10186 | export_dynamic_flag_spec= | |
10187 | whole_archive_flag_spec= | |
10188 | fi | |
10189 | else | |
10190 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10191 | case $host_os in | |
10192 | aix3*) | |
10193 | allow_undefined_flag=unsupported | |
10194 | always_export_symbols=yes | |
10195 | 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' | |
10196 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10197 | # are no directories specified by -L. | |
10198 | hardcode_minus_L=yes | |
10199 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10200 | # Neither direct hardcoding nor static linking is supported with a | |
10201 | # broken collect2. | |
10202 | hardcode_direct=unsupported | |
10203 | fi | |
10204 | ;; | |
9c60689e | 10205 | |
a243b558 JF |
10206 | aix[4-9]*) |
10207 | if test "$host_cpu" = ia64; then | |
10208 | # On IA64, the linker does run time linking by default, so we don't | |
10209 | # have to do anything special. | |
10210 | aix_use_runtimelinking=no | |
10211 | exp_sym_flag='-Bexport' | |
10212 | no_entry_flag="" | |
10213 | else | |
10214 | # If we're using GNU nm, then we don't want the "-C" option. | |
10215 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10216 | # Also, AIX nm treats weak defined symbols like other global | |
10217 | # defined symbols, whereas GNU nm marks them as "W". | |
10218 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10219 | 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' | |
10220 | else | |
10221 | 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' | |
10222 | fi | |
10223 | aix_use_runtimelinking=no | |
9c60689e | 10224 | |
a243b558 JF |
10225 | # Test if we are trying to use run time linking or normal |
10226 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10227 | # need to do runtime linking. | |
10228 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10229 | for ld_flag in $LDFLAGS; do | |
10230 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10231 | aix_use_runtimelinking=yes | |
10232 | break | |
10233 | fi | |
10234 | done | |
10235 | ;; | |
10236 | esac | |
9c60689e | 10237 | |
a243b558 JF |
10238 | exp_sym_flag='-bexport' |
10239 | no_entry_flag='-bnoentry' | |
10240 | fi | |
9c60689e | 10241 | |
a243b558 JF |
10242 | # When large executables or shared objects are built, AIX ld can |
10243 | # have problems creating the table of contents. If linking a library | |
10244 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10245 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10246 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10247 | |
a243b558 JF |
10248 | archive_cmds='' |
10249 | hardcode_direct=yes | |
10250 | hardcode_direct_absolute=yes | |
10251 | hardcode_libdir_separator=':' | |
10252 | link_all_deplibs=yes | |
10253 | file_list_spec='${wl}-f,' | |
9c60689e | 10254 | |
a243b558 JF |
10255 | if test "$GCC" = yes; then |
10256 | case $host_os in aix4.[012]|aix4.[012].*) | |
10257 | # We only want to do this on AIX 4.2 and lower, the check | |
10258 | # below for broken collect2 doesn't work under 4.3+ | |
10259 | collect2name=`${CC} -print-prog-name=collect2` | |
10260 | if test -f "$collect2name" && | |
10261 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10262 | then | |
10263 | # We have reworked collect2 | |
10264 | : | |
10265 | else | |
10266 | # We have old collect2 | |
10267 | hardcode_direct=unsupported | |
10268 | # It fails to find uninstalled libraries when the uninstalled | |
10269 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10270 | # to unsupported forces relinking | |
10271 | hardcode_minus_L=yes | |
10272 | hardcode_libdir_flag_spec='-L$libdir' | |
10273 | hardcode_libdir_separator= | |
10274 | fi | |
10275 | ;; | |
10276 | esac | |
10277 | shared_flag='-shared' | |
10278 | if test "$aix_use_runtimelinking" = yes; then | |
10279 | shared_flag="$shared_flag "'${wl}-G' | |
10280 | fi | |
10281 | else | |
10282 | # not using gcc | |
10283 | if test "$host_cpu" = ia64; then | |
10284 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10285 | # chokes on -Wl,-G. The following line is correct: | |
10286 | shared_flag='-G' | |
10287 | else | |
10288 | if test "$aix_use_runtimelinking" = yes; then | |
10289 | shared_flag='${wl}-G' | |
10290 | else | |
10291 | shared_flag='${wl}-bM:SRE' | |
10292 | fi | |
10293 | fi | |
10294 | fi | |
9c60689e | 10295 | |
a243b558 JF |
10296 | export_dynamic_flag_spec='${wl}-bexpall' |
10297 | # It seems that -bexpall does not export symbols beginning with | |
10298 | # underscore (_), so it is better to generate a list of symbols to export. | |
10299 | always_export_symbols=yes | |
10300 | if test "$aix_use_runtimelinking" = yes; then | |
10301 | # Warning - without using the other runtime loading flags (-brtl), | |
10302 | # -berok will link without error, but may produce a broken library. | |
10303 | allow_undefined_flag='-berok' | |
10304 | # Determine the default libpath from the value encoded in an | |
10305 | # empty executable. | |
10306 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10307 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10308 | else |
a243b558 | 10309 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10310 | $as_echo_n "(cached) " >&6 |
10311 | else | |
a243b558 | 10312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10313 | /* end confdefs.h. */ |
10314 | ||
9c60689e DWT |
10315 | int |
10316 | main () | |
10317 | { | |
a243b558 | 10318 | |
9c60689e DWT |
10319 | ; |
10320 | return 0; | |
10321 | } | |
10322 | _ACEOF | |
10323 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10324 | |
10325 | lt_aix_libpath_sed=' | |
10326 | /Import File Strings/,/^$/ { | |
10327 | /^0/ { | |
10328 | s/^0 *\([^ ]*\) *$/\1/ | |
10329 | p | |
10330 | } | |
10331 | }' | |
10332 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10333 | # Check for a 64-bit object if we didn't find anything. | |
10334 | if test -z "$lt_cv_aix_libpath_"; then | |
10335 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10336 | fi | |
9c60689e DWT |
10337 | fi |
10338 | rm -f core conftest.err conftest.$ac_objext \ | |
10339 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10340 | if test -z "$lt_cv_aix_libpath_"; then |
10341 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10342 | fi | |
9c60689e DWT |
10343 | |
10344 | fi | |
10345 | ||
a243b558 JF |
10346 | aix_libpath=$lt_cv_aix_libpath_ |
10347 | fi | |
9c60689e | 10348 | |
a243b558 JF |
10349 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10350 | 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" | |
10351 | else | |
10352 | if test "$host_cpu" = ia64; then | |
10353 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10354 | allow_undefined_flag="-z nodefs" | |
10355 | 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" | |
10356 | else | |
10357 | # Determine the default libpath from the value encoded in an | |
10358 | # empty executable. | |
10359 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10360 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10361 | else |
a243b558 | 10362 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10363 | $as_echo_n "(cached) " >&6 |
10364 | else | |
a243b558 | 10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10366 | /* end confdefs.h. */ |
10367 | ||
9c60689e DWT |
10368 | int |
10369 | main () | |
10370 | { | |
a243b558 | 10371 | |
9c60689e DWT |
10372 | ; |
10373 | return 0; | |
10374 | } | |
10375 | _ACEOF | |
10376 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10377 | |
a243b558 JF |
10378 | lt_aix_libpath_sed=' |
10379 | /Import File Strings/,/^$/ { | |
10380 | /^0/ { | |
10381 | s/^0 *\([^ ]*\) *$/\1/ | |
10382 | p | |
10383 | } | |
10384 | }' | |
10385 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10386 | # Check for a 64-bit object if we didn't find anything. | |
10387 | if test -z "$lt_cv_aix_libpath_"; then | |
10388 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10389 | fi | |
9c60689e DWT |
10390 | fi |
10391 | rm -f core conftest.err conftest.$ac_objext \ | |
10392 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10393 | if test -z "$lt_cv_aix_libpath_"; then |
10394 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10395 | fi | |
10396 | ||
9c60689e | 10397 | fi |
9c60689e | 10398 | |
a243b558 JF |
10399 | aix_libpath=$lt_cv_aix_libpath_ |
10400 | fi | |
10401 | ||
10402 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10403 | # Warning - without using the other run time loading flags, | |
10404 | # -berok will link without error, but may produce a broken library. | |
10405 | no_undefined_flag=' ${wl}-bernotok' | |
10406 | allow_undefined_flag=' ${wl}-berok' | |
10407 | if test "$with_gnu_ld" = yes; then | |
10408 | # We only use this code for GNU lds that support --whole-archive. | |
10409 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10410 | else | |
10411 | # Exported symbols can be pulled into shared objects from archives | |
10412 | whole_archive_flag_spec='$convenience' | |
10413 | fi | |
10414 | archive_cmds_need_lc=yes | |
10415 | # This is similar to how AIX traditionally builds its shared libraries. | |
10416 | 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' | |
10417 | fi | |
10418 | fi | |
10419 | ;; | |
10420 | ||
10421 | amigaos*) | |
10422 | case $host_cpu in | |
10423 | powerpc) | |
10424 | # see comment about AmigaOS4 .so support | |
10425 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10426 | archive_expsym_cmds='' | |
10427 | ;; | |
10428 | m68k) | |
10429 | 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)' | |
10430 | hardcode_libdir_flag_spec='-L$libdir' | |
10431 | hardcode_minus_L=yes | |
10432 | ;; | |
10433 | esac | |
10434 | ;; | |
10435 | ||
10436 | bsdi[45]*) | |
10437 | export_dynamic_flag_spec=-rdynamic | |
10438 | ;; | |
10439 | ||
10440 | cygwin* | mingw* | pw32* | cegcc*) | |
10441 | # When not using gcc, we currently assume that we are using | |
10442 | # Microsoft Visual C++. | |
10443 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10444 | # no search path for DLLs. | |
10445 | case $cc_basename in | |
10446 | cl*) | |
10447 | # Native MSVC | |
10448 | hardcode_libdir_flag_spec=' ' | |
10449 | allow_undefined_flag=unsupported | |
10450 | always_export_symbols=yes | |
10451 | file_list_spec='@' | |
10452 | # Tell ltmain to make .lib files, not .a files. | |
10453 | libext=lib | |
10454 | # Tell ltmain to make .dll files, not .so files. | |
10455 | shrext_cmds=".dll" | |
10456 | # FIXME: Setting linknames here is a bad hack. | |
10457 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10458 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10459 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10460 | else | |
10461 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10462 | fi~ | |
10463 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10464 | linknames=' | |
10465 | # The linker will not automatically build a static lib if we build a DLL. | |
10466 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10467 | enable_shared_with_static_runtimes=yes | |
10468 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10469 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10470 | # Don't use ranlib | |
10471 | old_postinstall_cmds='chmod 644 $oldlib' | |
10472 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10473 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10474 | case $lt_outputfile in | |
10475 | *.exe|*.EXE) ;; | |
10476 | *) | |
10477 | lt_outputfile="$lt_outputfile.exe" | |
10478 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10479 | ;; | |
10480 | esac~ | |
10481 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10482 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10483 | $RM "$lt_outputfile.manifest"; | |
10484 | fi' | |
10485 | ;; | |
10486 | *) | |
10487 | # Assume MSVC wrapper | |
10488 | hardcode_libdir_flag_spec=' ' | |
10489 | allow_undefined_flag=unsupported | |
10490 | # Tell ltmain to make .lib files, not .a files. | |
10491 | libext=lib | |
10492 | # Tell ltmain to make .dll files, not .so files. | |
10493 | shrext_cmds=".dll" | |
10494 | # FIXME: Setting linknames here is a bad hack. | |
10495 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10496 | # The linker will automatically build a .lib file if we build a DLL. | |
10497 | old_archive_from_new_cmds='true' | |
10498 | # FIXME: Should let the user specify the lib program. | |
10499 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10500 | enable_shared_with_static_runtimes=yes | |
10501 | ;; | |
10502 | esac | |
10503 | ;; | |
10504 | ||
10505 | darwin* | rhapsody*) | |
10506 | ||
10507 | ||
10508 | archive_cmds_need_lc=no | |
10509 | hardcode_direct=no | |
10510 | hardcode_automatic=yes | |
10511 | hardcode_shlibpath_var=unsupported | |
10512 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10513 | 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\"`' | |
10514 | ||
10515 | else | |
10516 | whole_archive_flag_spec='' | |
10517 | fi | |
10518 | link_all_deplibs=yes | |
10519 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10520 | case $cc_basename in | |
10521 | ifort*) _lt_dar_can_shared=yes ;; | |
10522 | *) _lt_dar_can_shared=$GCC ;; | |
10523 | esac | |
10524 | if test "$_lt_dar_can_shared" = "yes"; then | |
10525 | output_verbose_link_cmd=func_echo_all | |
10526 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10527 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10528 | 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}" | |
10529 | 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}" | |
10530 | ||
10531 | else | |
10532 | ld_shlibs=no | |
10533 | fi | |
10534 | ||
10535 | ;; | |
10536 | ||
10537 | dgux*) | |
10538 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10539 | hardcode_libdir_flag_spec='-L$libdir' | |
10540 | hardcode_shlibpath_var=no | |
10541 | ;; | |
10542 | ||
10543 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10544 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10545 | # does not break anything, and helps significantly (at the cost of a little | |
10546 | # extra space). | |
10547 | freebsd2.2*) | |
10548 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10549 | hardcode_libdir_flag_spec='-R$libdir' | |
10550 | hardcode_direct=yes | |
10551 | hardcode_shlibpath_var=no | |
10552 | ;; | |
10553 | ||
10554 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10555 | freebsd2.*) | |
10556 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10557 | hardcode_direct=yes | |
10558 | hardcode_minus_L=yes | |
10559 | hardcode_shlibpath_var=no | |
10560 | ;; | |
10561 | ||
10562 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10563 | freebsd* | dragonfly*) | |
10564 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10565 | hardcode_libdir_flag_spec='-R$libdir' | |
10566 | hardcode_direct=yes | |
10567 | hardcode_shlibpath_var=no | |
10568 | ;; | |
10569 | ||
10570 | hpux9*) | |
10571 | if test "$GCC" = yes; then | |
10572 | 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' | |
10573 | else | |
10574 | 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' | |
10575 | fi | |
10576 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10577 | hardcode_libdir_separator=: | |
10578 | hardcode_direct=yes | |
10579 | ||
10580 | # hardcode_minus_L: Not really in the search PATH, | |
10581 | # but as the default location of the library. | |
10582 | hardcode_minus_L=yes | |
10583 | export_dynamic_flag_spec='${wl}-E' | |
10584 | ;; | |
10585 | ||
10586 | hpux10*) | |
10587 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10588 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10589 | else | |
10590 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10591 | fi | |
10592 | if test "$with_gnu_ld" = no; then | |
10593 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10594 | hardcode_libdir_separator=: | |
10595 | hardcode_direct=yes | |
10596 | hardcode_direct_absolute=yes | |
10597 | export_dynamic_flag_spec='${wl}-E' | |
10598 | # hardcode_minus_L: Not really in the search PATH, | |
10599 | # but as the default location of the library. | |
10600 | hardcode_minus_L=yes | |
10601 | fi | |
10602 | ;; | |
10603 | ||
10604 | hpux11*) | |
10605 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10606 | case $host_cpu in | |
10607 | hppa*64*) | |
10608 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10609 | ;; | |
10610 | ia64*) | |
10611 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10612 | ;; | |
10613 | *) | |
10614 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10615 | ;; | |
10616 | esac | |
10617 | else | |
10618 | case $host_cpu in | |
10619 | hppa*64*) | |
10620 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10621 | ;; | |
10622 | ia64*) | |
10623 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10624 | ;; | |
10625 | *) | |
10626 | ||
10627 | # Older versions of the 11.00 compiler do not understand -b yet | |
10628 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10630 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10631 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10632 | $as_echo_n "(cached) " >&6 | |
10633 | else | |
10634 | lt_cv_prog_compiler__b=no | |
10635 | save_LDFLAGS="$LDFLAGS" | |
10636 | LDFLAGS="$LDFLAGS -b" | |
10637 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10638 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10639 | # The linker can only warn and ignore the option if not recognized | |
10640 | # So say no if there are warnings | |
10641 | if test -s conftest.err; then | |
10642 | # Append any errors to the config.log. | |
10643 | cat conftest.err 1>&5 | |
10644 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10645 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10646 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10647 | lt_cv_prog_compiler__b=yes | |
10648 | fi | |
10649 | else | |
10650 | lt_cv_prog_compiler__b=yes | |
10651 | fi | |
10652 | fi | |
10653 | $RM -r conftest* | |
10654 | LDFLAGS="$save_LDFLAGS" | |
10655 | ||
10656 | fi | |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10658 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10659 | ||
10660 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10661 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10662 | else | |
10663 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10664 | fi | |
10665 | ||
10666 | ;; | |
10667 | esac | |
10668 | fi | |
10669 | if test "$with_gnu_ld" = no; then | |
10670 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10671 | hardcode_libdir_separator=: | |
10672 | ||
10673 | case $host_cpu in | |
10674 | hppa*64*|ia64*) | |
10675 | hardcode_direct=no | |
10676 | hardcode_shlibpath_var=no | |
10677 | ;; | |
10678 | *) | |
10679 | hardcode_direct=yes | |
10680 | hardcode_direct_absolute=yes | |
10681 | export_dynamic_flag_spec='${wl}-E' | |
10682 | ||
10683 | # hardcode_minus_L: Not really in the search PATH, | |
10684 | # but as the default location of the library. | |
10685 | hardcode_minus_L=yes | |
10686 | ;; | |
10687 | esac | |
10688 | fi | |
10689 | ;; | |
10690 | ||
10691 | irix5* | irix6* | nonstopux*) | |
10692 | if test "$GCC" = yes; then | |
10693 | 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' | |
10694 | # Try to use the -exported_symbol ld option, if it does not | |
10695 | # work, assume that -exports_file does not work either and | |
10696 | # implicitly export all symbols. | |
10697 | # This should be the same for all languages, so no per-tag cache variable. | |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10699 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10700 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10701 | $as_echo_n "(cached) " >&6 | |
10702 | else | |
10703 | save_LDFLAGS="$LDFLAGS" | |
10704 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10706 | /* end confdefs.h. */ | |
10707 | int foo (void) { return 0; } | |
10708 | _ACEOF | |
10709 | if ac_fn_c_try_link "$LINENO"; then : | |
10710 | lt_cv_irix_exported_symbol=yes | |
10711 | else | |
10712 | lt_cv_irix_exported_symbol=no | |
10713 | fi | |
10714 | rm -f core conftest.err conftest.$ac_objext \ | |
10715 | conftest$ac_exeext conftest.$ac_ext | |
10716 | LDFLAGS="$save_LDFLAGS" | |
10717 | fi | |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10719 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10720 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10721 | 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' | |
10722 | fi | |
10723 | else | |
10724 | 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' | |
10725 | 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' | |
10726 | fi | |
10727 | archive_cmds_need_lc='no' | |
10728 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10729 | hardcode_libdir_separator=: | |
10730 | inherit_rpath=yes | |
10731 | link_all_deplibs=yes | |
10732 | ;; | |
10733 | ||
10734 | netbsd*) | |
10735 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10736 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10737 | else | |
10738 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10739 | fi | |
10740 | hardcode_libdir_flag_spec='-R$libdir' | |
10741 | hardcode_direct=yes | |
10742 | hardcode_shlibpath_var=no | |
10743 | ;; | |
10744 | ||
10745 | newsos6) | |
10746 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10747 | hardcode_direct=yes | |
10748 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10749 | hardcode_libdir_separator=: | |
10750 | hardcode_shlibpath_var=no | |
10751 | ;; | |
10752 | ||
10753 | *nto* | *qnx*) | |
10754 | ;; | |
10755 | ||
10756 | openbsd*) | |
10757 | if test -f /usr/libexec/ld.so; then | |
10758 | hardcode_direct=yes | |
10759 | hardcode_shlibpath_var=no | |
10760 | hardcode_direct_absolute=yes | |
10761 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10762 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10763 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10764 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10765 | export_dynamic_flag_spec='${wl}-E' | |
10766 | else | |
10767 | case $host_os in | |
10768 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10769 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10770 | hardcode_libdir_flag_spec='-R$libdir' | |
10771 | ;; | |
10772 | *) | |
10773 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10774 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10775 | ;; | |
10776 | esac | |
10777 | fi | |
10778 | else | |
10779 | ld_shlibs=no | |
10780 | fi | |
10781 | ;; | |
10782 | ||
10783 | os2*) | |
10784 | hardcode_libdir_flag_spec='-L$libdir' | |
10785 | hardcode_minus_L=yes | |
10786 | allow_undefined_flag=unsupported | |
10787 | 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' | |
10788 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10789 | ;; | |
10790 | ||
10791 | osf3*) | |
10792 | if test "$GCC" = yes; then | |
10793 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10794 | 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' | |
10795 | else | |
10796 | allow_undefined_flag=' -expect_unresolved \*' | |
10797 | 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' | |
10798 | fi | |
10799 | archive_cmds_need_lc='no' | |
10800 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10801 | hardcode_libdir_separator=: | |
10802 | ;; | |
10803 | ||
10804 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10805 | if test "$GCC" = yes; then | |
10806 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10807 | 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' | |
10808 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10809 | else | |
10810 | allow_undefined_flag=' -expect_unresolved \*' | |
10811 | 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' | |
10812 | 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~ | |
10813 | $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' | |
10814 | ||
10815 | # Both c and cxx compiler support -rpath directly | |
10816 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10817 | fi | |
10818 | archive_cmds_need_lc='no' | |
10819 | hardcode_libdir_separator=: | |
10820 | ;; | |
10821 | ||
10822 | solaris*) | |
10823 | no_undefined_flag=' -z defs' | |
10824 | if test "$GCC" = yes; then | |
10825 | wlarc='${wl}' | |
10826 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10827 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10828 | $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' | |
10829 | else | |
10830 | case `$CC -V 2>&1` in | |
10831 | *"Compilers 5.0"*) | |
10832 | wlarc='' | |
10833 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10834 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10835 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10836 | ;; | |
10837 | *) | |
10838 | wlarc='${wl}' | |
10839 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10840 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10841 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10842 | ;; | |
10843 | esac | |
10844 | fi | |
10845 | hardcode_libdir_flag_spec='-R$libdir' | |
10846 | hardcode_shlibpath_var=no | |
10847 | case $host_os in | |
10848 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10849 | *) | |
10850 | # The compiler driver will combine and reorder linker options, | |
10851 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10852 | # but is careful enough not to reorder. | |
10853 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10854 | if test "$GCC" = yes; then | |
10855 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10856 | else | |
10857 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10858 | fi | |
10859 | ;; | |
10860 | esac | |
10861 | link_all_deplibs=yes | |
10862 | ;; | |
10863 | ||
10864 | sunos4*) | |
10865 | if test "x$host_vendor" = xsequent; then | |
10866 | # Use $CC to link under sequent, because it throws in some extra .o | |
10867 | # files that make .init and .fini sections work. | |
10868 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10869 | else | |
10870 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10871 | fi | |
10872 | hardcode_libdir_flag_spec='-L$libdir' | |
10873 | hardcode_direct=yes | |
10874 | hardcode_minus_L=yes | |
10875 | hardcode_shlibpath_var=no | |
10876 | ;; | |
10877 | ||
10878 | sysv4) | |
10879 | case $host_vendor in | |
10880 | sni) | |
10881 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10882 | hardcode_direct=yes # is this really true??? | |
10883 | ;; | |
10884 | siemens) | |
10885 | ## LD is ld it makes a PLAMLIB | |
10886 | ## CC just makes a GrossModule. | |
10887 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10888 | reload_cmds='$CC -r -o $output$reload_objs' | |
10889 | hardcode_direct=no | |
10890 | ;; | |
10891 | motorola) | |
10892 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10893 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10894 | ;; | |
10895 | esac | |
10896 | runpath_var='LD_RUN_PATH' | |
10897 | hardcode_shlibpath_var=no | |
10898 | ;; | |
10899 | ||
10900 | sysv4.3*) | |
10901 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10902 | hardcode_shlibpath_var=no | |
10903 | export_dynamic_flag_spec='-Bexport' | |
10904 | ;; | |
10905 | ||
10906 | sysv4*MP*) | |
10907 | if test -d /usr/nec; then | |
10908 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10909 | hardcode_shlibpath_var=no | |
10910 | runpath_var=LD_RUN_PATH | |
10911 | hardcode_runpath_var=yes | |
10912 | ld_shlibs=yes | |
10913 | fi | |
10914 | ;; | |
10915 | ||
10916 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10917 | no_undefined_flag='${wl}-z,text' | |
10918 | archive_cmds_need_lc=no | |
10919 | hardcode_shlibpath_var=no | |
10920 | runpath_var='LD_RUN_PATH' | |
10921 | ||
10922 | if test "$GCC" = yes; then | |
10923 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10924 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10925 | else | |
10926 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10927 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10928 | fi | |
10929 | ;; | |
10930 | ||
10931 | sysv5* | sco3.2v5* | sco5v6*) | |
10932 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10933 | # link with -lc, and that would cause any symbols used from libc to | |
10934 | # always be unresolved, which means just about no library would | |
10935 | # ever link correctly. If we're not using GNU ld we use -z text | |
10936 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10937 | # as -z defs. | |
10938 | no_undefined_flag='${wl}-z,text' | |
10939 | allow_undefined_flag='${wl}-z,nodefs' | |
10940 | archive_cmds_need_lc=no | |
10941 | hardcode_shlibpath_var=no | |
10942 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10943 | hardcode_libdir_separator=':' | |
10944 | link_all_deplibs=yes | |
10945 | export_dynamic_flag_spec='${wl}-Bexport' | |
10946 | runpath_var='LD_RUN_PATH' | |
10947 | ||
10948 | if test "$GCC" = yes; then | |
10949 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10950 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10951 | else | |
10952 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10953 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10954 | fi | |
10955 | ;; | |
10956 | ||
10957 | uts4*) | |
10958 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10959 | hardcode_libdir_flag_spec='-L$libdir' | |
10960 | hardcode_shlibpath_var=no | |
10961 | ;; | |
10962 | ||
10963 | *) | |
10964 | ld_shlibs=no | |
10965 | ;; | |
10966 | esac | |
10967 | ||
10968 | if test x$host_vendor = xsni; then | |
10969 | case $host in | |
10970 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10971 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10972 | ;; | |
10973 | esac | |
10974 | fi | |
10975 | fi | |
10976 | ||
10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10978 | $as_echo "$ld_shlibs" >&6; } | |
10979 | test "$ld_shlibs" = no && can_build_shared=no | |
10980 | ||
10981 | with_gnu_ld=$with_gnu_ld | |
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | # | |
10998 | # Do we need to explicitly link libc? | |
10999 | # | |
11000 | case "x$archive_cmds_need_lc" in | |
11001 | x|xyes) | |
11002 | # Assume -lc should be added | |
11003 | archive_cmds_need_lc=yes | |
11004 | ||
11005 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11006 | case $archive_cmds in | |
11007 | *'~'*) | |
11008 | # FIXME: we may have to deal with multi-command sequences. | |
11009 | ;; | |
11010 | '$CC '*) | |
11011 | # Test whether the compiler implicitly links with -lc since on some | |
11012 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11013 | # to ld, don't add -lc before -lgcc. | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11015 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11016 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11017 | $as_echo_n "(cached) " >&6 | |
11018 | else | |
a93f15c0 | 11019 | $RM conftest* |
a243b558 JF |
11020 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
11021 | ||
11022 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11023 | (eval $ac_compile) 2>&5 | |
11024 | ac_status=$? | |
11025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11026 | test $ac_status = 0; } 2>conftest.err; then | |
11027 | soname=conftest | |
11028 | lib=conftest | |
11029 | libobjs=conftest.$ac_objext | |
11030 | deplibs= | |
11031 | wl=$lt_prog_compiler_wl | |
11032 | pic_flag=$lt_prog_compiler_pic | |
11033 | compiler_flags=-v | |
11034 | linker_flags=-v | |
11035 | verstring= | |
11036 | output_objdir=. | |
11037 | libname=conftest | |
11038 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11039 | allow_undefined_flag= | |
11040 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11041 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11042 | ac_status=$? | |
11043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11044 | test $ac_status = 0; } | |
11045 | then | |
11046 | lt_cv_archive_cmds_need_lc=no | |
11047 | else | |
11048 | lt_cv_archive_cmds_need_lc=yes | |
11049 | fi | |
11050 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11051 | else | |
11052 | cat conftest.err 1>&5 | |
11053 | fi | |
a93f15c0 | 11054 | $RM conftest* |
a243b558 JF |
11055 | |
11056 | fi | |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11058 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11059 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11060 | ;; | |
11061 | esac | |
11062 | fi | |
11063 | ;; | |
11064 | esac | |
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | ||
11113 | ||
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | ||
11119 | ||
11120 | ||
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11218 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11219 | ||
11220 | if test "$GCC" = yes; then | |
11221 | case $host_os in | |
11222 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11223 | *) lt_awk_arg="/^libraries:/" ;; | |
11224 | esac | |
11225 | case $host_os in | |
11226 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11227 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11228 | esac | |
11229 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11230 | case $lt_search_path_spec in | |
11231 | *\;*) | |
11232 | # if the path contains ";" then we assume it to be the separator | |
11233 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11234 | # assumed that no part of a normal pathname contains ";" but that should | |
11235 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11236 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11237 | ;; | |
11238 | *) | |
11239 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11240 | ;; | |
11241 | esac | |
11242 | # Ok, now we have the path, separated by spaces, we can step through it | |
11243 | # and add multilib dir if necessary. | |
11244 | lt_tmp_lt_search_path_spec= | |
11245 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11246 | for lt_sys_path in $lt_search_path_spec; do | |
11247 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11248 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11249 | else | |
11250 | test -d "$lt_sys_path" && \ | |
11251 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11252 | fi | |
11253 | done | |
11254 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11255 | BEGIN {RS=" "; FS="/|\n";} { | |
11256 | lt_foo=""; | |
11257 | lt_count=0; | |
11258 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11259 | if ($lt_i != "" && $lt_i != ".") { | |
11260 | if ($lt_i == "..") { | |
11261 | lt_count++; | |
11262 | } else { | |
11263 | if (lt_count == 0) { | |
11264 | lt_foo="/" $lt_i lt_foo; | |
11265 | } else { | |
11266 | lt_count--; | |
11267 | } | |
11268 | } | |
11269 | } | |
11270 | } | |
11271 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11272 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11273 | }'` | |
11274 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11275 | # for these hosts. | |
11276 | case $host_os in | |
11277 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11278 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11279 | esac | |
11280 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11281 | else | |
11282 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11283 | fi | |
11284 | library_names_spec= | |
11285 | libname_spec='lib$name' | |
11286 | soname_spec= | |
11287 | shrext_cmds=".so" | |
11288 | postinstall_cmds= | |
11289 | postuninstall_cmds= | |
11290 | finish_cmds= | |
11291 | finish_eval= | |
11292 | shlibpath_var= | |
11293 | shlibpath_overrides_runpath=unknown | |
11294 | version_type=none | |
11295 | dynamic_linker="$host_os ld.so" | |
11296 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11297 | need_lib_prefix=unknown | |
11298 | hardcode_into_libs=no | |
11299 | ||
11300 | # when you set need_version to no, make sure it does not cause -set_version | |
11301 | # flags to be left without arguments | |
11302 | need_version=unknown | |
11303 | ||
11304 | case $host_os in | |
11305 | aix3*) | |
11306 | version_type=linux # correct to gnu/linux during the next big refactor | |
11307 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11308 | shlibpath_var=LIBPATH | |
11309 | ||
11310 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11311 | soname_spec='${libname}${release}${shared_ext}$major' | |
11312 | ;; | |
11313 | ||
11314 | aix[4-9]*) | |
11315 | version_type=linux # correct to gnu/linux during the next big refactor | |
11316 | need_lib_prefix=no | |
11317 | need_version=no | |
11318 | hardcode_into_libs=yes | |
11319 | if test "$host_cpu" = ia64; then | |
11320 | # AIX 5 supports IA64 | |
11321 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11322 | shlibpath_var=LD_LIBRARY_PATH | |
11323 | else | |
11324 | # With GCC up to 2.95.x, collect2 would create an import file | |
11325 | # for dependence libraries. The import file would start with | |
11326 | # the line `#! .'. This would cause the generated library to | |
11327 | # depend on `.', always an invalid library. This was fixed in | |
11328 | # development snapshots of GCC prior to 3.0. | |
11329 | case $host_os in | |
11330 | aix4 | aix4.[01] | aix4.[01].*) | |
11331 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11332 | echo ' yes ' | |
11333 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11334 | : | |
11335 | else | |
11336 | can_build_shared=no | |
11337 | fi | |
11338 | ;; | |
11339 | esac | |
11340 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11341 | # soname into executable. Probably we can add versioning support to | |
11342 | # collect2, so additional links can be useful in future. | |
11343 | if test "$aix_use_runtimelinking" = yes; then | |
11344 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11345 | # instead of lib<name>.a to let people know that these are not | |
11346 | # typical AIX shared libraries. | |
11347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11348 | else | |
11349 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11350 | # and later when we are not doing run time linking. | |
11351 | library_names_spec='${libname}${release}.a $libname.a' | |
11352 | soname_spec='${libname}${release}${shared_ext}$major' | |
11353 | fi | |
11354 | shlibpath_var=LIBPATH | |
11355 | fi | |
11356 | ;; | |
11357 | ||
11358 | amigaos*) | |
11359 | case $host_cpu in | |
11360 | powerpc) | |
11361 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11362 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11364 | ;; | |
11365 | m68k) | |
11366 | library_names_spec='$libname.ixlibrary $libname.a' | |
11367 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11368 | 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' | |
11369 | ;; | |
11370 | esac | |
11371 | ;; | |
11372 | ||
11373 | beos*) | |
11374 | library_names_spec='${libname}${shared_ext}' | |
11375 | dynamic_linker="$host_os ld.so" | |
11376 | shlibpath_var=LIBRARY_PATH | |
11377 | ;; | |
11378 | ||
11379 | bsdi[45]*) | |
11380 | version_type=linux # correct to gnu/linux during the next big refactor | |
11381 | need_version=no | |
11382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11383 | soname_spec='${libname}${release}${shared_ext}$major' | |
11384 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11385 | shlibpath_var=LD_LIBRARY_PATH | |
11386 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11387 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11388 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11389 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11390 | # libtool to hard-code these into programs | |
11391 | ;; | |
11392 | ||
11393 | cygwin* | mingw* | pw32* | cegcc*) | |
11394 | version_type=windows | |
11395 | shrext_cmds=".dll" | |
11396 | need_version=no | |
11397 | need_lib_prefix=no | |
9c60689e | 11398 | |
a243b558 JF |
11399 | case $GCC,$cc_basename in |
11400 | yes,*) | |
11401 | # gcc | |
11402 | library_names_spec='$libname.dll.a' | |
11403 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11404 | postinstall_cmds='base_file=`basename \${file}`~ | |
11405 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11406 | dldir=$destdir/`dirname \$dlpath`~ | |
11407 | test -d \$dldir || mkdir -p \$dldir~ | |
11408 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11409 | chmod a+x \$dldir/$dlname~ | |
11410 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11411 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11412 | fi' | |
11413 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11414 | dlpath=$dir/\$dldll~ | |
11415 | $RM \$dlpath' | |
11416 | shlibpath_overrides_runpath=yes | |
9c60689e | 11417 | |
a243b558 JF |
11418 | case $host_os in |
11419 | cygwin*) | |
11420 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11421 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9c60689e | 11422 | |
a243b558 JF |
11423 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11424 | ;; | |
11425 | mingw* | cegcc*) | |
11426 | # MinGW DLLs use traditional 'lib' prefix | |
11427 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11428 | ;; | |
11429 | pw32*) | |
11430 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11431 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11432 | ;; | |
11433 | esac | |
11434 | dynamic_linker='Win32 ld.exe' | |
11435 | ;; | |
9c60689e | 11436 | |
a243b558 JF |
11437 | *,cl*) |
11438 | # Native MSVC | |
11439 | libname_spec='$name' | |
11440 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11441 | library_names_spec='${libname}.dll.lib' | |
9c60689e | 11442 | |
a243b558 JF |
11443 | case $build_os in |
11444 | mingw*) | |
11445 | sys_lib_search_path_spec= | |
11446 | lt_save_ifs=$IFS | |
11447 | IFS=';' | |
11448 | for lt_path in $LIB | |
11449 | do | |
11450 | IFS=$lt_save_ifs | |
11451 | # Let DOS variable expansion print the short 8.3 style file name. | |
11452 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11453 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11454 | done | |
11455 | IFS=$lt_save_ifs | |
11456 | # Convert to MSYS style. | |
11457 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11458 | ;; | |
11459 | cygwin*) | |
11460 | # Convert to unix form, then to dos form, then back to unix form | |
11461 | # but this time dos style (no spaces!) so that the unix form looks | |
11462 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11463 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11464 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11465 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11466 | ;; | |
11467 | *) | |
11468 | sys_lib_search_path_spec="$LIB" | |
11469 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11470 | # It is most probably a Windows format PATH. | |
11471 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11472 | else | |
11473 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11474 | fi | |
11475 | # FIXME: find the short name or the path components, as spaces are | |
11476 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11477 | ;; | |
11478 | esac | |
11479 | ||
11480 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11481 | postinstall_cmds='base_file=`basename \${file}`~ | |
11482 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11483 | dldir=$destdir/`dirname \$dlpath`~ | |
11484 | test -d \$dldir || mkdir -p \$dldir~ | |
11485 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11486 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11487 | dlpath=$dir/\$dldll~ | |
11488 | $RM \$dlpath' | |
11489 | shlibpath_overrides_runpath=yes | |
11490 | dynamic_linker='Win32 link.exe' | |
11491 | ;; | |
9c60689e | 11492 | |
a243b558 JF |
11493 | *) |
11494 | # Assume MSVC wrapper | |
11495 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11496 | dynamic_linker='Win32 ld.exe' | |
11497 | ;; | |
11498 | esac | |
11499 | # FIXME: first we should search . and the directory the executable is in | |
11500 | shlibpath_var=PATH | |
11501 | ;; | |
9c60689e | 11502 | |
a243b558 JF |
11503 | darwin* | rhapsody*) |
11504 | dynamic_linker="$host_os dyld" | |
11505 | version_type=darwin | |
11506 | need_lib_prefix=no | |
11507 | need_version=no | |
11508 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11509 | soname_spec='${libname}${release}${major}$shared_ext' | |
11510 | shlibpath_overrides_runpath=yes | |
11511 | shlibpath_var=DYLD_LIBRARY_PATH | |
11512 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11513 | |
a243b558 JF |
11514 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11515 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11516 | ;; | |
9c60689e | 11517 | |
a243b558 JF |
11518 | dgux*) |
11519 | version_type=linux # correct to gnu/linux during the next big refactor | |
11520 | need_lib_prefix=no | |
11521 | need_version=no | |
11522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11523 | soname_spec='${libname}${release}${shared_ext}$major' | |
11524 | shlibpath_var=LD_LIBRARY_PATH | |
11525 | ;; | |
11526 | ||
11527 | freebsd* | dragonfly*) | |
11528 | # DragonFly does not have aout. When/if they implement a new | |
11529 | # versioning mechanism, adjust this. | |
11530 | if test -x /usr/bin/objformat; then | |
11531 | objformat=`/usr/bin/objformat` | |
11532 | else | |
11533 | case $host_os in | |
11534 | freebsd[23].*) objformat=aout ;; | |
11535 | *) objformat=elf ;; | |
11536 | esac | |
11537 | fi | |
11538 | version_type=freebsd-$objformat | |
11539 | case $version_type in | |
11540 | freebsd-elf*) | |
11541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11542 | need_version=no | |
11543 | need_lib_prefix=no | |
11544 | ;; | |
11545 | freebsd-*) | |
11546 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11547 | need_version=yes | |
11548 | ;; | |
11549 | esac | |
11550 | shlibpath_var=LD_LIBRARY_PATH | |
11551 | case $host_os in | |
11552 | freebsd2.*) | |
11553 | shlibpath_overrides_runpath=yes | |
11554 | ;; | |
11555 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11556 | shlibpath_overrides_runpath=yes | |
11557 | hardcode_into_libs=yes | |
11558 | ;; | |
11559 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11560 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11561 | shlibpath_overrides_runpath=no | |
11562 | hardcode_into_libs=yes | |
11563 | ;; | |
11564 | *) # from 4.6 on, and DragonFly | |
11565 | shlibpath_overrides_runpath=yes | |
11566 | hardcode_into_libs=yes | |
11567 | ;; | |
11568 | esac | |
11569 | ;; | |
9c60689e | 11570 | |
a243b558 JF |
11571 | gnu*) |
11572 | version_type=linux # correct to gnu/linux during the next big refactor | |
11573 | need_lib_prefix=no | |
11574 | need_version=no | |
11575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11576 | soname_spec='${libname}${release}${shared_ext}$major' | |
11577 | shlibpath_var=LD_LIBRARY_PATH | |
11578 | shlibpath_overrides_runpath=no | |
11579 | hardcode_into_libs=yes | |
11580 | ;; | |
9c60689e | 11581 | |
a243b558 JF |
11582 | haiku*) |
11583 | version_type=linux # correct to gnu/linux during the next big refactor | |
11584 | need_lib_prefix=no | |
11585 | need_version=no | |
11586 | dynamic_linker="$host_os runtime_loader" | |
11587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11588 | soname_spec='${libname}${release}${shared_ext}$major' | |
11589 | shlibpath_var=LIBRARY_PATH | |
11590 | shlibpath_overrides_runpath=yes | |
11591 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11592 | hardcode_into_libs=yes | |
11593 | ;; | |
9c60689e | 11594 | |
a243b558 JF |
11595 | hpux9* | hpux10* | hpux11*) |
11596 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11597 | # link against other versions. | |
11598 | version_type=sunos | |
11599 | need_lib_prefix=no | |
11600 | need_version=no | |
11601 | case $host_cpu in | |
11602 | ia64*) | |
11603 | shrext_cmds='.so' | |
11604 | hardcode_into_libs=yes | |
11605 | dynamic_linker="$host_os dld.so" | |
11606 | shlibpath_var=LD_LIBRARY_PATH | |
11607 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11609 | soname_spec='${libname}${release}${shared_ext}$major' | |
11610 | if test "X$HPUX_IA64_MODE" = X32; then | |
11611 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11612 | else | |
11613 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11614 | fi | |
11615 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11616 | ;; | |
11617 | hppa*64*) | |
11618 | shrext_cmds='.sl' | |
11619 | hardcode_into_libs=yes | |
11620 | dynamic_linker="$host_os dld.sl" | |
11621 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11622 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11624 | soname_spec='${libname}${release}${shared_ext}$major' | |
11625 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11626 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11627 | ;; | |
11628 | *) | |
11629 | shrext_cmds='.sl' | |
11630 | dynamic_linker="$host_os dld.sl" | |
11631 | shlibpath_var=SHLIB_PATH | |
11632 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11634 | soname_spec='${libname}${release}${shared_ext}$major' | |
9c60689e DWT |
11635 | ;; |
11636 | esac | |
a243b558 JF |
11637 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11638 | postinstall_cmds='chmod 555 $lib' | |
11639 | # or fails outright, so override atomically: | |
11640 | install_override_mode=555 | |
11641 | ;; | |
9c60689e | 11642 | |
a243b558 JF |
11643 | interix[3-9]*) |
11644 | version_type=linux # correct to gnu/linux during the next big refactor | |
11645 | need_lib_prefix=no | |
11646 | need_version=no | |
11647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11648 | soname_spec='${libname}${release}${shared_ext}$major' | |
11649 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11650 | shlibpath_var=LD_LIBRARY_PATH | |
11651 | shlibpath_overrides_runpath=no | |
11652 | hardcode_into_libs=yes | |
11653 | ;; | |
9c60689e | 11654 | |
a243b558 JF |
11655 | irix5* | irix6* | nonstopux*) |
11656 | case $host_os in | |
11657 | nonstopux*) version_type=nonstopux ;; | |
11658 | *) | |
11659 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11660 | version_type=linux # correct to gnu/linux during the next big refactor | |
11661 | else | |
11662 | version_type=irix | |
11663 | fi ;; | |
11664 | esac | |
11665 | need_lib_prefix=no | |
11666 | need_version=no | |
11667 | soname_spec='${libname}${release}${shared_ext}$major' | |
11668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11669 | case $host_os in | |
11670 | irix5* | nonstopux*) | |
11671 | libsuff= shlibsuff= | |
11672 | ;; | |
11673 | *) | |
11674 | case $LD in # libtool.m4 will add one of these switches to LD | |
11675 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11676 | libsuff= shlibsuff= libmagic=32-bit;; | |
11677 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11678 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11679 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11680 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11681 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11682 | esac | |
11683 | ;; | |
11684 | esac | |
11685 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11686 | shlibpath_overrides_runpath=no | |
11687 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11688 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11689 | hardcode_into_libs=yes | |
11690 | ;; | |
9c60689e | 11691 | |
a243b558 JF |
11692 | # No shared lib support for Linux oldld, aout, or coff. |
11693 | linux*oldld* | linux*aout* | linux*coff*) | |
11694 | dynamic_linker=no | |
11695 | ;; | |
9c60689e | 11696 | |
a243b558 JF |
11697 | # This must be glibc/ELF. |
11698 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11699 | version_type=linux # correct to gnu/linux during the next big refactor | |
11700 | need_lib_prefix=no | |
11701 | need_version=no | |
11702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11703 | soname_spec='${libname}${release}${shared_ext}$major' | |
11704 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11705 | shlibpath_var=LD_LIBRARY_PATH | |
11706 | shlibpath_overrides_runpath=no | |
9c60689e | 11707 | |
a243b558 JF |
11708 | # Some binutils ld are patched to set DT_RUNPATH |
11709 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
11710 | $as_echo_n "(cached) " >&6 |
11711 | else | |
a243b558 JF |
11712 | lt_cv_shlibpath_overrides_runpath=no |
11713 | save_LDFLAGS=$LDFLAGS | |
11714 | save_libdir=$libdir | |
11715 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11716 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11718 | /* end confdefs.h. */ | |
ee134472 | 11719 | |
a243b558 JF |
11720 | int |
11721 | main () | |
9c60689e | 11722 | { |
9c60689e | 11723 | |
a243b558 JF |
11724 | ; |
11725 | return 0; | |
11726 | } | |
11727 | _ACEOF | |
11728 | if ac_fn_c_try_link "$LINENO"; then : | |
11729 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11730 | lt_cv_shlibpath_overrides_runpath=yes | |
11731 | fi | |
11732 | fi | |
11733 | rm -f core conftest.err conftest.$ac_objext \ | |
11734 | conftest$ac_exeext conftest.$ac_ext | |
11735 | LDFLAGS=$save_LDFLAGS | |
11736 | libdir=$save_libdir | |
9c60689e | 11737 | |
a243b558 | 11738 | fi |
9c60689e | 11739 | |
a243b558 | 11740 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 11741 | |
a243b558 JF |
11742 | # This implies no fast_install, which is unacceptable. |
11743 | # Some rework will be needed to allow for fast_install | |
11744 | # before this can be enabled. | |
11745 | hardcode_into_libs=yes | |
9c60689e | 11746 | |
a243b558 JF |
11747 | # Append ld.so.conf contents to the search path |
11748 | if test -f /etc/ld.so.conf; then | |
11749 | 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' ' '` | |
11750 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11751 | fi | |
ee134472 | 11752 | |
a243b558 JF |
11753 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11754 | # powerpc, because MkLinux only supported shared libraries with the | |
11755 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11756 | # most powerpc-linux boxes support dynamic linking these days and | |
11757 | # people can always --disable-shared, the test was removed, and we | |
11758 | # assume the GNU/Linux dynamic linker is in use. | |
11759 | dynamic_linker='GNU/Linux ld.so' | |
11760 | ;; | |
9c60689e | 11761 | |
a243b558 JF |
11762 | netbsd*) |
11763 | version_type=sunos | |
11764 | need_lib_prefix=no | |
11765 | need_version=no | |
11766 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11768 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11769 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 11770 | else |
a243b558 JF |
11771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11772 | soname_spec='${libname}${release}${shared_ext}$major' | |
11773 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 11774 | fi |
a243b558 JF |
11775 | shlibpath_var=LD_LIBRARY_PATH |
11776 | shlibpath_overrides_runpath=yes | |
11777 | hardcode_into_libs=yes | |
11778 | ;; | |
9c60689e | 11779 | |
a243b558 JF |
11780 | newsos6) |
11781 | version_type=linux # correct to gnu/linux during the next big refactor | |
11782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11783 | shlibpath_var=LD_LIBRARY_PATH | |
11784 | shlibpath_overrides_runpath=yes | |
11785 | ;; | |
9c60689e | 11786 | |
a243b558 JF |
11787 | *nto* | *qnx*) |
11788 | version_type=qnx | |
11789 | need_lib_prefix=no | |
11790 | need_version=no | |
11791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11792 | soname_spec='${libname}${release}${shared_ext}$major' | |
11793 | shlibpath_var=LD_LIBRARY_PATH | |
11794 | shlibpath_overrides_runpath=no | |
11795 | hardcode_into_libs=yes | |
11796 | dynamic_linker='ldqnx.so' | |
11797 | ;; | |
9c60689e | 11798 | |
a243b558 JF |
11799 | openbsd*) |
11800 | version_type=sunos | |
11801 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11802 | need_lib_prefix=no | |
11803 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11804 | case $host_os in | |
11805 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11806 | *) need_version=no ;; | |
9c60689e | 11807 | esac |
a243b558 JF |
11808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11809 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11810 | shlibpath_var=LD_LIBRARY_PATH | |
11811 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11812 | case $host_os in | |
11813 | openbsd2.[89] | openbsd2.[89].*) | |
11814 | shlibpath_overrides_runpath=no | |
11815 | ;; | |
11816 | *) | |
11817 | shlibpath_overrides_runpath=yes | |
11818 | ;; | |
11819 | esac | |
11820 | else | |
11821 | shlibpath_overrides_runpath=yes | |
11822 | fi | |
11823 | ;; | |
9c60689e | 11824 | |
a243b558 JF |
11825 | os2*) |
11826 | libname_spec='$name' | |
11827 | shrext_cmds=".dll" | |
11828 | need_lib_prefix=no | |
11829 | library_names_spec='$libname${shared_ext} $libname.a' | |
11830 | dynamic_linker='OS/2 ld.exe' | |
11831 | shlibpath_var=LIBPATH | |
11832 | ;; | |
9c60689e | 11833 | |
a243b558 JF |
11834 | osf3* | osf4* | osf5*) |
11835 | version_type=osf | |
11836 | need_lib_prefix=no | |
11837 | need_version=no | |
11838 | soname_spec='${libname}${release}${shared_ext}$major' | |
11839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11840 | shlibpath_var=LD_LIBRARY_PATH | |
11841 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11842 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11843 | ;; | |
11844 | ||
11845 | rdos*) | |
11846 | dynamic_linker=no | |
11847 | ;; | |
11848 | ||
11849 | solaris*) | |
11850 | version_type=linux # correct to gnu/linux during the next big refactor | |
11851 | need_lib_prefix=no | |
11852 | need_version=no | |
11853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11854 | soname_spec='${libname}${release}${shared_ext}$major' | |
11855 | shlibpath_var=LD_LIBRARY_PATH | |
11856 | shlibpath_overrides_runpath=yes | |
11857 | hardcode_into_libs=yes | |
11858 | # ldd complains unless libraries are executable | |
11859 | postinstall_cmds='chmod +x $lib' | |
11860 | ;; | |
9c60689e | 11861 | |
a243b558 JF |
11862 | sunos4*) |
11863 | version_type=sunos | |
11864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11865 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11866 | shlibpath_var=LD_LIBRARY_PATH | |
11867 | shlibpath_overrides_runpath=yes | |
11868 | if test "$with_gnu_ld" = yes; then | |
11869 | need_lib_prefix=no | |
11870 | fi | |
11871 | need_version=yes | |
11872 | ;; | |
9c60689e | 11873 | |
a243b558 JF |
11874 | sysv4 | sysv4.3*) |
11875 | version_type=linux # correct to gnu/linux during the next big refactor | |
11876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11877 | soname_spec='${libname}${release}${shared_ext}$major' | |
11878 | shlibpath_var=LD_LIBRARY_PATH | |
11879 | case $host_vendor in | |
11880 | sni) | |
11881 | shlibpath_overrides_runpath=no | |
11882 | need_lib_prefix=no | |
11883 | runpath_var=LD_RUN_PATH | |
11884 | ;; | |
11885 | siemens) | |
11886 | need_lib_prefix=no | |
11887 | ;; | |
11888 | motorola) | |
11889 | need_lib_prefix=no | |
11890 | need_version=no | |
11891 | shlibpath_overrides_runpath=no | |
11892 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11893 | ;; | |
11894 | esac | |
11895 | ;; | |
9c60689e | 11896 | |
a243b558 JF |
11897 | sysv4*MP*) |
11898 | if test -d /usr/nec ;then | |
11899 | version_type=linux # correct to gnu/linux during the next big refactor | |
11900 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11901 | soname_spec='$libname${shared_ext}.$major' | |
11902 | shlibpath_var=LD_LIBRARY_PATH | |
11903 | fi | |
11904 | ;; | |
9c60689e | 11905 | |
a243b558 JF |
11906 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11907 | version_type=freebsd-elf | |
11908 | need_lib_prefix=no | |
11909 | need_version=no | |
11910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11911 | soname_spec='${libname}${release}${shared_ext}$major' | |
11912 | shlibpath_var=LD_LIBRARY_PATH | |
11913 | shlibpath_overrides_runpath=yes | |
11914 | hardcode_into_libs=yes | |
11915 | if test "$with_gnu_ld" = yes; then | |
11916 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11917 | else | |
11918 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11919 | case $host_os in | |
11920 | sco3.2v5*) | |
11921 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11922 | ;; | |
11923 | esac | |
11924 | fi | |
11925 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11926 | ;; | |
9c60689e | 11927 | |
a243b558 JF |
11928 | tpf*) |
11929 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11930 | version_type=linux # correct to gnu/linux during the next big refactor | |
11931 | need_lib_prefix=no | |
11932 | need_version=no | |
11933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11934 | shlibpath_var=LD_LIBRARY_PATH | |
11935 | shlibpath_overrides_runpath=no | |
11936 | hardcode_into_libs=yes | |
11937 | ;; | |
9c60689e | 11938 | |
a243b558 JF |
11939 | uts4*) |
11940 | version_type=linux # correct to gnu/linux during the next big refactor | |
11941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11942 | soname_spec='${libname}${release}${shared_ext}$major' | |
11943 | shlibpath_var=LD_LIBRARY_PATH | |
11944 | ;; | |
9c60689e | 11945 | |
a243b558 JF |
11946 | *) |
11947 | dynamic_linker=no | |
11948 | ;; | |
11949 | esac | |
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11951 | $as_echo "$dynamic_linker" >&6; } | |
11952 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 11953 | |
a243b558 JF |
11954 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11955 | if test "$GCC" = yes; then | |
11956 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11957 | fi | |
9c60689e | 11958 | |
a243b558 JF |
11959 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11960 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11961 | fi | |
11962 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11963 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11964 | fi | |
9c60689e DWT |
11965 | |
11966 | ||
11967 | ||
11968 | ||
11969 | ||
11970 | ||
11971 | ||
11972 | ||
9c60689e DWT |
11973 | |
11974 | ||
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
9c60689e | 11985 | |
9c60689e | 11986 | |
9c60689e | 11987 | |
9c60689e | 11988 | |
9c60689e DWT |
11989 | |
11990 | ||
11991 | ||
11992 | ||
9c60689e | 11993 | |
9c60689e DWT |
11994 | |
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | ||
53ba6704 JF |
12007 | |
12008 | ||
9c60689e DWT |
12009 | |
12010 | ||
12011 | ||
12012 | ||
9c60689e DWT |
12013 | |
12014 | ||
3fd51f51 | 12015 | |
66170b30 JF |
12016 | |
12017 | ||
12018 | ||
3fd51f51 | 12019 | |
12833ad8 JF |
12020 | |
12021 | ||
12022 | ||
12023 | ||
3fd51f51 | 12024 | |
3fd51f51 DWT |
12025 | |
12026 | ||
3fd51f51 | 12027 | |
3fd51f51 | 12028 | |
3fd51f51 | 12029 | |
66170b30 | 12030 | |
632b71ea | 12031 | |
632b71ea DWT |
12032 | |
12033 | ||
790e5246 | 12034 | |
66170b30 | 12035 | |
9c60689e | 12036 | |
9c60689e DWT |
12037 | |
12038 | ||
9c60689e | 12039 | |
9c60689e DWT |
12040 | |
12041 | ||
66170b30 | 12042 | |
66170b30 | 12043 | |
9c60689e | 12044 | |
e9c9a47c DWT |
12045 | |
12046 | ||
12047 | ||
66170b30 JF |
12048 | |
12049 | ||
66170b30 | 12050 | |
e9c9a47c | 12051 | |
a243b558 JF |
12052 | |
12053 | ||
12054 | ||
12055 | ||
12056 | ||
12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12058 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12059 | hardcode_action= | |
12060 | if test -n "$hardcode_libdir_flag_spec" || | |
12061 | test -n "$runpath_var" || | |
12062 | test "X$hardcode_automatic" = "Xyes" ; then | |
12063 | ||
12064 | # We can hardcode non-existent directories. | |
12065 | if test "$hardcode_direct" != no && | |
12066 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12067 | # have to relink, otherwise we might link with an installed library | |
12068 | # when we should be linking with a yet-to-be-installed one | |
12069 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12070 | test "$hardcode_minus_L" != no; then | |
12071 | # Linking always hardcodes the temporary library directory. | |
12072 | hardcode_action=relink | |
12073 | else | |
12074 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12075 | hardcode_action=immediate | |
9c60689e | 12076 | fi |
e9c9a47c | 12077 | else |
a243b558 JF |
12078 | # We cannot hardcode anything, or else we can only hardcode existing |
12079 | # directories. | |
12080 | hardcode_action=unsupported | |
12081 | fi | |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12083 | $as_echo "$hardcode_action" >&6; } | |
12084 | ||
12085 | if test "$hardcode_action" = relink || | |
12086 | test "$inherit_rpath" = yes; then | |
12087 | # Fast installation is not supported | |
12088 | enable_fast_install=no | |
12089 | elif test "$shlibpath_overrides_runpath" = yes || | |
12090 | test "$enable_shared" = no; then | |
12091 | # Fast installation is not necessary | |
12092 | enable_fast_install=needless | |
9c60689e | 12093 | fi |
9c60689e | 12094 | |
9c60689e | 12095 | |
66170b30 | 12096 | |
66170b30 | 12097 | |
9c60689e | 12098 | |
a243b558 JF |
12099 | |
12100 | if test "x$enable_dlopen" != xyes; then | |
12101 | enable_dlopen=unknown | |
12102 | enable_dlopen_self=unknown | |
12103 | enable_dlopen_self_static=unknown | |
66170b30 | 12104 | else |
a243b558 JF |
12105 | lt_cv_dlopen=no |
12106 | lt_cv_dlopen_libs= | |
66170b30 | 12107 | |
a243b558 JF |
12108 | case $host_os in |
12109 | beos*) | |
12110 | lt_cv_dlopen="load_add_on" | |
12111 | lt_cv_dlopen_libs= | |
12112 | lt_cv_dlopen_self=yes | |
12113 | ;; | |
66170b30 | 12114 | |
a243b558 JF |
12115 | mingw* | pw32* | cegcc*) |
12116 | lt_cv_dlopen="LoadLibrary" | |
12117 | lt_cv_dlopen_libs= | |
12118 | ;; | |
66170b30 | 12119 | |
a243b558 JF |
12120 | cygwin*) |
12121 | lt_cv_dlopen="dlopen" | |
12122 | lt_cv_dlopen_libs= | |
12123 | ;; | |
66170b30 | 12124 | |
a243b558 JF |
12125 | darwin*) |
12126 | # if libdl is installed we need to link against it | |
12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12128 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12129 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12130 | $as_echo_n "(cached) " >&6 | |
12131 | else | |
12132 | ac_check_lib_save_LIBS=$LIBS | |
12133 | LIBS="-ldl $LIBS" | |
12134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12135 | /* end confdefs.h. */ | |
66170b30 | 12136 | |
a243b558 JF |
12137 | /* Override any GCC internal prototype to avoid an error. |
12138 | Use char because int might match the return type of a GCC | |
12139 | builtin and then its argument prototype would still apply. */ | |
12140 | #ifdef __cplusplus | |
12141 | extern "C" | |
12142 | #endif | |
12143 | char dlopen (); | |
12144 | int | |
12145 | main () | |
12146 | { | |
12147 | return dlopen (); | |
12148 | ; | |
12149 | return 0; | |
12150 | } | |
12151 | _ACEOF | |
12152 | if ac_fn_c_try_link "$LINENO"; then : | |
12153 | ac_cv_lib_dl_dlopen=yes | |
12154 | else | |
12155 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12156 | fi |
a243b558 JF |
12157 | rm -f core conftest.err conftest.$ac_objext \ |
12158 | conftest$ac_exeext conftest.$ac_ext | |
12159 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12160 | fi |
a243b558 JF |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12162 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12163 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12164 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12165 | else | |
66170b30 | 12166 | |
a243b558 JF |
12167 | lt_cv_dlopen="dyld" |
12168 | lt_cv_dlopen_libs= | |
12169 | lt_cv_dlopen_self=yes | |
66170b30 | 12170 | |
a243b558 | 12171 | fi |
9c60689e | 12172 | |
a243b558 | 12173 | ;; |
9c60689e | 12174 | |
a243b558 JF |
12175 | *) |
12176 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12177 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12178 | lt_cv_dlopen="shl_load" | |
12179 | else | |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12181 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12182 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12183 | $as_echo_n "(cached) " >&6 | |
12184 | else | |
12185 | ac_check_lib_save_LIBS=$LIBS | |
12186 | LIBS="-ldld $LIBS" | |
12187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12188 | /* end confdefs.h. */ | |
66170b30 | 12189 | |
a243b558 JF |
12190 | /* Override any GCC internal prototype to avoid an error. |
12191 | Use char because int might match the return type of a GCC | |
12192 | builtin and then its argument prototype would still apply. */ | |
12193 | #ifdef __cplusplus | |
12194 | extern "C" | |
12195 | #endif | |
12196 | char shl_load (); | |
12197 | int | |
12198 | main () | |
12199 | { | |
12200 | return shl_load (); | |
12201 | ; | |
12202 | return 0; | |
12203 | } | |
12204 | _ACEOF | |
12205 | if ac_fn_c_try_link "$LINENO"; then : | |
12206 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12207 | else |
a243b558 JF |
12208 | ac_cv_lib_dld_shl_load=no |
12209 | fi | |
12210 | rm -f core conftest.err conftest.$ac_objext \ | |
12211 | conftest$ac_exeext conftest.$ac_ext | |
12212 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12213 | fi |
a243b558 JF |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12215 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12216 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12217 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12218 | else | |
12219 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12220 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12221 | lt_cv_dlopen="dlopen" | |
12222 | else | |
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12224 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12225 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12226 | $as_echo_n "(cached) " >&6 | |
12227 | else | |
12228 | ac_check_lib_save_LIBS=$LIBS | |
12229 | LIBS="-ldl $LIBS" | |
12230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12231 | /* end confdefs.h. */ | |
e9c9a47c | 12232 | |
a243b558 JF |
12233 | /* Override any GCC internal prototype to avoid an error. |
12234 | Use char because int might match the return type of a GCC | |
12235 | builtin and then its argument prototype would still apply. */ | |
12236 | #ifdef __cplusplus | |
12237 | extern "C" | |
12238 | #endif | |
12239 | char dlopen (); | |
12240 | int | |
12241 | main () | |
12242 | { | |
12243 | return dlopen (); | |
12244 | ; | |
12245 | return 0; | |
12246 | } | |
12247 | _ACEOF | |
12248 | if ac_fn_c_try_link "$LINENO"; then : | |
12249 | ac_cv_lib_dl_dlopen=yes | |
12250 | else | |
12251 | ac_cv_lib_dl_dlopen=no | |
12252 | fi | |
12253 | rm -f core conftest.err conftest.$ac_objext \ | |
12254 | conftest$ac_exeext conftest.$ac_ext | |
12255 | LIBS=$ac_check_lib_save_LIBS | |
12256 | fi | |
12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12258 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12259 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12260 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12261 | else | |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12263 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12264 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12265 | $as_echo_n "(cached) " >&6 | |
12266 | else | |
12267 | ac_check_lib_save_LIBS=$LIBS | |
12268 | LIBS="-lsvld $LIBS" | |
12269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12270 | /* end confdefs.h. */ | |
12271 | ||
12272 | /* Override any GCC internal prototype to avoid an error. | |
12273 | Use char because int might match the return type of a GCC | |
12274 | builtin and then its argument prototype would still apply. */ | |
12275 | #ifdef __cplusplus | |
12276 | extern "C" | |
12277 | #endif | |
12278 | char dlopen (); | |
12279 | int | |
12280 | main () | |
12281 | { | |
12282 | return dlopen (); | |
12283 | ; | |
12284 | return 0; | |
12285 | } | |
12286 | _ACEOF | |
12287 | if ac_fn_c_try_link "$LINENO"; then : | |
12288 | ac_cv_lib_svld_dlopen=yes | |
12289 | else | |
12290 | ac_cv_lib_svld_dlopen=no | |
12291 | fi | |
12292 | rm -f core conftest.err conftest.$ac_objext \ | |
12293 | conftest$ac_exeext conftest.$ac_ext | |
12294 | LIBS=$ac_check_lib_save_LIBS | |
12295 | fi | |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12297 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12298 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12299 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12300 | else | |
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12302 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12303 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12304 | $as_echo_n "(cached) " >&6 | |
12305 | else | |
12306 | ac_check_lib_save_LIBS=$LIBS | |
12307 | LIBS="-ldld $LIBS" | |
12308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12309 | /* end confdefs.h. */ | |
12310 | ||
12311 | /* Override any GCC internal prototype to avoid an error. | |
12312 | Use char because int might match the return type of a GCC | |
12313 | builtin and then its argument prototype would still apply. */ | |
12314 | #ifdef __cplusplus | |
12315 | extern "C" | |
12316 | #endif | |
12317 | char dld_link (); | |
12318 | int | |
12319 | main () | |
12320 | { | |
12321 | return dld_link (); | |
12322 | ; | |
12323 | return 0; | |
12324 | } | |
12325 | _ACEOF | |
12326 | if ac_fn_c_try_link "$LINENO"; then : | |
12327 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12328 | else |
a243b558 JF |
12329 | ac_cv_lib_dld_dld_link=no |
12330 | fi | |
12331 | rm -f core conftest.err conftest.$ac_objext \ | |
12332 | conftest$ac_exeext conftest.$ac_ext | |
12333 | LIBS=$ac_check_lib_save_LIBS | |
12334 | fi | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12336 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12337 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12338 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9c60689e DWT |
12339 | fi |
12340 | ||
12341 | ||
a243b558 | 12342 | fi |
66170b30 | 12343 | |
66170b30 | 12344 | |
a243b558 | 12345 | fi |
66170b30 | 12346 | |
66170b30 JF |
12347 | |
12348 | fi | |
e9c9a47c | 12349 | |
66170b30 | 12350 | |
a243b558 | 12351 | fi |
66170b30 | 12352 | |
66170b30 | 12353 | |
66170b30 | 12354 | fi |
e9c9a47c | 12355 | |
a243b558 JF |
12356 | ;; |
12357 | esac | |
9c60689e | 12358 | |
a243b558 JF |
12359 | if test "x$lt_cv_dlopen" != xno; then |
12360 | enable_dlopen=yes | |
12361 | else | |
12362 | enable_dlopen=no | |
12363 | fi | |
9c60689e | 12364 | |
a243b558 JF |
12365 | case $lt_cv_dlopen in |
12366 | dlopen) | |
12367 | save_CPPFLAGS="$CPPFLAGS" | |
12368 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12369 | |
a243b558 JF |
12370 | save_LDFLAGS="$LDFLAGS" |
12371 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
66170b30 | 12372 | |
a243b558 JF |
12373 | save_LIBS="$LIBS" |
12374 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
3fd51f51 | 12375 | |
a243b558 JF |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12377 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12378 | if ${lt_cv_dlopen_self+:} false; then : | |
12379 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12380 | else |
a243b558 JF |
12381 | if test "$cross_compiling" = yes; then : |
12382 | lt_cv_dlopen_self=cross | |
12383 | else | |
12384 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12385 | lt_status=$lt_dlunknown | |
12386 | cat > conftest.$ac_ext <<_LT_EOF | |
12387 | #line $LINENO "configure" | |
12388 | #include "confdefs.h" | |
e9c9a47c | 12389 | |
a243b558 JF |
12390 | #if HAVE_DLFCN_H |
12391 | #include <dlfcn.h> | |
12392 | #endif | |
e9c9a47c | 12393 | |
a243b558 | 12394 | #include <stdio.h> |
66170b30 | 12395 | |
a243b558 JF |
12396 | #ifdef RTLD_GLOBAL |
12397 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12398 | #else | |
12399 | # ifdef DL_GLOBAL | |
12400 | # define LT_DLGLOBAL DL_GLOBAL | |
12401 | # else | |
12402 | # define LT_DLGLOBAL 0 | |
12403 | # endif | |
12404 | #endif | |
66170b30 | 12405 | |
a243b558 JF |
12406 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12407 | find out it does not work in some platform. */ | |
12408 | #ifndef LT_DLLAZY_OR_NOW | |
12409 | # ifdef RTLD_LAZY | |
12410 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12411 | # else | |
12412 | # ifdef DL_LAZY | |
12413 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12414 | # else | |
12415 | # ifdef RTLD_NOW | |
12416 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12417 | # else | |
12418 | # ifdef DL_NOW | |
12419 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12420 | # else | |
12421 | # define LT_DLLAZY_OR_NOW 0 | |
12422 | # endif | |
12423 | # endif | |
12424 | # endif | |
12425 | # endif | |
12426 | #endif | |
e9c9a47c | 12427 | |
a243b558 JF |
12428 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12429 | correspondingly for the symbols needed. */ | |
12430 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12431 | int fnord () __attribute__((visibility("default"))); | |
12432 | #endif | |
e9c9a47c | 12433 | |
a243b558 JF |
12434 | int fnord () { return 42; } |
12435 | int main () | |
12436 | { | |
12437 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12438 | int status = $lt_dlunknown; | |
e9c9a47c | 12439 | |
a243b558 JF |
12440 | if (self) |
12441 | { | |
12442 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12443 | else | |
12444 | { | |
12445 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12446 | else puts (dlerror ()); | |
12447 | } | |
12448 | /* dlclose (self); */ | |
12449 | } | |
12450 | else | |
12451 | puts (dlerror ()); | |
e9c9a47c | 12452 | |
a243b558 JF |
12453 | return status; |
12454 | } | |
12455 | _LT_EOF | |
12456 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12457 | (eval $ac_link) 2>&5 | |
12458 | ac_status=$? | |
12459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12460 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12461 | (./conftest; exit; ) >&5 2>/dev/null | |
12462 | lt_status=$? | |
12463 | case x$lt_status in | |
12464 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12465 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12466 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12467 | esac | |
12468 | else : | |
12469 | # compilation failed | |
12470 | lt_cv_dlopen_self=no | |
12471 | fi | |
12472 | fi | |
12473 | rm -fr conftest* | |
e9c9a47c | 12474 | |
e9c9a47c | 12475 | |
e9c9a47c | 12476 | fi |
a243b558 JF |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12478 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12479 | |
a243b558 JF |
12480 | if test "x$lt_cv_dlopen_self" = xyes; then |
12481 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12483 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12484 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12485 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12486 | else |
a243b558 JF |
12487 | if test "$cross_compiling" = yes; then : |
12488 | lt_cv_dlopen_self_static=cross | |
12489 | else | |
12490 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12491 | lt_status=$lt_dlunknown | |
12492 | cat > conftest.$ac_ext <<_LT_EOF | |
12493 | #line $LINENO "configure" | |
12494 | #include "confdefs.h" | |
12495 | ||
12496 | #if HAVE_DLFCN_H | |
12497 | #include <dlfcn.h> | |
12498 | #endif | |
12499 | ||
12500 | #include <stdio.h> | |
e9c9a47c | 12501 | |
a243b558 JF |
12502 | #ifdef RTLD_GLOBAL |
12503 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12504 | #else | |
12505 | # ifdef DL_GLOBAL | |
12506 | # define LT_DLGLOBAL DL_GLOBAL | |
12507 | # else | |
12508 | # define LT_DLGLOBAL 0 | |
12509 | # endif | |
12510 | #endif | |
e9c9a47c | 12511 | |
a243b558 JF |
12512 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12513 | find out it does not work in some platform. */ | |
12514 | #ifndef LT_DLLAZY_OR_NOW | |
12515 | # ifdef RTLD_LAZY | |
12516 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12517 | # else | |
12518 | # ifdef DL_LAZY | |
12519 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12520 | # else | |
12521 | # ifdef RTLD_NOW | |
12522 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12523 | # else | |
12524 | # ifdef DL_NOW | |
12525 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12526 | # else | |
12527 | # define LT_DLLAZY_OR_NOW 0 | |
12528 | # endif | |
12529 | # endif | |
12530 | # endif | |
12531 | # endif | |
12532 | #endif | |
66170b30 | 12533 | |
a243b558 JF |
12534 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12535 | correspondingly for the symbols needed. */ | |
12536 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12537 | int fnord () __attribute__((visibility("default"))); | |
12538 | #endif | |
e9c9a47c | 12539 | |
a243b558 JF |
12540 | int fnord () { return 42; } |
12541 | int main () | |
12542 | { | |
12543 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12544 | int status = $lt_dlunknown; | |
e9c9a47c | 12545 | |
a243b558 JF |
12546 | if (self) |
12547 | { | |
12548 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12549 | else | |
12550 | { | |
12551 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12552 | else puts (dlerror ()); | |
12553 | } | |
12554 | /* dlclose (self); */ | |
12555 | } | |
12556 | else | |
12557 | puts (dlerror ()); | |
e9c9a47c | 12558 | |
a243b558 JF |
12559 | return status; |
12560 | } | |
12561 | _LT_EOF | |
12562 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12563 | (eval $ac_link) 2>&5 | |
12564 | ac_status=$? | |
12565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12566 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12567 | (./conftest; exit; ) >&5 2>/dev/null | |
12568 | lt_status=$? | |
12569 | case x$lt_status in | |
12570 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12571 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12572 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12573 | esac | |
12574 | else : | |
12575 | # compilation failed | |
12576 | lt_cv_dlopen_self_static=no | |
12577 | fi | |
12578 | fi | |
12579 | rm -fr conftest* | |
e9c9a47c | 12580 | |
b65019fe | 12581 | |
a243b558 JF |
12582 | fi |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12584 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12585 | fi | |
66170b30 | 12586 | |
a243b558 JF |
12587 | CPPFLAGS="$save_CPPFLAGS" |
12588 | LDFLAGS="$save_LDFLAGS" | |
12589 | LIBS="$save_LIBS" | |
12590 | ;; | |
12591 | esac | |
66170b30 | 12592 | |
a243b558 JF |
12593 | case $lt_cv_dlopen_self in |
12594 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12595 | *) enable_dlopen_self=unknown ;; | |
12596 | esac | |
12597 | ||
12598 | case $lt_cv_dlopen_self_static in | |
12599 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12600 | *) enable_dlopen_self_static=unknown ;; | |
12601 | esac | |
b65019fe DWT |
12602 | fi |
12603 | ||
12604 | ||
66170b30 | 12605 | |
b65019fe | 12606 | |
e9c9a47c | 12607 | |
e9c9a47c DWT |
12608 | |
12609 | ||
e9c9a47c | 12610 | |
e9c9a47c DWT |
12611 | |
12612 | ||
e9c9a47c | 12613 | |
e9c9a47c | 12614 | |
3530897b | 12615 | |
47aaa820 | 12616 | |
47aaa820 | 12617 | |
a243b558 JF |
12618 | |
12619 | ||
12620 | striplib= | |
12621 | old_striplib= | |
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12623 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12624 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12625 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12626 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12628 | $as_echo "yes" >&6; } | |
47aaa820 | 12629 | else |
a243b558 JF |
12630 | # FIXME - insert some real tests, host_os isn't really good enough |
12631 | case $host_os in | |
12632 | darwin*) | |
12633 | if test -n "$STRIP" ; then | |
12634 | striplib="$STRIP -x" | |
12635 | old_striplib="$STRIP -S" | |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12637 | $as_echo "yes" >&6; } | |
12638 | else | |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12640 | $as_echo "no" >&6; } | |
12641 | fi | |
12642 | ;; | |
12643 | *) | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12645 | $as_echo "no" >&6; } | |
12646 | ;; | |
12647 | esac | |
3530897b | 12648 | fi |
47aaa820 | 12649 | |
3530897b DWT |
12650 | |
12651 | ||
9c60689e | 12652 | |
9c60689e | 12653 | |
9c60689e | 12654 | |
9c60689e | 12655 | |
9c60689e | 12656 | |
66170b30 | 12657 | |
66170b30 | 12658 | |
66170b30 | 12659 | |
66170b30 | 12660 | |
a243b558 JF |
12661 | # Report which library types will actually be built |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12663 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12665 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 12666 | |
a243b558 JF |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12668 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12669 | test "$can_build_shared" = "no" && enable_shared=no | |
66170b30 | 12670 | |
a243b558 JF |
12671 | # On AIX, shared libraries and static libraries use the same namespace, and |
12672 | # are all built from PIC. | |
12673 | case $host_os in | |
12674 | aix3*) | |
12675 | test "$enable_shared" = yes && enable_static=no | |
12676 | if test -n "$RANLIB"; then | |
12677 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12678 | postinstall_cmds='$RANLIB $lib' | |
12679 | fi | |
12680 | ;; | |
66170b30 | 12681 | |
a243b558 JF |
12682 | aix[4-9]*) |
12683 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12684 | test "$enable_shared" = yes && enable_static=no | |
12685 | fi | |
12686 | ;; | |
12687 | esac | |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12689 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 12690 | |
a243b558 JF |
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12692 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12693 | # Make sure either enable_shared or enable_static is yes. | |
12694 | test "$enable_shared" = yes || enable_static=yes | |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12696 | $as_echo "$enable_static" >&6; } | |
66170b30 | 12697 | |
9c60689e | 12698 | |
e9c9a47c | 12699 | |
9c60689e | 12700 | |
a243b558 JF |
12701 | fi |
12702 | ac_ext=c | |
12703 | ac_cpp='$CPP $CPPFLAGS' | |
12704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12707 | ||
12708 | CC="$lt_save_CC" | |
e9c9a47c | 12709 | |
ee134472 | 12710 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
e9c9a47c DWT |
12711 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
12712 | (test "X$CXX" != "Xg++"))) ; then | |
12713 | ac_ext=cpp | |
12714 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12719 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12720 | if test -z "$CXXCPP"; then | |
ee134472 | 12721 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
12722 | $as_echo_n "(cached) " >&6 |
12723 | else | |
12724 | # Double quotes because CXXCPP needs to be expanded | |
12725 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12726 | do | |
12727 | ac_preproc_ok=false | |
12728 | for ac_cxx_preproc_warn_flag in '' yes | |
12729 | do | |
12730 | # Use a header file that comes with gcc, so configuring glibc | |
12731 | # with a fresh cross-compiler works. | |
12732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12733 | # <limits.h> exists even on freestanding compilers. | |
12734 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12735 | # not just through cpp. "Syntax error" is here to catch this case. | |
12736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12737 | /* end confdefs.h. */ | |
12738 | #ifdef __STDC__ | |
12739 | # include <limits.h> | |
12740 | #else | |
12741 | # include <assert.h> | |
12742 | #endif | |
12743 | Syntax error | |
12744 | _ACEOF | |
12745 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12746 | ||
12747 | else | |
12748 | # Broken: fails on valid input. | |
12749 | continue | |
12750 | fi | |
12833ad8 | 12751 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12752 | |
12753 | # OK, works on sane cases. Now check whether nonexistent headers | |
12754 | # can be detected and how. | |
12755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12756 | /* end confdefs.h. */ | |
12757 | #include <ac_nonexistent.h> | |
12758 | _ACEOF | |
12759 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12760 | # Broken: success on invalid input. | |
12761 | continue | |
12762 | else | |
12763 | # Passes both tests. | |
12764 | ac_preproc_ok=: | |
12765 | break | |
12766 | fi | |
12833ad8 | 12767 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12768 | |
12769 | done | |
12770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12771 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12772 | if $ac_preproc_ok; then : |
12773 | break | |
12774 | fi | |
12775 | ||
12776 | done | |
12777 | ac_cv_prog_CXXCPP=$CXXCPP | |
12778 | ||
12779 | fi | |
12780 | CXXCPP=$ac_cv_prog_CXXCPP | |
12781 | else | |
12782 | ac_cv_prog_CXXCPP=$CXXCPP | |
12783 | fi | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12785 | $as_echo "$CXXCPP" >&6; } | |
12786 | ac_preproc_ok=false | |
12787 | for ac_cxx_preproc_warn_flag in '' yes | |
12788 | do | |
12789 | # Use a header file that comes with gcc, so configuring glibc | |
12790 | # with a fresh cross-compiler works. | |
12791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12792 | # <limits.h> exists even on freestanding compilers. | |
12793 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12794 | # not just through cpp. "Syntax error" is here to catch this case. | |
12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12796 | /* end confdefs.h. */ | |
12797 | #ifdef __STDC__ | |
12798 | # include <limits.h> | |
12799 | #else | |
12800 | # include <assert.h> | |
12801 | #endif | |
12802 | Syntax error | |
12803 | _ACEOF | |
12804 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12805 | ||
12806 | else | |
12807 | # Broken: fails on valid input. | |
12808 | continue | |
12809 | fi | |
12833ad8 | 12810 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12811 | |
12812 | # OK, works on sane cases. Now check whether nonexistent headers | |
12813 | # can be detected and how. | |
12814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12815 | /* end confdefs.h. */ | |
12816 | #include <ac_nonexistent.h> | |
12817 | _ACEOF | |
12818 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12819 | # Broken: success on invalid input. | |
12820 | continue | |
12821 | else | |
12822 | # Passes both tests. | |
12823 | ac_preproc_ok=: | |
12824 | break | |
12825 | fi | |
12833ad8 | 12826 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12827 | |
12828 | done | |
12829 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12830 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12831 | if $ac_preproc_ok; then : |
12832 | ||
12833 | else | |
12834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
12836 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12837 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
12838 | fi |
12839 | ||
a243b558 JF |
12840 | ac_ext=c |
12841 | ac_cpp='$CPP $CPPFLAGS' | |
12842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
12845 | |
12846 | else | |
e9c9a47c DWT |
12847 | _lt_caught_CXX_error=yes |
12848 | fi | |
12849 | ||
9c60689e DWT |
12850 | ac_ext=cpp |
12851 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12852 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12853 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12854 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 12855 | |
47aaa820 DWT |
12856 | archive_cmds_need_lc_CXX=no |
12857 | allow_undefined_flag_CXX= | |
12858 | always_export_symbols_CXX=no | |
12859 | archive_expsym_cmds_CXX= | |
12860 | compiler_needs_object_CXX=no | |
12861 | export_dynamic_flag_spec_CXX= | |
12862 | hardcode_direct_CXX=no | |
12863 | hardcode_direct_absolute_CXX=no | |
12864 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
12865 | hardcode_libdir_separator_CXX= |
12866 | hardcode_minus_L_CXX=no | |
12867 | hardcode_shlibpath_var_CXX=unsupported | |
12868 | hardcode_automatic_CXX=no | |
12869 | inherit_rpath_CXX=no | |
12870 | module_cmds_CXX= | |
12871 | module_expsym_cmds_CXX= | |
12872 | link_all_deplibs_CXX=unknown | |
12873 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
12874 | reload_flag_CXX=$reload_flag |
12875 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
12876 | no_undefined_flag_CXX= |
12877 | whole_archive_flag_spec_CXX= | |
12878 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 12879 | |
47aaa820 DWT |
12880 | # Source file extension for C++ test sources. |
12881 | ac_ext=cpp | |
9c60689e | 12882 | |
47aaa820 DWT |
12883 | # Object file extension for compiled C++ test sources. |
12884 | objext=o | |
12885 | objext_CXX=$objext | |
9c60689e | 12886 | |
47aaa820 DWT |
12887 | # No sense in running all these tests if we already determined that |
12888 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12889 | # are currently assumed to apply to all compilers on this platform, | |
12890 | # and will be corrupted by setting them based on a non-working compiler. | |
12891 | if test "$_lt_caught_CXX_error" != yes; then | |
12892 | # Code to be used in simple compile tests | |
12893 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 12894 | |
47aaa820 DWT |
12895 | # Code to be used in simple link tests |
12896 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 12897 | |
47aaa820 | 12898 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 12899 | |
9c60689e | 12900 | |
9c60689e | 12901 | |
9c60689e | 12902 | |
9c60689e | 12903 | |
9c60689e | 12904 | |
47aaa820 DWT |
12905 | # If no C compiler was specified, use CC. |
12906 | LTCC=${LTCC-"$CC"} | |
9c60689e | 12907 | |
47aaa820 DWT |
12908 | # If no C compiler flags were specified, use CFLAGS. |
12909 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 12910 | |
47aaa820 DWT |
12911 | # Allow CC to be a program name with arguments. |
12912 | compiler=$CC | |
9c60689e | 12913 | |
9c60689e | 12914 | |
47aaa820 DWT |
12915 | # save warnings/boilerplate of simple test code |
12916 | ac_outfile=conftest.$ac_objext | |
12917 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12918 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12919 | _lt_compiler_boilerplate=`cat conftest.err` | |
a93f15c0 | 12920 | $RM conftest* |
9c60689e | 12921 | |
47aaa820 DWT |
12922 | ac_outfile=conftest.$ac_objext |
12923 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12924 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12925 | _lt_linker_boilerplate=`cat conftest.err` | |
12926 | $RM -r conftest* | |
9c60689e | 12927 | |
9c60689e | 12928 | |
47aaa820 DWT |
12929 | # Allow CC to be a program name with arguments. |
12930 | lt_save_CC=$CC | |
ee134472 | 12931 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
12932 | lt_save_LD=$LD |
12933 | lt_save_GCC=$GCC | |
12934 | GCC=$GXX | |
12935 | lt_save_with_gnu_ld=$with_gnu_ld | |
12936 | lt_save_path_LD=$lt_cv_path_LD | |
12937 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12938 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 12939 | else |
47aaa820 | 12940 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 12941 | fi |
47aaa820 DWT |
12942 | if test -n "${lt_cv_path_LDCXX+set}"; then |
12943 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 12944 | else |
47aaa820 | 12945 | $as_unset lt_cv_path_LD |
9c60689e | 12946 | fi |
47aaa820 DWT |
12947 | test -z "${LDCXX+set}" || LD=$LDCXX |
12948 | CC=${CXX-"c++"} | |
ee134472 | 12949 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
12950 | compiler=$CC |
12951 | compiler_CXX=$CC | |
12952 | for cc_temp in $compiler""; do | |
12953 | case $cc_temp in | |
12954 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12955 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12956 | \-*) ;; | |
12957 | *) break;; | |
12958 | esac | |
12959 | done | |
ee134472 | 12960 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
9c60689e DWT |
12961 | |
12962 | ||
47aaa820 DWT |
12963 | if test -n "$compiler"; then |
12964 | # We don't want -fno-exception when compiling C++ code, so set the | |
12965 | # no_builtin_flag separately | |
12966 | if test "$GXX" = yes; then | |
12967 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12968 | else | |
12969 | lt_prog_compiler_no_builtin_flag_CXX= | |
12970 | fi | |
9c60689e | 12971 | |
47aaa820 DWT |
12972 | if test "$GXX" = yes; then |
12973 | # Set up default GNU C++ configuration | |
12974 | ||
12975 | ||
12976 | ||
12977 | # Check whether --with-gnu-ld was given. | |
12978 | if test "${with_gnu_ld+set}" = set; then : | |
12979 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 12980 | else |
47aaa820 | 12981 | with_gnu_ld=no |
9c60689e DWT |
12982 | fi |
12983 | ||
47aaa820 DWT |
12984 | ac_prog=ld |
12985 | if test "$GCC" = yes; then | |
12986 | # Check if gcc -print-prog-name=ld gives a path. | |
12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12988 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12989 | case $host in | |
12990 | *-*-mingw*) | |
12991 | # gcc leaves a trailing carriage return which upsets mingw | |
12992 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12993 | *) | |
12994 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12995 | esac | |
12996 | case $ac_prog in | |
12997 | # Accept absolute paths. | |
12998 | [\\/]* | ?:[\\/]*) | |
12999 | re_direlt='/[^/][^/]*/\.\./' | |
13000 | # Canonicalize the pathname of ld | |
13001 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13002 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13003 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13004 | done | |
13005 | test -z "$LD" && LD="$ac_prog" | |
13006 | ;; | |
13007 | "") | |
13008 | # If it fails, then pretend we aren't using GCC. | |
13009 | ac_prog=ld | |
13010 | ;; | |
13011 | *) | |
13012 | # If it is relative, then search for the first ld in PATH. | |
13013 | with_gnu_ld=unknown | |
13014 | ;; | |
13015 | esac | |
13016 | elif test "$with_gnu_ld" = yes; then | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13018 | $as_echo_n "checking for GNU ld... " >&6; } | |
13019 | else | |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13021 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 13022 | fi |
ee134472 | 13023 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
13024 | $as_echo_n "(cached) " >&6 |
13025 | else | |
47aaa820 DWT |
13026 | if test -z "$LD"; then |
13027 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13028 | for ac_dir in $PATH; do | |
13029 | IFS="$lt_save_ifs" | |
13030 | test -z "$ac_dir" && ac_dir=. | |
13031 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13032 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13033 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13034 | # but apparently some variants of GNU ld only accept -v. | |
13035 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13036 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13037 | *GNU* | *'with BFD'*) | |
13038 | test "$with_gnu_ld" != no && break | |
13039 | ;; | |
13040 | *) | |
13041 | test "$with_gnu_ld" != yes && break | |
13042 | ;; | |
13043 | esac | |
13044 | fi | |
9c60689e | 13045 | done |
47aaa820 DWT |
13046 | IFS="$lt_save_ifs" |
13047 | else | |
13048 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
13049 | fi |
13050 | fi | |
47aaa820 DWT |
13051 | |
13052 | LD="$lt_cv_path_LD" | |
13053 | if test -n "$LD"; then | |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13055 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
13056 | else |
13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13058 | $as_echo "no" >&6; } | |
13059 | fi | |
12833ad8 | 13060 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13062 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 13063 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
13064 | $as_echo_n "(cached) " >&6 |
13065 | else | |
13066 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13067 | case `$LD -v 2>&1 </dev/null` in | |
13068 | *GNU* | *'with BFD'*) | |
13069 | lt_cv_prog_gnu_ld=yes | |
13070 | ;; | |
13071 | *) | |
13072 | lt_cv_prog_gnu_ld=no | |
13073 | ;; | |
13074 | esac | |
13075 | fi | |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13077 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13078 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
13079 | |
13080 | ||
9c60689e | 13081 | |
9c60689e | 13082 | |
9c60689e | 13083 | |
9c60689e | 13084 | |
9c60689e | 13085 | |
47aaa820 DWT |
13086 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
13087 | # archiving commands below assume that GNU ld is being used. | |
13088 | if test "$with_gnu_ld" = yes; then | |
ee134472 JF |
13089 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13090 | 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 | 13091 | |
47aaa820 DWT |
13092 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13093 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13094 | |
47aaa820 DWT |
13095 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13096 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13097 | # investigate it a little bit more. (MM) | |
13098 | wlarc='${wl}' | |
9c60689e | 13099 | |
47aaa820 DWT |
13100 | # ancient GNU ld didn't support --whole-archive et. al. |
13101 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13102 | $GREP 'no-whole-archive' > /dev/null; then | |
13103 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13104 | else | |
13105 | whole_archive_flag_spec_CXX= | |
13106 | fi | |
13107 | else | |
13108 | with_gnu_ld=no | |
13109 | wlarc= | |
13110 | ||
13111 | # A generic and very simple default shared library creation | |
13112 | # command for GNU C++ for the case where it uses the native | |
13113 | # linker, instead of GNU ld. If possible, this setting should | |
13114 | # overridden to take advantage of the native linker features on | |
13115 | # the platform it is being used on. | |
13116 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13117 | fi | |
13118 | ||
13119 | # Commands to make compiler produce verbose output that lists | |
13120 | # what "hidden" libraries, object files and flags are used when | |
13121 | # linking a shared library. | |
ee134472 | 13122 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13123 | |
13124 | else | |
13125 | GXX=no | |
13126 | with_gnu_ld=no | |
13127 | wlarc= | |
13128 | fi | |
13129 | ||
13130 | # PORTME: fill in a description of your system's C++ link characteristics | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13132 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13133 | ld_shlibs_CXX=yes | |
13134 | case $host_os in | |
13135 | aix3*) | |
13136 | # FIXME: insert proper C++ library support | |
13137 | ld_shlibs_CXX=no | |
13138 | ;; | |
13139 | aix[4-9]*) | |
13140 | if test "$host_cpu" = ia64; then | |
13141 | # On IA64, the linker does run time linking by default, so we don't | |
13142 | # have to do anything special. | |
13143 | aix_use_runtimelinking=no | |
13144 | exp_sym_flag='-Bexport' | |
13145 | no_entry_flag="" | |
13146 | else | |
13147 | aix_use_runtimelinking=no | |
13148 | ||
13149 | # Test if we are trying to use run time linking or normal | |
13150 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13151 | # need to do runtime linking. | |
13152 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13153 | for ld_flag in $LDFLAGS; do | |
13154 | case $ld_flag in | |
13155 | *-brtl*) | |
13156 | aix_use_runtimelinking=yes | |
13157 | break | |
13158 | ;; | |
13159 | esac | |
13160 | done | |
13161 | ;; | |
13162 | esac | |
13163 | ||
13164 | exp_sym_flag='-bexport' | |
13165 | no_entry_flag='-bnoentry' | |
13166 | fi | |
13167 | ||
13168 | # When large executables or shared objects are built, AIX ld can | |
13169 | # have problems creating the table of contents. If linking a library | |
13170 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13171 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13172 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13173 | ||
13174 | archive_cmds_CXX='' | |
13175 | hardcode_direct_CXX=yes | |
13176 | hardcode_direct_absolute_CXX=yes | |
13177 | hardcode_libdir_separator_CXX=':' | |
13178 | link_all_deplibs_CXX=yes | |
13179 | file_list_spec_CXX='${wl}-f,' | |
13180 | ||
13181 | if test "$GXX" = yes; then | |
13182 | case $host_os in aix4.[012]|aix4.[012].*) | |
13183 | # We only want to do this on AIX 4.2 and lower, the check | |
13184 | # below for broken collect2 doesn't work under 4.3+ | |
13185 | collect2name=`${CC} -print-prog-name=collect2` | |
13186 | if test -f "$collect2name" && | |
13187 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13188 | then | |
13189 | # We have reworked collect2 | |
13190 | : | |
13191 | else | |
13192 | # We have old collect2 | |
13193 | hardcode_direct_CXX=unsupported | |
13194 | # It fails to find uninstalled libraries when the uninstalled | |
13195 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13196 | # to unsupported forces relinking | |
13197 | hardcode_minus_L_CXX=yes | |
13198 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13199 | hardcode_libdir_separator_CXX= | |
13200 | fi | |
13201 | esac | |
13202 | shared_flag='-shared' | |
13203 | if test "$aix_use_runtimelinking" = yes; then | |
13204 | shared_flag="$shared_flag "'${wl}-G' | |
13205 | fi | |
13206 | else | |
13207 | # not using gcc | |
13208 | if test "$host_cpu" = ia64; then | |
13209 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13210 | # chokes on -Wl,-G. The following line is correct: | |
13211 | shared_flag='-G' | |
13212 | else | |
13213 | if test "$aix_use_runtimelinking" = yes; then | |
13214 | shared_flag='${wl}-G' | |
13215 | else | |
13216 | shared_flag='${wl}-bM:SRE' | |
13217 | fi | |
13218 | fi | |
13219 | fi | |
13220 | ||
13221 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13222 | # It seems that -bexpall does not export symbols beginning with | |
13223 | # underscore (_), so it is better to generate a list of symbols to | |
13224 | # export. | |
13225 | always_export_symbols_CXX=yes | |
13226 | if test "$aix_use_runtimelinking" = yes; then | |
13227 | # Warning - without using the other runtime loading flags (-brtl), | |
13228 | # -berok will link without error, but may produce a broken library. | |
13229 | allow_undefined_flag_CXX='-berok' | |
13230 | # Determine the default libpath from the value encoded in an empty | |
13231 | # executable. | |
ee134472 JF |
13232 | if test "${lt_cv_aix_libpath+set}" = set; then |
13233 | aix_libpath=$lt_cv_aix_libpath | |
13234 | else | |
13235 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13236 | $as_echo_n "(cached) " >&6 | |
13237 | else | |
13238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13239 | /* end confdefs.h. */ |
13240 | ||
13241 | int | |
13242 | main () | |
13243 | { | |
13244 | ||
13245 | ; | |
13246 | return 0; | |
13247 | } | |
13248 | _ACEOF | |
47aaa820 | 13249 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13250 | |
ee134472 JF |
13251 | lt_aix_libpath_sed=' |
13252 | /Import File Strings/,/^$/ { | |
13253 | /^0/ { | |
13254 | s/^0 *\([^ ]*\) *$/\1/ | |
13255 | p | |
13256 | } | |
13257 | }' | |
13258 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13259 | # Check for a 64-bit object if we didn't find anything. | |
13260 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13261 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13262 | fi | |
47aaa820 DWT |
13263 | fi |
13264 | rm -f core conftest.err conftest.$ac_objext \ | |
13265 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13266 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13267 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13268 | fi | |
13269 | ||
13270 | fi | |
13271 | ||
13272 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13273 | fi | |
47aaa820 DWT |
13274 | |
13275 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13276 | ||
ee134472 | 13277 | 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 |
13278 | else |
13279 | if test "$host_cpu" = ia64; then | |
13280 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13281 | allow_undefined_flag_CXX="-z nodefs" | |
13282 | 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" | |
13283 | else | |
13284 | # Determine the default libpath from the value encoded in an | |
13285 | # empty executable. | |
ee134472 JF |
13286 | if test "${lt_cv_aix_libpath+set}" = set; then |
13287 | aix_libpath=$lt_cv_aix_libpath | |
13288 | else | |
13289 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13290 | $as_echo_n "(cached) " >&6 | |
13291 | else | |
13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13293 | /* end confdefs.h. */ |
13294 | ||
13295 | int | |
13296 | main () | |
13297 | { | |
13298 | ||
13299 | ; | |
13300 | return 0; | |
13301 | } | |
13302 | _ACEOF | |
47aaa820 | 13303 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13304 | |
ee134472 JF |
13305 | lt_aix_libpath_sed=' |
13306 | /Import File Strings/,/^$/ { | |
13307 | /^0/ { | |
13308 | s/^0 *\([^ ]*\) *$/\1/ | |
13309 | p | |
13310 | } | |
13311 | }' | |
13312 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13313 | # Check for a 64-bit object if we didn't find anything. | |
13314 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13315 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13316 | fi | |
9c60689e | 13317 | fi |
47aaa820 DWT |
13318 | rm -f core conftest.err conftest.$ac_objext \ |
13319 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13320 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13321 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13322 | fi | |
13323 | ||
13324 | fi | |
13325 | ||
13326 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13327 | fi | |
9c60689e | 13328 | |
47aaa820 DWT |
13329 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13330 | # Warning - without using the other run time loading flags, | |
13331 | # -berok will link without error, but may produce a broken library. | |
13332 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13333 | allow_undefined_flag_CXX=' ${wl}-berok' | |
ee134472 JF |
13334 | if test "$with_gnu_ld" = yes; then |
13335 | # We only use this code for GNU lds that support --whole-archive. | |
13336 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13337 | else | |
13338 | # Exported symbols can be pulled into shared objects from archives | |
13339 | whole_archive_flag_spec_CXX='$convenience' | |
13340 | fi | |
47aaa820 DWT |
13341 | archive_cmds_need_lc_CXX=yes |
13342 | # This is similar to how AIX traditionally builds its shared | |
13343 | # libraries. | |
13344 | 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' | |
13345 | fi | |
13346 | fi | |
13347 | ;; | |
9c60689e | 13348 | |
47aaa820 DWT |
13349 | beos*) |
13350 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13351 | allow_undefined_flag_CXX=unsupported | |
13352 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13353 | # support --undefined. This deserves some investigation. FIXME | |
13354 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13355 | else | |
13356 | ld_shlibs_CXX=no | |
13357 | fi | |
13358 | ;; | |
9c60689e | 13359 | |
47aaa820 DWT |
13360 | chorus*) |
13361 | case $cc_basename in | |
13362 | *) | |
13363 | # FIXME: insert proper C++ library support | |
13364 | ld_shlibs_CXX=no | |
13365 | ;; | |
13366 | esac | |
13367 | ;; | |
9c60689e | 13368 | |
47aaa820 | 13369 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13370 | case $GXX,$cc_basename in |
13371 | ,cl* | no,cl*) | |
13372 | # Native MSVC | |
13373 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13374 | # no search path for DLLs. | |
13375 | hardcode_libdir_flag_spec_CXX=' ' | |
13376 | allow_undefined_flag_CXX=unsupported | |
13377 | always_export_symbols_CXX=yes | |
13378 | file_list_spec_CXX='@' | |
13379 | # Tell ltmain to make .lib files, not .a files. | |
13380 | libext=lib | |
13381 | # Tell ltmain to make .dll files, not .so files. | |
13382 | shrext_cmds=".dll" | |
13383 | # FIXME: Setting linknames here is a bad hack. | |
13384 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
13385 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13386 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
13387 | else | |
13388 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
13389 | fi~ | |
13390 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13391 | linknames=' | |
13392 | # The linker will not automatically build a static lib if we build a DLL. | |
13393 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13394 | enable_shared_with_static_runtimes_CXX=yes | |
13395 | # Don't use ranlib | |
13396 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13397 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13398 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13399 | case $lt_outputfile in | |
13400 | *.exe|*.EXE) ;; | |
13401 | *) | |
13402 | lt_outputfile="$lt_outputfile.exe" | |
13403 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
13404 | ;; | |
13405 | esac~ | |
13406 | func_to_tool_file "$lt_outputfile"~ | |
13407 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
13408 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13409 | $RM "$lt_outputfile.manifest"; | |
13410 | fi' | |
13411 | ;; | |
13412 | *) | |
13413 | # g++ | |
13414 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13415 | # as there is no search path for DLLs. | |
13416 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13417 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13418 | allow_undefined_flag_CXX=unsupported | |
13419 | always_export_symbols_CXX=no | |
13420 | enable_shared_with_static_runtimes_CXX=yes | |
13421 | ||
13422 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13423 | 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' | |
13424 | # If the export-symbols file already is a .def file (1st line | |
13425 | # is EXPORTS), use it as is; otherwise, prepend... | |
13426 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13427 | cp $export_symbols $output_objdir/$soname.def; | |
13428 | else | |
13429 | echo EXPORTS > $output_objdir/$soname.def; | |
13430 | cat $export_symbols >> $output_objdir/$soname.def; | |
13431 | fi~ | |
13432 | $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' | |
13433 | else | |
13434 | ld_shlibs_CXX=no | |
13435 | fi | |
13436 | ;; | |
13437 | esac | |
13438 | ;; | |
47aaa820 | 13439 | darwin* | rhapsody*) |
9c60689e | 13440 | |
9c60689e | 13441 | |
47aaa820 DWT |
13442 | archive_cmds_need_lc_CXX=no |
13443 | hardcode_direct_CXX=no | |
13444 | hardcode_automatic_CXX=yes | |
13445 | hardcode_shlibpath_var_CXX=unsupported | |
ee134472 JF |
13446 | if test "$lt_cv_ld_force_load" = "yes"; then |
13447 | 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 | 13448 | |
ee134472 JF |
13449 | else |
13450 | whole_archive_flag_spec_CXX='' | |
13451 | fi | |
47aaa820 DWT |
13452 | link_all_deplibs_CXX=yes |
13453 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13454 | case $cc_basename in | |
13455 | ifort*) _lt_dar_can_shared=yes ;; | |
13456 | *) _lt_dar_can_shared=$GCC ;; | |
13457 | esac | |
13458 | if test "$_lt_dar_can_shared" = "yes"; then | |
ee134472 | 13459 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13460 | 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}" |
13461 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13462 | 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}" | |
13463 | 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}" | |
13464 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13465 | 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}" | |
13466 | 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}" | |
13467 | fi | |
9c60689e | 13468 | |
47aaa820 DWT |
13469 | else |
13470 | ld_shlibs_CXX=no | |
13471 | fi | |
9c60689e | 13472 | |
47aaa820 | 13473 | ;; |
9c60689e | 13474 | |
47aaa820 DWT |
13475 | dgux*) |
13476 | case $cc_basename in | |
13477 | ec++*) | |
13478 | # FIXME: insert proper C++ library support | |
13479 | ld_shlibs_CXX=no | |
13480 | ;; | |
13481 | ghcx*) | |
13482 | # Green Hills C++ Compiler | |
13483 | # FIXME: insert proper C++ library support | |
13484 | ld_shlibs_CXX=no | |
13485 | ;; | |
13486 | *) | |
13487 | # FIXME: insert proper C++ library support | |
13488 | ld_shlibs_CXX=no | |
13489 | ;; | |
13490 | esac | |
13491 | ;; | |
9c60689e | 13492 | |
53ba6704 | 13493 | freebsd2.*) |
47aaa820 DWT |
13494 | # C++ shared libraries reported to be fairly broken before |
13495 | # switch to ELF | |
13496 | ld_shlibs_CXX=no | |
13497 | ;; | |
9c60689e | 13498 | |
47aaa820 DWT |
13499 | freebsd-elf*) |
13500 | archive_cmds_need_lc_CXX=no | |
13501 | ;; | |
9c60689e | 13502 | |
47aaa820 DWT |
13503 | freebsd* | dragonfly*) |
13504 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13505 | # conventions | |
13506 | ld_shlibs_CXX=yes | |
13507 | ;; | |
9c60689e | 13508 | |
47aaa820 DWT |
13509 | gnu*) |
13510 | ;; | |
9c60689e | 13511 | |
ee134472 JF |
13512 | haiku*) |
13513 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13514 | link_all_deplibs_CXX=yes | |
13515 | ;; | |
13516 | ||
47aaa820 DWT |
13517 | hpux9*) |
13518 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13519 | hardcode_libdir_separator_CXX=: | |
13520 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13521 | hardcode_direct_CXX=yes | |
13522 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13523 | # but as the default | |
13524 | # location of the library. | |
9c60689e | 13525 | |
47aaa820 DWT |
13526 | case $cc_basename in |
13527 | CC*) | |
13528 | # FIXME: insert proper C++ library support | |
13529 | ld_shlibs_CXX=no | |
13530 | ;; | |
13531 | aCC*) | |
13532 | 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' | |
13533 | # Commands to make compiler produce verbose output that lists | |
13534 | # what "hidden" libraries, object files and flags are used when | |
13535 | # linking a shared library. | |
13536 | # | |
13537 | # There doesn't appear to be a way to prevent this compiler from | |
13538 | # explicitly linking system object files so we need to strip them | |
13539 | # from the output so that they don't get included in the library | |
13540 | # dependencies. | |
ee134472 | 13541 | 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 |
13542 | ;; |
13543 | *) | |
13544 | if test "$GXX" = yes; then | |
ee134472 | 13545 | 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 |
13546 | else |
13547 | # FIXME: insert proper C++ library support | |
13548 | ld_shlibs_CXX=no | |
13549 | fi | |
13550 | ;; | |
13551 | esac | |
13552 | ;; | |
9c60689e | 13553 | |
47aaa820 DWT |
13554 | hpux10*|hpux11*) |
13555 | if test $with_gnu_ld = no; then | |
13556 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13557 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13558 | |
47aaa820 DWT |
13559 | case $host_cpu in |
13560 | hppa*64*|ia64*) | |
13561 | ;; | |
13562 | *) | |
13563 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13564 | ;; | |
13565 | esac | |
13566 | fi | |
13567 | case $host_cpu in | |
13568 | hppa*64*|ia64*) | |
13569 | hardcode_direct_CXX=no | |
13570 | hardcode_shlibpath_var_CXX=no | |
13571 | ;; | |
13572 | *) | |
13573 | hardcode_direct_CXX=yes | |
13574 | hardcode_direct_absolute_CXX=yes | |
13575 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13576 | # but as the default | |
13577 | # location of the library. | |
13578 | ;; | |
13579 | esac | |
9c60689e | 13580 | |
47aaa820 DWT |
13581 | case $cc_basename in |
13582 | CC*) | |
13583 | # FIXME: insert proper C++ library support | |
13584 | ld_shlibs_CXX=no | |
13585 | ;; | |
13586 | aCC*) | |
13587 | case $host_cpu in | |
13588 | hppa*64*) | |
13589 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13590 | ;; | |
13591 | ia64*) | |
13592 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13593 | ;; | |
13594 | *) | |
13595 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13596 | ;; | |
13597 | esac | |
13598 | # Commands to make compiler produce verbose output that lists | |
13599 | # what "hidden" libraries, object files and flags are used when | |
13600 | # linking a shared library. | |
13601 | # | |
13602 | # There doesn't appear to be a way to prevent this compiler from | |
13603 | # explicitly linking system object files so we need to strip them | |
13604 | # from the output so that they don't get included in the library | |
13605 | # dependencies. | |
ee134472 | 13606 | 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 |
13607 | ;; |
13608 | *) | |
13609 | if test "$GXX" = yes; then | |
13610 | if test $with_gnu_ld = no; then | |
13611 | case $host_cpu in | |
13612 | hppa*64*) | |
13613 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13614 | ;; | |
13615 | ia64*) | |
ee134472 | 13616 | 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 |
13617 | ;; |
13618 | *) | |
ee134472 | 13619 | 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 |
13620 | ;; |
13621 | esac | |
13622 | fi | |
13623 | else | |
13624 | # FIXME: insert proper C++ library support | |
13625 | ld_shlibs_CXX=no | |
13626 | fi | |
13627 | ;; | |
13628 | esac | |
13629 | ;; | |
9c60689e | 13630 | |
47aaa820 DWT |
13631 | interix[3-9]*) |
13632 | hardcode_direct_CXX=no | |
13633 | hardcode_shlibpath_var_CXX=no | |
13634 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13635 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13636 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13637 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13638 | # default) and relocated if they conflict, which is a slow very memory | |
13639 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13640 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13641 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13642 | 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' | |
13643 | 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' | |
13644 | ;; | |
13645 | irix5* | irix6*) | |
13646 | case $cc_basename in | |
13647 | CC*) | |
13648 | # SGI C++ | |
ee134472 | 13649 | 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 | 13650 | |
47aaa820 DWT |
13651 | # Archives containing C++ object files must be created using |
13652 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13653 | # necessary to make sure instantiated templates are included | |
13654 | # in the archive. | |
13655 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13656 | ;; | |
13657 | *) | |
13658 | if test "$GXX" = yes; then | |
13659 | if test "$with_gnu_ld" = no; then | |
ee134472 | 13660 | 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 | 13661 | else |
ee134472 | 13662 | 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 |
13663 | fi |
13664 | fi | |
13665 | link_all_deplibs_CXX=yes | |
13666 | ;; | |
13667 | esac | |
13668 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13669 | hardcode_libdir_separator_CXX=: | |
13670 | inherit_rpath_CXX=yes | |
13671 | ;; | |
9c60689e | 13672 | |
1504c9b8 | 13673 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13674 | case $cc_basename in |
13675 | KCC*) | |
13676 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13677 | |
47aaa820 DWT |
13678 | # KCC will only create a shared library if the output file |
13679 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13680 | # to its proper name (with version) after linking. | |
13681 | 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' | |
13682 | 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' | |
13683 | # Commands to make compiler produce verbose output that lists | |
13684 | # what "hidden" libraries, object files and flags are used when | |
13685 | # linking a shared library. | |
13686 | # | |
13687 | # There doesn't appear to be a way to prevent this compiler from | |
13688 | # explicitly linking system object files so we need to strip them | |
13689 | # from the output so that they don't get included in the library | |
13690 | # dependencies. | |
ee134472 | 13691 | 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 | 13692 | |
47aaa820 DWT |
13693 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13694 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13695 | |
47aaa820 DWT |
13696 | # Archives containing C++ object files must be created using |
13697 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13698 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13699 | ;; | |
13700 | icpc* | ecpc* ) | |
13701 | # Intel C++ | |
13702 | with_gnu_ld=yes | |
13703 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13704 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13705 | # earlier do not add the objects themselves. | |
13706 | case `$CC -V 2>&1` in | |
13707 | *"Version 7."*) | |
13708 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13709 | 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' | |
13710 | ;; | |
13711 | *) # Version 8.0 or newer | |
13712 | tmp_idyn= | |
13713 | case $host_cpu in | |
13714 | ia64*) tmp_idyn=' -i_dynamic';; | |
13715 | esac | |
13716 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13717 | 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' | |
13718 | ;; | |
13719 | esac | |
13720 | archive_cmds_need_lc_CXX=no | |
13721 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13722 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13723 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13724 | ;; | |
13725 | pgCC* | pgcpp*) | |
13726 | # Portland Group C++ compiler | |
13727 | case `$CC -V` in | |
ee134472 | 13728 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 DWT |
13729 | prelink_cmds_CXX='tpldir=Template.dir~ |
13730 | rm -rf $tpldir~ | |
13731 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
ee134472 | 13732 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
47aaa820 DWT |
13733 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13734 | rm -rf $tpldir~ | |
13735 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
ee134472 | 13736 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
47aaa820 DWT |
13737 | $RANLIB $oldlib' |
13738 | archive_cmds_CXX='tpldir=Template.dir~ | |
13739 | rm -rf $tpldir~ | |
13740 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13741 | $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 |
13742 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13743 | rm -rf $tpldir~ | |
13744 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13745 | $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 | 13746 | ;; |
ee134472 | 13747 | *) # Version 6 and above use weak symbols |
47aaa820 DWT |
13748 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13749 | 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' | |
13750 | ;; | |
13751 | esac | |
9c60689e | 13752 | |
47aaa820 DWT |
13753 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13754 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
ee134472 | 13755 | 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 |
13756 | ;; |
13757 | cxx*) | |
13758 | # Compaq C++ | |
13759 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13760 | 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 | 13761 | |
47aaa820 DWT |
13762 | runpath_var=LD_RUN_PATH |
13763 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13764 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13765 | |
47aaa820 DWT |
13766 | # Commands to make compiler produce verbose output that lists |
13767 | # what "hidden" libraries, object files and flags are used when | |
13768 | # linking a shared library. | |
13769 | # | |
13770 | # There doesn't appear to be a way to prevent this compiler from | |
13771 | # explicitly linking system object files so we need to strip them | |
13772 | # from the output so that they don't get included in the library | |
13773 | # dependencies. | |
ee134472 | 13774 | 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 | 13775 | ;; |
ee134472 | 13776 | xl* | mpixl* | bgxl*) |
47aaa820 DWT |
13777 | # IBM XL 8.0 on PPC, with GNU ld |
13778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13779 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13780 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13781 | if test "x$supports_anon_versioning" = xyes; then | |
13782 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13783 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13784 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13785 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13786 | fi | |
13787 | ;; | |
13788 | *) | |
13789 | case `$CC -V 2>&1 | sed 5q` in | |
13790 | *Sun\ C*) | |
13791 | # Sun C++ 5.9 | |
13792 | no_undefined_flag_CXX=' -zdefs' | |
13793 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13794 | 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' | |
13795 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
ee134472 | 13796 | 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 | 13797 | compiler_needs_object_CXX=yes |
9c60689e | 13798 | |
47aaa820 DWT |
13799 | # Not sure whether something based on |
13800 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13801 | # would be better. | |
ee134472 | 13802 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13803 | |
47aaa820 DWT |
13804 | # Archives containing C++ object files must be created using |
13805 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13806 | # necessary to make sure instantiated templates are included | |
13807 | # in the archive. | |
13808 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13809 | ;; | |
13810 | esac | |
13811 | ;; | |
13812 | esac | |
13813 | ;; | |
9c60689e | 13814 | |
47aaa820 DWT |
13815 | lynxos*) |
13816 | # FIXME: insert proper C++ library support | |
13817 | ld_shlibs_CXX=no | |
13818 | ;; | |
9c60689e | 13819 | |
47aaa820 DWT |
13820 | m88k*) |
13821 | # FIXME: insert proper C++ library support | |
13822 | ld_shlibs_CXX=no | |
13823 | ;; | |
9c60689e | 13824 | |
47aaa820 DWT |
13825 | mvs*) |
13826 | case $cc_basename in | |
13827 | cxx*) | |
13828 | # FIXME: insert proper C++ library support | |
13829 | ld_shlibs_CXX=no | |
13830 | ;; | |
13831 | *) | |
13832 | # FIXME: insert proper C++ library support | |
13833 | ld_shlibs_CXX=no | |
13834 | ;; | |
13835 | esac | |
13836 | ;; | |
9c60689e | 13837 | |
47aaa820 DWT |
13838 | netbsd*) |
13839 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13840 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13841 | wlarc= | |
13842 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13843 | hardcode_direct_CXX=yes | |
13844 | hardcode_shlibpath_var_CXX=no | |
13845 | fi | |
13846 | # Workaround some broken pre-1.5 toolchains | |
13847 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 13848 | ;; |
47aaa820 DWT |
13849 | |
13850 | *nto* | *qnx*) | |
13851 | ld_shlibs_CXX=yes | |
9c60689e | 13852 | ;; |
9c60689e | 13853 | |
47aaa820 DWT |
13854 | openbsd2*) |
13855 | # C++ shared libraries are fairly broken | |
13856 | ld_shlibs_CXX=no | |
13857 | ;; | |
9c60689e | 13858 | |
47aaa820 DWT |
13859 | openbsd*) |
13860 | if test -f /usr/libexec/ld.so; then | |
13861 | hardcode_direct_CXX=yes | |
13862 | hardcode_shlibpath_var_CXX=no | |
13863 | hardcode_direct_absolute_CXX=yes | |
13864 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13865 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13866 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13867 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13868 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13869 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13870 | fi | |
ee134472 | 13871 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13872 | else |
13873 | ld_shlibs_CXX=no | |
13874 | fi | |
13875 | ;; | |
9c60689e | 13876 | |
47aaa820 DWT |
13877 | osf3* | osf4* | osf5*) |
13878 | case $cc_basename in | |
13879 | KCC*) | |
13880 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13881 | |
47aaa820 DWT |
13882 | # KCC will only create a shared library if the output file |
13883 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13884 | # to its proper name (with version) after linking. | |
13885 | 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 | 13886 | |
47aaa820 DWT |
13887 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13888 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13889 | |
47aaa820 DWT |
13890 | # Archives containing C++ object files must be created using |
13891 | # the KAI C++ compiler. | |
13892 | case $host in | |
13893 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13894 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13895 | esac | |
13896 | ;; | |
13897 | RCC*) | |
13898 | # Rational C++ 2.4.1 | |
13899 | # FIXME: insert proper C++ library support | |
13900 | ld_shlibs_CXX=no | |
13901 | ;; | |
13902 | cxx*) | |
13903 | case $host in | |
13904 | osf3*) | |
13905 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
ee134472 | 13906 | 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 |
13907 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13908 | ;; | |
13909 | *) | |
13910 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
ee134472 | 13911 | 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 |
13912 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13913 | echo "-hidden">> $lib.exp~ | |
ee134472 | 13914 | $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 |
13915 | $RM $lib.exp' |
13916 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13917 | ;; | |
13918 | esac | |
9c60689e | 13919 | |
47aaa820 | 13920 | hardcode_libdir_separator_CXX=: |
9c60689e | 13921 | |
47aaa820 DWT |
13922 | # Commands to make compiler produce verbose output that lists |
13923 | # what "hidden" libraries, object files and flags are used when | |
13924 | # linking a shared library. | |
13925 | # | |
13926 | # There doesn't appear to be a way to prevent this compiler from | |
13927 | # explicitly linking system object files so we need to strip them | |
13928 | # from the output so that they don't get included in the library | |
13929 | # dependencies. | |
ee134472 | 13930 | 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 |
13931 | ;; |
13932 | *) | |
13933 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13934 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13935 | case $host in | |
13936 | osf3*) | |
ee134472 | 13937 | 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 |
13938 | ;; |
13939 | *) | |
ee134472 | 13940 | 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 |
13941 | ;; |
13942 | esac | |
9c60689e | 13943 | |
47aaa820 DWT |
13944 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13945 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13946 | |
47aaa820 DWT |
13947 | # Commands to make compiler produce verbose output that lists |
13948 | # what "hidden" libraries, object files and flags are used when | |
13949 | # linking a shared library. | |
ee134472 | 13950 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 13951 | |
47aaa820 DWT |
13952 | else |
13953 | # FIXME: insert proper C++ library support | |
13954 | ld_shlibs_CXX=no | |
13955 | fi | |
13956 | ;; | |
13957 | esac | |
13958 | ;; | |
9c60689e | 13959 | |
47aaa820 | 13960 | psos*) |
9c60689e DWT |
13961 | # FIXME: insert proper C++ library support |
13962 | ld_shlibs_CXX=no | |
13963 | ;; | |
9c60689e | 13964 | |
47aaa820 DWT |
13965 | sunos4*) |
13966 | case $cc_basename in | |
13967 | CC*) | |
13968 | # Sun C++ 4.x | |
13969 | # FIXME: insert proper C++ library support | |
13970 | ld_shlibs_CXX=no | |
9c60689e | 13971 | ;; |
47aaa820 DWT |
13972 | lcc*) |
13973 | # Lucid | |
13974 | # FIXME: insert proper C++ library support | |
13975 | ld_shlibs_CXX=no | |
13976 | ;; | |
13977 | *) | |
13978 | # FIXME: insert proper C++ library support | |
13979 | ld_shlibs_CXX=no | |
13980 | ;; | |
13981 | esac | |
13982 | ;; | |
9c60689e | 13983 | |
47aaa820 DWT |
13984 | solaris*) |
13985 | case $cc_basename in | |
ee134472 | 13986 | CC* | sunCC*) |
47aaa820 DWT |
13987 | # Sun C++ 4.2, 5.x and Centerline C++ |
13988 | archive_cmds_need_lc_CXX=yes | |
13989 | no_undefined_flag_CXX=' -zdefs' | |
13990 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13991 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13992 | $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 | 13993 | |
47aaa820 DWT |
13994 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13995 | hardcode_shlibpath_var_CXX=no | |
13996 | case $host_os in | |
13997 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13998 | *) | |
13999 | # The compiler driver will combine and reorder linker options, | |
14000 | # but understands `-z linker_flag'. | |
14001 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14002 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14003 | ;; | |
14004 | esac | |
14005 | link_all_deplibs_CXX=yes | |
9c60689e | 14006 | |
ee134472 | 14007 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14008 | |
47aaa820 DWT |
14009 | # Archives containing C++ object files must be created using |
14010 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14011 | # necessary to make sure instantiated templates are included | |
14012 | # in the archive. | |
14013 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14014 | ;; | |
14015 | gcx*) | |
14016 | # Green Hills C++ Compiler | |
14017 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 14018 | |
47aaa820 DWT |
14019 | # The C++ compiler must be used to create the archive. |
14020 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14021 | ;; | |
14022 | *) | |
14023 | # GNU C++ compiler with Solaris linker | |
14024 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14025 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
14026 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
ee134472 | 14027 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
47aaa820 | 14028 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
ee134472 | 14029 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14030 | |
47aaa820 DWT |
14031 | # Commands to make compiler produce verbose output that lists |
14032 | # what "hidden" libraries, object files and flags are used when | |
14033 | # linking a shared library. | |
ee134472 | 14034 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
14035 | else |
14036 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
14037 | # platform. | |
14038 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14039 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14040 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 14041 | |
47aaa820 DWT |
14042 | # Commands to make compiler produce verbose output that lists |
14043 | # what "hidden" libraries, object files and flags are used when | |
14044 | # linking a shared library. | |
ee134472 | 14045 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14046 | fi |
9c60689e | 14047 | |
47aaa820 DWT |
14048 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
14049 | case $host_os in | |
14050 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14051 | *) | |
14052 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14053 | ;; | |
14054 | esac | |
14055 | fi | |
14056 | ;; | |
14057 | esac | |
14058 | ;; | |
9c60689e | 14059 | |
47aaa820 DWT |
14060 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
14061 | no_undefined_flag_CXX='${wl}-z,text' | |
14062 | archive_cmds_need_lc_CXX=no | |
14063 | hardcode_shlibpath_var_CXX=no | |
14064 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14065 | |
47aaa820 DWT |
14066 | case $cc_basename in |
14067 | CC*) | |
14068 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14069 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14070 | ;; | |
14071 | *) | |
14072 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14073 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14074 | ;; | |
14075 | esac | |
14076 | ;; | |
9c60689e | 14077 | |
47aaa820 DWT |
14078 | sysv5* | sco3.2v5* | sco5v6*) |
14079 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14080 | # link with -lc, and that would cause any symbols used from libc to | |
14081 | # always be unresolved, which means just about no library would | |
14082 | # ever link correctly. If we're not using GNU ld we use -z text | |
14083 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14084 | # as -z defs. | |
14085 | no_undefined_flag_CXX='${wl}-z,text' | |
14086 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
14087 | archive_cmds_need_lc_CXX=no | |
14088 | hardcode_shlibpath_var_CXX=no | |
14089 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
14090 | hardcode_libdir_separator_CXX=':' | |
14091 | link_all_deplibs_CXX=yes | |
14092 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
14093 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14094 | |
47aaa820 DWT |
14095 | case $cc_basename in |
14096 | CC*) | |
14097 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14098 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 JF |
14099 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
14100 | '"$old_archive_cmds_CXX" | |
14101 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14102 | '"$reload_cmds_CXX" | |
47aaa820 DWT |
14103 | ;; |
14104 | *) | |
14105 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14106 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14107 | ;; | |
14108 | esac | |
14109 | ;; | |
9c60689e | 14110 | |
47aaa820 | 14111 | tandem*) |
9c60689e | 14112 | case $cc_basename in |
47aaa820 DWT |
14113 | NCC*) |
14114 | # NonStop-UX NCC 3.20 | |
14115 | # FIXME: insert proper C++ library support | |
14116 | ld_shlibs_CXX=no | |
14117 | ;; | |
9c60689e | 14118 | *) |
47aaa820 DWT |
14119 | # FIXME: insert proper C++ library support |
14120 | ld_shlibs_CXX=no | |
14121 | ;; | |
9c60689e DWT |
14122 | esac |
14123 | ;; | |
14124 | ||
47aaa820 DWT |
14125 | vxworks*) |
14126 | # FIXME: insert proper C++ library support | |
14127 | ld_shlibs_CXX=no | |
14128 | ;; | |
9c60689e | 14129 | |
47aaa820 DWT |
14130 | *) |
14131 | # FIXME: insert proper C++ library support | |
14132 | ld_shlibs_CXX=no | |
9c60689e | 14133 | ;; |
47aaa820 | 14134 | esac |
9c60689e | 14135 | |
47aaa820 DWT |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
14137 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14138 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 14139 | |
47aaa820 DWT |
14140 | GCC_CXX="$GXX" |
14141 | LD_CXX="$LD" | |
9c60689e | 14142 | |
47aaa820 DWT |
14143 | ## CAVEAT EMPTOR: |
14144 | ## There is no encapsulation within the following macros, do not change | |
14145 | ## the running order or otherwise move them around unless you know exactly | |
14146 | ## what you are doing... | |
14147 | # Dependencies to place before and after the object being linked: | |
14148 | predep_objects_CXX= | |
14149 | postdep_objects_CXX= | |
14150 | predeps_CXX= | |
14151 | postdeps_CXX= | |
14152 | compiler_lib_search_path_CXX= | |
9c60689e | 14153 | |
47aaa820 DWT |
14154 | cat > conftest.$ac_ext <<_LT_EOF |
14155 | class Foo | |
14156 | { | |
14157 | public: | |
14158 | Foo (void) { a = 0; } | |
14159 | private: | |
14160 | int a; | |
14161 | }; | |
14162 | _LT_EOF | |
9c60689e | 14163 | |
ee134472 JF |
14164 | |
14165 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14166 | case "$CC $CFLAGS " in #( | |
14167 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14168 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14169 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14170 | esac |
14171 | ||
47aaa820 DWT |
14172 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14173 | (eval $ac_compile) 2>&5 | |
14174 | ac_status=$? | |
14175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14176 | test $ac_status = 0; }; then | |
14177 | # Parse the compiler output and extract the necessary | |
14178 | # objects, libraries and library flags. | |
9c60689e | 14179 | |
47aaa820 DWT |
14180 | # Sentinel used to keep track of whether or not we are before |
14181 | # the conftest object file. | |
14182 | pre_test_object_deps_done=no | |
9c60689e | 14183 | |
47aaa820 | 14184 | for p in `eval "$output_verbose_link_cmd"`; do |
ee134472 | 14185 | case ${prev}${p} in |
9c60689e | 14186 | |
47aaa820 DWT |
14187 | -L* | -R* | -l*) |
14188 | # Some compilers place space between "-{L,R}" and the path. | |
14189 | # Remove the space. | |
14190 | if test $p = "-L" || | |
14191 | test $p = "-R"; then | |
14192 | prev=$p | |
14193 | continue | |
47aaa820 | 14194 | fi |
9c60689e | 14195 | |
ee134472 JF |
14196 | # Expand the sysroot to ease extracting the directories later. |
14197 | if test -z "$prev"; then | |
14198 | case $p in | |
14199 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14200 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14201 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14202 | esac | |
14203 | fi | |
14204 | case $p in | |
14205 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14206 | esac | |
47aaa820 | 14207 | if test "$pre_test_object_deps_done" = no; then |
ee134472 JF |
14208 | case ${prev} in |
14209 | -L | -R) | |
47aaa820 DWT |
14210 | # Internal compiler library paths should come after those |
14211 | # provided the user. The postdeps already come after the | |
14212 | # user supplied libs so there is no need to process them. | |
14213 | if test -z "$compiler_lib_search_path_CXX"; then | |
14214 | compiler_lib_search_path_CXX="${prev}${p}" | |
14215 | else | |
14216 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14217 | fi | |
14218 | ;; | |
14219 | # The "-l" case would never come before the object being | |
14220 | # linked, so don't bother handling this case. | |
14221 | esac | |
14222 | else | |
14223 | if test -z "$postdeps_CXX"; then | |
14224 | postdeps_CXX="${prev}${p}" | |
14225 | else | |
14226 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14227 | fi | |
14228 | fi | |
ee134472 | 14229 | prev= |
47aaa820 | 14230 | ;; |
9c60689e | 14231 | |
ee134472 | 14232 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14233 | *.$objext) |
14234 | # This assumes that the test object file only shows up | |
14235 | # once in the compiler output. | |
14236 | if test "$p" = "conftest.$objext"; then | |
14237 | pre_test_object_deps_done=yes | |
14238 | continue | |
14239 | fi | |
9c60689e | 14240 | |
47aaa820 DWT |
14241 | if test "$pre_test_object_deps_done" = no; then |
14242 | if test -z "$predep_objects_CXX"; then | |
14243 | predep_objects_CXX="$p" | |
14244 | else | |
14245 | predep_objects_CXX="$predep_objects_CXX $p" | |
14246 | fi | |
14247 | else | |
14248 | if test -z "$postdep_objects_CXX"; then | |
14249 | postdep_objects_CXX="$p" | |
14250 | else | |
14251 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14252 | fi | |
14253 | fi | |
14254 | ;; | |
9c60689e | 14255 | |
47aaa820 | 14256 | *) ;; # Ignore the rest. |
9c60689e | 14257 | |
47aaa820 DWT |
14258 | esac |
14259 | done | |
9c60689e | 14260 | |
47aaa820 DWT |
14261 | # Clean up. |
14262 | rm -f a.out a.exe | |
14263 | else | |
14264 | echo "libtool.m4: error: problem compiling CXX test program" | |
14265 | fi | |
9c60689e | 14266 | |
47aaa820 | 14267 | $RM -f confest.$objext |
ee134472 | 14268 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14269 | |
47aaa820 DWT |
14270 | # PORTME: override above test on systems where it is broken |
14271 | case $host_os in | |
14272 | interix[3-9]*) | |
14273 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14274 | # hack all around it, let's just trust "g++" to DTRT. | |
14275 | predep_objects_CXX= | |
14276 | postdep_objects_CXX= | |
14277 | postdeps_CXX= | |
14278 | ;; | |
9c60689e | 14279 | |
47aaa820 DWT |
14280 | linux*) |
14281 | case `$CC -V 2>&1 | sed 5q` in | |
14282 | *Sun\ C*) | |
14283 | # Sun C++ 5.9 | |
9c60689e | 14284 | |
47aaa820 DWT |
14285 | # The more standards-conforming stlport4 library is |
14286 | # incompatible with the Cstd library. Avoid specifying | |
14287 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14288 | # -library=stlport4 depends on it. | |
14289 | case " $CXX $CXXFLAGS " in | |
14290 | *" -library=stlport4 "*) | |
14291 | solaris_use_stlport4=yes | |
14292 | ;; | |
14293 | esac | |
9c60689e | 14294 | |
47aaa820 DWT |
14295 | if test "$solaris_use_stlport4" != yes; then |
14296 | postdeps_CXX='-library=Cstd -library=Crun' | |
14297 | fi | |
14298 | ;; | |
14299 | esac | |
14300 | ;; | |
9c60689e | 14301 | |
47aaa820 DWT |
14302 | solaris*) |
14303 | case $cc_basename in | |
ee134472 | 14304 | CC* | sunCC*) |
47aaa820 DWT |
14305 | # The more standards-conforming stlport4 library is |
14306 | # incompatible with the Cstd library. Avoid specifying | |
14307 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14308 | # -library=stlport4 depends on it. | |
14309 | case " $CXX $CXXFLAGS " in | |
14310 | *" -library=stlport4 "*) | |
14311 | solaris_use_stlport4=yes | |
14312 | ;; | |
14313 | esac | |
9c60689e | 14314 | |
47aaa820 DWT |
14315 | # Adding this requires a known-good setup of shared libraries for |
14316 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14317 | # archive will be linked into the output, leading to subtle bugs. | |
14318 | if test "$solaris_use_stlport4" != yes; then | |
14319 | postdeps_CXX='-library=Cstd -library=Crun' | |
14320 | fi | |
14321 | ;; | |
14322 | esac | |
14323 | ;; | |
14324 | esac | |
9c60689e | 14325 | |
9c60689e | 14326 | |
47aaa820 DWT |
14327 | case " $postdeps_CXX " in |
14328 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14329 | esac | |
14330 | compiler_lib_search_dirs_CXX= | |
14331 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14332 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14333 | fi | |
9c60689e | 14334 | |
9c60689e | 14335 | |
9c60689e | 14336 | |
9c60689e | 14337 | |
9c60689e | 14338 | |
9c60689e | 14339 | |
9c60689e | 14340 | |
9c60689e | 14341 | |
9c60689e | 14342 | |
9c60689e | 14343 | |
9c60689e | 14344 | |
9c60689e | 14345 | |
9c60689e | 14346 | |
9c60689e | 14347 | |
9c60689e | 14348 | |
9c60689e | 14349 | |
9c60689e | 14350 | |
9c60689e | 14351 | |
9c60689e | 14352 | |
9c60689e | 14353 | |
9c60689e | 14354 | |
9c60689e | 14355 | |
9c60689e | 14356 | |
9c60689e | 14357 | |
9c60689e | 14358 | |
9c60689e | 14359 | |
9c60689e | 14360 | |
9c60689e | 14361 | |
9c60689e | 14362 | |
9c60689e | 14363 | |
9c60689e | 14364 | |
47aaa820 DWT |
14365 | lt_prog_compiler_wl_CXX= |
14366 | lt_prog_compiler_pic_CXX= | |
14367 | lt_prog_compiler_static_CXX= | |
9c60689e | 14368 | |
9c60689e DWT |
14369 | |
14370 | # C++ specific cases for pic, static, wl, etc. | |
14371 | if test "$GXX" = yes; then | |
14372 | lt_prog_compiler_wl_CXX='-Wl,' | |
14373 | lt_prog_compiler_static_CXX='-static' | |
14374 | ||
14375 | case $host_os in | |
14376 | aix*) | |
14377 | # All AIX code is PIC. | |
14378 | if test "$host_cpu" = ia64; then | |
14379 | # AIX 5 now supports IA64 processor | |
14380 | lt_prog_compiler_static_CXX='-Bstatic' | |
14381 | fi | |
14382 | ;; | |
14383 | ||
14384 | amigaos*) | |
14385 | case $host_cpu in | |
14386 | powerpc) | |
14387 | # see comment about AmigaOS4 .so support | |
14388 | lt_prog_compiler_pic_CXX='-fPIC' | |
14389 | ;; | |
14390 | m68k) | |
14391 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14392 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14393 | # like `-m68040'. | |
14394 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14395 | ;; | |
14396 | esac | |
14397 | ;; | |
14398 | ||
14399 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14400 | # PIC is the default for these OSes. | |
14401 | ;; | |
14402 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14403 | # This hack is so that the source file can tell whether it is being | |
14404 | # built for inclusion in a dll (and should export symbols for example). | |
14405 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14406 | # (--disable-auto-import) libraries | |
14407 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14408 | ;; | |
14409 | darwin* | rhapsody*) | |
14410 | # PIC is the default on this platform | |
14411 | # Common symbols not allowed in MH_DYLIB files | |
14412 | lt_prog_compiler_pic_CXX='-fno-common' | |
14413 | ;; | |
14414 | *djgpp*) | |
14415 | # DJGPP does not support shared libraries at all | |
14416 | lt_prog_compiler_pic_CXX= | |
14417 | ;; | |
ee134472 JF |
14418 | haiku*) |
14419 | # PIC is the default for Haiku. | |
14420 | # The "-static" flag exists, but is broken. | |
14421 | lt_prog_compiler_static_CXX= | |
14422 | ;; | |
9c60689e DWT |
14423 | interix[3-9]*) |
14424 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14425 | # Instead, we relocate shared libraries at runtime. | |
14426 | ;; | |
14427 | sysv4*MP*) | |
14428 | if test -d /usr/nec; then | |
14429 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14430 | fi | |
14431 | ;; | |
14432 | hpux*) | |
14433 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14434 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14435 | # sets the default TLS model and affects inlining. | |
14436 | case $host_cpu in | |
14437 | hppa*64*) | |
14438 | ;; | |
14439 | *) | |
14440 | lt_prog_compiler_pic_CXX='-fPIC' | |
14441 | ;; | |
14442 | esac | |
14443 | ;; | |
14444 | *qnx* | *nto*) | |
14445 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14446 | # it will coredump. | |
14447 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14448 | ;; | |
14449 | *) | |
14450 | lt_prog_compiler_pic_CXX='-fPIC' | |
14451 | ;; | |
14452 | esac | |
14453 | else | |
14454 | case $host_os in | |
14455 | aix[4-9]*) | |
14456 | # All AIX code is PIC. | |
14457 | if test "$host_cpu" = ia64; then | |
14458 | # AIX 5 now supports IA64 processor | |
14459 | lt_prog_compiler_static_CXX='-Bstatic' | |
14460 | else | |
14461 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14462 | fi | |
14463 | ;; | |
14464 | chorus*) | |
14465 | case $cc_basename in | |
14466 | cxch68*) | |
14467 | # Green Hills C++ Compiler | |
14468 | # _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" | |
14469 | ;; | |
14470 | esac | |
14471 | ;; | |
ee134472 JF |
14472 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14473 | # This hack is so that the source file can tell whether it is being | |
14474 | # built for inclusion in a dll (and should export symbols for example). | |
14475 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14476 | ;; | |
9c60689e DWT |
14477 | dgux*) |
14478 | case $cc_basename in | |
14479 | ec++*) | |
14480 | lt_prog_compiler_pic_CXX='-KPIC' | |
14481 | ;; | |
14482 | ghcx*) | |
14483 | # Green Hills C++ Compiler | |
14484 | lt_prog_compiler_pic_CXX='-pic' | |
14485 | ;; | |
14486 | *) | |
14487 | ;; | |
14488 | esac | |
14489 | ;; | |
14490 | freebsd* | dragonfly*) | |
14491 | # FreeBSD uses GNU C++ | |
14492 | ;; | |
14493 | hpux9* | hpux10* | hpux11*) | |
14494 | case $cc_basename in | |
14495 | CC*) | |
14496 | lt_prog_compiler_wl_CXX='-Wl,' | |
14497 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14498 | if test "$host_cpu" != ia64; then | |
14499 | lt_prog_compiler_pic_CXX='+Z' | |
14500 | fi | |
14501 | ;; | |
14502 | aCC*) | |
14503 | lt_prog_compiler_wl_CXX='-Wl,' | |
14504 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14505 | case $host_cpu in | |
14506 | hppa*64*|ia64*) | |
14507 | # +Z the default | |
14508 | ;; | |
14509 | *) | |
14510 | lt_prog_compiler_pic_CXX='+Z' | |
14511 | ;; | |
14512 | esac | |
14513 | ;; | |
14514 | *) | |
14515 | ;; | |
14516 | esac | |
14517 | ;; | |
14518 | interix*) | |
14519 | # This is c89, which is MS Visual C++ (no shared libs) | |
14520 | # Anyone wants to do a port? | |
14521 | ;; | |
14522 | irix5* | irix6* | nonstopux*) | |
14523 | case $cc_basename in | |
14524 | CC*) | |
14525 | lt_prog_compiler_wl_CXX='-Wl,' | |
14526 | lt_prog_compiler_static_CXX='-non_shared' | |
14527 | # CC pic flag -KPIC is the default. | |
14528 | ;; | |
14529 | *) | |
14530 | ;; | |
14531 | esac | |
14532 | ;; | |
1504c9b8 | 14533 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
14534 | case $cc_basename in |
14535 | KCC*) | |
14536 | # KAI C++ Compiler | |
14537 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14538 | lt_prog_compiler_pic_CXX='-fPIC' | |
14539 | ;; | |
14540 | ecpc* ) | |
14541 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14542 | lt_prog_compiler_wl_CXX='-Wl,' | |
14543 | lt_prog_compiler_pic_CXX='-KPIC' | |
14544 | lt_prog_compiler_static_CXX='-static' | |
14545 | ;; | |
14546 | icpc* ) | |
14547 | # Intel C++, used to be incompatible with GCC. | |
14548 | # ICC 10 doesn't accept -KPIC any more. | |
14549 | lt_prog_compiler_wl_CXX='-Wl,' | |
14550 | lt_prog_compiler_pic_CXX='-fPIC' | |
14551 | lt_prog_compiler_static_CXX='-static' | |
14552 | ;; | |
14553 | pgCC* | pgcpp*) | |
14554 | # Portland Group C++ compiler | |
14555 | lt_prog_compiler_wl_CXX='-Wl,' | |
14556 | lt_prog_compiler_pic_CXX='-fpic' | |
14557 | lt_prog_compiler_static_CXX='-Bstatic' | |
14558 | ;; | |
14559 | cxx*) | |
14560 | # Compaq C++ | |
14561 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14562 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14563 | lt_prog_compiler_pic_CXX= | |
14564 | lt_prog_compiler_static_CXX='-non_shared' | |
14565 | ;; | |
ee134472 JF |
14566 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
14567 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
14568 | lt_prog_compiler_wl_CXX='-Wl,' |
14569 | lt_prog_compiler_pic_CXX='-qpic' | |
14570 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14571 | ;; | |
14572 | *) | |
14573 | case `$CC -V 2>&1 | sed 5q` in | |
14574 | *Sun\ C*) | |
14575 | # Sun C++ 5.9 | |
14576 | lt_prog_compiler_pic_CXX='-KPIC' | |
14577 | lt_prog_compiler_static_CXX='-Bstatic' | |
14578 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14579 | ;; | |
14580 | esac | |
14581 | ;; | |
14582 | esac | |
14583 | ;; | |
14584 | lynxos*) | |
14585 | ;; | |
14586 | m88k*) | |
14587 | ;; | |
14588 | mvs*) | |
14589 | case $cc_basename in | |
14590 | cxx*) | |
14591 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14592 | ;; | |
14593 | *) | |
14594 | ;; | |
14595 | esac | |
14596 | ;; | |
53ba6704 | 14597 | netbsd*) |
9c60689e DWT |
14598 | ;; |
14599 | *qnx* | *nto*) | |
14600 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14601 | # it will coredump. | |
14602 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14603 | ;; | |
14604 | osf3* | osf4* | osf5*) | |
14605 | case $cc_basename in | |
14606 | KCC*) | |
14607 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14608 | ;; | |
14609 | RCC*) | |
14610 | # Rational C++ 2.4.1 | |
14611 | lt_prog_compiler_pic_CXX='-pic' | |
14612 | ;; | |
14613 | cxx*) | |
14614 | # Digital/Compaq C++ | |
14615 | lt_prog_compiler_wl_CXX='-Wl,' | |
14616 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14617 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14618 | lt_prog_compiler_pic_CXX= | |
14619 | lt_prog_compiler_static_CXX='-non_shared' | |
14620 | ;; | |
14621 | *) | |
14622 | ;; | |
14623 | esac | |
14624 | ;; | |
14625 | psos*) | |
14626 | ;; | |
14627 | solaris*) | |
14628 | case $cc_basename in | |
ee134472 | 14629 | CC* | sunCC*) |
9c60689e DWT |
14630 | # Sun C++ 4.2, 5.x and Centerline C++ |
14631 | lt_prog_compiler_pic_CXX='-KPIC' | |
14632 | lt_prog_compiler_static_CXX='-Bstatic' | |
14633 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14634 | ;; | |
14635 | gcx*) | |
14636 | # Green Hills C++ Compiler | |
14637 | lt_prog_compiler_pic_CXX='-PIC' | |
14638 | ;; | |
14639 | *) | |
14640 | ;; | |
14641 | esac | |
14642 | ;; | |
14643 | sunos4*) | |
14644 | case $cc_basename in | |
14645 | CC*) | |
14646 | # Sun C++ 4.x | |
14647 | lt_prog_compiler_pic_CXX='-pic' | |
14648 | lt_prog_compiler_static_CXX='-Bstatic' | |
14649 | ;; | |
14650 | lcc*) | |
14651 | # Lucid | |
14652 | lt_prog_compiler_pic_CXX='-pic' | |
14653 | ;; | |
14654 | *) | |
14655 | ;; | |
14656 | esac | |
14657 | ;; | |
14658 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14659 | case $cc_basename in | |
14660 | CC*) | |
14661 | lt_prog_compiler_wl_CXX='-Wl,' | |
14662 | lt_prog_compiler_pic_CXX='-KPIC' | |
14663 | lt_prog_compiler_static_CXX='-Bstatic' | |
14664 | ;; | |
14665 | esac | |
14666 | ;; | |
14667 | tandem*) | |
14668 | case $cc_basename in | |
14669 | NCC*) | |
14670 | # NonStop-UX NCC 3.20 | |
14671 | lt_prog_compiler_pic_CXX='-KPIC' | |
14672 | ;; | |
14673 | *) | |
14674 | ;; | |
14675 | esac | |
14676 | ;; | |
14677 | vxworks*) | |
14678 | ;; | |
14679 | *) | |
14680 | lt_prog_compiler_can_build_shared_CXX=no | |
14681 | ;; | |
14682 | esac | |
14683 | fi | |
14684 | ||
14685 | case $host_os in | |
14686 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14687 | *djgpp*) | |
14688 | lt_prog_compiler_pic_CXX= | |
14689 | ;; | |
14690 | *) | |
14691 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14692 | ;; | |
14693 | esac | |
9c60689e | 14694 | |
ee134472 JF |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
14696 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14697 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14698 | $as_echo_n "(cached) " >&6 | |
14699 | else | |
14700 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14701 | fi | |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14703 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14704 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
14705 | |
14706 | # | |
14707 | # Check to make sure the PIC flag actually works. | |
14708 | # | |
14709 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14711 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 14712 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
14713 | $as_echo_n "(cached) " >&6 |
14714 | else | |
14715 | lt_cv_prog_compiler_pic_works_CXX=no | |
14716 | ac_outfile=conftest.$ac_objext | |
14717 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14718 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14719 | # Insert the option either (1) after the last *FLAGS variable, or | |
14720 | # (2) before a word containing "conftest.", or (3) at the end. | |
14721 | # Note that $ac_compile itself does not contain backslashes and begins | |
14722 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14723 | # The option is referenced via a variable to avoid confusing sed. | |
14724 | lt_compile=`echo "$ac_compile" | $SED \ | |
14725 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14726 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14727 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14728 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
14729 | (eval "$lt_compile" 2>conftest.err) |
14730 | ac_status=$? | |
14731 | cat conftest.err >&5 | |
ee134472 | 14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
14733 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14734 | # The compiler can only warn and ignore the option if not recognized | |
14735 | # So say no if there are warnings other than the usual output. | |
ee134472 | 14736 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
14737 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14738 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14739 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14740 | fi | |
14741 | fi | |
a93f15c0 | 14742 | $RM conftest* |
9c60689e DWT |
14743 | |
14744 | fi | |
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14746 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14747 | ||
14748 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14749 | case $lt_prog_compiler_pic_CXX in | |
14750 | "" | " "*) ;; | |
14751 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14752 | esac | |
14753 | else | |
14754 | lt_prog_compiler_pic_CXX= | |
14755 | lt_prog_compiler_can_build_shared_CXX=no | |
14756 | fi | |
14757 | ||
14758 | fi | |
14759 | ||
14760 | ||
14761 | ||
ee134472 JF |
14762 | |
14763 | ||
47aaa820 DWT |
14764 | # |
14765 | # Check to make sure the static flag actually works. | |
14766 | # | |
14767 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14769 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 14770 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
14771 | $as_echo_n "(cached) " >&6 |
14772 | else | |
14773 | lt_cv_prog_compiler_static_works_CXX=no | |
14774 | save_LDFLAGS="$LDFLAGS" | |
14775 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14776 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14777 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14778 | # The linker can only warn and ignore the option if not recognized | |
14779 | # So say no if there are warnings | |
14780 | if test -s conftest.err; then | |
14781 | # Append any errors to the config.log. | |
14782 | cat conftest.err 1>&5 | |
ee134472 | 14783 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
14784 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14785 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14786 | lt_cv_prog_compiler_static_works_CXX=yes | |
14787 | fi | |
14788 | else | |
14789 | lt_cv_prog_compiler_static_works_CXX=yes | |
14790 | fi | |
14791 | fi | |
14792 | $RM -r conftest* | |
14793 | LDFLAGS="$save_LDFLAGS" | |
14794 | ||
14795 | fi | |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14797 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14798 | ||
14799 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14800 | : | |
14801 | else | |
14802 | lt_prog_compiler_static_CXX= | |
14803 | fi | |
14804 | ||
14805 | ||
14806 | ||
14807 | ||
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14809 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14810 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14811 | $as_echo_n "(cached) " >&6 |
14812 | else | |
14813 | lt_cv_prog_compiler_c_o_CXX=no | |
14814 | $RM -r conftest 2>/dev/null | |
14815 | mkdir conftest | |
14816 | cd conftest | |
14817 | mkdir out | |
14818 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14819 | ||
14820 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14821 | # Insert the option either (1) after the last *FLAGS variable, or | |
14822 | # (2) before a word containing "conftest.", or (3) at the end. | |
14823 | # Note that $ac_compile itself does not contain backslashes and begins | |
14824 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14825 | lt_compile=`echo "$ac_compile" | $SED \ | |
14826 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14827 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14828 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14829 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14830 | (eval "$lt_compile" 2>out/conftest.err) |
14831 | ac_status=$? | |
14832 | cat out/conftest.err >&5 | |
ee134472 | 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14834 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14835 | then | |
14836 | # The compiler can only warn and ignore the option if not recognized | |
14837 | # So say no if there are warnings | |
ee134472 | 14838 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14839 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14840 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14841 | lt_cv_prog_compiler_c_o_CXX=yes | |
14842 | fi | |
14843 | fi | |
14844 | chmod u+w . 2>&5 | |
a93f15c0 | 14845 | $RM conftest* |
47aaa820 DWT |
14846 | # SGI C++ compiler will create directory out/ii_files/ for |
14847 | # template instantiation | |
14848 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14849 | $RM out/* && rmdir out | |
14850 | cd .. | |
14851 | $RM -r conftest | |
a93f15c0 | 14852 | $RM conftest* |
47aaa820 DWT |
14853 | |
14854 | fi | |
14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14856 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14857 | ||
14858 | ||
14859 | ||
14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14861 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14862 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14863 | $as_echo_n "(cached) " >&6 |
14864 | else | |
14865 | lt_cv_prog_compiler_c_o_CXX=no | |
14866 | $RM -r conftest 2>/dev/null | |
14867 | mkdir conftest | |
14868 | cd conftest | |
14869 | mkdir out | |
14870 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14871 | ||
14872 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14873 | # Insert the option either (1) after the last *FLAGS variable, or | |
14874 | # (2) before a word containing "conftest.", or (3) at the end. | |
14875 | # Note that $ac_compile itself does not contain backslashes and begins | |
14876 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14877 | lt_compile=`echo "$ac_compile" | $SED \ | |
14878 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14879 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14880 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14881 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14882 | (eval "$lt_compile" 2>out/conftest.err) |
14883 | ac_status=$? | |
14884 | cat out/conftest.err >&5 | |
ee134472 | 14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14886 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14887 | then | |
14888 | # The compiler can only warn and ignore the option if not recognized | |
14889 | # So say no if there are warnings | |
ee134472 | 14890 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14891 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14892 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14893 | lt_cv_prog_compiler_c_o_CXX=yes | |
14894 | fi | |
14895 | fi | |
14896 | chmod u+w . 2>&5 | |
a93f15c0 | 14897 | $RM conftest* |
47aaa820 DWT |
14898 | # SGI C++ compiler will create directory out/ii_files/ for |
14899 | # template instantiation | |
14900 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14901 | $RM out/* && rmdir out | |
14902 | cd .. | |
14903 | $RM -r conftest | |
a93f15c0 | 14904 | $RM conftest* |
47aaa820 DWT |
14905 | |
14906 | fi | |
14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14908 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14909 | ||
14910 | ||
14911 | ||
14912 | ||
14913 | hard_links="nottested" | |
14914 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14915 | # do not overwrite the value of need_locks provided by the user | |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14917 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14918 | hard_links=yes | |
a93f15c0 | 14919 | $RM conftest* |
47aaa820 DWT |
14920 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14921 | touch conftest.a | |
14922 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14923 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14925 | $as_echo "$hard_links" >&6; } | |
14926 | if test "$hard_links" = no; then | |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14928 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14929 | need_locks=warn | |
14930 | fi | |
14931 | else | |
14932 | need_locks=no | |
14933 | fi | |
14934 | ||
14935 | ||
14936 | ||
14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14938 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14939 | ||
14940 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14941 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
14942 | case $host_os in |
14943 | aix[4-9]*) | |
14944 | # If we're using GNU nm, then we don't want the "-C" option. | |
14945 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
ee134472 JF |
14946 | # Also, AIX nm treats weak defined symbols like other global defined |
14947 | # symbols, whereas GNU nm marks them as "W". | |
47aaa820 | 14948 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
ee134472 | 14949 | 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 |
14950 | else |
14951 | 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' | |
14952 | fi | |
14953 | ;; | |
14954 | pw32*) | |
14955 | export_symbols_cmds_CXX="$ltdll_cmds" | |
ee134472 | 14956 | ;; |
47aaa820 | 14957 | cygwin* | mingw* | cegcc*) |
ee134472 | 14958 | case $cc_basename in |
53ba6704 JF |
14959 | cl*) |
14960 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14961 | ;; | |
ee134472 JF |
14962 | *) |
14963 | 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' | |
14964 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14965 | ;; | |
14966 | esac | |
14967 | ;; | |
47aaa820 DWT |
14968 | *) |
14969 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14970 | ;; |
47aaa820 | 14971 | esac |
47aaa820 DWT |
14972 | |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14974 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14975 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14976 | ||
14977 | with_gnu_ld_CXX=$with_gnu_ld | |
14978 | ||
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | ||
14984 | # | |
14985 | # Do we need to explicitly link libc? | |
14986 | # | |
14987 | case "x$archive_cmds_need_lc_CXX" in | |
14988 | x|xyes) | |
14989 | # Assume -lc should be added | |
14990 | archive_cmds_need_lc_CXX=yes | |
14991 | ||
14992 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14993 | case $archive_cmds_CXX in | |
14994 | *'~'*) | |
14995 | # FIXME: we may have to deal with multi-command sequences. | |
14996 | ;; | |
14997 | '$CC '*) | |
14998 | # Test whether the compiler implicitly links with -lc since on some | |
14999 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15000 | # to ld, don't add -lc before -lgcc. | |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15002 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
15003 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
15004 | $as_echo_n "(cached) " >&6 | |
15005 | else | |
a93f15c0 | 15006 | $RM conftest* |
ee134472 | 15007 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 15008 | |
ee134472 | 15009 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
15010 | (eval $ac_compile) 2>&5 |
15011 | ac_status=$? | |
15012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15013 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
15014 | soname=conftest |
15015 | lib=conftest | |
15016 | libobjs=conftest.$ac_objext | |
15017 | deplibs= | |
15018 | wl=$lt_prog_compiler_wl_CXX | |
15019 | pic_flag=$lt_prog_compiler_pic_CXX | |
15020 | compiler_flags=-v | |
15021 | linker_flags=-v | |
15022 | verstring= | |
15023 | output_objdir=. | |
15024 | libname=conftest | |
15025 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15026 | allow_undefined_flag_CXX= | |
15027 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
15028 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15029 | ac_status=$? | |
15030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15031 | test $ac_status = 0; } | |
ee134472 JF |
15032 | then |
15033 | lt_cv_archive_cmds_need_lc_CXX=no | |
15034 | else | |
15035 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15036 | fi | |
15037 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15038 | else | |
15039 | cat conftest.err 1>&5 | |
15040 | fi | |
a93f15c0 | 15041 | $RM conftest* |
ee134472 JF |
15042 | |
15043 | fi | |
15044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15045 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15046 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
15047 | ;; |
15048 | esac | |
15049 | fi | |
15050 | ;; | |
15051 | esac | |
15052 | ||
15053 | ||
15054 | ||
15055 | ||
15056 | ||
15057 | ||
15058 | ||
15059 | ||
15060 | ||
15061 | ||
15062 | ||
15063 | ||
15064 | ||
15065 | ||
15066 | ||
15067 | ||
15068 | ||
15069 | ||
15070 | ||
15071 | ||
15072 | ||
15073 | ||
15074 | ||
15075 | ||
15076 | ||
15077 | ||
15078 | ||
15079 | ||
15080 | ||
15081 | ||
15082 | ||
15083 | ||
15084 | ||
15085 | ||
15086 | ||
15087 | ||
15088 | ||
15089 | ||
15090 | ||
15091 | ||
15092 | ||
15093 | ||
15094 | ||
15095 | ||
15096 | ||
15097 | ||
15098 | ||
15099 | ||
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
15107 | ||
15108 | ||
15109 | ||
15110 | ||
47aaa820 DWT |
15111 | |
15112 | ||
15113 | ||
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15115 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15116 | ||
15117 | library_names_spec= | |
15118 | libname_spec='lib$name' | |
15119 | soname_spec= | |
15120 | shrext_cmds=".so" | |
15121 | postinstall_cmds= | |
15122 | postuninstall_cmds= | |
15123 | finish_cmds= | |
15124 | finish_eval= | |
15125 | shlibpath_var= | |
15126 | shlibpath_overrides_runpath=unknown | |
15127 | version_type=none | |
15128 | dynamic_linker="$host_os ld.so" | |
15129 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15130 | need_lib_prefix=unknown | |
15131 | hardcode_into_libs=no | |
15132 | ||
15133 | # when you set need_version to no, make sure it does not cause -set_version | |
15134 | # flags to be left without arguments | |
15135 | need_version=unknown | |
15136 | ||
15137 | case $host_os in | |
15138 | aix3*) | |
53ba6704 | 15139 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15140 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15141 | shlibpath_var=LIBPATH | |
15142 | ||
15143 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15144 | soname_spec='${libname}${release}${shared_ext}$major' | |
15145 | ;; | |
15146 | ||
15147 | aix[4-9]*) | |
53ba6704 | 15148 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15149 | need_lib_prefix=no |
15150 | need_version=no | |
15151 | hardcode_into_libs=yes | |
15152 | if test "$host_cpu" = ia64; then | |
15153 | # AIX 5 supports IA64 | |
15154 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15155 | shlibpath_var=LD_LIBRARY_PATH | |
15156 | else | |
15157 | # With GCC up to 2.95.x, collect2 would create an import file | |
15158 | # for dependence libraries. The import file would start with | |
15159 | # the line `#! .'. This would cause the generated library to | |
15160 | # depend on `.', always an invalid library. This was fixed in | |
15161 | # development snapshots of GCC prior to 3.0. | |
15162 | case $host_os in | |
15163 | aix4 | aix4.[01] | aix4.[01].*) | |
15164 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15165 | echo ' yes ' | |
15166 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15167 | : | |
15168 | else | |
15169 | can_build_shared=no | |
15170 | fi | |
15171 | ;; | |
15172 | esac | |
15173 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15174 | # soname into executable. Probably we can add versioning support to | |
15175 | # collect2, so additional links can be useful in future. | |
15176 | if test "$aix_use_runtimelinking" = yes; then | |
15177 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15178 | # instead of lib<name>.a to let people know that these are not | |
15179 | # typical AIX shared libraries. | |
15180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15181 | else | |
15182 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15183 | # and later when we are not doing run time linking. | |
15184 | library_names_spec='${libname}${release}.a $libname.a' | |
15185 | soname_spec='${libname}${release}${shared_ext}$major' | |
15186 | fi | |
15187 | shlibpath_var=LIBPATH | |
15188 | fi | |
15189 | ;; | |
15190 | ||
15191 | amigaos*) | |
15192 | case $host_cpu in | |
15193 | powerpc) | |
15194 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15195 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15197 | ;; | |
15198 | m68k) | |
15199 | library_names_spec='$libname.ixlibrary $libname.a' | |
15200 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
ee134472 | 15201 | 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 |
15202 | ;; |
15203 | esac | |
15204 | ;; | |
15205 | ||
15206 | beos*) | |
15207 | library_names_spec='${libname}${shared_ext}' | |
15208 | dynamic_linker="$host_os ld.so" | |
15209 | shlibpath_var=LIBRARY_PATH | |
15210 | ;; | |
15211 | ||
15212 | bsdi[45]*) | |
53ba6704 | 15213 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15214 | need_version=no |
15215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15216 | soname_spec='${libname}${release}${shared_ext}$major' | |
15217 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15218 | shlibpath_var=LD_LIBRARY_PATH | |
15219 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15220 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15221 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15222 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15223 | # libtool to hard-code these into programs | |
15224 | ;; | |
9c60689e | 15225 | |
47aaa820 DWT |
15226 | cygwin* | mingw* | pw32* | cegcc*) |
15227 | version_type=windows | |
15228 | shrext_cmds=".dll" | |
15229 | need_version=no | |
15230 | need_lib_prefix=no | |
9c60689e | 15231 | |
ee134472 JF |
15232 | case $GCC,$cc_basename in |
15233 | yes,*) | |
15234 | # gcc | |
47aaa820 DWT |
15235 | library_names_spec='$libname.dll.a' |
15236 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15237 | postinstall_cmds='base_file=`basename \${file}`~ | |
15238 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15239 | dldir=$destdir/`dirname \$dlpath`~ | |
15240 | test -d \$dldir || mkdir -p \$dldir~ | |
15241 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15242 | chmod a+x \$dldir/$dlname~ | |
15243 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15244 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15245 | fi' | |
15246 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15247 | dlpath=$dir/\$dldll~ | |
15248 | $RM \$dlpath' | |
15249 | shlibpath_overrides_runpath=yes | |
9c60689e | 15250 | |
47aaa820 DWT |
15251 | case $host_os in |
15252 | cygwin*) | |
15253 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15254 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ee134472 | 15255 | |
47aaa820 DWT |
15256 | ;; |
15257 | mingw* | cegcc*) | |
15258 | # MinGW DLLs use traditional 'lib' prefix | |
15259 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
47aaa820 DWT |
15260 | ;; |
15261 | pw32*) | |
15262 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15263 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15264 | ;; | |
15265 | esac | |
ee134472 JF |
15266 | dynamic_linker='Win32 ld.exe' |
15267 | ;; | |
15268 | ||
15269 | *,cl*) | |
15270 | # Native MSVC | |
15271 | libname_spec='$name' | |
15272 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15273 | library_names_spec='${libname}.dll.lib' | |
15274 | ||
15275 | case $build_os in | |
15276 | mingw*) | |
15277 | sys_lib_search_path_spec= | |
15278 | lt_save_ifs=$IFS | |
15279 | IFS=';' | |
15280 | for lt_path in $LIB | |
15281 | do | |
15282 | IFS=$lt_save_ifs | |
15283 | # Let DOS variable expansion print the short 8.3 style file name. | |
15284 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15285 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15286 | done | |
15287 | IFS=$lt_save_ifs | |
15288 | # Convert to MSYS style. | |
15289 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15290 | ;; | |
15291 | cygwin*) | |
15292 | # Convert to unix form, then to dos form, then back to unix form | |
15293 | # but this time dos style (no spaces!) so that the unix form looks | |
15294 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15295 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15296 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15297 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15298 | ;; | |
15299 | *) | |
15300 | sys_lib_search_path_spec="$LIB" | |
15301 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15302 | # It is most probably a Windows format PATH. | |
15303 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15304 | else | |
15305 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15306 | fi | |
15307 | # FIXME: find the short name or the path components, as spaces are | |
15308 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15309 | ;; | |
15310 | esac | |
15311 | ||
15312 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15313 | postinstall_cmds='base_file=`basename \${file}`~ | |
15314 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15315 | dldir=$destdir/`dirname \$dlpath`~ | |
15316 | test -d \$dldir || mkdir -p \$dldir~ | |
15317 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15318 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15319 | dlpath=$dir/\$dldll~ | |
15320 | $RM \$dlpath' | |
15321 | shlibpath_overrides_runpath=yes | |
15322 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15323 | ;; |
9c60689e | 15324 | |
47aaa820 | 15325 | *) |
ee134472 | 15326 | # Assume MSVC wrapper |
47aaa820 | 15327 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
ee134472 | 15328 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15329 | ;; |
15330 | esac | |
47aaa820 DWT |
15331 | # FIXME: first we should search . and the directory the executable is in |
15332 | shlibpath_var=PATH | |
15333 | ;; | |
9c60689e | 15334 | |
47aaa820 DWT |
15335 | darwin* | rhapsody*) |
15336 | dynamic_linker="$host_os dyld" | |
15337 | version_type=darwin | |
15338 | need_lib_prefix=no | |
15339 | need_version=no | |
15340 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15341 | soname_spec='${libname}${release}${major}$shared_ext' | |
15342 | shlibpath_overrides_runpath=yes | |
15343 | shlibpath_var=DYLD_LIBRARY_PATH | |
15344 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15345 | |
47aaa820 DWT |
15346 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15347 | ;; | |
9c60689e | 15348 | |
47aaa820 | 15349 | dgux*) |
53ba6704 | 15350 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15351 | need_lib_prefix=no |
15352 | need_version=no | |
15353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15354 | soname_spec='${libname}${release}${shared_ext}$major' | |
15355 | shlibpath_var=LD_LIBRARY_PATH | |
15356 | ;; | |
9c60689e | 15357 | |
47aaa820 DWT |
15358 | freebsd* | dragonfly*) |
15359 | # DragonFly does not have aout. When/if they implement a new | |
15360 | # versioning mechanism, adjust this. | |
15361 | if test -x /usr/bin/objformat; then | |
15362 | objformat=`/usr/bin/objformat` | |
15363 | else | |
15364 | case $host_os in | |
53ba6704 | 15365 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15366 | *) objformat=elf ;; |
15367 | esac | |
15368 | fi | |
15369 | version_type=freebsd-$objformat | |
15370 | case $version_type in | |
15371 | freebsd-elf*) | |
15372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15373 | need_version=no | |
15374 | need_lib_prefix=no | |
15375 | ;; | |
15376 | freebsd-*) | |
15377 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15378 | need_version=yes | |
15379 | ;; | |
15380 | esac | |
15381 | shlibpath_var=LD_LIBRARY_PATH | |
15382 | case $host_os in | |
53ba6704 | 15383 | freebsd2.*) |
47aaa820 DWT |
15384 | shlibpath_overrides_runpath=yes |
15385 | ;; | |
15386 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15387 | shlibpath_overrides_runpath=yes | |
15388 | hardcode_into_libs=yes | |
15389 | ;; | |
15390 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15391 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15392 | shlibpath_overrides_runpath=no | |
15393 | hardcode_into_libs=yes | |
15394 | ;; | |
15395 | *) # from 4.6 on, and DragonFly | |
15396 | shlibpath_overrides_runpath=yes | |
15397 | hardcode_into_libs=yes | |
15398 | ;; | |
15399 | esac | |
15400 | ;; | |
9c60689e | 15401 | |
47aaa820 | 15402 | gnu*) |
53ba6704 | 15403 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15404 | need_lib_prefix=no |
15405 | need_version=no | |
15406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15407 | soname_spec='${libname}${release}${shared_ext}$major' | |
15408 | shlibpath_var=LD_LIBRARY_PATH | |
ee134472 JF |
15409 | shlibpath_overrides_runpath=no |
15410 | hardcode_into_libs=yes | |
15411 | ;; | |
15412 | ||
15413 | haiku*) | |
53ba6704 | 15414 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15415 | need_lib_prefix=no |
15416 | need_version=no | |
15417 | dynamic_linker="$host_os runtime_loader" | |
15418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15419 | soname_spec='${libname}${release}${shared_ext}$major' | |
15420 | shlibpath_var=LIBRARY_PATH | |
15421 | shlibpath_overrides_runpath=yes | |
15422 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
47aaa820 DWT |
15423 | hardcode_into_libs=yes |
15424 | ;; | |
9c60689e | 15425 | |
47aaa820 DWT |
15426 | hpux9* | hpux10* | hpux11*) |
15427 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15428 | # link against other versions. | |
15429 | version_type=sunos | |
15430 | need_lib_prefix=no | |
15431 | need_version=no | |
15432 | case $host_cpu in | |
15433 | ia64*) | |
15434 | shrext_cmds='.so' | |
15435 | hardcode_into_libs=yes | |
15436 | dynamic_linker="$host_os dld.so" | |
15437 | shlibpath_var=LD_LIBRARY_PATH | |
15438 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15440 | soname_spec='${libname}${release}${shared_ext}$major' | |
15441 | if test "X$HPUX_IA64_MODE" = X32; then | |
15442 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15443 | else | |
15444 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15445 | fi | |
15446 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15447 | ;; | |
15448 | hppa*64*) | |
15449 | shrext_cmds='.sl' | |
15450 | hardcode_into_libs=yes | |
15451 | dynamic_linker="$host_os dld.sl" | |
15452 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15453 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15455 | soname_spec='${libname}${release}${shared_ext}$major' | |
15456 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15457 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15458 | ;; | |
15459 | *) | |
15460 | shrext_cmds='.sl' | |
15461 | dynamic_linker="$host_os dld.sl" | |
15462 | shlibpath_var=SHLIB_PATH | |
15463 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15465 | soname_spec='${libname}${release}${shared_ext}$major' | |
15466 | ;; | |
15467 | esac | |
ee134472 | 15468 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 15469 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
15470 | # or fails outright, so override atomically: |
15471 | install_override_mode=555 | |
47aaa820 | 15472 | ;; |
9c60689e | 15473 | |
47aaa820 | 15474 | interix[3-9]*) |
53ba6704 | 15475 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15476 | need_lib_prefix=no |
15477 | need_version=no | |
15478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15479 | soname_spec='${libname}${release}${shared_ext}$major' | |
15480 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15481 | shlibpath_var=LD_LIBRARY_PATH | |
15482 | shlibpath_overrides_runpath=no | |
15483 | hardcode_into_libs=yes | |
15484 | ;; | |
9c60689e | 15485 | |
47aaa820 DWT |
15486 | irix5* | irix6* | nonstopux*) |
15487 | case $host_os in | |
15488 | nonstopux*) version_type=nonstopux ;; | |
15489 | *) | |
15490 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
53ba6704 | 15491 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15492 | else |
15493 | version_type=irix | |
15494 | fi ;; | |
15495 | esac | |
15496 | need_lib_prefix=no | |
15497 | need_version=no | |
15498 | soname_spec='${libname}${release}${shared_ext}$major' | |
15499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15500 | case $host_os in | |
15501 | irix5* | nonstopux*) | |
15502 | libsuff= shlibsuff= | |
15503 | ;; | |
15504 | *) | |
15505 | case $LD in # libtool.m4 will add one of these switches to LD | |
15506 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15507 | libsuff= shlibsuff= libmagic=32-bit;; | |
15508 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15509 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15510 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15511 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15512 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15513 | esac | |
15514 | ;; | |
15515 | esac | |
15516 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15517 | shlibpath_overrides_runpath=no | |
15518 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15519 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15520 | hardcode_into_libs=yes | |
15521 | ;; | |
9c60689e | 15522 | |
47aaa820 DWT |
15523 | # No shared lib support for Linux oldld, aout, or coff. |
15524 | linux*oldld* | linux*aout* | linux*coff*) | |
15525 | dynamic_linker=no | |
15526 | ;; | |
9c60689e | 15527 | |
53ba6704 | 15528 | # This must be glibc/ELF. |
1504c9b8 | 15529 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
53ba6704 | 15530 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15531 | need_lib_prefix=no |
15532 | need_version=no | |
15533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15534 | soname_spec='${libname}${release}${shared_ext}$major' | |
15535 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15536 | shlibpath_var=LD_LIBRARY_PATH | |
15537 | shlibpath_overrides_runpath=no | |
ee134472 | 15538 | |
47aaa820 | 15539 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
15540 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
15541 | $as_echo_n "(cached) " >&6 | |
15542 | else | |
15543 | lt_cv_shlibpath_overrides_runpath=no | |
15544 | save_LDFLAGS=$LDFLAGS | |
15545 | save_libdir=$libdir | |
15546 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15547 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 15549 | /* end confdefs.h. */ |
9c60689e | 15550 | |
47aaa820 DWT |
15551 | int |
15552 | main () | |
15553 | { | |
9c60689e | 15554 | |
47aaa820 DWT |
15555 | ; |
15556 | return 0; | |
15557 | } | |
15558 | _ACEOF | |
15559 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15560 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 15561 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 15562 | fi |
47aaa820 DWT |
15563 | fi |
15564 | rm -f core conftest.err conftest.$ac_objext \ | |
15565 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
15566 | LDFLAGS=$save_LDFLAGS |
15567 | libdir=$save_libdir | |
15568 | ||
15569 | fi | |
15570 | ||
15571 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 15572 | |
47aaa820 DWT |
15573 | # This implies no fast_install, which is unacceptable. |
15574 | # Some rework will be needed to allow for fast_install | |
15575 | # before this can be enabled. | |
15576 | hardcode_into_libs=yes | |
9c60689e | 15577 | |
47aaa820 DWT |
15578 | # Append ld.so.conf contents to the search path |
15579 | if test -f /etc/ld.so.conf; then | |
ee134472 | 15580 | 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 |
15581 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15582 | fi | |
9c60689e | 15583 | |
47aaa820 DWT |
15584 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15585 | # powerpc, because MkLinux only supported shared libraries with the | |
15586 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15587 | # most powerpc-linux boxes support dynamic linking these days and | |
15588 | # people can always --disable-shared, the test was removed, and we | |
15589 | # assume the GNU/Linux dynamic linker is in use. | |
15590 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 15591 | ;; |
47aaa820 | 15592 | |
47aaa820 DWT |
15593 | netbsd*) |
15594 | version_type=sunos | |
15595 | need_lib_prefix=no | |
15596 | need_version=no | |
15597 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15599 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15600 | dynamic_linker='NetBSD (a.out) ld.so' | |
15601 | else | |
15602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15603 | soname_spec='${libname}${release}${shared_ext}$major' | |
15604 | dynamic_linker='NetBSD ld.elf_so' | |
15605 | fi | |
15606 | shlibpath_var=LD_LIBRARY_PATH | |
15607 | shlibpath_overrides_runpath=yes | |
15608 | hardcode_into_libs=yes | |
9c60689e | 15609 | ;; |
9c60689e | 15610 | |
47aaa820 | 15611 | newsos6) |
53ba6704 | 15612 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15614 | shlibpath_var=LD_LIBRARY_PATH | |
15615 | shlibpath_overrides_runpath=yes | |
15616 | ;; | |
9c60689e | 15617 | |
47aaa820 DWT |
15618 | *nto* | *qnx*) |
15619 | version_type=qnx | |
15620 | need_lib_prefix=no | |
15621 | need_version=no | |
15622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15623 | soname_spec='${libname}${release}${shared_ext}$major' | |
15624 | shlibpath_var=LD_LIBRARY_PATH | |
15625 | shlibpath_overrides_runpath=no | |
15626 | hardcode_into_libs=yes | |
15627 | dynamic_linker='ldqnx.so' | |
15628 | ;; | |
9c60689e | 15629 | |
47aaa820 DWT |
15630 | openbsd*) |
15631 | version_type=sunos | |
15632 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15633 | need_lib_prefix=no | |
15634 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15635 | case $host_os in | |
15636 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15637 | *) need_version=no ;; | |
15638 | esac | |
15639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15640 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15641 | shlibpath_var=LD_LIBRARY_PATH | |
15642 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15643 | case $host_os in | |
15644 | openbsd2.[89] | openbsd2.[89].*) | |
15645 | shlibpath_overrides_runpath=no | |
15646 | ;; | |
15647 | *) | |
15648 | shlibpath_overrides_runpath=yes | |
15649 | ;; | |
15650 | esac | |
15651 | else | |
15652 | shlibpath_overrides_runpath=yes | |
15653 | fi | |
15654 | ;; | |
9c60689e | 15655 | |
47aaa820 DWT |
15656 | os2*) |
15657 | libname_spec='$name' | |
15658 | shrext_cmds=".dll" | |
15659 | need_lib_prefix=no | |
15660 | library_names_spec='$libname${shared_ext} $libname.a' | |
15661 | dynamic_linker='OS/2 ld.exe' | |
15662 | shlibpath_var=LIBPATH | |
15663 | ;; | |
9c60689e | 15664 | |
47aaa820 DWT |
15665 | osf3* | osf4* | osf5*) |
15666 | version_type=osf | |
15667 | need_lib_prefix=no | |
15668 | need_version=no | |
15669 | soname_spec='${libname}${release}${shared_ext}$major' | |
15670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15671 | shlibpath_var=LD_LIBRARY_PATH | |
15672 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15673 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15674 | ;; | |
9c60689e | 15675 | |
47aaa820 DWT |
15676 | rdos*) |
15677 | dynamic_linker=no | |
15678 | ;; | |
9c60689e | 15679 | |
47aaa820 | 15680 | solaris*) |
53ba6704 | 15681 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15682 | need_lib_prefix=no |
15683 | need_version=no | |
15684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15685 | soname_spec='${libname}${release}${shared_ext}$major' | |
15686 | shlibpath_var=LD_LIBRARY_PATH | |
15687 | shlibpath_overrides_runpath=yes | |
15688 | hardcode_into_libs=yes | |
15689 | # ldd complains unless libraries are executable | |
15690 | postinstall_cmds='chmod +x $lib' | |
15691 | ;; | |
9c60689e | 15692 | |
47aaa820 DWT |
15693 | sunos4*) |
15694 | version_type=sunos | |
15695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15696 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15697 | shlibpath_var=LD_LIBRARY_PATH | |
15698 | shlibpath_overrides_runpath=yes | |
15699 | if test "$with_gnu_ld" = yes; then | |
15700 | need_lib_prefix=no | |
15701 | fi | |
15702 | need_version=yes | |
15703 | ;; | |
9c60689e | 15704 | |
47aaa820 | 15705 | sysv4 | sysv4.3*) |
53ba6704 | 15706 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15708 | soname_spec='${libname}${release}${shared_ext}$major' | |
15709 | shlibpath_var=LD_LIBRARY_PATH | |
15710 | case $host_vendor in | |
15711 | sni) | |
15712 | shlibpath_overrides_runpath=no | |
15713 | need_lib_prefix=no | |
15714 | runpath_var=LD_RUN_PATH | |
9c60689e | 15715 | ;; |
47aaa820 DWT |
15716 | siemens) |
15717 | need_lib_prefix=no | |
9c60689e | 15718 | ;; |
47aaa820 DWT |
15719 | motorola) |
15720 | need_lib_prefix=no | |
15721 | need_version=no | |
15722 | shlibpath_overrides_runpath=no | |
15723 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15724 | ;; | |
15725 | esac | |
9c60689e | 15726 | ;; |
9c60689e | 15727 | |
47aaa820 DWT |
15728 | sysv4*MP*) |
15729 | if test -d /usr/nec ;then | |
53ba6704 | 15730 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15731 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15732 | soname_spec='$libname${shared_ext}.$major' | |
15733 | shlibpath_var=LD_LIBRARY_PATH | |
15734 | fi | |
15735 | ;; | |
9c60689e | 15736 | |
47aaa820 DWT |
15737 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15738 | version_type=freebsd-elf | |
15739 | need_lib_prefix=no | |
15740 | need_version=no | |
15741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15742 | soname_spec='${libname}${release}${shared_ext}$major' | |
15743 | shlibpath_var=LD_LIBRARY_PATH | |
15744 | shlibpath_overrides_runpath=yes | |
15745 | hardcode_into_libs=yes | |
15746 | if test "$with_gnu_ld" = yes; then | |
15747 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15748 | else | |
15749 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15750 | case $host_os in | |
15751 | sco3.2v5*) | |
15752 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15753 | ;; | |
15754 | esac | |
15755 | fi | |
15756 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15757 | ;; | |
9c60689e | 15758 | |
47aaa820 DWT |
15759 | tpf*) |
15760 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 15761 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15762 | need_lib_prefix=no |
15763 | need_version=no | |
15764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15765 | shlibpath_var=LD_LIBRARY_PATH | |
15766 | shlibpath_overrides_runpath=no | |
15767 | hardcode_into_libs=yes | |
15768 | ;; | |
9c60689e | 15769 | |
47aaa820 | 15770 | uts4*) |
53ba6704 | 15771 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15773 | soname_spec='${libname}${release}${shared_ext}$major' | |
15774 | shlibpath_var=LD_LIBRARY_PATH | |
15775 | ;; | |
9c60689e | 15776 | |
47aaa820 DWT |
15777 | *) |
15778 | dynamic_linker=no | |
e9c9a47c DWT |
15779 | ;; |
15780 | esac | |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15782 | $as_echo "$dynamic_linker" >&6; } | |
15783 | test "$dynamic_linker" = no && can_build_shared=no | |
15784 | ||
15785 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15786 | if test "$GCC" = yes; then | |
15787 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 15788 | fi |
9c60689e | 15789 | |
e9c9a47c DWT |
15790 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15791 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 15792 | fi |
e9c9a47c DWT |
15793 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
15794 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 15795 | fi |
9c60689e | 15796 | |
9c60689e | 15797 | |
9c60689e | 15798 | |
9c60689e | 15799 | |
47aaa820 | 15800 | |
47aaa820 | 15801 | |
47aaa820 | 15802 | |
9c60689e | 15803 | |
9c60689e | 15804 | |
47aaa820 | 15805 | |
47aaa820 | 15806 | |
47aaa820 | 15807 | |
47aaa820 | 15808 | |
47aaa820 | 15809 | |
47aaa820 | 15810 | |
47aaa820 | 15811 | |
47aaa820 | 15812 | |
9c60689e | 15813 | |
9c60689e | 15814 | |
9c60689e | 15815 | |
9c60689e | 15816 | |
9c60689e | 15817 | |
e9c9a47c DWT |
15818 | |
15819 | ||
15820 | ||
15821 | ||
15822 | ||
15823 | ||
15824 | ||
15825 | ||
15826 | ||
15827 | ||
15828 | ||
ee134472 JF |
15829 | |
15830 | ||
e9c9a47c DWT |
15831 | |
15832 | ||
15833 | ||
15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15835 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15836 | hardcode_action_CXX= | |
15837 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15838 | test -n "$runpath_var_CXX" || | |
15839 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15840 | ||
15841 | # We can hardcode non-existent directories. | |
15842 | if test "$hardcode_direct_CXX" != no && | |
15843 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15844 | # have to relink, otherwise we might link with an installed library | |
15845 | # when we should be linking with a yet-to-be-installed one | |
15846 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15847 | test "$hardcode_minus_L_CXX" != no; then | |
15848 | # Linking always hardcodes the temporary library directory. | |
15849 | hardcode_action_CXX=relink | |
15850 | else | |
15851 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15852 | hardcode_action_CXX=immediate | |
15853 | fi | |
15854 | else | |
15855 | # We cannot hardcode anything, or else we can only hardcode existing | |
15856 | # directories. | |
15857 | hardcode_action_CXX=unsupported | |
15858 | fi | |
15859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15860 | $as_echo "$hardcode_action_CXX" >&6; } | |
15861 | ||
15862 | if test "$hardcode_action_CXX" = relink || | |
15863 | test "$inherit_rpath_CXX" = yes; then | |
15864 | # Fast installation is not supported | |
15865 | enable_fast_install=no | |
15866 | elif test "$shlibpath_overrides_runpath" = yes || | |
15867 | test "$enable_shared" = no; then | |
15868 | # Fast installation is not necessary | |
15869 | enable_fast_install=needless | |
47aaa820 | 15870 | fi |
9c60689e | 15871 | |
47aaa820 | 15872 | |
47aaa820 | 15873 | |
e9c9a47c DWT |
15874 | |
15875 | ||
15876 | ||
15877 | ||
a243b558 JF |
15878 | fi # test -n "$compiler" |
15879 | ||
15880 | CC=$lt_save_CC | |
15881 | CFLAGS=$lt_save_CFLAGS | |
15882 | LDCXX=$LD | |
15883 | LD=$lt_save_LD | |
15884 | GCC=$lt_save_GCC | |
15885 | with_gnu_ld=$lt_save_with_gnu_ld | |
15886 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15887 | lt_cv_path_LD=$lt_save_path_LD | |
15888 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15889 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15890 | fi # test "$_lt_caught_CXX_error" != yes | |
15891 | ||
15892 | ac_ext=c | |
15893 | ac_cpp='$CPP $CPPFLAGS' | |
15894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15897 | ||
15898 | ||
15899 | ||
15900 | ||
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | ||
15909 | ||
15910 | ||
15911 | ||
15912 | ac_config_commands="$ac_config_commands libtool" | |
15913 | ||
15914 | ||
15915 | ||
15916 | ||
15917 | # Only expand once: | |
15918 | ||
15919 | ||
15920 | ||
15921 | ac_ext=cpp | |
15922 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15926 | ||
15927 | ||
15928 | ||
15929 | ||
15930 | ||
15931 | ||
15932 | ||
15933 | ||
a93f15c0 | 15934 | |
a243b558 JF |
15935 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
15936 | if test -n "$ac_tool_prefix"; then | |
15937 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15938 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15940 | $as_echo_n "checking for $ac_word... " >&6; } | |
15941 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15942 | $as_echo_n "(cached) " >&6 | |
15943 | else | |
15944 | case $PKG_CONFIG in | |
15945 | [\\/]* | ?:[\\/]*) | |
15946 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15947 | ;; | |
15948 | *) | |
15949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15950 | for as_dir in $PATH | |
15951 | do | |
15952 | IFS=$as_save_IFS | |
15953 | test -z "$as_dir" && as_dir=. | |
15954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15956 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15958 | break 2 | |
15959 | fi | |
15960 | done | |
15961 | done | |
15962 | IFS=$as_save_IFS | |
15963 | ||
15964 | ;; | |
15965 | esac | |
15966 | fi | |
15967 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15968 | if test -n "$PKG_CONFIG"; then | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15970 | $as_echo "$PKG_CONFIG" >&6; } | |
15971 | else | |
15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15973 | $as_echo "no" >&6; } | |
15974 | fi | |
15975 | ||
15976 | ||
15977 | fi | |
15978 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15979 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15980 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15981 | set dummy pkg-config; ac_word=$2 | |
15982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15983 | $as_echo_n "checking for $ac_word... " >&6; } | |
15984 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15985 | $as_echo_n "(cached) " >&6 | |
15986 | else | |
15987 | case $ac_pt_PKG_CONFIG in | |
15988 | [\\/]* | ?:[\\/]*) | |
15989 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15990 | ;; | |
15991 | *) | |
15992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15993 | for as_dir in $PATH | |
15994 | do | |
15995 | IFS=$as_save_IFS | |
15996 | test -z "$as_dir" && as_dir=. | |
15997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15999 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16001 | break 2 | |
16002 | fi | |
16003 | done | |
16004 | done | |
16005 | IFS=$as_save_IFS | |
16006 | ||
16007 | ;; | |
16008 | esac | |
16009 | fi | |
16010 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16011 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16013 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16014 | else | |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16016 | $as_echo "no" >&6; } | |
16017 | fi | |
16018 | ||
16019 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16020 | PKG_CONFIG="" | |
16021 | else | |
16022 | case $cross_compiling:$ac_tool_warned in | |
16023 | yes:) | |
16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16026 | ac_tool_warned=yes ;; | |
16027 | esac | |
16028 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16029 | fi | |
16030 | else | |
16031 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16032 | fi | |
16033 | ||
16034 | fi | |
16035 | if test -n "$PKG_CONFIG"; then | |
16036 | _pkg_min_version=0.22 | |
16037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16038 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16039 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16041 | $as_echo "yes" >&6; } | |
16042 | else | |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16044 | $as_echo "no" >&6; } | |
16045 | PKG_CONFIG="" | |
16046 | fi | |
16047 | fi | |
16048 | ||
a243b558 JF |
16049 | # Extract the first word of "git", so it can be a program name with args. |
16050 | set dummy git; ac_word=$2 | |
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16052 | $as_echo_n "checking for $ac_word... " >&6; } | |
16053 | if ${ac_cv_path_GIT+:} false; then : | |
16054 | $as_echo_n "(cached) " >&6 | |
16055 | else | |
16056 | case $GIT in | |
16057 | [\\/]* | ?:[\\/]*) | |
16058 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
16059 | ;; | |
16060 | *) | |
16061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16062 | for as_dir in $PATH | |
16063 | do | |
16064 | IFS=$as_save_IFS | |
16065 | test -z "$as_dir" && as_dir=. | |
16066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16068 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
16069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16070 | break 2 | |
16071 | fi | |
16072 | done | |
16073 | done | |
16074 | IFS=$as_save_IFS | |
e9c9a47c | 16075 | |
a243b558 JF |
16076 | ;; |
16077 | esac | |
16078 | fi | |
16079 | GIT=$ac_cv_path_GIT | |
16080 | if test -n "$GIT"; then | |
16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16082 | $as_echo "$GIT" >&6; } | |
16083 | else | |
16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16085 | $as_echo "no" >&6; } | |
16086 | fi | |
e9c9a47c DWT |
16087 | |
16088 | ||
a243b558 JF |
16089 | # Extract the first word of "time", so it can be a program name with args. |
16090 | set dummy time; ac_word=$2 | |
632b71ea DWT |
16091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16092 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 16093 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
16094 | $as_echo_n "(cached) " >&6 |
16095 | else | |
a243b558 JF |
16096 | case $TIME in |
16097 | [\\/]* | ?:[\\/]*) | |
16098 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16099 | ;; | |
16100 | *) | |
16101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
16102 | for as_dir in $PATH |
16103 | do | |
16104 | IFS=$as_save_IFS | |
16105 | test -z "$as_dir" && as_dir=. | |
16106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16107 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16108 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16110 | break 2 | |
16111 | fi | |
16112 | done | |
16113 | done | |
16114 | IFS=$as_save_IFS | |
16115 | ||
a243b558 JF |
16116 | ;; |
16117 | esac | |
632b71ea | 16118 | fi |
a243b558 JF |
16119 | TIME=$ac_cv_path_TIME |
16120 | if test -n "$TIME"; then | |
16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16122 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16123 | else |
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16125 | $as_echo "no" >&6; } | |
16126 | fi | |
16127 | ||
16128 | ||
a243b558 JF |
16129 | |
16130 | ||
16131 | ||
16132 | ||
16133 | ||
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
16135 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
16136 | if test -z "$BISON"; then | |
16137 | ac_path_BISON_found=false | |
16138 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16140 | for as_dir in $PATH | |
16141 | do | |
16142 | IFS=$as_save_IFS | |
16143 | test -z "$as_dir" && as_dir=. | |
16144 | for ac_prog in bison; do | |
16145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16146 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16147 | as_fn_executable_p "$ac_path_BISON" || continue | |
16148 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16149 | if ${version:+false} :; then : | |
16150 | ||
16151 | else | |
16152 | as_awk_strverscmp=' | |
16153 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16154 | # My, what an old awk you have, Mr. Solaris! | |
16155 | END { | |
16156 | while (length(v1) && length(v2)) { | |
16157 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16158 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16159 | # compare them as integers and fractions as strverscmp does. | |
16160 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16161 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16162 | # and advance v1 and v2 past the leading digit strings. | |
16163 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16164 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16165 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16166 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16167 | if (d1 ~ /^0/) { | |
16168 | if (d2 ~ /^0/) { | |
16169 | # Compare two fractions. | |
16170 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16171 | d1 = substr(d1, 2); len1-- | |
16172 | d2 = substr(d2, 2); len2-- | |
16173 | } | |
16174 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16175 | # The two components differ in length, and the common prefix | |
16176 | # contains only leading zeros. Consider the longer to be less. | |
16177 | d1 = -len1 | |
16178 | d2 = -len2 | |
16179 | } else { | |
16180 | # Otherwise, compare as strings. | |
16181 | d1 = "x" d1 | |
16182 | d2 = "x" d2 | |
16183 | } | |
16184 | } else { | |
16185 | # A fraction is less than an integer. | |
16186 | exit 1 | |
16187 | } | |
16188 | } else { | |
16189 | if (d2 ~ /^0/) { | |
16190 | # An integer is greater than a fraction. | |
16191 | exit 2 | |
16192 | } else { | |
16193 | # Compare two integers. | |
16194 | d1 += 0 | |
16195 | d2 += 0 | |
16196 | } | |
16197 | } | |
16198 | } else { | |
16199 | # The normal case, without worrying about digits. | |
16200 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16201 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16202 | } | |
16203 | if (d1 < d2) exit 1 | |
16204 | if (d1 > d2) exit 2 | |
16205 | } | |
16206 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16207 | # which mishandles some comparisons of empty strings to integers. | |
16208 | if (length(v2)) exit 1 | |
16209 | if (length(v1)) exit 2 | |
16210 | } | |
16211 | ' | |
16212 | as_arg_v1=$version | |
16213 | as_arg_v2=2.3 | |
16214 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16215 | case $? in #( | |
16216 | 1) : | |
16217 | ;; #( | |
16218 | 0) : | |
16219 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16220 | 2) : | |
16221 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16222 | *) : | |
16223 | ;; | |
16224 | esac | |
16225 | fi | |
16226 | ||
16227 | $ac_path_BISON_found && break 3 | |
16228 | done | |
16229 | done | |
e9c9a47c | 16230 | done |
a243b558 JF |
16231 | IFS=$as_save_IFS |
16232 | if test -z "$ac_cv_path_BISON"; then | |
16233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16234 | $as_echo "no" >&6; } | |
16235 | fi | |
16236 | else | |
16237 | ac_cv_path_BISON=$BISON | |
632b71ea | 16238 | fi |
a243b558 JF |
16239 | |
16240 | ||
16241 | if true; then : | |
16242 | ||
16243 | BISON=$ac_cv_path_BISON | |
16244 | ||
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16246 | $as_echo "$BISON" >&6; } | |
16247 | ||
47aaa820 | 16248 | else |
a243b558 JF |
16249 | if true; then : |
16250 | ||
16251 | as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5 | |
16252 | ||
47aaa820 | 16253 | else |
a243b558 JF |
16254 | |
16255 | BISON=: | |
16256 | ||
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16258 | $as_echo "no" >&6; } | |
16259 | ||
16260 | fi | |
16261 | fi | |
16262 | ||
16263 | ||
16264 | ||
16265 | ||
16266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
16267 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
16268 | if test -z "$FLEX"; then | |
16269 | ac_path_FLEX_found=false | |
16270 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
16272 | for as_dir in $PATH |
16273 | do | |
16274 | IFS=$as_save_IFS | |
16275 | test -z "$as_dir" && as_dir=. | |
a243b558 | 16276 | for ac_prog in flex; do |
47aaa820 | 16277 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
16278 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
16279 | as_fn_executable_p "$ac_path_FLEX" || continue | |
16280 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
16281 | if ${version:+false} :; then : | |
9c60689e | 16282 | |
47aaa820 | 16283 | else |
a243b558 JF |
16284 | as_arg_v1=$version |
16285 | as_arg_v2=2.5.33 | |
16286 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16287 | case $? in #( | |
16288 | 1) : | |
16289 | ;; #( | |
16290 | 0) : | |
16291 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16292 | 2) : | |
16293 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16294 | *) : | |
16295 | ;; | |
16296 | esac | |
16297 | fi | |
16298 | ||
16299 | $ac_path_FLEX_found && break 3 | |
16300 | done | |
16301 | done | |
16302 | done | |
16303 | IFS=$as_save_IFS | |
16304 | if test -z "$ac_cv_path_FLEX"; then | |
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 16306 | $as_echo "no" >&6; } |
a243b558 JF |
16307 | fi |
16308 | else | |
16309 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
16310 | fi |
16311 | ||
16312 | ||
a243b558 | 16313 | if true; then : |
e9c9a47c | 16314 | |
a243b558 | 16315 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 16316 | |
a243b558 JF |
16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
16318 | $as_echo "$FLEX" >&6; } | |
9c60689e | 16319 | |
632b71ea | 16320 | else |
a243b558 | 16321 | if true; then : |
e9c9a47c | 16322 | |
a243b558 | 16323 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 16324 | |
e9c9a47c | 16325 | else |
a243b558 JF |
16326 | |
16327 | FLEX=: | |
16328 | ||
16329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16330 | $as_echo "no" >&6; } | |
9c60689e | 16331 | |
632b71ea | 16332 | fi |
a243b558 JF |
16333 | fi |
16334 | ||
16335 | ||
16336 | ||
16337 | ||
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
16339 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
16340 | if test -z "$GPERF"; then | |
16341 | ac_path_GPERF_found=false | |
16342 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16344 | for as_dir in $PATH | |
16345 | do | |
16346 | IFS=$as_save_IFS | |
16347 | test -z "$as_dir" && as_dir=. | |
16348 | for ac_prog in gperf; do | |
16349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16350 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
16351 | as_fn_executable_p "$ac_path_GPERF" || continue | |
16352 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
16353 | if ${version:+false} :; then : | |
16354 | ||
e9c9a47c | 16355 | else |
a243b558 JF |
16356 | as_arg_v1=$version |
16357 | as_arg_v2=3.0.3 | |
16358 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16359 | case $? in #( | |
16360 | 1) : | |
16361 | ;; #( | |
16362 | 0) : | |
16363 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16364 | 2) : | |
16365 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16366 | *) : | |
16367 | ;; | |
16368 | esac | |
632b71ea | 16369 | fi |
a243b558 JF |
16370 | |
16371 | $ac_path_GPERF_found && break 3 | |
16372 | done | |
16373 | done | |
16374 | done | |
16375 | IFS=$as_save_IFS | |
16376 | if test -z "$ac_cv_path_GPERF"; then | |
16377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16378 | $as_echo "no" >&6; } | |
16379 | fi | |
47aaa820 | 16380 | else |
a243b558 JF |
16381 | ac_cv_path_GPERF=$GPERF |
16382 | fi | |
9c60689e DWT |
16383 | |
16384 | ||
a243b558 | 16385 | if true; then : |
9c60689e | 16386 | |
a243b558 | 16387 | GPERF=$ac_cv_path_GPERF |
9c60689e | 16388 | |
a243b558 JF |
16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
16390 | $as_echo "$GPERF" >&6; } | |
9c60689e | 16391 | |
47aaa820 | 16392 | else |
a243b558 | 16393 | if true; then : |
9c60689e | 16394 | |
a243b558 JF |
16395 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
16396 | ||
16397 | else | |
16398 | ||
16399 | GPERF=: | |
16400 | ||
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16402 | $as_echo "no" >&6; } | |
9c60689e | 16403 | |
47aaa820 | 16404 | fi |
47aaa820 | 16405 | fi |
a243b558 JF |
16406 | |
16407 | ||
16408 | ||
16409 | ||
16410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
16411 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
16412 | if test -z "$GNUTAR"; then | |
16413 | ac_path_GNUTAR_found=false | |
16414 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16416 | for as_dir in $PATH | |
16417 | do | |
16418 | IFS=$as_save_IFS | |
16419 | test -z "$as_dir" && as_dir=. | |
16420 | for ac_prog in tar gtar gnutar; do | |
16421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16422 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
16423 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
16424 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
16425 | if ${version:+false} :; then : | |
16426 | ||
16427 | else | |
16428 | as_arg_v1=$version | |
16429 | as_arg_v2=1.19 | |
16430 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16431 | case $? in #( | |
16432 | 1) : | |
16433 | ;; #( | |
16434 | 0) : | |
16435 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16436 | 2) : | |
16437 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16438 | *) : | |
16439 | ;; | |
16440 | esac | |
790e5246 | 16441 | fi |
a243b558 JF |
16442 | |
16443 | $ac_path_GNUTAR_found && break 3 | |
16444 | done | |
16445 | done | |
16446 | done | |
16447 | IFS=$as_save_IFS | |
16448 | if test -z "$ac_cv_path_GNUTAR"; then | |
16449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16450 | $as_echo "no" >&6; } | |
632b71ea | 16451 | fi |
632b71ea | 16452 | else |
a243b558 | 16453 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 16454 | fi |
66170b30 | 16455 | |
66170b30 | 16456 | |
a243b558 | 16457 | if true; then : |
66170b30 | 16458 | |
a243b558 | 16459 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 16460 | |
a243b558 JF |
16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
16462 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 16463 | |
a243b558 JF |
16464 | else |
16465 | if true; then : | |
66170b30 | 16466 | |
a243b558 | 16467 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 16468 | |
66170b30 | 16469 | else |
66170b30 | 16470 | |
a243b558 | 16471 | GNUTAR=: |
66170b30 | 16472 | |
a243b558 JF |
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16474 | $as_echo "no" >&6; } | |
66170b30 | 16475 | |
a243b558 JF |
16476 | fi |
16477 | fi | |
66170b30 JF |
16478 | |
16479 | ||
9228a43a JF |
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5 |
16481 | $as_echo_n "checking bison for %code{}... " >&6; } | |
16482 | echo '%code{}%%_:' >conftest.y | |
16483 | if $BISON conftest.y -o/dev/null 2>/dev/null; then | |
16484 | ||
16485 | for element in Bison24; do | |
16486 | haveit= | |
16487 | for x in $CY_FILTERS; do | |
16488 | ||
16489 | acl_save_prefix="$prefix" | |
16490 | prefix="$acl_final_prefix" | |
16491 | acl_save_exec_prefix="$exec_prefix" | |
16492 | exec_prefix="$acl_final_exec_prefix" | |
16493 | eval x=\"$x\" | |
16494 | exec_prefix="$acl_save_exec_prefix" | |
16495 | prefix="$acl_save_prefix" | |
16496 | ||
16497 | if test "X$x" = "X$element"; then | |
16498 | haveit=yes | |
16499 | break | |
16500 | fi | |
16501 | done | |
16502 | if test -z "$haveit"; then | |
16503 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16504 | fi | |
16505 | done | |
16506 | ||
16507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16508 | $as_echo "yes" >&6; } | |
16509 | else | |
16510 | ||
16511 | for element in Bison23; do | |
16512 | haveit= | |
16513 | for x in $CY_FILTERS; do | |
16514 | ||
16515 | acl_save_prefix="$prefix" | |
16516 | prefix="$acl_final_prefix" | |
16517 | acl_save_exec_prefix="$exec_prefix" | |
16518 | exec_prefix="$acl_final_exec_prefix" | |
16519 | eval x=\"$x\" | |
16520 | exec_prefix="$acl_save_exec_prefix" | |
16521 | prefix="$acl_save_prefix" | |
16522 | ||
16523 | if test "X$x" = "X$element"; then | |
16524 | haveit=yes | |
16525 | break | |
16526 | fi | |
16527 | done | |
16528 | if test -z "$haveit"; then | |
16529 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16530 | fi | |
16531 | done | |
16532 | ||
16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16534 | $as_echo "no" >&6; } | |
16535 | fi | |
16536 | ||
16537 | rm -f conftest.y | |
16538 | ||
16539 | ||
66170b30 JF |
16540 | |
16541 | ||
16542 | ||
16543 | ||
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | if ${CFLAGS+:} false; then : | |
16549 | case " $CFLAGS " in | |
16550 | *" "*) | |
16551 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 | |
16552 | (: CFLAGS already contains ) 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}: : CFLAGS=\"\$CFLAGS \""; } >&5 | |
16559 | (: CFLAGS="$CFLAGS ") 2>&5 | |
16560 | ac_status=$? | |
16561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16562 | test $ac_status = 0; } | |
16563 | CFLAGS="$CFLAGS " | |
16564 | ;; | |
16565 | esac | |
16566 | else | |
16567 | CFLAGS="" | |
16568 | fi | |
16569 | ||
e9c9a47c DWT |
16570 | ac_ext=c |
16571 | ac_cpp='$CPP $CPPFLAGS' | |
16572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 16575 | |
66170b30 JF |
16576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
16577 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
16578 | if ${ac_cv_cflags_warn_all+:} false; then : | |
16579 | $as_echo_n "(cached) " >&6 | |
16580 | else | |
16581 | ac_cv_cflags_warn_all="no, unknown" | |
16582 | ac_save_CFLAGS="$CFLAGS" | |
16583 | 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" # | |
16584 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16586 | /* end confdefs.h. */ | |
16587 | ||
16588 | int | |
16589 | main () | |
16590 | { | |
16591 | ||
16592 | ; | |
16593 | return 0; | |
16594 | } | |
16595 | _ACEOF | |
16596 | if ac_fn_c_try_compile "$LINENO"; then : | |
16597 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16598 | fi | |
16599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16600 | done | |
16601 | CFLAGS="$ac_save_CFLAGS" | |
16602 | ||
16603 | fi | |
16604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
16605 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
16606 | ||
16607 | case ".$ac_cv_cflags_warn_all" in | |
16608 | .ok|.ok,*) ;; | |
16609 | .|.no|.no,*) ;; | |
16610 | *) if ${CFLAGS+:} false; then : | |
16611 | case " $CFLAGS " in | |
16612 | *" $ac_cv_cflags_warn_all "*) | |
16613 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
16614 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
16615 | ac_status=$? | |
16616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16617 | test $ac_status = 0; } | |
16618 | ;; | |
16619 | *) | |
16620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
16621 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
16622 | ac_status=$? | |
16623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16624 | test $ac_status = 0; } | |
16625 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
16626 | ;; | |
16627 | esac | |
16628 | else | |
16629 | CFLAGS="$ac_cv_cflags_warn_all" | |
16630 | fi | |
16631 | ;; | |
16632 | esac | |
16633 | ||
b816329d JF |
16634 | ac_ext=cpp |
16635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16636 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16637 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16638 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16639 | ||
9c60689e | 16640 | |
66170b30 JF |
16641 | ac_ext=cpp |
16642 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16643 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16644 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16645 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 16646 | |
66170b30 JF |
16647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16648 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16649 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16650 | $as_echo_n "(cached) " >&6 | |
16651 | else | |
16652 | ac_cv_cxxflags_warn_all="no, unknown" | |
16653 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16654 | 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" # | |
16655 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16657 | /* end confdefs.h. */ | |
1504c9b8 | 16658 | |
66170b30 JF |
16659 | int |
16660 | main () | |
16661 | { | |
1504c9b8 | 16662 | |
66170b30 JF |
16663 | ; |
16664 | return 0; | |
16665 | } | |
16666 | _ACEOF | |
16667 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16668 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16669 | fi | |
16670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16671 | done | |
16672 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 16673 | |
66170b30 JF |
16674 | fi |
16675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16676 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16677 | ||
16678 | case ".$ac_cv_cxxflags_warn_all" in | |
16679 | .ok|.ok,*) ;; | |
16680 | .|.no|.no,*) ;; | |
16681 | *) if ${CXXFLAGS+:} false; then : | |
16682 | case " $CXXFLAGS " in | |
16683 | *" $ac_cv_cxxflags_warn_all "*) | |
16684 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16685 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16686 | ac_status=$? | |
16687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16688 | test $ac_status = 0; } | |
16689 | ;; | |
16690 | *) | |
16691 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16692 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16693 | ac_status=$? | |
16694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16695 | test $ac_status = 0; } | |
16696 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16697 | ;; | |
16698 | esac | |
16699 | else | |
16700 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16701 | fi | |
16702 | ;; | |
16703 | esac | |
16704 | ||
16705 | ac_ext=cpp | |
16706 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16707 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16708 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16709 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16710 | ||
16711 | ||
babf7fe8 JF |
16712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16713 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16714 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16715 | $as_echo_n "(cached) " >&6 | |
16716 | else | |
16717 | ac_cv_cxxflags_warn_all="no, unknown" | |
16718 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16719 | 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" # | |
16720 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16722 | /* end confdefs.h. */ | |
16723 | ||
16724 | int | |
16725 | main () | |
16726 | { | |
16727 | ||
16728 | ; | |
16729 | return 0; | |
16730 | } | |
16731 | _ACEOF | |
16732 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16733 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16734 | fi | |
16735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16736 | done | |
16737 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16738 | ||
16739 | fi | |
16740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16741 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16742 | ||
16743 | case ".$ac_cv_cxxflags_warn_all" in | |
16744 | .ok|.ok,*) ;; | |
16745 | .|.no|.no,*) ;; | |
16746 | *) if ${CXXFLAGS+:} false; then : | |
16747 | case " $CXXFLAGS " in | |
16748 | *" $ac_cv_cxxflags_warn_all "*) | |
16749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16750 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16751 | ac_status=$? | |
16752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16753 | test $ac_status = 0; } | |
16754 | ;; | |
16755 | *) | |
16756 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16757 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16758 | ac_status=$? | |
16759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16760 | test $ac_status = 0; } | |
16761 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16762 | ;; | |
16763 | esac | |
16764 | else | |
16765 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16766 | fi | |
16767 | ;; | |
16768 | esac | |
16769 | ||
66170b30 JF |
16770 | |
16771 | ||
66170b30 | 16772 | |
66170b30 | 16773 | |
c10a2228 JF |
16774 | ac_ext=c |
16775 | ac_cpp='$CPP $CPPFLAGS' | |
16776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16779 | ||
babf7fe8 JF |
16780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
16781 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
16782 | |
16783 | cy_save=$CFLAGS | |
16784 | ||
babf7fe8 | 16785 | for element in -Werror; do |
c10a2228 JF |
16786 | haveit= |
16787 | for x in $CFLAGS; do | |
16788 | ||
16789 | acl_save_prefix="$prefix" | |
16790 | prefix="$acl_final_prefix" | |
16791 | acl_save_exec_prefix="$exec_prefix" | |
16792 | exec_prefix="$acl_final_exec_prefix" | |
16793 | eval x=\"$x\" | |
16794 | exec_prefix="$acl_save_exec_prefix" | |
16795 | prefix="$acl_save_prefix" | |
16796 | ||
16797 | if test "X$x" = "X$element"; then | |
16798 | haveit=yes | |
16799 | break | |
16800 | fi | |
16801 | done | |
16802 | if test -z "$haveit"; then | |
16803 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16804 | fi | |
16805 | done | |
16806 | ||
16807 | ||
16808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16809 | /* end confdefs.h. */ | |
16810 | ||
16811 | _ACEOF | |
16812 | if ac_fn_c_try_compile "$LINENO"; then : | |
16813 | cy_good=1 | |
16814 | else | |
16815 | cy_good=0 | |
16816 | fi | |
16817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16818 | ||
16819 | CFLAGS=$cy_save | |
16820 | if test "x$cy_good" = x1; then : | |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16822 | $as_echo "yes" >&6; } | |
16823 | ||
babf7fe8 | 16824 | for element in -Werror; do |
c10a2228 JF |
16825 | haveit= |
16826 | for x in $CFLAGS; do | |
16827 | ||
16828 | acl_save_prefix="$prefix" | |
16829 | prefix="$acl_final_prefix" | |
16830 | acl_save_exec_prefix="$exec_prefix" | |
16831 | exec_prefix="$acl_final_exec_prefix" | |
16832 | eval x=\"$x\" | |
16833 | exec_prefix="$acl_save_exec_prefix" | |
16834 | prefix="$acl_save_prefix" | |
16835 | ||
16836 | if test "X$x" = "X$element"; then | |
16837 | haveit=yes | |
16838 | break | |
16839 | fi | |
16840 | done | |
16841 | if test -z "$haveit"; then | |
16842 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16843 | fi | |
16844 | done | |
16845 | ||
16846 | ||
16847 | else | |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16849 | $as_echo "no" >&6; } | |
16850 | fi | |
16851 | ||
16852 | ac_ext=cpp | |
16853 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16857 | ||
16858 | ||
16859 | ||
16860 | ac_ext=cpp | |
16861 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16862 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16863 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16864 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16865 | ||
babf7fe8 JF |
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
16867 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
16868 | |
16869 | cy_save=$CXXFLAGS | |
16870 | ||
babf7fe8 | 16871 | for element in -Werror; do |
c10a2228 JF |
16872 | haveit= |
16873 | for x in $CXXFLAGS; do | |
16874 | ||
16875 | acl_save_prefix="$prefix" | |
16876 | prefix="$acl_final_prefix" | |
16877 | acl_save_exec_prefix="$exec_prefix" | |
16878 | exec_prefix="$acl_final_exec_prefix" | |
16879 | eval x=\"$x\" | |
16880 | exec_prefix="$acl_save_exec_prefix" | |
16881 | prefix="$acl_save_prefix" | |
16882 | ||
16883 | if test "X$x" = "X$element"; then | |
16884 | haveit=yes | |
16885 | break | |
16886 | fi | |
16887 | done | |
16888 | if test -z "$haveit"; then | |
16889 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16890 | fi | |
16891 | done | |
16892 | ||
16893 | ||
16894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16895 | /* end confdefs.h. */ | |
16896 | ||
16897 | _ACEOF | |
16898 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16899 | cy_good=1 | |
16900 | else | |
16901 | cy_good=0 | |
16902 | fi | |
16903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16904 | ||
16905 | CXXFLAGS=$cy_save | |
16906 | if test "x$cy_good" = x1; then : | |
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16908 | $as_echo "yes" >&6; } | |
16909 | ||
babf7fe8 | 16910 | for element in -Werror; do |
c10a2228 JF |
16911 | haveit= |
16912 | for x in $CXXFLAGS; do | |
16913 | ||
16914 | acl_save_prefix="$prefix" | |
16915 | prefix="$acl_final_prefix" | |
16916 | acl_save_exec_prefix="$exec_prefix" | |
16917 | exec_prefix="$acl_final_exec_prefix" | |
16918 | eval x=\"$x\" | |
16919 | exec_prefix="$acl_save_exec_prefix" | |
16920 | prefix="$acl_save_prefix" | |
16921 | ||
16922 | if test "X$x" = "X$element"; then | |
16923 | haveit=yes | |
16924 | break | |
16925 | fi | |
16926 | done | |
16927 | if test -z "$haveit"; then | |
16928 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16929 | fi | |
16930 | done | |
16931 | ||
16932 | ||
16933 | else | |
16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16935 | $as_echo "no" >&6; } | |
16936 | fi | |
16937 | ||
16938 | ac_ext=cpp | |
16939 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16943 | ||
16944 | ||
16945 | ||
16946 | ac_ext=mm | |
16947 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16948 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16949 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16950 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16951 | ||
babf7fe8 JF |
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
16953 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
16954 | |
16955 | cy_save=$OBJCXXFLAGS | |
16956 | ||
babf7fe8 | 16957 | for element in -Werror; do |
c10a2228 JF |
16958 | haveit= |
16959 | for x in $OBJCXXFLAGS; do | |
16960 | ||
16961 | acl_save_prefix="$prefix" | |
16962 | prefix="$acl_final_prefix" | |
16963 | acl_save_exec_prefix="$exec_prefix" | |
16964 | exec_prefix="$acl_final_exec_prefix" | |
16965 | eval x=\"$x\" | |
16966 | exec_prefix="$acl_save_exec_prefix" | |
16967 | prefix="$acl_save_prefix" | |
16968 | ||
16969 | if test "X$x" = "X$element"; then | |
16970 | haveit=yes | |
16971 | break | |
16972 | fi | |
16973 | done | |
16974 | if test -z "$haveit"; then | |
16975 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16976 | fi | |
16977 | done | |
16978 | ||
16979 | ||
16980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16981 | /* end confdefs.h. */ | |
16982 | ||
16983 | _ACEOF | |
16984 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16985 | cy_good=1 | |
16986 | else | |
16987 | cy_good=0 | |
16988 | fi | |
16989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16990 | ||
16991 | OBJCXXFLAGS=$cy_save | |
16992 | if test "x$cy_good" = x1; then : | |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16994 | $as_echo "yes" >&6; } | |
16995 | ||
babf7fe8 | 16996 | for element in -Werror; do |
c10a2228 JF |
16997 | haveit= |
16998 | for x in $OBJCXXFLAGS; do | |
16999 | ||
17000 | acl_save_prefix="$prefix" | |
17001 | prefix="$acl_final_prefix" | |
17002 | acl_save_exec_prefix="$exec_prefix" | |
17003 | exec_prefix="$acl_final_exec_prefix" | |
17004 | eval x=\"$x\" | |
17005 | exec_prefix="$acl_save_exec_prefix" | |
17006 | prefix="$acl_save_prefix" | |
17007 | ||
17008 | if test "X$x" = "X$element"; then | |
17009 | haveit=yes | |
17010 | break | |
17011 | fi | |
17012 | done | |
17013 | if test -z "$haveit"; then | |
17014 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17015 | fi | |
17016 | done | |
17017 | ||
17018 | ||
17019 | else | |
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17021 | $as_echo "no" >&6; } | |
17022 | fi | |
17023 | ||
17024 | ac_ext=cpp | |
17025 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17029 | ||
17030 | ||
17031 | ||
17032 | ||
17033 | ||
17034 | ||
17035 | ac_ext=c | |
17036 | ac_cpp='$CPP $CPPFLAGS' | |
17037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17040 | ||
babf7fe8 JF |
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
17042 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17043 | |
17044 | cy_save=$CFLAGS | |
17045 | ||
babf7fe8 | 17046 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17047 | haveit= |
17048 | for x in $CFLAGS; do | |
17049 | ||
17050 | acl_save_prefix="$prefix" | |
17051 | prefix="$acl_final_prefix" | |
17052 | acl_save_exec_prefix="$exec_prefix" | |
17053 | exec_prefix="$acl_final_exec_prefix" | |
17054 | eval x=\"$x\" | |
17055 | exec_prefix="$acl_save_exec_prefix" | |
17056 | prefix="$acl_save_prefix" | |
17057 | ||
17058 | if test "X$x" = "X$element"; then | |
17059 | haveit=yes | |
17060 | break | |
17061 | fi | |
17062 | done | |
17063 | if test -z "$haveit"; then | |
17064 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17065 | fi | |
17066 | done | |
17067 | ||
17068 | ||
17069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17070 | /* end confdefs.h. */ | |
17071 | ||
17072 | _ACEOF | |
17073 | if ac_fn_c_try_compile "$LINENO"; then : | |
17074 | cy_good=1 | |
17075 | else | |
17076 | cy_good=0 | |
17077 | fi | |
17078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17079 | ||
17080 | CFLAGS=$cy_save | |
17081 | if test "x$cy_good" = x1; then : | |
17082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17083 | $as_echo "yes" >&6; } | |
17084 | ||
babf7fe8 | 17085 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17086 | haveit= |
17087 | for x in $CFLAGS; do | |
17088 | ||
17089 | acl_save_prefix="$prefix" | |
17090 | prefix="$acl_final_prefix" | |
17091 | acl_save_exec_prefix="$exec_prefix" | |
17092 | exec_prefix="$acl_final_exec_prefix" | |
17093 | eval x=\"$x\" | |
17094 | exec_prefix="$acl_save_exec_prefix" | |
17095 | prefix="$acl_save_prefix" | |
17096 | ||
17097 | if test "X$x" = "X$element"; then | |
17098 | haveit=yes | |
17099 | break | |
17100 | fi | |
17101 | done | |
17102 | if test -z "$haveit"; then | |
17103 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17104 | fi | |
17105 | done | |
17106 | ||
17107 | ||
17108 | else | |
17109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17110 | $as_echo "no" >&6; } | |
17111 | fi | |
17112 | ||
17113 | ac_ext=cpp | |
17114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17118 | ||
17119 | ||
17120 | ||
17121 | ac_ext=cpp | |
17122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17126 | ||
babf7fe8 JF |
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
17128 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17129 | |
17130 | cy_save=$CXXFLAGS | |
17131 | ||
babf7fe8 | 17132 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17133 | haveit= |
17134 | for x in $CXXFLAGS; do | |
17135 | ||
17136 | acl_save_prefix="$prefix" | |
17137 | prefix="$acl_final_prefix" | |
17138 | acl_save_exec_prefix="$exec_prefix" | |
17139 | exec_prefix="$acl_final_exec_prefix" | |
17140 | eval x=\"$x\" | |
17141 | exec_prefix="$acl_save_exec_prefix" | |
17142 | prefix="$acl_save_prefix" | |
17143 | ||
17144 | if test "X$x" = "X$element"; then | |
17145 | haveit=yes | |
17146 | break | |
17147 | fi | |
17148 | done | |
17149 | if test -z "$haveit"; then | |
17150 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17151 | fi | |
17152 | done | |
17153 | ||
17154 | ||
17155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17156 | /* end confdefs.h. */ | |
17157 | ||
17158 | _ACEOF | |
17159 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17160 | cy_good=1 | |
17161 | else | |
17162 | cy_good=0 | |
17163 | fi | |
17164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17165 | ||
17166 | CXXFLAGS=$cy_save | |
17167 | if test "x$cy_good" = x1; then : | |
17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17169 | $as_echo "yes" >&6; } | |
17170 | ||
babf7fe8 | 17171 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17172 | haveit= |
17173 | for x in $CXXFLAGS; do | |
17174 | ||
17175 | acl_save_prefix="$prefix" | |
17176 | prefix="$acl_final_prefix" | |
17177 | acl_save_exec_prefix="$exec_prefix" | |
17178 | exec_prefix="$acl_final_exec_prefix" | |
17179 | eval x=\"$x\" | |
17180 | exec_prefix="$acl_save_exec_prefix" | |
17181 | prefix="$acl_save_prefix" | |
17182 | ||
17183 | if test "X$x" = "X$element"; then | |
17184 | haveit=yes | |
17185 | break | |
17186 | fi | |
17187 | done | |
17188 | if test -z "$haveit"; then | |
17189 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17190 | fi | |
17191 | done | |
17192 | ||
17193 | ||
17194 | else | |
17195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17196 | $as_echo "no" >&6; } | |
17197 | fi | |
17198 | ||
17199 | ac_ext=cpp | |
17200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17204 | ||
17205 | ||
17206 | ||
17207 | ac_ext=mm | |
17208 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17209 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17210 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17211 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17212 | ||
babf7fe8 JF |
17213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
17214 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17215 | |
17216 | cy_save=$OBJCXXFLAGS | |
17217 | ||
babf7fe8 | 17218 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17219 | haveit= |
17220 | for x in $OBJCXXFLAGS; do | |
17221 | ||
17222 | acl_save_prefix="$prefix" | |
17223 | prefix="$acl_final_prefix" | |
17224 | acl_save_exec_prefix="$exec_prefix" | |
17225 | exec_prefix="$acl_final_exec_prefix" | |
17226 | eval x=\"$x\" | |
17227 | exec_prefix="$acl_save_exec_prefix" | |
17228 | prefix="$acl_save_prefix" | |
17229 | ||
17230 | if test "X$x" = "X$element"; then | |
17231 | haveit=yes | |
17232 | break | |
17233 | fi | |
17234 | done | |
17235 | if test -z "$haveit"; then | |
17236 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17237 | fi | |
17238 | done | |
17239 | ||
17240 | ||
17241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17242 | /* end confdefs.h. */ | |
17243 | ||
17244 | _ACEOF | |
17245 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17246 | cy_good=1 | |
17247 | else | |
17248 | cy_good=0 | |
17249 | fi | |
17250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17251 | ||
17252 | OBJCXXFLAGS=$cy_save | |
17253 | if test "x$cy_good" = x1; then : | |
17254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17255 | $as_echo "yes" >&6; } | |
17256 | ||
babf7fe8 | 17257 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17258 | haveit= |
17259 | for x in $OBJCXXFLAGS; do | |
17260 | ||
17261 | acl_save_prefix="$prefix" | |
17262 | prefix="$acl_final_prefix" | |
17263 | acl_save_exec_prefix="$exec_prefix" | |
17264 | exec_prefix="$acl_final_exec_prefix" | |
17265 | eval x=\"$x\" | |
17266 | exec_prefix="$acl_save_exec_prefix" | |
17267 | prefix="$acl_save_prefix" | |
17268 | ||
17269 | if test "X$x" = "X$element"; then | |
17270 | haveit=yes | |
17271 | break | |
17272 | fi | |
17273 | done | |
17274 | if test -z "$haveit"; then | |
17275 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17276 | fi | |
17277 | done | |
17278 | ||
17279 | ||
17280 | else | |
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17282 | $as_echo "no" >&6; } | |
17283 | fi | |
17284 | ||
17285 | ac_ext=cpp | |
17286 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17287 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17288 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17289 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17290 | ||
17291 | ||
17292 | ||
17293 | ||
17294 | ||
babf7fe8 | 17295 | |
c10a2228 JF |
17296 | ac_ext=c |
17297 | ac_cpp='$CPP $CPPFLAGS' | |
17298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17301 | ||
babf7fe8 JF |
17302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
17303 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17304 | |
17305 | cy_save=$CFLAGS | |
17306 | ||
babf7fe8 | 17307 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17308 | haveit= |
17309 | for x in $CFLAGS; do | |
17310 | ||
17311 | acl_save_prefix="$prefix" | |
17312 | prefix="$acl_final_prefix" | |
17313 | acl_save_exec_prefix="$exec_prefix" | |
17314 | exec_prefix="$acl_final_exec_prefix" | |
17315 | eval x=\"$x\" | |
17316 | exec_prefix="$acl_save_exec_prefix" | |
17317 | prefix="$acl_save_prefix" | |
17318 | ||
17319 | if test "X$x" = "X$element"; then | |
17320 | haveit=yes | |
17321 | break | |
17322 | fi | |
17323 | done | |
17324 | if test -z "$haveit"; then | |
17325 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17326 | fi | |
17327 | done | |
17328 | ||
17329 | ||
17330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17331 | /* end confdefs.h. */ | |
17332 | ||
17333 | _ACEOF | |
17334 | if ac_fn_c_try_compile "$LINENO"; then : | |
17335 | cy_good=1 | |
17336 | else | |
17337 | cy_good=0 | |
17338 | fi | |
17339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17340 | ||
17341 | CFLAGS=$cy_save | |
17342 | if test "x$cy_good" = x1; then : | |
17343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17344 | $as_echo "yes" >&6; } | |
17345 | ||
babf7fe8 | 17346 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17347 | haveit= |
17348 | for x in $CFLAGS; do | |
17349 | ||
17350 | acl_save_prefix="$prefix" | |
17351 | prefix="$acl_final_prefix" | |
17352 | acl_save_exec_prefix="$exec_prefix" | |
17353 | exec_prefix="$acl_final_exec_prefix" | |
17354 | eval x=\"$x\" | |
17355 | exec_prefix="$acl_save_exec_prefix" | |
17356 | prefix="$acl_save_prefix" | |
17357 | ||
17358 | if test "X$x" = "X$element"; then | |
17359 | haveit=yes | |
17360 | break | |
17361 | fi | |
17362 | done | |
17363 | if test -z "$haveit"; then | |
17364 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17365 | fi | |
17366 | done | |
17367 | ||
17368 | ||
17369 | else | |
17370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17371 | $as_echo "no" >&6; } | |
17372 | fi | |
17373 | ||
17374 | ac_ext=cpp | |
17375 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17376 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17377 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17378 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17379 | ||
17380 | ||
17381 | ||
17382 | ac_ext=cpp | |
17383 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17384 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17385 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17386 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17387 | ||
babf7fe8 JF |
17388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
17389 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17390 | |
17391 | cy_save=$CXXFLAGS | |
17392 | ||
babf7fe8 | 17393 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17394 | haveit= |
17395 | for x in $CXXFLAGS; do | |
17396 | ||
17397 | acl_save_prefix="$prefix" | |
17398 | prefix="$acl_final_prefix" | |
17399 | acl_save_exec_prefix="$exec_prefix" | |
17400 | exec_prefix="$acl_final_exec_prefix" | |
17401 | eval x=\"$x\" | |
17402 | exec_prefix="$acl_save_exec_prefix" | |
17403 | prefix="$acl_save_prefix" | |
17404 | ||
17405 | if test "X$x" = "X$element"; then | |
17406 | haveit=yes | |
17407 | break | |
17408 | fi | |
17409 | done | |
17410 | if test -z "$haveit"; then | |
17411 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17412 | fi | |
17413 | done | |
17414 | ||
17415 | ||
17416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17417 | /* end confdefs.h. */ | |
17418 | ||
17419 | _ACEOF | |
17420 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17421 | cy_good=1 | |
17422 | else | |
17423 | cy_good=0 | |
17424 | fi | |
17425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17426 | ||
17427 | CXXFLAGS=$cy_save | |
17428 | if test "x$cy_good" = x1; then : | |
17429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17430 | $as_echo "yes" >&6; } | |
17431 | ||
babf7fe8 | 17432 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17433 | haveit= |
17434 | for x in $CXXFLAGS; do | |
17435 | ||
17436 | acl_save_prefix="$prefix" | |
17437 | prefix="$acl_final_prefix" | |
17438 | acl_save_exec_prefix="$exec_prefix" | |
17439 | exec_prefix="$acl_final_exec_prefix" | |
17440 | eval x=\"$x\" | |
17441 | exec_prefix="$acl_save_exec_prefix" | |
17442 | prefix="$acl_save_prefix" | |
17443 | ||
17444 | if test "X$x" = "X$element"; then | |
17445 | haveit=yes | |
17446 | break | |
17447 | fi | |
17448 | done | |
17449 | if test -z "$haveit"; then | |
17450 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17451 | fi | |
17452 | done | |
17453 | ||
17454 | ||
17455 | else | |
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17457 | $as_echo "no" >&6; } | |
17458 | fi | |
17459 | ||
17460 | ac_ext=cpp | |
17461 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17462 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17463 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17464 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17465 | ||
17466 | ||
17467 | ||
17468 | ac_ext=mm | |
17469 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17470 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17471 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17472 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17473 | ||
babf7fe8 JF |
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
17475 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17476 | |
17477 | cy_save=$OBJCXXFLAGS | |
17478 | ||
babf7fe8 | 17479 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17480 | haveit= |
17481 | for x in $OBJCXXFLAGS; do | |
17482 | ||
17483 | acl_save_prefix="$prefix" | |
17484 | prefix="$acl_final_prefix" | |
17485 | acl_save_exec_prefix="$exec_prefix" | |
17486 | exec_prefix="$acl_final_exec_prefix" | |
17487 | eval x=\"$x\" | |
17488 | exec_prefix="$acl_save_exec_prefix" | |
17489 | prefix="$acl_save_prefix" | |
17490 | ||
17491 | if test "X$x" = "X$element"; then | |
17492 | haveit=yes | |
17493 | break | |
17494 | fi | |
17495 | done | |
17496 | if test -z "$haveit"; then | |
17497 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17498 | fi | |
17499 | done | |
17500 | ||
17501 | ||
17502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17503 | /* end confdefs.h. */ | |
17504 | ||
17505 | _ACEOF | |
17506 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17507 | cy_good=1 | |
17508 | else | |
17509 | cy_good=0 | |
17510 | fi | |
17511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17512 | ||
17513 | OBJCXXFLAGS=$cy_save | |
17514 | if test "x$cy_good" = x1; then : | |
17515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17516 | $as_echo "yes" >&6; } | |
17517 | ||
babf7fe8 | 17518 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17519 | haveit= |
17520 | for x in $OBJCXXFLAGS; do | |
17521 | ||
17522 | acl_save_prefix="$prefix" | |
17523 | prefix="$acl_final_prefix" | |
17524 | acl_save_exec_prefix="$exec_prefix" | |
17525 | exec_prefix="$acl_final_exec_prefix" | |
17526 | eval x=\"$x\" | |
17527 | exec_prefix="$acl_save_exec_prefix" | |
17528 | prefix="$acl_save_prefix" | |
17529 | ||
17530 | if test "X$x" = "X$element"; then | |
17531 | haveit=yes | |
17532 | break | |
17533 | fi | |
17534 | done | |
17535 | if test -z "$haveit"; then | |
17536 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17537 | fi | |
17538 | done | |
17539 | ||
17540 | ||
17541 | else | |
17542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17543 | $as_echo "no" >&6; } | |
17544 | fi | |
17545 | ||
17546 | ac_ext=cpp | |
17547 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17551 | ||
17552 | ||
17553 | ||
17554 | ||
17555 | ||
17556 | ac_ext=c | |
17557 | ac_cpp='$CPP $CPPFLAGS' | |
17558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17561 | ||
babf7fe8 JF |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
17563 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17564 | |
17565 | cy_save=$CFLAGS | |
17566 | ||
babf7fe8 | 17567 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17568 | haveit= |
c10a2228 | 17569 | for x in $CFLAGS; do |
1504c9b8 DWT |
17570 | |
17571 | acl_save_prefix="$prefix" | |
17572 | prefix="$acl_final_prefix" | |
17573 | acl_save_exec_prefix="$exec_prefix" | |
17574 | exec_prefix="$acl_final_exec_prefix" | |
17575 | eval x=\"$x\" | |
17576 | exec_prefix="$acl_save_exec_prefix" | |
17577 | prefix="$acl_save_prefix" | |
17578 | ||
17579 | if test "X$x" = "X$element"; then | |
17580 | haveit=yes | |
17581 | break | |
17582 | fi | |
17583 | done | |
17584 | if test -z "$haveit"; then | |
c10a2228 | 17585 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
17586 | fi |
17587 | done | |
17588 | ||
66170b30 JF |
17589 | |
17590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17591 | /* end confdefs.h. */ |
17592 | ||
66170b30 | 17593 | _ACEOF |
c10a2228 | 17594 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
17595 | cy_good=1 |
17596 | else | |
17597 | cy_good=0 | |
17598 | fi | |
17599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17600 | ||
c10a2228 | 17601 | CFLAGS=$cy_save |
66170b30 JF |
17602 | if test "x$cy_good" = x1; then : |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17604 | $as_echo "yes" >&6; } | |
17605 | ||
babf7fe8 | 17606 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17607 | haveit= |
17608 | for x in $CFLAGS; do | |
17609 | ||
17610 | acl_save_prefix="$prefix" | |
17611 | prefix="$acl_final_prefix" | |
17612 | acl_save_exec_prefix="$exec_prefix" | |
17613 | exec_prefix="$acl_final_exec_prefix" | |
17614 | eval x=\"$x\" | |
17615 | exec_prefix="$acl_save_exec_prefix" | |
17616 | prefix="$acl_save_prefix" | |
17617 | ||
17618 | if test "X$x" = "X$element"; then | |
17619 | haveit=yes | |
17620 | break | |
17621 | fi | |
17622 | done | |
17623 | if test -z "$haveit"; then | |
17624 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17625 | fi | |
17626 | done | |
17627 | ||
17628 | ||
c10a2228 JF |
17629 | else |
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17631 | $as_echo "no" >&6; } | |
17632 | fi | |
17633 | ||
17634 | ac_ext=cpp | |
17635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17636 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17637 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17638 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17639 | ||
17640 | ||
17641 | ||
17642 | ac_ext=cpp | |
17643 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17644 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17645 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17646 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17647 | ||
babf7fe8 JF |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
17649 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17650 | |
17651 | cy_save=$CXXFLAGS | |
17652 | ||
babf7fe8 | 17653 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17654 | haveit= |
17655 | for x in $CXXFLAGS; do | |
17656 | ||
17657 | acl_save_prefix="$prefix" | |
17658 | prefix="$acl_final_prefix" | |
17659 | acl_save_exec_prefix="$exec_prefix" | |
17660 | exec_prefix="$acl_final_exec_prefix" | |
17661 | eval x=\"$x\" | |
17662 | exec_prefix="$acl_save_exec_prefix" | |
17663 | prefix="$acl_save_prefix" | |
17664 | ||
17665 | if test "X$x" = "X$element"; then | |
17666 | haveit=yes | |
17667 | break | |
17668 | fi | |
17669 | done | |
17670 | if test -z "$haveit"; then | |
17671 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17672 | fi | |
17673 | done | |
17674 | ||
17675 | ||
c10a2228 JF |
17676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17677 | /* end confdefs.h. */ | |
17678 | ||
17679 | _ACEOF | |
17680 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17681 | cy_good=1 | |
17682 | else | |
17683 | cy_good=0 | |
17684 | fi | |
17685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17686 | ||
17687 | CXXFLAGS=$cy_save | |
17688 | if test "x$cy_good" = x1; then : | |
17689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17690 | $as_echo "yes" >&6; } | |
17691 | ||
babf7fe8 | 17692 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17693 | haveit= |
c10a2228 | 17694 | for x in $CXXFLAGS; do |
66170b30 JF |
17695 | |
17696 | acl_save_prefix="$prefix" | |
17697 | prefix="$acl_final_prefix" | |
17698 | acl_save_exec_prefix="$exec_prefix" | |
17699 | exec_prefix="$acl_final_exec_prefix" | |
17700 | eval x=\"$x\" | |
17701 | exec_prefix="$acl_save_exec_prefix" | |
17702 | prefix="$acl_save_prefix" | |
17703 | ||
17704 | if test "X$x" = "X$element"; then | |
17705 | haveit=yes | |
17706 | break | |
17707 | fi | |
17708 | done | |
17709 | if test -z "$haveit"; then | |
c10a2228 | 17710 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
17711 | fi |
17712 | done | |
17713 | ||
17714 | ||
66170b30 JF |
17715 | else |
17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17717 | $as_echo "no" >&6; } | |
17718 | fi | |
17719 | ||
c10a2228 JF |
17720 | ac_ext=cpp |
17721 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17722 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17723 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17724 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17725 | ||
66170b30 JF |
17726 | |
17727 | ||
c10a2228 JF |
17728 | ac_ext=mm |
17729 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17730 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17731 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17732 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17733 | ||
babf7fe8 JF |
17734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
17735 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 17736 | |
c10a2228 | 17737 | cy_save=$OBJCXXFLAGS |
66170b30 | 17738 | |
babf7fe8 | 17739 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17740 | haveit= |
c10a2228 | 17741 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
17742 | |
17743 | acl_save_prefix="$prefix" | |
17744 | prefix="$acl_final_prefix" | |
17745 | acl_save_exec_prefix="$exec_prefix" | |
17746 | exec_prefix="$acl_final_exec_prefix" | |
17747 | eval x=\"$x\" | |
17748 | exec_prefix="$acl_save_exec_prefix" | |
17749 | prefix="$acl_save_prefix" | |
17750 | ||
17751 | if test "X$x" = "X$element"; then | |
17752 | haveit=yes | |
17753 | break | |
17754 | fi | |
17755 | done | |
17756 | if test -z "$haveit"; then | |
c10a2228 | 17757 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
17758 | fi |
17759 | done | |
17760 | ||
17761 | ||
17762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17763 | /* end confdefs.h. */ | |
1504c9b8 | 17764 | |
1504c9b8 | 17765 | _ACEOF |
c10a2228 | 17766 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
17767 | cy_good=1 |
17768 | else | |
17769 | cy_good=0 | |
17770 | fi | |
17771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17772 | ||
c10a2228 | 17773 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
17774 | if test "x$cy_good" = x1; then : |
17775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17776 | $as_echo "yes" >&6; } | |
1504c9b8 | 17777 | |
babf7fe8 | 17778 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17779 | haveit= |
c10a2228 | 17780 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17781 | |
17782 | acl_save_prefix="$prefix" | |
17783 | prefix="$acl_final_prefix" | |
17784 | acl_save_exec_prefix="$exec_prefix" | |
17785 | exec_prefix="$acl_final_exec_prefix" | |
17786 | eval x=\"$x\" | |
17787 | exec_prefix="$acl_save_exec_prefix" | |
17788 | prefix="$acl_save_prefix" | |
17789 | ||
17790 | if test "X$x" = "X$element"; then | |
17791 | haveit=yes | |
17792 | break | |
17793 | fi | |
17794 | done | |
17795 | if test -z "$haveit"; then | |
c10a2228 | 17796 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17797 | fi |
17798 | done | |
17799 | ||
17800 | ||
c10a2228 JF |
17801 | else |
17802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17803 | $as_echo "no" >&6; } | |
17804 | fi | |
17805 | ||
17806 | ac_ext=cpp | |
17807 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17811 | ||
17812 | ||
17813 | ||
17814 | ||
17815 | ||
17816 | ac_ext=c | |
17817 | ac_cpp='$CPP $CPPFLAGS' | |
17818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17821 | ||
babf7fe8 JF |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
17823 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17824 | |
17825 | cy_save=$CFLAGS | |
17826 | ||
babf7fe8 | 17827 | for element in -Wno-parentheses; do |
66170b30 | 17828 | haveit= |
c10a2228 | 17829 | for x in $CFLAGS; do |
66170b30 JF |
17830 | |
17831 | acl_save_prefix="$prefix" | |
17832 | prefix="$acl_final_prefix" | |
17833 | acl_save_exec_prefix="$exec_prefix" | |
17834 | exec_prefix="$acl_final_exec_prefix" | |
17835 | eval x=\"$x\" | |
17836 | exec_prefix="$acl_save_exec_prefix" | |
17837 | prefix="$acl_save_prefix" | |
17838 | ||
17839 | if test "X$x" = "X$element"; then | |
17840 | haveit=yes | |
17841 | break | |
17842 | fi | |
17843 | done | |
17844 | if test -z "$haveit"; then | |
c10a2228 | 17845 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17846 | fi |
17847 | done | |
17848 | ||
17849 | ||
c10a2228 JF |
17850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17851 | /* end confdefs.h. */ | |
17852 | ||
17853 | _ACEOF | |
17854 | if ac_fn_c_try_compile "$LINENO"; then : | |
17855 | cy_good=1 | |
17856 | else | |
17857 | cy_good=0 | |
17858 | fi | |
17859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17860 | ||
17861 | CFLAGS=$cy_save | |
17862 | if test "x$cy_good" = x1; then : | |
17863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17864 | $as_echo "yes" >&6; } | |
17865 | ||
babf7fe8 | 17866 | for element in -Wno-parentheses; do |
66170b30 | 17867 | haveit= |
c10a2228 | 17868 | for x in $CFLAGS; do |
66170b30 JF |
17869 | |
17870 | acl_save_prefix="$prefix" | |
17871 | prefix="$acl_final_prefix" | |
17872 | acl_save_exec_prefix="$exec_prefix" | |
17873 | exec_prefix="$acl_final_exec_prefix" | |
17874 | eval x=\"$x\" | |
17875 | exec_prefix="$acl_save_exec_prefix" | |
17876 | prefix="$acl_save_prefix" | |
17877 | ||
17878 | if test "X$x" = "X$element"; then | |
17879 | haveit=yes | |
17880 | break | |
17881 | fi | |
17882 | done | |
17883 | if test -z "$haveit"; then | |
c10a2228 | 17884 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17885 | fi |
17886 | done | |
17887 | ||
17888 | ||
66170b30 JF |
17889 | else |
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17891 | $as_echo "no" >&6; } | |
17892 | fi | |
17893 | ||
c10a2228 JF |
17894 | ac_ext=cpp |
17895 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17896 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17897 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17898 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17899 | ||
66170b30 JF |
17900 | |
17901 | ||
c10a2228 JF |
17902 | ac_ext=cpp |
17903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17907 | ||
babf7fe8 JF |
17908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
17909 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
17910 | |
17911 | cy_save=$CXXFLAGS | |
17912 | ||
babf7fe8 | 17913 | for element in -Wno-parentheses; do |
66170b30 JF |
17914 | haveit= |
17915 | for x in $CXXFLAGS; do | |
17916 | ||
17917 | acl_save_prefix="$prefix" | |
17918 | prefix="$acl_final_prefix" | |
17919 | acl_save_exec_prefix="$exec_prefix" | |
17920 | exec_prefix="$acl_final_exec_prefix" | |
17921 | eval x=\"$x\" | |
17922 | exec_prefix="$acl_save_exec_prefix" | |
17923 | prefix="$acl_save_prefix" | |
17924 | ||
17925 | if test "X$x" = "X$element"; then | |
17926 | haveit=yes | |
17927 | break | |
17928 | fi | |
17929 | done | |
17930 | if test -z "$haveit"; then | |
17931 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17932 | fi | |
17933 | done | |
17934 | ||
17935 | ||
17936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17937 | /* end confdefs.h. */ | |
17938 | ||
17939 | _ACEOF | |
17940 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17941 | cy_good=1 | |
17942 | else | |
17943 | cy_good=0 | |
17944 | fi | |
17945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17946 | ||
17947 | CXXFLAGS=$cy_save | |
17948 | if test "x$cy_good" = x1; then : | |
17949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17950 | $as_echo "yes" >&6; } | |
17951 | ||
babf7fe8 | 17952 | for element in -Wno-parentheses; do |
1504c9b8 | 17953 | haveit= |
c10a2228 | 17954 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
17955 | |
17956 | acl_save_prefix="$prefix" | |
17957 | prefix="$acl_final_prefix" | |
17958 | acl_save_exec_prefix="$exec_prefix" | |
17959 | exec_prefix="$acl_final_exec_prefix" | |
17960 | eval x=\"$x\" | |
17961 | exec_prefix="$acl_save_exec_prefix" | |
17962 | prefix="$acl_save_prefix" | |
17963 | ||
17964 | if test "X$x" = "X$element"; then | |
17965 | haveit=yes | |
17966 | break | |
17967 | fi | |
17968 | done | |
17969 | if test -z "$haveit"; then | |
c10a2228 | 17970 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
17971 | fi |
17972 | done | |
17973 | ||
17974 | ||
c10a2228 JF |
17975 | else |
17976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17977 | $as_echo "no" >&6; } | |
17978 | fi | |
17979 | ||
17980 | ac_ext=cpp | |
17981 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17985 | ||
17986 | ||
17987 | ||
17988 | ac_ext=mm | |
17989 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17990 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17991 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17992 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17993 | ||
babf7fe8 JF |
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
17995 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17996 | |
17997 | cy_save=$OBJCXXFLAGS | |
17998 | ||
babf7fe8 | 17999 | for element in -Wno-parentheses; do |
1504c9b8 | 18000 | haveit= |
c10a2228 | 18001 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18002 | |
18003 | acl_save_prefix="$prefix" | |
18004 | prefix="$acl_final_prefix" | |
18005 | acl_save_exec_prefix="$exec_prefix" | |
18006 | exec_prefix="$acl_final_exec_prefix" | |
18007 | eval x=\"$x\" | |
18008 | exec_prefix="$acl_save_exec_prefix" | |
18009 | prefix="$acl_save_prefix" | |
18010 | ||
18011 | if test "X$x" = "X$element"; then | |
18012 | haveit=yes | |
18013 | break | |
18014 | fi | |
18015 | done | |
18016 | if test -z "$haveit"; then | |
c10a2228 | 18017 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18018 | fi |
18019 | done | |
18020 | ||
18021 | ||
c10a2228 JF |
18022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18023 | /* end confdefs.h. */ | |
18024 | ||
18025 | _ACEOF | |
18026 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18027 | cy_good=1 | |
18028 | else | |
18029 | cy_good=0 | |
18030 | fi | |
18031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18032 | ||
18033 | OBJCXXFLAGS=$cy_save | |
18034 | if test "x$cy_good" = x1; then : | |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18036 | $as_echo "yes" >&6; } | |
18037 | ||
babf7fe8 | 18038 | for element in -Wno-parentheses; do |
1504c9b8 | 18039 | haveit= |
c10a2228 | 18040 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18041 | |
18042 | acl_save_prefix="$prefix" | |
18043 | prefix="$acl_final_prefix" | |
18044 | acl_save_exec_prefix="$exec_prefix" | |
18045 | exec_prefix="$acl_final_exec_prefix" | |
18046 | eval x=\"$x\" | |
18047 | exec_prefix="$acl_save_exec_prefix" | |
18048 | prefix="$acl_save_prefix" | |
18049 | ||
18050 | if test "X$x" = "X$element"; then | |
18051 | haveit=yes | |
18052 | break | |
18053 | fi | |
18054 | done | |
18055 | if test -z "$haveit"; then | |
c10a2228 | 18056 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18057 | fi |
18058 | done | |
18059 | ||
18060 | ||
66170b30 JF |
18061 | else |
18062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18063 | $as_echo "no" >&6; } | |
1504c9b8 | 18064 | fi |
1504c9b8 | 18065 | |
c10a2228 JF |
18066 | ac_ext=cpp |
18067 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18071 | ||
18072 | ||
1504c9b8 | 18073 | |
1504c9b8 | 18074 | |
1504c9b8 | 18075 | |
babf7fe8 JF |
18076 | ac_ext=c |
18077 | ac_cpp='$CPP $CPPFLAGS' | |
18078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 18081 | |
babf7fe8 JF |
18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
18083 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
18084 | ||
18085 | cy_save=$CFLAGS | |
18086 | ||
18087 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 18088 | haveit= |
babf7fe8 | 18089 | for x in $CFLAGS; do |
1504c9b8 DWT |
18090 | |
18091 | acl_save_prefix="$prefix" | |
18092 | prefix="$acl_final_prefix" | |
18093 | acl_save_exec_prefix="$exec_prefix" | |
18094 | exec_prefix="$acl_final_exec_prefix" | |
18095 | eval x=\"$x\" | |
18096 | exec_prefix="$acl_save_exec_prefix" | |
18097 | prefix="$acl_save_prefix" | |
18098 | ||
18099 | if test "X$x" = "X$element"; then | |
18100 | haveit=yes | |
18101 | break | |
18102 | fi | |
18103 | done | |
18104 | if test -z "$haveit"; then | |
babf7fe8 | 18105 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18106 | fi |
18107 | done | |
18108 | ||
66170b30 JF |
18109 | |
18110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
18111 | /* end confdefs.h. */ |
18112 | ||
a243b558 | 18113 | _ACEOF |
babf7fe8 | 18114 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
18115 | cy_good=1 |
18116 | else | |
18117 | cy_good=0 | |
18118 | fi | |
babf7fe8 | 18119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 18120 | |
babf7fe8 | 18121 | CFLAGS=$cy_save |
a243b558 JF |
18122 | if test "x$cy_good" = x1; then : |
18123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18124 | $as_echo "yes" >&6; } | |
66170b30 | 18125 | |
babf7fe8 | 18126 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 18127 | haveit= |
babf7fe8 | 18128 | for x in $CFLAGS; do |
1504c9b8 DWT |
18129 | |
18130 | acl_save_prefix="$prefix" | |
18131 | prefix="$acl_final_prefix" | |
18132 | acl_save_exec_prefix="$exec_prefix" | |
18133 | exec_prefix="$acl_final_exec_prefix" | |
18134 | eval x=\"$x\" | |
18135 | exec_prefix="$acl_save_exec_prefix" | |
18136 | prefix="$acl_save_prefix" | |
18137 | ||
18138 | if test "X$x" = "X$element"; then | |
18139 | haveit=yes | |
18140 | break | |
18141 | fi | |
18142 | done | |
18143 | if test -z "$haveit"; then | |
babf7fe8 | 18144 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18145 | fi |
18146 | done | |
18147 | ||
18148 | ||
18149 | else | |
66170b30 JF |
18150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18151 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
18152 | fi |
18153 | ||
babf7fe8 JF |
18154 | ac_ext=cpp |
18155 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 18159 | |
9c60689e | 18160 | |
632b71ea | 18161 | |
babf7fe8 JF |
18162 | ac_ext=cpp |
18163 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 18167 | |
babf7fe8 JF |
18168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
18169 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 18170 | |
babf7fe8 | 18171 | cy_save=$CXXFLAGS |
9c60689e | 18172 | |
babf7fe8 JF |
18173 | for element in -Wno-unneeded-internal-declaration; do |
18174 | haveit= | |
18175 | for x in $CXXFLAGS; do | |
9c60689e | 18176 | |
babf7fe8 JF |
18177 | acl_save_prefix="$prefix" |
18178 | prefix="$acl_final_prefix" | |
18179 | acl_save_exec_prefix="$exec_prefix" | |
18180 | exec_prefix="$acl_final_exec_prefix" | |
18181 | eval x=\"$x\" | |
18182 | exec_prefix="$acl_save_exec_prefix" | |
18183 | prefix="$acl_save_prefix" | |
66170b30 | 18184 | |
babf7fe8 JF |
18185 | if test "X$x" = "X$element"; then |
18186 | haveit=yes | |
18187 | break | |
18188 | fi | |
18189 | done | |
18190 | if test -z "$haveit"; then | |
18191 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18192 | fi | |
18193 | done | |
7eda51e0 | 18194 | |
7eda51e0 | 18195 | |
babf7fe8 JF |
18196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18197 | /* end confdefs.h. */ | |
7eda51e0 | 18198 | |
7eda51e0 | 18199 | _ACEOF |
babf7fe8 JF |
18200 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18201 | cy_good=1 | |
9c60689e | 18202 | else |
babf7fe8 | 18203 | cy_good=0 |
9c60689e | 18204 | fi |
babf7fe8 | 18205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 18206 | |
babf7fe8 JF |
18207 | CXXFLAGS=$cy_save |
18208 | if test "x$cy_good" = x1; then : | |
18209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18210 | $as_echo "yes" >&6; } | |
7eda51e0 | 18211 | |
babf7fe8 | 18212 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 18213 | haveit= |
babf7fe8 | 18214 | for x in $CXXFLAGS; do |
9c60689e | 18215 | |
7eda51e0 JF |
18216 | acl_save_prefix="$prefix" |
18217 | prefix="$acl_final_prefix" | |
18218 | acl_save_exec_prefix="$exec_prefix" | |
18219 | exec_prefix="$acl_final_exec_prefix" | |
18220 | eval x=\"$x\" | |
18221 | exec_prefix="$acl_save_exec_prefix" | |
18222 | prefix="$acl_save_prefix" | |
9c60689e | 18223 | |
7eda51e0 JF |
18224 | if test "X$x" = "X$element"; then |
18225 | haveit=yes | |
18226 | break | |
18227 | fi | |
18228 | done | |
18229 | if test -z "$haveit"; then | |
babf7fe8 | 18230 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
18231 | fi |
18232 | done | |
9c60689e | 18233 | |
9c60689e | 18234 | |
5053a6d1 | 18235 | else |
babf7fe8 JF |
18236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18237 | $as_echo "no" >&6; } | |
632b71ea DWT |
18238 | fi |
18239 | ||
babf7fe8 JF |
18240 | ac_ext=cpp |
18241 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18242 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18243 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18244 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
18245 | |
18246 | ||
5053a6d1 | 18247 | |
babf7fe8 JF |
18248 | ac_ext=mm |
18249 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18250 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18251 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18252 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 18253 | |
babf7fe8 JF |
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
18255 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 18256 | |
babf7fe8 | 18257 | cy_save=$OBJCXXFLAGS |
632b71ea | 18258 | |
babf7fe8 | 18259 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 18260 | haveit= |
babf7fe8 | 18261 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
18262 | |
18263 | acl_save_prefix="$prefix" | |
18264 | prefix="$acl_final_prefix" | |
18265 | acl_save_exec_prefix="$exec_prefix" | |
18266 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 18267 | eval x=\"$x\" |
632b71ea DWT |
18268 | exec_prefix="$acl_save_exec_prefix" |
18269 | prefix="$acl_save_prefix" | |
18270 | ||
5053a6d1 DWT |
18271 | if test "X$x" = "X$element"; then |
18272 | haveit=yes | |
18273 | break | |
18274 | fi | |
18275 | done | |
18276 | if test -z "$haveit"; then | |
babf7fe8 | 18277 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
18278 | fi |
18279 | done | |
18280 | ||
66170b30 | 18281 | |
babf7fe8 JF |
18282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18283 | /* end confdefs.h. */ | |
18284 | ||
18285 | _ACEOF | |
18286 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18287 | cy_good=1 | |
18288 | else | |
18289 | cy_good=0 | |
18290 | fi | |
18291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18292 | ||
18293 | OBJCXXFLAGS=$cy_save | |
18294 | if test "x$cy_good" = x1; then : | |
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18296 | $as_echo "yes" >&6; } | |
18297 | ||
18298 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 18299 | haveit= |
babf7fe8 | 18300 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
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 | |
babf7fe8 | 18316 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
18317 | fi |
18318 | done | |
66170b30 JF |
18319 | |
18320 | ||
babf7fe8 JF |
18321 | else |
18322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18323 | $as_echo "no" >&6; } | |
5053a6d1 | 18324 | fi |
7eda51e0 | 18325 | |
babf7fe8 JF |
18326 | ac_ext=cpp |
18327 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 18331 | |
5053a6d1 DWT |
18332 | |
18333 | ||
5053a6d1 | 18334 | |
babf7fe8 JF |
18335 | |
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | # Check whether --enable-javascript was given. | |
18342 | if test "${enable_javascript+set}" = set; then : | |
18343 | enableval=$enable_javascript; | |
18344 | case $enableval in #( | |
18345 | yes) : | |
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | cy_save=$LIBS | |
18351 | LIBS= | |
18352 | ||
18353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18354 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18355 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18356 | $as_echo_n "(cached) " >&6 | |
18357 | else | |
18358 | ||
18359 | ac_check_framework_save_LIBS=$LIBS | |
18360 | LIBS="-framework JavaScriptCore $LIBS" | |
18361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18362 | /* end confdefs.h. */ | |
18363 | ||
18364 | #include <JavaScriptCore/JSBase.h> | |
18365 | ||
18366 | int | |
18367 | main () | |
18368 | { | |
18369 | ||
18370 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18371 | ||
18372 | ; | |
18373 | return 0; | |
18374 | } | |
18375 | _ACEOF | |
18376 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18377 | ||
18378 | ac_cv_framework_JavaScriptCore=yes | |
18379 | ||
18380 | else | |
18381 | ac_cv_framework_JavaScriptCore=no | |
18382 | fi | |
18383 | rm -f core conftest.err conftest.$ac_objext \ | |
18384 | conftest$ac_exeext conftest.$ac_ext | |
18385 | LIBS=$ac_check_framework_save_LIBS | |
18386 | ||
18387 | fi | |
18388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18389 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18390 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18391 | ||
18392 | ||
18393 | for element in "-framework JavaScriptCore"; do | |
18394 | haveit= | |
18395 | for x in $LIBS; do | |
18396 | ||
18397 | acl_save_prefix="$prefix" | |
18398 | prefix="$acl_final_prefix" | |
18399 | acl_save_exec_prefix="$exec_prefix" | |
18400 | exec_prefix="$acl_final_exec_prefix" | |
18401 | eval x=\"$x\" | |
18402 | exec_prefix="$acl_save_exec_prefix" | |
18403 | prefix="$acl_save_prefix" | |
18404 | ||
18405 | if test "X$x" = "X$element"; then | |
18406 | haveit=yes | |
18407 | break | |
18408 | fi | |
18409 | done | |
18410 | if test -z "$haveit"; then | |
18411 | LIBS="${LIBS}${LIBS:+ }$element" | |
18412 | fi | |
18413 | done | |
18414 | ||
18415 | ||
18416 | CY_EXECUTE=1 | |
18417 | ||
18418 | ||
18419 | ||
18420 | else | |
18421 | ||
18422 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18423 | ||
18424 | pkg_failed=no | |
18425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 18426 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 18427 | |
7eda51e0 JF |
18428 | if test -n "$WEBKIT_CFLAGS"; then |
18429 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18430 | elif test -n "$PKG_CONFIG"; then | |
18431 | if test -n "$PKG_CONFIG" && \ | |
18432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18433 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18434 | ac_status=$? | |
18435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18436 | test $ac_status = 0; }; then | |
18437 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18438 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18439 | else |
18440 | pkg_failed=yes | |
18441 | fi | |
18442 | else | |
18443 | pkg_failed=untried | |
18444 | fi | |
18445 | if test -n "$WEBKIT_LIBS"; then | |
18446 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18447 | elif test -n "$PKG_CONFIG"; then | |
18448 | if test -n "$PKG_CONFIG" && \ | |
18449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18450 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18451 | ac_status=$? | |
18452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18453 | test $ac_status = 0; }; then | |
18454 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18455 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18456 | else |
18457 | pkg_failed=yes | |
18458 | fi | |
18459 | else | |
18460 | pkg_failed=untried | |
18461 | fi | |
632b71ea | 18462 | |
7eda51e0 JF |
18463 | |
18464 | ||
18465 | if test $pkg_failed = yes; then | |
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18467 | $as_echo "no" >&6; } | |
18468 | ||
18469 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18470 | _pkg_short_errors_supported=yes | |
18471 | else | |
18472 | _pkg_short_errors_supported=no | |
18473 | fi | |
18474 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 18475 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 18476 | else |
a93f15c0 | 18477 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
18478 | fi |
18479 | # Put the nasty error message in config.log where it belongs | |
18480 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18481 | ||
18482 | : | |
18483 | elif test $pkg_failed = untried; then | |
18484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18485 | $as_echo "no" >&6; } | |
18486 | : | |
18487 | else | |
18488 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18489 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18491 | $as_echo "yes" >&6; } | |
18492 | ||
18493 | CY_EXECUTE=1 | |
18494 | ||
18495 | ||
7eda51e0 JF |
18496 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
18497 | haveit= | |
d70419f1 | 18498 | for x in $CPPFLAGS; do |
5053a6d1 | 18499 | |
7eda51e0 JF |
18500 | acl_save_prefix="$prefix" |
18501 | prefix="$acl_final_prefix" | |
18502 | acl_save_exec_prefix="$exec_prefix" | |
18503 | exec_prefix="$acl_final_exec_prefix" | |
18504 | eval x=\"$x\" | |
18505 | exec_prefix="$acl_save_exec_prefix" | |
18506 | prefix="$acl_save_prefix" | |
5053a6d1 | 18507 | |
7eda51e0 JF |
18508 | if test "X$x" = "X$element"; then |
18509 | haveit=yes | |
18510 | break | |
18511 | fi | |
18512 | done | |
18513 | if test -z "$haveit"; then | |
d70419f1 | 18514 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
18515 | fi |
18516 | done | |
5053a6d1 | 18517 | |
5053a6d1 | 18518 | |
7eda51e0 | 18519 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 18520 | haveit= |
5053a6d1 | 18521 | for x in $LIBS; do |
9c60689e | 18522 | |
632b71ea DWT |
18523 | acl_save_prefix="$prefix" |
18524 | prefix="$acl_final_prefix" | |
18525 | acl_save_exec_prefix="$exec_prefix" | |
18526 | exec_prefix="$acl_final_exec_prefix" | |
18527 | eval x=\"$x\" | |
18528 | exec_prefix="$acl_save_exec_prefix" | |
18529 | prefix="$acl_save_prefix" | |
18530 | ||
18531 | if test "X$x" = "X$element"; then | |
18532 | haveit=yes | |
18533 | break | |
18534 | fi | |
18535 | done | |
18536 | if test -z "$haveit"; then | |
5053a6d1 | 18537 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
18538 | fi |
18539 | done | |
b128dfee | 18540 | |
66170b30 | 18541 | |
7eda51e0 JF |
18542 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18543 | done | |
5053a6d1 DWT |
18544 | |
18545 | fi | |
babf7fe8 JF |
18546 | LTJAVASCRIPTCORE=$LIBS |
18547 | LIBS=$cy_save | |
18548 | ||
18549 | ||
7eda51e0 | 18550 | ;; #( |
babf7fe8 | 18551 | no) : |
7eda51e0 | 18552 | |
babf7fe8 JF |
18553 | CY_EXECUTE=0 |
18554 | ;; #( | |
18555 | JavaScriptCore) : | |
c823f118 | 18556 | |
5053a6d1 DWT |
18557 | |
18558 | ||
babf7fe8 JF |
18559 | cy_save=$LIBS |
18560 | LIBS= | |
18561 | ||
5053a6d1 DWT |
18562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18563 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18564 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
18565 | $as_echo_n "(cached) " >&6 |
18566 | else | |
18567 | ||
5053a6d1 DWT |
18568 | ac_check_framework_save_LIBS=$LIBS |
18569 | LIBS="-framework JavaScriptCore $LIBS" | |
18570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 18571 | /* end confdefs.h. */ |
5053a6d1 | 18572 | |
7eda51e0 | 18573 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 18574 | |
632b71ea DWT |
18575 | int |
18576 | main () | |
18577 | { | |
66170b30 | 18578 | |
7eda51e0 | 18579 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 18580 | |
632b71ea DWT |
18581 | ; |
18582 | return 0; | |
18583 | } | |
18584 | _ACEOF | |
5053a6d1 DWT |
18585 | if ac_fn_cxx_try_link "$LINENO"; then : |
18586 | ||
18587 | ac_cv_framework_JavaScriptCore=yes | |
18588 | ||
18589 | else | |
18590 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
18591 | fi |
18592 | rm -f core conftest.err conftest.$ac_objext \ | |
18593 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 18594 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 18595 | |
c823f118 | 18596 | fi |
5053a6d1 DWT |
18597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
18598 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18599 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
18600 | |
18601 | ||
7eda51e0 | 18602 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
18603 | haveit= |
18604 | for x in $LIBS; do | |
18605 | ||
18606 | acl_save_prefix="$prefix" | |
18607 | prefix="$acl_final_prefix" | |
18608 | acl_save_exec_prefix="$exec_prefix" | |
18609 | exec_prefix="$acl_final_exec_prefix" | |
18610 | eval x=\"$x\" | |
18611 | exec_prefix="$acl_save_exec_prefix" | |
18612 | prefix="$acl_save_prefix" | |
18613 | ||
18614 | if test "X$x" = "X$element"; then | |
18615 | haveit=yes | |
18616 | break | |
18617 | fi | |
18618 | done | |
18619 | if test -z "$haveit"; then | |
18620 | LIBS="${LIBS}${LIBS:+ }$element" | |
18621 | fi | |
18622 | done | |
c823f118 | 18623 | |
66170b30 | 18624 | |
7eda51e0 JF |
18625 | CY_EXECUTE=1 |
18626 | ||
18627 | ||
18628 | ||
18629 | else | |
18630 | ||
18631 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18632 | ||
18633 | pkg_failed=no | |
18634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18635 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18636 | ||
18637 | if test -n "$WEBKIT_CFLAGS"; then | |
18638 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18639 | elif test -n "$PKG_CONFIG"; then | |
18640 | if test -n "$PKG_CONFIG" && \ | |
18641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18642 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18643 | ac_status=$? | |
18644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18645 | test $ac_status = 0; }; then | |
18646 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18647 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18648 | else |
18649 | pkg_failed=yes | |
18650 | fi | |
18651 | else | |
18652 | pkg_failed=untried | |
18653 | fi | |
18654 | if test -n "$WEBKIT_LIBS"; then | |
18655 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18656 | elif test -n "$PKG_CONFIG"; then | |
18657 | if test -n "$PKG_CONFIG" && \ | |
18658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18659 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18660 | ac_status=$? | |
18661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18662 | test $ac_status = 0; }; then | |
18663 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18664 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18665 | else |
18666 | pkg_failed=yes | |
18667 | fi | |
18668 | else | |
18669 | pkg_failed=untried | |
18670 | fi | |
18671 | ||
66170b30 JF |
18672 | |
18673 | ||
7eda51e0 JF |
18674 | if test $pkg_failed = yes; then |
18675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18676 | $as_echo "no" >&6; } | |
b128dfee | 18677 | |
7eda51e0 JF |
18678 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
18679 | _pkg_short_errors_supported=yes | |
18680 | else | |
18681 | _pkg_short_errors_supported=no | |
632b71ea | 18682 | fi |
7eda51e0 | 18683 | if test $_pkg_short_errors_supported = yes; then |
a93f15c0 | 18684 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 18685 | else |
a93f15c0 | 18686 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
18687 | fi |
18688 | # Put the nasty error message in config.log where it belongs | |
18689 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 18690 | |
7eda51e0 JF |
18691 | : |
18692 | elif test $pkg_failed = untried; then | |
18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18694 | $as_echo "no" >&6; } | |
18695 | : | |
5053a6d1 DWT |
18696 | else |
18697 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18698 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18700 | $as_echo "yes" >&6; } | |
c823f118 | 18701 | |
7eda51e0 JF |
18702 | CY_EXECUTE=1 |
18703 | ||
66170b30 | 18704 | |
7eda51e0 | 18705 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 18706 | haveit= |
d70419f1 | 18707 | for x in $CPPFLAGS; do |
c823f118 | 18708 | |
5053a6d1 DWT |
18709 | acl_save_prefix="$prefix" |
18710 | prefix="$acl_final_prefix" | |
18711 | acl_save_exec_prefix="$exec_prefix" | |
18712 | exec_prefix="$acl_final_exec_prefix" | |
18713 | eval x=\"$x\" | |
18714 | exec_prefix="$acl_save_exec_prefix" | |
18715 | prefix="$acl_save_prefix" | |
c823f118 | 18716 | |
5053a6d1 DWT |
18717 | if test "X$x" = "X$element"; then |
18718 | haveit=yes | |
18719 | break | |
18720 | fi | |
18721 | done | |
18722 | if test -z "$haveit"; then | |
d70419f1 | 18723 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
18724 | fi |
18725 | done | |
c823f118 | 18726 | |
b66977f1 | 18727 | |
7eda51e0 | 18728 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
18729 | haveit= |
18730 | for x in $LIBS; do | |
18731 | ||
18732 | acl_save_prefix="$prefix" | |
18733 | prefix="$acl_final_prefix" | |
18734 | acl_save_exec_prefix="$exec_prefix" | |
18735 | exec_prefix="$acl_final_exec_prefix" | |
18736 | eval x=\"$x\" | |
18737 | exec_prefix="$acl_save_exec_prefix" | |
18738 | prefix="$acl_save_prefix" | |
18739 | ||
18740 | if test "X$x" = "X$element"; then | |
18741 | haveit=yes | |
18742 | break | |
18743 | fi | |
18744 | done | |
18745 | if test -z "$haveit"; then | |
18746 | LIBS="${LIBS}${LIBS:+ }$element" | |
18747 | fi | |
18748 | done | |
18749 | ||
18750 | ||
7eda51e0 JF |
18751 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18752 | done | |
18753 | ||
5053a6d1 | 18754 | fi |
babf7fe8 JF |
18755 | LTJAVASCRIPTCORE=$LIBS |
18756 | LIBS=$cy_save | |
5053a6d1 | 18757 | |
b66977f1 | 18758 | |
babf7fe8 JF |
18759 | ;; #( |
18760 | *) : | |
18761 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
18762 | esac | |
b66977f1 | 18763 | |
babf7fe8 | 18764 | else |
b66977f1 | 18765 | |
7eda51e0 | 18766 | |
7eda51e0 | 18767 | |
babf7fe8 JF |
18768 | cy_save=$LIBS |
18769 | LIBS= | |
7eda51e0 | 18770 | |
babf7fe8 JF |
18771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18772 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18773 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18774 | $as_echo_n "(cached) " >&6 | |
18775 | else | |
7eda51e0 | 18776 | |
babf7fe8 JF |
18777 | ac_check_framework_save_LIBS=$LIBS |
18778 | LIBS="-framework JavaScriptCore $LIBS" | |
18779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18780 | /* end confdefs.h. */ | |
7eda51e0 | 18781 | |
babf7fe8 | 18782 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 18783 | |
babf7fe8 JF |
18784 | int |
18785 | main () | |
18786 | { | |
7eda51e0 | 18787 | |
babf7fe8 | 18788 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 18789 | |
babf7fe8 JF |
18790 | ; |
18791 | return 0; | |
18792 | } | |
18793 | _ACEOF | |
18794 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 18795 | |
babf7fe8 | 18796 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 18797 | |
b66977f1 | 18798 | else |
babf7fe8 JF |
18799 | ac_cv_framework_JavaScriptCore=no |
18800 | fi | |
18801 | rm -f core conftest.err conftest.$ac_objext \ | |
18802 | conftest$ac_exeext conftest.$ac_ext | |
18803 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 18804 | |
babf7fe8 JF |
18805 | fi |
18806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18807 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18808 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 18809 | |
7eda51e0 | 18810 | |
babf7fe8 JF |
18811 | for element in "-framework JavaScriptCore"; do |
18812 | haveit= | |
18813 | for x in $LIBS; do | |
18814 | ||
18815 | acl_save_prefix="$prefix" | |
18816 | prefix="$acl_final_prefix" | |
18817 | acl_save_exec_prefix="$exec_prefix" | |
18818 | exec_prefix="$acl_final_exec_prefix" | |
18819 | eval x=\"$x\" | |
18820 | exec_prefix="$acl_save_exec_prefix" | |
18821 | prefix="$acl_save_prefix" | |
18822 | ||
18823 | if test "X$x" = "X$element"; then | |
18824 | haveit=yes | |
18825 | break | |
18826 | fi | |
18827 | done | |
18828 | if test -z "$haveit"; then | |
18829 | LIBS="${LIBS}${LIBS:+ }$element" | |
18830 | fi | |
18831 | done | |
18832 | ||
18833 | ||
18834 | CY_EXECUTE=1 | |
18835 | ||
18836 | ||
18837 | ||
18838 | else | |
18839 | ||
18840 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18841 | ||
18842 | pkg_failed=no | |
18843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18844 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18845 | ||
18846 | if test -n "$WEBKIT_CFLAGS"; then | |
18847 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18848 | elif test -n "$PKG_CONFIG"; then | |
18849 | if test -n "$PKG_CONFIG" && \ | |
18850 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18851 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18852 | ac_status=$? | |
18853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18854 | test $ac_status = 0; }; then | |
18855 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18856 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
18857 | else |
18858 | pkg_failed=yes | |
18859 | fi | |
18860 | else | |
18861 | pkg_failed=untried | |
18862 | fi | |
18863 | if test -n "$WEBKIT_LIBS"; then | |
18864 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18865 | elif test -n "$PKG_CONFIG"; then | |
18866 | if test -n "$PKG_CONFIG" && \ | |
18867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18868 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18869 | ac_status=$? | |
18870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18871 | test $ac_status = 0; }; then | |
18872 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18873 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
18874 | else |
18875 | pkg_failed=yes | |
18876 | fi | |
18877 | else | |
18878 | pkg_failed=untried | |
18879 | fi | |
18880 | ||
18881 | ||
18882 | ||
18883 | if test $pkg_failed = yes; then | |
18884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18885 | $as_echo "no" >&6; } | |
18886 | ||
18887 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18888 | _pkg_short_errors_supported=yes | |
18889 | else | |
18890 | _pkg_short_errors_supported=no | |
18891 | fi | |
18892 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 18893 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 18894 | else |
a93f15c0 | 18895 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
18896 | fi |
18897 | # Put the nasty error message in config.log where it belongs | |
18898 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18899 | ||
18900 | : | |
18901 | elif test $pkg_failed = untried; then | |
18902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18903 | $as_echo "no" >&6; } | |
18904 | : | |
18905 | else | |
18906 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18907 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18909 | $as_echo "yes" >&6; } | |
18910 | ||
18911 | CY_EXECUTE=1 | |
18912 | ||
18913 | ||
18914 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
18915 | haveit= | |
18916 | for x in $CPPFLAGS; do | |
18917 | ||
18918 | acl_save_prefix="$prefix" | |
18919 | prefix="$acl_final_prefix" | |
18920 | acl_save_exec_prefix="$exec_prefix" | |
18921 | exec_prefix="$acl_final_exec_prefix" | |
18922 | eval x=\"$x\" | |
18923 | exec_prefix="$acl_save_exec_prefix" | |
18924 | prefix="$acl_save_prefix" | |
18925 | ||
18926 | if test "X$x" = "X$element"; then | |
18927 | haveit=yes | |
18928 | break | |
18929 | fi | |
18930 | done | |
18931 | if test -z "$haveit"; then | |
18932 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
18933 | fi | |
18934 | done | |
18935 | ||
18936 | ||
18937 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
18938 | haveit= | |
18939 | for x in $LIBS; do | |
18940 | ||
18941 | acl_save_prefix="$prefix" | |
18942 | prefix="$acl_final_prefix" | |
18943 | acl_save_exec_prefix="$exec_prefix" | |
18944 | exec_prefix="$acl_final_exec_prefix" | |
18945 | eval x=\"$x\" | |
18946 | exec_prefix="$acl_save_exec_prefix" | |
18947 | prefix="$acl_save_prefix" | |
18948 | ||
18949 | if test "X$x" = "X$element"; then | |
18950 | haveit=yes | |
18951 | break | |
18952 | fi | |
18953 | done | |
18954 | if test -z "$haveit"; then | |
18955 | LIBS="${LIBS}${LIBS:+ }$element" | |
18956 | fi | |
18957 | done | |
18958 | ||
18959 | ||
18960 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
18961 | done | |
18962 | ||
18963 | fi | |
18964 | LTJAVASCRIPTCORE=$LIBS | |
18965 | LIBS=$cy_save | |
18966 | ||
18967 | ||
18968 | ||
18969 | fi | |
18970 | ||
18971 | ||
a93f15c0 JF |
18972 | # Check whether --enable-console was given. |
18973 | if test "${enable_console+set}" = set; then : | |
18974 | enableval=$enable_console; | |
18975 | fi | |
18976 | ||
18977 | if test "x$enable_console" != "xno"; then | |
18978 | CY_CONSOLE_TRUE= | |
18979 | CY_CONSOLE_FALSE='#' | |
18980 | else | |
18981 | CY_CONSOLE_TRUE='#' | |
18982 | CY_CONSOLE_FALSE= | |
18983 | fi | |
18984 | ||
18985 | ||
18986 | if test -z "$CY_CONSOLE_TRUE"; then : | |
18987 | ||
18988 | if test "x$LTLIBAPR" != x; then : | |
18989 | ||
18990 | ||
18991 | ||
18992 | else | |
18993 | ||
babf7fe8 JF |
18994 | |
18995 | apr_found="no" | |
18996 | ||
18997 | if test "$target_os" = "os2-emx"; then | |
18998 | # Scripts don't pass test -x on OS/2 | |
18999 | TEST_X="test -f" | |
19000 | else | |
19001 | TEST_X="test -x" | |
19002 | fi | |
19003 | ||
19004 | acceptable_majors="1" | |
19005 | ||
19006 | apr_temp_acceptable_apr_config="" | |
19007 | for apr_temp_major in $acceptable_majors | |
19008 | do | |
19009 | case $apr_temp_major in | |
19010 | 0) | |
19011 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
19012 | ;; | |
19013 | *) | |
19014 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
19015 | ;; | |
19016 | esac | |
19017 | done | |
19018 | ||
19019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
19020 | $as_echo_n "checking for APR... " >&6; } | |
19021 | ||
19022 | # Check whether --with-apr was given. | |
19023 | if test "${with_apr+set}" = set; then : | |
19024 | withval=$with_apr; | |
19025 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
19026 | as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
19027 | fi | |
19028 | ||
19029 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19030 | do | |
19031 | for lookdir in "$withval/bin" "$withval" | |
19032 | do | |
19033 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
19034 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
19035 | ||
19036 | apr_found="yes" | |
19037 | break 2 | |
19038 | fi | |
19039 | done | |
19040 | done | |
19041 | ||
19042 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
19043 | apr_config="$withval" | |
19044 | apr_found="yes" | |
19045 | fi | |
19046 | ||
19047 | if test "$apr_found" != "yes"; then | |
19048 | 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 | |
19049 | fi | |
19050 | ||
19051 | else | |
19052 | ||
19053 | if test -n "1" && test "1" = "1"; then | |
19054 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19055 | do | |
19056 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
19057 | apr_config="$apr_temp_apr_config_file" | |
19058 | ||
19059 | apr_found="yes" | |
19060 | break | |
19061 | else | |
19062 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
19063 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
19064 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
19065 | ||
19066 | apr_found="yes" | |
19067 | break 2 | |
19068 | fi | |
19069 | done | |
19070 | fi | |
19071 | done | |
19072 | fi | |
19073 | if test "$apr_found" = "no" && test -d ""; then | |
19074 | apr_temp_abs_srcdir="`cd && pwd`" | |
19075 | apr_found="reconfig" | |
19076 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
19077 | case $apr_bundled_major in | |
19078 | "") | |
19079 | as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 | |
19080 | ;; | |
19081 | 0) | |
7eda51e0 JF |
19082 | apr_temp_apr_config_file="apr-config" |
19083 | ;; | |
19084 | *) | |
19085 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
19086 | ;; | |
19087 | esac | |
19088 | if test -n ""; then | |
19089 | apr_config="/$apr_temp_apr_config_file" | |
19090 | else | |
19091 | apr_config="/$apr_temp_apr_config_file" | |
19092 | fi | |
19093 | fi | |
19094 | ||
b66977f1 | 19095 | fi |
7eda51e0 JF |
19096 | |
19097 | ||
19098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
19099 | $as_echo "$apr_found" >&6; } | |
19100 | ||
19101 | case $apr_found in #( | |
19102 | yes) : | |
19103 | ||
19104 | ||
19105 | for element in `$apr_config --includes`; do | |
19106 | haveit= | |
19107 | for x in $CPPFLAGS; do | |
19108 | ||
19109 | acl_save_prefix="$prefix" | |
19110 | prefix="$acl_final_prefix" | |
19111 | acl_save_exec_prefix="$exec_prefix" | |
19112 | exec_prefix="$acl_final_exec_prefix" | |
19113 | eval x=\"$x\" | |
19114 | exec_prefix="$acl_save_exec_prefix" | |
19115 | prefix="$acl_save_prefix" | |
19116 | ||
19117 | if test "X$x" = "X$element"; then | |
19118 | haveit=yes | |
19119 | break | |
19120 | fi | |
19121 | done | |
19122 | if test -z "$haveit"; then | |
19123 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19124 | fi | |
19125 | done | |
19126 | ||
19127 | ||
19128 | for element in `$apr_config --link-libtool`; do | |
19129 | haveit= | |
19130 | for x in $LTLIBAPR; do | |
19131 | ||
19132 | acl_save_prefix="$prefix" | |
19133 | prefix="$acl_final_prefix" | |
19134 | acl_save_exec_prefix="$exec_prefix" | |
19135 | exec_prefix="$acl_final_exec_prefix" | |
19136 | eval x=\"$x\" | |
19137 | exec_prefix="$acl_save_exec_prefix" | |
19138 | prefix="$acl_save_prefix" | |
19139 | ||
19140 | if test "X$x" = "X$element"; then | |
19141 | haveit=yes | |
19142 | break | |
19143 | fi | |
19144 | done | |
19145 | if test -z "$haveit"; then | |
19146 | LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element" | |
19147 | fi | |
19148 | done | |
19149 | ||
19150 | ||
19151 | ;; #( | |
19152 | *) : | |
a93f15c0 JF |
19153 | |
19154 | as_fn_error $? "missing \"libapr\"" "$LINENO" 5 | |
19155 | ;; | |
7eda51e0 | 19156 | esac |
a93f15c0 JF |
19157 | fi |
19158 | ||
19159 | fi | |
7eda51e0 JF |
19160 | |
19161 | ||
19162 | ||
19163 | if test "x$CY_EXECUTE" = x1; then | |
19164 | CY_EXECUTE_TRUE= | |
19165 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 19166 | else |
7eda51e0 JF |
19167 | CY_EXECUTE_TRUE='#' |
19168 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
19169 | fi |
19170 | ||
19171 | ||
19172 | ||
7eda51e0 JF |
19173 | case $CY_EXECUTE in #( |
19174 | 1) : | |
19175 | ||
19176 | for ac_header in ffi.h ffi/ffi.h | |
19177 | do : | |
19178 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19179 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19180 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19181 | cat >>confdefs.h <<_ACEOF | |
19182 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19183 | _ACEOF | |
19184 | break | |
b66977f1 | 19185 | fi |
7eda51e0 JF |
19186 | |
19187 | done | |
19188 | ||
296ee9a6 JF |
19189 | |
19190 | ||
19191 | cy_save=$LIBS | |
19192 | LIBS= | |
7eda51e0 | 19193 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 19194 | |
b66977f1 | 19195 | |
296ee9a6 JF |
19196 | LIBFFI_CFLAGS |
19197 | C compiler flags for LIBFFI, overriding pkg-config | |
19198 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
19199 | |
19200 | pkg_failed=no | |
7eda51e0 JF |
19201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19202 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19203 | |
7eda51e0 JF |
19204 | if test -n "$LIBFFI_CFLAGS"; then |
19205 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19206 | elif test -n "$PKG_CONFIG"; then |
19207 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19209 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19210 | ac_status=$? |
19211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19212 | test $ac_status = 0; }; then | |
7eda51e0 | 19213 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
a93f15c0 | 19214 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19215 | else |
19216 | pkg_failed=yes | |
19217 | fi | |
12833ad8 JF |
19218 | else |
19219 | pkg_failed=untried | |
b66977f1 | 19220 | fi |
7eda51e0 JF |
19221 | if test -n "$LIBFFI_LIBS"; then |
19222 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19223 | elif test -n "$PKG_CONFIG"; then |
19224 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19226 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19227 | ac_status=$? |
19228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19229 | test $ac_status = 0; }; then | |
7eda51e0 | 19230 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
a93f15c0 | 19231 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19232 | else |
19233 | pkg_failed=yes | |
19234 | fi | |
12833ad8 JF |
19235 | else |
19236 | pkg_failed=untried | |
b66977f1 DWT |
19237 | fi |
19238 | ||
19239 | ||
19240 | ||
19241 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19243 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19244 | |
19245 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19246 | _pkg_short_errors_supported=yes | |
19247 | else | |
19248 | _pkg_short_errors_supported=no | |
19249 | fi | |
19250 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 19251 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 19252 | else |
a93f15c0 | 19253 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
19254 | fi |
19255 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19256 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19257 | |
7eda51e0 JF |
19258 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19259 | elif test $pkg_failed = untried; then | |
19260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19261 | $as_echo "no" >&6; } | |
19262 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
19263 | else | |
19264 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
19265 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19267 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
19268 | |
19269 | ||
7eda51e0 | 19270 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19271 | haveit= |
d70419f1 | 19272 | for x in $CPPFLAGS; do |
b66977f1 DWT |
19273 | |
19274 | acl_save_prefix="$prefix" | |
19275 | prefix="$acl_final_prefix" | |
19276 | acl_save_exec_prefix="$exec_prefix" | |
19277 | exec_prefix="$acl_final_exec_prefix" | |
19278 | eval x=\"$x\" | |
19279 | exec_prefix="$acl_save_exec_prefix" | |
19280 | prefix="$acl_save_prefix" | |
19281 | ||
19282 | if test "X$x" = "X$element"; then | |
19283 | haveit=yes | |
19284 | break | |
19285 | fi | |
19286 | done | |
19287 | if test -z "$haveit"; then | |
d70419f1 | 19288 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
19289 | fi |
19290 | done | |
19291 | ||
19292 | ||
7eda51e0 | 19293 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
19294 | haveit= |
19295 | for x in $LIBS; do | |
19296 | ||
19297 | acl_save_prefix="$prefix" | |
19298 | prefix="$acl_final_prefix" | |
19299 | acl_save_exec_prefix="$exec_prefix" | |
19300 | exec_prefix="$acl_final_exec_prefix" | |
19301 | eval x=\"$x\" | |
19302 | exec_prefix="$acl_save_exec_prefix" | |
19303 | prefix="$acl_save_prefix" | |
19304 | ||
19305 | if test "X$x" = "X$element"; then | |
19306 | haveit=yes | |
19307 | break | |
19308 | fi | |
19309 | done | |
19310 | if test -z "$haveit"; then | |
19311 | LIBS="${LIBS}${LIBS:+ }$element" | |
19312 | fi | |
19313 | done | |
19314 | ||
19315 | ||
19316 | fi | |
19317 | ||
7eda51e0 JF |
19318 | else |
19319 | ||
19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
19321 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
19322 | if ${ac_cv_search_ffi_call+:} false; then : | |
19323 | $as_echo_n "(cached) " >&6 | |
19324 | else | |
19325 | ac_func_search_save_LIBS=$LIBS | |
19326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19327 | /* end confdefs.h. */ | |
19328 | ||
19329 | /* Override any GCC internal prototype to avoid an error. | |
19330 | Use char because int might match the return type of a GCC | |
19331 | builtin and then its argument prototype would still apply. */ | |
19332 | #ifdef __cplusplus | |
19333 | extern "C" | |
19334 | #endif | |
19335 | char ffi_call (); | |
19336 | int | |
19337 | main () | |
19338 | { | |
19339 | return ffi_call (); | |
19340 | ; | |
19341 | return 0; | |
19342 | } | |
19343 | _ACEOF | |
19344 | for ac_lib in '' ffi; do | |
19345 | if test -z "$ac_lib"; then | |
19346 | ac_res="none required" | |
19347 | else | |
19348 | ac_res=-l$ac_lib | |
19349 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19350 | fi | |
19351 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19352 | ac_cv_search_ffi_call=$ac_res | |
19353 | fi | |
19354 | rm -f core conftest.err conftest.$ac_objext \ | |
19355 | conftest$ac_exeext | |
19356 | if ${ac_cv_search_ffi_call+:} false; then : | |
19357 | break | |
19358 | fi | |
19359 | done | |
19360 | if ${ac_cv_search_ffi_call+:} false; then : | |
19361 | ||
19362 | else | |
19363 | ac_cv_search_ffi_call=no | |
19364 | fi | |
19365 | rm conftest.$ac_ext | |
19366 | LIBS=$ac_func_search_save_LIBS | |
19367 | fi | |
19368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
19369 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
19370 | ac_res=$ac_cv_search_ffi_call | |
19371 | if test "$ac_res" != no; then : | |
19372 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19373 | ||
19374 | fi | |
19375 | ||
19376 | case $ac_cv_search_ffi_call in #( | |
19377 | no) : | |
b66977f1 DWT |
19378 | |
19379 | ||
19380 | pkg_failed=no | |
7eda51e0 JF |
19381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19382 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19383 | |
7eda51e0 JF |
19384 | if test -n "$LIBFFI_CFLAGS"; then |
19385 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19386 | elif test -n "$PKG_CONFIG"; then |
19387 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19388 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19389 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19390 | ac_status=$? |
19391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19392 | test $ac_status = 0; }; then | |
7eda51e0 | 19393 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
a93f15c0 | 19394 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19395 | else |
19396 | pkg_failed=yes | |
19397 | fi | |
12833ad8 JF |
19398 | else |
19399 | pkg_failed=untried | |
b66977f1 | 19400 | fi |
7eda51e0 JF |
19401 | if test -n "$LIBFFI_LIBS"; then |
19402 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19403 | elif test -n "$PKG_CONFIG"; then |
19404 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19405 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19406 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19407 | ac_status=$? |
19408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19409 | test $ac_status = 0; }; then | |
7eda51e0 | 19410 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
a93f15c0 | 19411 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19412 | else |
19413 | pkg_failed=yes | |
19414 | fi | |
12833ad8 JF |
19415 | else |
19416 | pkg_failed=untried | |
b66977f1 DWT |
19417 | fi |
19418 | ||
19419 | ||
19420 | ||
19421 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19423 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19424 | |
19425 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19426 | _pkg_short_errors_supported=yes | |
19427 | else | |
19428 | _pkg_short_errors_supported=no | |
19429 | fi | |
19430 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 19431 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 19432 | else |
a93f15c0 | 19433 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
19434 | fi |
19435 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19436 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19437 | |
7eda51e0 JF |
19438 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19439 | elif test $pkg_failed = untried; then | |
19440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19441 | $as_echo "no" >&6; } | |
19442 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 19443 | else |
7eda51e0 JF |
19444 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
19445 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19447 | $as_echo "yes" >&6; } | |
b66977f1 | 19448 | |
b66977f1 | 19449 | |
7eda51e0 | 19450 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19451 | haveit= |
d70419f1 | 19452 | for x in $CPPFLAGS; do |
7eda51e0 JF |
19453 | |
19454 | acl_save_prefix="$prefix" | |
19455 | prefix="$acl_final_prefix" | |
19456 | acl_save_exec_prefix="$exec_prefix" | |
19457 | exec_prefix="$acl_final_exec_prefix" | |
19458 | eval x=\"$x\" | |
19459 | exec_prefix="$acl_save_exec_prefix" | |
19460 | prefix="$acl_save_prefix" | |
19461 | ||
19462 | if test "X$x" = "X$element"; then | |
19463 | haveit=yes | |
19464 | break | |
19465 | fi | |
19466 | done | |
19467 | if test -z "$haveit"; then | |
d70419f1 | 19468 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
19469 | fi |
19470 | done | |
19471 | ||
19472 | ||
7eda51e0 JF |
19473 | for element in `$PKG_CONFIG --libs libffi`; do |
19474 | haveit= | |
19475 | for x in $LIBS; do | |
19476 | ||
19477 | acl_save_prefix="$prefix" | |
19478 | prefix="$acl_final_prefix" | |
19479 | acl_save_exec_prefix="$exec_prefix" | |
19480 | exec_prefix="$acl_final_exec_prefix" | |
19481 | eval x=\"$x\" | |
19482 | exec_prefix="$acl_save_exec_prefix" | |
19483 | prefix="$acl_save_prefix" | |
19484 | ||
19485 | if test "X$x" = "X$element"; then | |
19486 | haveit=yes | |
19487 | break | |
19488 | fi | |
19489 | done | |
19490 | if test -z "$haveit"; then | |
19491 | LIBS="${LIBS}${LIBS:+ }$element" | |
19492 | fi | |
19493 | done | |
19494 | ||
19495 | ||
19496 | fi ;; #( | |
19497 | *) : | |
19498 | ;; | |
19499 | esac | |
19500 | ||
19501 | fi | |
296ee9a6 JF |
19502 | LTLIBFFI=$LIBS |
19503 | LIBS=$cy_save | |
19504 | ||
19505 | ||
7eda51e0 JF |
19506 | |
19507 | ac_ext=mm | |
19508 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19509 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19510 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19511 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19512 | ||
19513 | ||
19514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
19515 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
19516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19517 | /* end confdefs.h. */ | |
19518 | ||
19519 | _ACEOF | |
19520 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19521 | ||
19522 | CY_OBJECTIVEC=1 | |
19523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19524 | $as_echo "yes" >&6; } | |
19525 | ||
19526 | else | |
19527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 19528 | $as_echo "no" >&6; } |
7eda51e0 JF |
19529 | fi |
19530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 19531 | |
7eda51e0 | 19532 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 19533 | |
7eda51e0 | 19534 | |
babf7fe8 JF |
19535 | cy_save=$LIBS |
19536 | LIBS= | |
19537 | ||
7eda51e0 JF |
19538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
19539 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
19540 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
19541 | $as_echo_n "(cached) " >&6 |
19542 | else | |
19543 | ||
19544 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 19545 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
19546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19547 | /* end confdefs.h. */ | |
19548 | ||
7eda51e0 | 19549 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
19550 | |
19551 | int | |
19552 | main () | |
19553 | { | |
7eda51e0 | 19554 | CFAllocatorGetDefault(); |
b66977f1 DWT |
19555 | ; |
19556 | return 0; | |
19557 | } | |
19558 | _ACEOF | |
7eda51e0 | 19559 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 19560 | |
7eda51e0 | 19561 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
19562 | |
19563 | else | |
7eda51e0 | 19564 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
19565 | fi |
19566 | rm -f core conftest.err conftest.$ac_objext \ | |
19567 | conftest$ac_exeext conftest.$ac_ext | |
19568 | LIBS=$ac_check_framework_save_LIBS | |
19569 | ||
19570 | fi | |
7eda51e0 JF |
19571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
19572 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
19573 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
19574 | |
19575 | ||
7eda51e0 | 19576 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
19577 | haveit= |
19578 | for x in $LIBS; do | |
19579 | ||
19580 | acl_save_prefix="$prefix" | |
19581 | prefix="$acl_final_prefix" | |
19582 | acl_save_exec_prefix="$exec_prefix" | |
19583 | exec_prefix="$acl_final_exec_prefix" | |
19584 | eval x=\"$x\" | |
19585 | exec_prefix="$acl_save_exec_prefix" | |
19586 | prefix="$acl_save_prefix" | |
19587 | ||
19588 | if test "X$x" = "X$element"; then | |
19589 | haveit=yes | |
19590 | break | |
19591 | fi | |
19592 | done | |
19593 | if test -z "$haveit"; then | |
19594 | LIBS="${LIBS}${LIBS:+ }$element" | |
19595 | fi | |
19596 | done | |
19597 | ||
66170b30 | 19598 | |
66170b30 JF |
19599 | |
19600 | ||
b66977f1 | 19601 | |
b66977f1 | 19602 | |
7eda51e0 JF |
19603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
19604 | $as_echo_n "checking for framework Foundation... " >&6; } | |
19605 | if ${ac_cv_framework_Foundation+:} false; then : | |
19606 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19607 | else |
b66977f1 | 19608 | |
7eda51e0 JF |
19609 | ac_check_framework_save_LIBS=$LIBS |
19610 | LIBS="-framework Foundation $LIBS" | |
19611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19612 | /* end confdefs.h. */ | |
66170b30 | 19613 | |
7eda51e0 | 19614 | #include <Foundation/NSObject.h> |
b66977f1 | 19615 | |
7eda51e0 JF |
19616 | int |
19617 | main () | |
19618 | { | |
19619 | [[NSObject alloc] init]; | |
19620 | ; | |
19621 | return 0; | |
19622 | } | |
19623 | _ACEOF | |
19624 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 19625 | |
7eda51e0 | 19626 | ac_cv_framework_Foundation=yes |
b66977f1 | 19627 | |
7eda51e0 JF |
19628 | else |
19629 | ac_cv_framework_Foundation=no | |
19630 | fi | |
19631 | rm -f core conftest.err conftest.$ac_objext \ | |
19632 | conftest$ac_exeext conftest.$ac_ext | |
19633 | LIBS=$ac_check_framework_save_LIBS | |
19634 | ||
19635 | fi | |
19636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
19637 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
19638 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
19639 | |
19640 | ||
7eda51e0 | 19641 | for element in "-framework Foundation"; do |
b66977f1 DWT |
19642 | haveit= |
19643 | for x in $LIBS; do | |
19644 | ||
19645 | acl_save_prefix="$prefix" | |
19646 | prefix="$acl_final_prefix" | |
19647 | acl_save_exec_prefix="$exec_prefix" | |
19648 | exec_prefix="$acl_final_exec_prefix" | |
19649 | eval x=\"$x\" | |
19650 | exec_prefix="$acl_save_exec_prefix" | |
19651 | prefix="$acl_save_prefix" | |
19652 | ||
19653 | if test "X$x" = "X$element"; then | |
19654 | haveit=yes | |
19655 | break | |
19656 | fi | |
19657 | done | |
19658 | if test -z "$haveit"; then | |
19659 | LIBS="${LIBS}${LIBS:+ }$element" | |
19660 | fi | |
19661 | done | |
19662 | ||
7eda51e0 JF |
19663 | cat >>confdefs.h <<_ACEOF |
19664 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
19665 | _ACEOF | |
19666 | ||
b66977f1 | 19667 | |
7eda51e0 | 19668 | fi |
b66977f1 DWT |
19669 | |
19670 | ||
7eda51e0 | 19671 | else |
b66977f1 | 19672 | |
b66977f1 | 19673 | |
7eda51e0 JF |
19674 | for ac_prog in gnustep-config |
19675 | do | |
19676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19677 | set dummy $ac_prog; ac_word=$2 | |
19678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19679 | $as_echo_n "checking for $ac_word... " >&6; } | |
19680 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
19681 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19682 | else |
7eda51e0 JF |
19683 | if test -n "$GNUSTEP_CONFIG"; then |
19684 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 19685 | else |
7eda51e0 JF |
19686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19687 | for as_dir in $PATH | |
19688 | do | |
19689 | IFS=$as_save_IFS | |
19690 | test -z "$as_dir" && as_dir=. | |
19691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19693 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
19694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19695 | break 2 | |
19696 | fi | |
19697 | done | |
19698 | done | |
19699 | IFS=$as_save_IFS | |
b66977f1 | 19700 | |
b66977f1 | 19701 | fi |
b66977f1 | 19702 | fi |
7eda51e0 JF |
19703 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
19704 | if test -n "$GNUSTEP_CONFIG"; then | |
19705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
19706 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 19707 | else |
7eda51e0 | 19708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 19709 | $as_echo "no" >&6; } |
b66977f1 | 19710 | fi |
66170b30 | 19711 | |
66170b30 | 19712 | |
7eda51e0 JF |
19713 | test -n "$GNUSTEP_CONFIG" && break |
19714 | done | |
b66977f1 | 19715 | |
b66977f1 | 19716 | |
7eda51e0 | 19717 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 19718 | |
b66977f1 DWT |
19719 | |
19720 | ||
7eda51e0 | 19721 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 19722 | haveit= |
7eda51e0 | 19723 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
19724 | |
19725 | acl_save_prefix="$prefix" | |
19726 | prefix="$acl_final_prefix" | |
19727 | acl_save_exec_prefix="$exec_prefix" | |
19728 | exec_prefix="$acl_final_exec_prefix" | |
19729 | eval x=\"$x\" | |
19730 | exec_prefix="$acl_save_exec_prefix" | |
19731 | prefix="$acl_save_prefix" | |
19732 | ||
19733 | if test "X$x" = "X$element"; then | |
19734 | haveit=yes | |
19735 | break | |
19736 | fi | |
19737 | done | |
babf7fe8 JF |
19738 | if test -z "$haveit"; then |
19739 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19740 | fi | |
19741 | done | |
a667869d | 19742 | |
a667869d | 19743 | |
babf7fe8 | 19744 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 19745 | haveit= |
babf7fe8 | 19746 | for x in $LIBS; do |
a667869d | 19747 | |
632b71ea DWT |
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 | |
babf7fe8 | 19762 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
19763 | fi |
19764 | done | |
19765 | ||
5053a6d1 | 19766 | |
babf7fe8 JF |
19767 | else |
19768 | CY_OBJECTIVEC=0 | |
19769 | ||
19770 | fi | |
19771 | ||
19772 | fi | |
19773 | LTOBJECTIVEC=$LIBS | |
19774 | LIBS=$cy_save | |
19775 | ||
19776 | ||
19777 | ||
19778 | fi | |
19779 | ||
19780 | ac_ext=cpp | |
19781 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19782 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19783 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19784 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19785 | ||
19786 | ;; #( | |
19787 | *) : | |
19788 | ;; | |
19789 | esac | |
19790 | ||
19791 | if test "x$CY_OBJECTIVEC" = x1; then | |
19792 | CY_OBJECTIVEC_TRUE= | |
19793 | CY_OBJECTIVEC_FALSE='#' | |
19794 | else | |
19795 | CY_OBJECTIVEC_TRUE='#' | |
19796 | CY_OBJECTIVEC_FALSE= | |
19797 | fi | |
19798 | ||
19799 | ||
19800 | ||
19801 | cy_save=$LIBS | |
19802 | LIBS= | |
19803 | ||
19804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
19805 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
19806 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 19807 | $as_echo_n "(cached) " >&6 |
a667869d | 19808 | else |
632b71ea | 19809 | |
babf7fe8 JF |
19810 | ORIG_LIBS="$LIBS" |
19811 | for readline_lib in readline edit editline; do | |
19812 | for termcap_lib in "" termcap curses ncurses; do | |
19813 | if test -z "$termcap_lib"; then | |
19814 | TRY_LIB="-l$readline_lib" | |
19815 | else | |
19816 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
19817 | fi | |
19818 | LIBS="$ORIG_LIBS $TRY_LIB" | |
19819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 19820 | /* end confdefs.h. */ |
632b71ea | 19821 | |
babf7fe8 JF |
19822 | /* Override any GCC internal prototype to avoid an error. |
19823 | Use char because int might match the return type of a GCC | |
19824 | builtin and then its argument prototype would still apply. */ | |
19825 | #ifdef __cplusplus | |
19826 | extern "C" | |
19827 | #endif | |
19828 | char readline (); | |
5053a6d1 DWT |
19829 | int |
19830 | main () | |
19831 | { | |
babf7fe8 | 19832 | return readline (); |
5053a6d1 DWT |
19833 | ; |
19834 | return 0; | |
19835 | } | |
19836 | _ACEOF | |
babf7fe8 JF |
19837 | if ac_fn_cxx_try_link "$LINENO"; then : |
19838 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
19839 | fi |
19840 | rm -f core conftest.err conftest.$ac_objext \ | |
19841 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
19842 | if test -n "$ax_cv_lib_readline"; then |
19843 | break | |
19844 | fi | |
19845 | done | |
19846 | if test -n "$ax_cv_lib_readline"; then | |
19847 | break | |
19848 | fi | |
19849 | done | |
19850 | if test -z "$ax_cv_lib_readline"; then | |
19851 | ax_cv_lib_readline="no" | |
19852 | fi | |
19853 | LIBS="$ORIG_LIBS" | |
19854 | ||
19855 | fi | |
19856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
19857 | $as_echo "$ax_cv_lib_readline" >&6; } | |
19858 | ||
19859 | if test "$ax_cv_lib_readline" != "no"; then | |
19860 | LIBS="$LIBS $ax_cv_lib_readline" | |
19861 | ||
19862 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
19863 | ||
19864 | for ac_header in readline.h readline/readline.h | |
19865 | do : | |
19866 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19867 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19868 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19869 | cat >>confdefs.h <<_ACEOF | |
19870 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19871 | _ACEOF | |
19872 | ||
19873 | fi | |
19874 | ||
19875 | done | |
19876 | ||
19877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
19878 | $as_echo_n "checking whether readline supports history... " >&6; } | |
19879 | if ${ax_cv_lib_readline_history+:} false; then : | |
19880 | $as_echo_n "(cached) " >&6 | |
19881 | else | |
19882 | ||
19883 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
19884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19885 | /* end confdefs.h. */ | |
5053a6d1 | 19886 | |
babf7fe8 JF |
19887 | /* Override any GCC internal prototype to avoid an error. |
19888 | Use char because int might match the return type of a GCC | |
19889 | builtin and then its argument prototype would still apply. */ | |
19890 | #ifdef __cplusplus | |
19891 | extern "C" | |
19892 | #endif | |
19893 | char add_history (); | |
058f1bc8 DWT |
19894 | int |
19895 | main () | |
19896 | { | |
babf7fe8 | 19897 | return add_history (); |
058f1bc8 DWT |
19898 | ; |
19899 | return 0; | |
19900 | } | |
19901 | _ACEOF | |
babf7fe8 JF |
19902 | if ac_fn_cxx_try_link "$LINENO"; then : |
19903 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
19904 | fi |
19905 | rm -f core conftest.err conftest.$ac_objext \ | |
19906 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 19907 | |
a667869d | 19908 | fi |
babf7fe8 JF |
19909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
19910 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
19911 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 19912 | |
babf7fe8 | 19913 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 19914 | |
babf7fe8 JF |
19915 | for ac_header in history.h readline/history.h |
19916 | do : | |
19917 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19918 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19919 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19920 | cat >>confdefs.h <<_ACEOF | |
19921 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 19922 | _ACEOF |
babf7fe8 | 19923 | |
7eda51e0 | 19924 | fi |
058f1bc8 | 19925 | |
babf7fe8 | 19926 | done |
058f1bc8 | 19927 | |
babf7fe8 | 19928 | fi |
7eda51e0 | 19929 | fi |
058f1bc8 | 19930 | |
babf7fe8 JF |
19931 | LTLIBREADLINE=$LIBS |
19932 | LIBS=$cy_save | |
058f1bc8 | 19933 | |
058f1bc8 | 19934 | |
babf7fe8 JF |
19935 | case $ax_cv_lib_readline in #( |
19936 | no) : | |
19937 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
19938 | *) : | |
19939 | ;; | |
19940 | esac | |
058f1bc8 DWT |
19941 | |
19942 | ||
babf7fe8 JF |
19943 | cy_save=$LIBS |
19944 | LIBS= | |
19945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
19946 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
19947 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
19948 | $as_echo_n "(cached) " >&6 |
19949 | else | |
babf7fe8 JF |
19950 | ac_func_search_save_LIBS=$LIBS |
19951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
19952 | /* end confdefs.h. */ |
19953 | ||
babf7fe8 JF |
19954 | /* Override any GCC internal prototype to avoid an error. |
19955 | Use char because int might match the return type of a GCC | |
19956 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 19957 | #ifdef __cplusplus |
babf7fe8 | 19958 | extern "C" |
7eda51e0 | 19959 | #endif |
babf7fe8 | 19960 | char cur_term (); |
7eda51e0 JF |
19961 | int |
19962 | main () | |
19963 | { | |
babf7fe8 | 19964 | return cur_term (); |
7eda51e0 JF |
19965 | ; |
19966 | return 0; | |
19967 | } | |
19968 | _ACEOF | |
a93f15c0 | 19969 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
19970 | if test -z "$ac_lib"; then |
19971 | ac_res="none required" | |
19972 | else | |
19973 | ac_res=-l$ac_lib | |
19974 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19975 | fi | |
19976 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19977 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 19978 | fi |
babf7fe8 JF |
19979 | rm -f core conftest.err conftest.$ac_objext \ |
19980 | conftest$ac_exeext | |
19981 | if ${ac_cv_search_cur_term+:} false; then : | |
19982 | break | |
7eda51e0 | 19983 | fi |
babf7fe8 JF |
19984 | done |
19985 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 19986 | |
babf7fe8 JF |
19987 | else |
19988 | ac_cv_search_cur_term=no | |
19989 | fi | |
19990 | rm conftest.$ac_ext | |
19991 | LIBS=$ac_func_search_save_LIBS | |
19992 | fi | |
19993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
19994 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
19995 | ac_res=$ac_cv_search_cur_term | |
19996 | if test "$ac_res" != no; then : | |
19997 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 19998 | |
babf7fe8 | 19999 | fi |
058f1bc8 | 20000 | |
babf7fe8 JF |
20001 | LTLIBTERMCAP=$LIBS |
20002 | LIBS=$cy_save | |
058f1bc8 | 20003 | |
058f1bc8 | 20004 | |
66170b30 JF |
20005 | |
20006 | ||
9777bd50 JF |
20007 | SO=$acl_shlibext |
20008 | ||
e1cce270 | 20009 | |
7eda51e0 JF |
20010 | if test "x$CY_EXECUTE" = x1; then : |
20011 | ||
20012 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
ee134472 | 20013 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : |
e1cce270 | 20014 | |
7eda51e0 | 20015 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20016 | for ac_prog in lipo |
794e88e7 DWT |
20017 | do |
20018 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20019 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20021 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20022 | if ${ac_cv_prog__LIPO+:} false; then : |
794e88e7 DWT |
20023 | $as_echo_n "(cached) " >&6 |
20024 | else | |
a243b558 JF |
20025 | if test -n "$_LIPO"; then |
20026 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
794e88e7 DWT |
20027 | else |
20028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20029 | for as_dir in $PATH | |
20030 | do | |
20031 | IFS=$as_save_IFS | |
20032 | test -z "$as_dir" && as_dir=. | |
20033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20035 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20037 | break 2 | |
20038 | fi | |
20039 | done | |
20040 | done | |
20041 | IFS=$as_save_IFS | |
20042 | ||
20043 | fi | |
20044 | fi | |
a243b558 JF |
20045 | _LIPO=$ac_cv_prog__LIPO |
20046 | if test -n "$_LIPO"; then | |
20047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
20048 | $as_echo "$_LIPO" >&6; } | |
794e88e7 DWT |
20049 | else |
20050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20051 | $as_echo "no" >&6; } | |
20052 | fi | |
20053 | ||
20054 | ||
a243b558 | 20055 | test -n "$_LIPO" && break |
794e88e7 DWT |
20056 | done |
20057 | fi | |
a243b558 JF |
20058 | if test -z "$_LIPO"; then |
20059 | ac_ct__LIPO=$_LIPO | |
20060 | for ac_prog in lipo | |
794e88e7 DWT |
20061 | do |
20062 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20063 | set dummy $ac_prog; ac_word=$2 | |
20064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20065 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20066 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : |
794e88e7 DWT |
20067 | $as_echo_n "(cached) " >&6 |
20068 | else | |
a243b558 JF |
20069 | if test -n "$ac_ct__LIPO"; then |
20070 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
794e88e7 DWT |
20071 | else |
20072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20073 | for as_dir in $PATH | |
20074 | do | |
20075 | IFS=$as_save_IFS | |
20076 | test -z "$as_dir" && as_dir=. | |
20077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20079 | ac_cv_prog_ac_ct__LIPO="$ac_prog" |
794e88e7 DWT |
20080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20081 | break 2 | |
20082 | fi | |
20083 | done | |
20084 | done | |
20085 | IFS=$as_save_IFS | |
20086 | ||
20087 | fi | |
20088 | fi | |
a243b558 JF |
20089 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO |
20090 | if test -n "$ac_ct__LIPO"; then | |
20091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
20092 | $as_echo "$ac_ct__LIPO" >&6; } | |
794e88e7 DWT |
20093 | else |
20094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20095 | $as_echo "no" >&6; } | |
20096 | fi | |
20097 | ||
20098 | ||
a243b558 | 20099 | test -n "$ac_ct__LIPO" && break |
794e88e7 DWT |
20100 | done |
20101 | ||
a243b558 JF |
20102 | if test "x$ac_ct__LIPO" = x; then |
20103 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
794e88e7 DWT |
20104 | else |
20105 | case $cross_compiling:$ac_tool_warned in | |
20106 | yes:) | |
20107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20108 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20109 | ac_tool_warned=yes ;; | |
e1cce270 | 20110 | esac |
a243b558 | 20111 | _LIPO=$ac_ct__LIPO |
794e88e7 DWT |
20112 | fi |
20113 | fi | |
20114 | ||
7eda51e0 | 20115 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20116 | for ac_prog in nm |
794e88e7 DWT |
20117 | do |
20118 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20119 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20121 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20122 | if ${ac_cv_prog__NM+:} false; then : |
794e88e7 DWT |
20123 | $as_echo_n "(cached) " >&6 |
20124 | else | |
a243b558 JF |
20125 | if test -n "$_NM"; then |
20126 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
794e88e7 DWT |
20127 | else |
20128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20129 | for as_dir in $PATH | |
20130 | do | |
20131 | IFS=$as_save_IFS | |
20132 | test -z "$as_dir" && as_dir=. | |
20133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20135 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20137 | break 2 | |
20138 | fi | |
20139 | done | |
20140 | done | |
20141 | IFS=$as_save_IFS | |
20142 | ||
20143 | fi | |
20144 | fi | |
a243b558 JF |
20145 | _NM=$ac_cv_prog__NM |
20146 | if test -n "$_NM"; then | |
20147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
20148 | $as_echo "$_NM" >&6; } | |
794e88e7 DWT |
20149 | else |
20150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20151 | $as_echo "no" >&6; } | |
20152 | fi | |
20153 | ||
20154 | ||
a243b558 | 20155 | test -n "$_NM" && break |
794e88e7 DWT |
20156 | done |
20157 | fi | |
a243b558 JF |
20158 | if test -z "$_NM"; then |
20159 | ac_ct__NM=$_NM | |
20160 | for ac_prog in nm | |
794e88e7 DWT |
20161 | do |
20162 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20163 | set dummy $ac_prog; ac_word=$2 | |
20164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20165 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20166 | if ${ac_cv_prog_ac_ct__NM+:} false; then : |
794e88e7 DWT |
20167 | $as_echo_n "(cached) " >&6 |
20168 | else | |
a243b558 JF |
20169 | if test -n "$ac_ct__NM"; then |
20170 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
794e88e7 DWT |
20171 | else |
20172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20173 | for as_dir in $PATH | |
20174 | do | |
20175 | IFS=$as_save_IFS | |
20176 | test -z "$as_dir" && as_dir=. | |
20177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20179 | ac_cv_prog_ac_ct__NM="$ac_prog" |
794e88e7 DWT |
20180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20181 | break 2 | |
20182 | fi | |
20183 | done | |
20184 | done | |
20185 | IFS=$as_save_IFS | |
20186 | ||
20187 | fi | |
20188 | fi | |
a243b558 JF |
20189 | ac_ct__NM=$ac_cv_prog_ac_ct__NM |
20190 | if test -n "$ac_ct__NM"; then | |
20191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
20192 | $as_echo "$ac_ct__NM" >&6; } | |
794e88e7 DWT |
20193 | else |
20194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20195 | $as_echo "no" >&6; } | |
20196 | fi | |
20197 | ||
20198 | ||
a243b558 | 20199 | test -n "$ac_ct__NM" && break |
794e88e7 DWT |
20200 | done |
20201 | ||
a243b558 JF |
20202 | if test "x$ac_ct__NM" = x; then |
20203 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
794e88e7 DWT |
20204 | else |
20205 | case $cross_compiling:$ac_tool_warned in | |
20206 | yes:) | |
20207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20209 | ac_tool_warned=yes ;; | |
20210 | esac | |
a243b558 | 20211 | _NM=$ac_ct__NM |
794e88e7 DWT |
20212 | fi |
20213 | fi | |
20214 | ||
7eda51e0 | 20215 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20216 | for ac_prog in otool |
794e88e7 DWT |
20217 | do |
20218 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20219 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20221 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20222 | if ${ac_cv_prog__OTOOL+:} false; then : |
794e88e7 DWT |
20223 | $as_echo_n "(cached) " >&6 |
20224 | else | |
a243b558 JF |
20225 | if test -n "$_OTOOL"; then |
20226 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20227 | else |
20228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20229 | for as_dir in $PATH | |
20230 | do | |
20231 | IFS=$as_save_IFS | |
20232 | test -z "$as_dir" && as_dir=. | |
20233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20235 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20237 | break 2 | |
20238 | fi | |
20239 | done | |
20240 | done | |
20241 | IFS=$as_save_IFS | |
20242 | ||
20243 | fi | |
20244 | fi | |
a243b558 JF |
20245 | _OTOOL=$ac_cv_prog__OTOOL |
20246 | if test -n "$_OTOOL"; then | |
20247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
20248 | $as_echo "$_OTOOL" >&6; } | |
794e88e7 DWT |
20249 | else |
20250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20251 | $as_echo "no" >&6; } | |
20252 | fi | |
20253 | ||
20254 | ||
a243b558 | 20255 | test -n "$_OTOOL" && break |
794e88e7 DWT |
20256 | done |
20257 | fi | |
a243b558 JF |
20258 | if test -z "$_OTOOL"; then |
20259 | ac_ct__OTOOL=$_OTOOL | |
20260 | for ac_prog in otool | |
794e88e7 DWT |
20261 | do |
20262 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20263 | set dummy $ac_prog; ac_word=$2 | |
20264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20265 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20266 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : |
794e88e7 DWT |
20267 | $as_echo_n "(cached) " >&6 |
20268 | else | |
a243b558 JF |
20269 | if test -n "$ac_ct__OTOOL"; then |
20270 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20271 | else |
20272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20273 | for as_dir in $PATH | |
20274 | do | |
20275 | IFS=$as_save_IFS | |
20276 | test -z "$as_dir" && as_dir=. | |
20277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20279 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" |
794e88e7 DWT |
20280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20281 | break 2 | |
20282 | fi | |
20283 | done | |
20284 | done | |
20285 | IFS=$as_save_IFS | |
20286 | ||
20287 | fi | |
20288 | fi | |
a243b558 JF |
20289 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL |
20290 | if test -n "$ac_ct__OTOOL"; then | |
20291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
20292 | $as_echo "$ac_ct__OTOOL" >&6; } | |
794e88e7 DWT |
20293 | else |
20294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20295 | $as_echo "no" >&6; } | |
20296 | fi | |
20297 | ||
20298 | ||
a243b558 | 20299 | test -n "$ac_ct__OTOOL" && break |
794e88e7 DWT |
20300 | done |
20301 | ||
a243b558 JF |
20302 | if test "x$ac_ct__OTOOL" = x; then |
20303 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
794e88e7 DWT |
20304 | else |
20305 | case $cross_compiling:$ac_tool_warned in | |
20306 | yes:) | |
20307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20309 | ac_tool_warned=yes ;; | |
20310 | esac | |
a243b558 | 20311 | _OTOOL=$ac_ct__OTOOL |
794e88e7 DWT |
20312 | fi |
20313 | fi | |
20314 | ||
7eda51e0 | 20315 | CY_ATTACH_GROUP=procmod |
794e88e7 | 20316 | |
7eda51e0 | 20317 | CY_MACH=1 |
e1cce270 DWT |
20318 | |
20319 | fi | |
20320 | ||
20321 | ||
7eda51e0 | 20322 | fi |
a243b558 JF |
20323 | if test "x$CY_MACH" = x1; then |
20324 | CY_MACH_TRUE= | |
20325 | CY_MACH_FALSE='#' | |
20326 | else | |
20327 | CY_MACH_TRUE='#' | |
20328 | CY_MACH_FALSE= | |
47aaa820 | 20329 | fi |
9c60689e | 20330 | |
66170b30 | 20331 | |
a243b558 JF |
20332 | ac_config_files="$ac_config_files Makefile" |
20333 | ||
9c60689e DWT |
20334 | cat >confcache <<\_ACEOF |
20335 | # This file is a shell script that caches the results of configure | |
20336 | # tests run on this system so they can be shared between configure | |
20337 | # scripts and configure runs, see configure's option --config-cache. | |
20338 | # It is not useful on other systems. If it contains results you don't | |
20339 | # want to keep, you may remove or edit it. | |
20340 | # | |
20341 | # config.status only pays attention to the cache file if you give it | |
20342 | # the --recheck option to rerun configure. | |
20343 | # | |
20344 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20345 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20346 | # following values. | |
20347 | ||
20348 | _ACEOF | |
20349 | ||
20350 | # The following way of writing the cache mishandles newlines in values, | |
20351 | # but we know of no workaround that is simple, portable, and efficient. | |
20352 | # So, we kill variables containing newlines. | |
20353 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20354 | # and sets the high bit in the cache file unless we assign to the vars. | |
20355 | ( | |
20356 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20357 | eval ac_val=\$$ac_var | |
20358 | case $ac_val in #( | |
20359 | *${as_nl}*) | |
20360 | case $ac_var in #( | |
20361 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
20362 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
20363 | esac | |
20364 | case $ac_var in #( | |
20365 | _ | IFS | as_nl) ;; #( | |
20366 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
20367 | *) { eval $ac_var=; unset $ac_var;} ;; | |
20368 | esac ;; | |
20369 | esac | |
20370 | done | |
20371 | ||
20372 | (set) 2>&1 | | |
20373 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20374 | *${as_nl}ac_space=\ *) | |
20375 | # `set' does not quote correctly, so add quotes: double-quote | |
20376 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
20377 | sed -n \ | |
20378 | "s/'/'\\\\''/g; | |
20379 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20380 | ;; #( | |
20381 | *) | |
20382 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20383 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20384 | ;; | |
20385 | esac | | |
20386 | sort | |
20387 | ) | | |
20388 | sed ' | |
20389 | /^ac_cv_env_/b end | |
20390 | t clear | |
20391 | :clear | |
20392 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20393 | t end | |
20394 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20395 | :end' >>confcache | |
20396 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20397 | if test -w "$cache_file"; then | |
ee134472 | 20398 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
20399 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
20400 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
20401 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
20402 | cat confcache >"$cache_file" | |
20403 | else | |
20404 | case $cache_file in #( | |
20405 | */* | ?:*) | |
20406 | mv -f confcache "$cache_file"$$ && | |
20407 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
20408 | *) | |
20409 | mv -f confcache "$cache_file" ;; | |
20410 | esac | |
20411 | fi | |
20412 | fi | |
9c60689e DWT |
20413 | else |
20414 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
20415 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20416 | fi | |
20417 | fi | |
20418 | rm -f confcache | |
20419 | ||
20420 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20421 | # Let make expand exec_prefix. | |
20422 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20423 | ||
296ee9a6 | 20424 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
20425 | |
20426 | ac_libobjs= | |
20427 | ac_ltlibobjs= | |
12833ad8 | 20428 | U= |
9c60689e DWT |
20429 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20430 | # 1. Remove the extension, and $U if already installed. | |
20431 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20432 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
20433 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20434 | # will be set to the directory where LIBOBJS objects are built. | |
20435 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20436 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
20437 | done | |
20438 | LIBOBJS=$ac_libobjs | |
20439 | ||
20440 | LTLIBOBJS=$ac_ltlibobjs | |
20441 | ||
20442 | ||
66170b30 JF |
20443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
20444 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
20445 | if test -n "$am_sleep_pid"; then | |
20446 | # Hide warnings about reused PIDs. | |
20447 | wait $am_sleep_pid 2>/dev/null | |
20448 | fi | |
20449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
20450 | $as_echo "done" >&6; } | |
20451 | if test -n "$EXEEXT"; then | |
20452 | am__EXEEXT_TRUE= | |
20453 | am__EXEEXT_FALSE='#' | |
20454 | else | |
20455 | am__EXEEXT_TRUE='#' | |
20456 | am__EXEEXT_FALSE= | |
20457 | fi | |
20458 | ||
babf7fe8 JF |
20459 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
20460 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
20461 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20462 | fi | |
66170b30 JF |
20463 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20464 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
20465 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20466 | fi | |
a93f15c0 JF |
20467 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20468 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
20469 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20470 | fi | |
66170b30 JF |
20471 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20472 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
20473 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20474 | fi | |
20475 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
20476 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
20477 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20478 | fi | |
a93f15c0 JF |
20479 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
20480 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
20481 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
20482 | fi | |
a243b558 JF |
20483 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
20484 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
20485 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20486 | fi | |
20487 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
20488 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
20489 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20490 | fi | |
20491 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
20492 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
20493 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20494 | fi | |
9c60689e | 20495 | |
ee134472 | 20496 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
20497 | ac_write_fail=0 |
20498 | ac_clean_files_save=$ac_clean_files | |
20499 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20500 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
20501 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20502 | as_write_fail=0 | |
20503 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
20504 | #! $SHELL | |
20505 | # Generated by $as_me. | |
20506 | # Run this file to recreate the current configuration. | |
20507 | # Compiler output produced by configure, useful for debugging | |
20508 | # configure, is in config.log if it exists. | |
20509 | ||
20510 | debug=false | |
20511 | ac_cs_recheck=false | |
20512 | ac_cs_silent=false | |
20513 | ||
20514 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20515 | export SHELL | |
20516 | _ASEOF | |
20517 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
20518 | ## -------------------- ## | |
20519 | ## M4sh Initialization. ## | |
20520 | ## -------------------- ## | |
20521 | ||
20522 | # Be more Bourne compatible | |
20523 | DUALCASE=1; export DUALCASE # for MKS sh | |
20524 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20525 | emulate sh | |
20526 | NULLCMD=: | |
20527 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
20528 | # is contrary to our usage. Disable this feature. | |
20529 | alias -g '${1+"$@"}'='"$@"' | |
20530 | setopt NO_GLOB_SUBST | |
20531 | else | |
20532 | case `(set -o) 2>/dev/null` in #( | |
20533 | *posix*) : | |
20534 | set -o posix ;; #( | |
20535 | *) : | |
20536 | ;; | |
20537 | esac | |
20538 | fi | |
20539 | ||
20540 | ||
20541 | as_nl=' | |
20542 | ' | |
20543 | export as_nl | |
20544 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20545 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20546 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20547 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20548 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
20549 | # but without wasting forks for bash or zsh. | |
20550 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
20551 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20552 | as_echo='print -r --' | |
20553 | as_echo_n='print -rn --' | |
20554 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20555 | as_echo='printf %s\n' | |
20556 | as_echo_n='printf %s' | |
20557 | else | |
20558 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20559 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20560 | as_echo_n='/usr/ucb/echo -n' | |
20561 | else | |
20562 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20563 | as_echo_n_body='eval | |
20564 | arg=$1; | |
20565 | case $arg in #( | |
20566 | *"$as_nl"*) | |
20567 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20568 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20569 | esac; | |
20570 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20571 | ' | |
20572 | export as_echo_n_body | |
20573 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
20574 | fi | |
20575 | export as_echo_body | |
20576 | as_echo='sh -c $as_echo_body as_echo' | |
20577 | fi | |
20578 | ||
20579 | # The user is always right. | |
20580 | if test "${PATH_SEPARATOR+set}" != set; then | |
20581 | PATH_SEPARATOR=: | |
20582 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20583 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20584 | PATH_SEPARATOR=';' | |
20585 | } | |
20586 | fi | |
20587 | ||
20588 | ||
20589 | # IFS | |
20590 | # We need space, tab and new line, in precisely that order. Quoting is | |
20591 | # there to prevent editors from complaining about space-tab. | |
20592 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20593 | # splitting by setting IFS to empty value.) | |
20594 | IFS=" "" $as_nl" | |
20595 | ||
20596 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 20597 | as_myself= |
9c60689e DWT |
20598 | case $0 in #(( |
20599 | *[\\/]* ) as_myself=$0 ;; | |
20600 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20601 | for as_dir in $PATH | |
20602 | do | |
20603 | IFS=$as_save_IFS | |
20604 | test -z "$as_dir" && as_dir=. | |
20605 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20606 | done | |
20607 | IFS=$as_save_IFS | |
20608 | ||
20609 | ;; | |
20610 | esac | |
20611 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20612 | # in which case we are not to be found in the path. | |
20613 | if test "x$as_myself" = x; then | |
20614 | as_myself=$0 | |
20615 | fi | |
20616 | if test ! -f "$as_myself"; then | |
20617 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20618 | exit 1 | |
20619 | fi | |
20620 | ||
20621 | # Unset variables that we do not need and which cause bugs (e.g. in | |
20622 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
20623 | # suppresses any "Segmentation fault" message there. '((' could | |
20624 | # trigger a bug in pdksh 5.2.14. | |
20625 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
20626 | do eval test x\${$as_var+set} = xset \ | |
20627 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
20628 | done | |
20629 | PS1='$ ' | |
20630 | PS2='> ' | |
20631 | PS4='+ ' | |
20632 | ||
20633 | # NLS nuisances. | |
20634 | LC_ALL=C | |
20635 | export LC_ALL | |
20636 | LANGUAGE=C | |
20637 | export LANGUAGE | |
20638 | ||
20639 | # CDPATH. | |
20640 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20641 | ||
20642 | ||
12833ad8 JF |
20643 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
20644 | # ---------------------------------------- | |
9c60689e DWT |
20645 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
20646 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 20647 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
20648 | as_fn_error () |
20649 | { | |
12833ad8 JF |
20650 | as_status=$1; test $as_status -eq 0 && as_status=1 |
20651 | if test "$4"; then | |
20652 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
20653 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 20654 | fi |
12833ad8 | 20655 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
20656 | as_fn_exit $as_status |
20657 | } # as_fn_error | |
20658 | ||
20659 | ||
20660 | # as_fn_set_status STATUS | |
20661 | # ----------------------- | |
20662 | # Set $? to STATUS, without forking. | |
20663 | as_fn_set_status () | |
20664 | { | |
20665 | return $1 | |
20666 | } # as_fn_set_status | |
20667 | ||
20668 | # as_fn_exit STATUS | |
20669 | # ----------------- | |
20670 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20671 | as_fn_exit () | |
20672 | { | |
20673 | set +e | |
20674 | as_fn_set_status $1 | |
20675 | exit $1 | |
20676 | } # as_fn_exit | |
20677 | ||
20678 | # as_fn_unset VAR | |
20679 | # --------------- | |
20680 | # Portably unset VAR. | |
20681 | as_fn_unset () | |
20682 | { | |
20683 | { eval $1=; unset $1;} | |
20684 | } | |
20685 | as_unset=as_fn_unset | |
20686 | # as_fn_append VAR VALUE | |
20687 | # ---------------------- | |
20688 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20689 | # advantage of any shell optimizations that allow amortized linear growth over | |
20690 | # repeated appends, instead of the typical quadratic growth present in naive | |
20691 | # implementations. | |
20692 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20693 | eval 'as_fn_append () | |
20694 | { | |
20695 | eval $1+=\$2 | |
20696 | }' | |
20697 | else | |
20698 | as_fn_append () | |
20699 | { | |
20700 | eval $1=\$$1\$2 | |
20701 | } | |
20702 | fi # as_fn_append | |
20703 | ||
20704 | # as_fn_arith ARG... | |
20705 | # ------------------ | |
20706 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20707 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20708 | # must be portable across $(()) and expr. | |
20709 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20710 | eval 'as_fn_arith () | |
20711 | { | |
20712 | as_val=$(( $* )) | |
20713 | }' | |
20714 | else | |
20715 | as_fn_arith () | |
20716 | { | |
20717 | as_val=`expr "$@" || test $? -eq 1` | |
20718 | } | |
20719 | fi # as_fn_arith | |
20720 | ||
20721 | ||
20722 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20723 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20724 | as_expr=expr | |
20725 | else | |
20726 | as_expr=false | |
20727 | fi | |
20728 | ||
20729 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20730 | as_basename=basename | |
20731 | else | |
20732 | as_basename=false | |
20733 | fi | |
20734 | ||
20735 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20736 | as_dirname=dirname | |
20737 | else | |
20738 | as_dirname=false | |
20739 | fi | |
20740 | ||
20741 | as_me=`$as_basename -- "$0" || | |
20742 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20743 | X"$0" : 'X\(//\)$' \| \ | |
20744 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20745 | $as_echo X/"$0" | | |
20746 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20747 | s//\1/ | |
20748 | q | |
20749 | } | |
20750 | /^X\/\(\/\/\)$/{ | |
20751 | s//\1/ | |
20752 | q | |
20753 | } | |
20754 | /^X\/\(\/\).*/{ | |
20755 | s//\1/ | |
20756 | q | |
20757 | } | |
20758 | s/.*/./; q'` | |
20759 | ||
20760 | # Avoid depending upon Character Ranges. | |
20761 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20762 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20763 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20764 | as_cr_digits='0123456789' | |
20765 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20766 | ||
20767 | ECHO_C= ECHO_N= ECHO_T= | |
20768 | case `echo -n x` in #((((( | |
20769 | -n*) | |
20770 | case `echo 'xy\c'` in | |
20771 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20772 | xy) ECHO_C='\c';; | |
20773 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20774 | ECHO_T=' ';; | |
20775 | esac;; | |
20776 | *) | |
20777 | ECHO_N='-n';; | |
20778 | esac | |
20779 | ||
20780 | rm -f conf$$ conf$$.exe conf$$.file | |
20781 | if test -d conf$$.dir; then | |
20782 | rm -f conf$$.dir/conf$$.file | |
20783 | else | |
20784 | rm -f conf$$.dir | |
20785 | mkdir conf$$.dir 2>/dev/null | |
20786 | fi | |
20787 | if (echo >conf$$.file) 2>/dev/null; then | |
20788 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20789 | as_ln_s='ln -s' | |
20790 | # ... but there are two gotchas: | |
20791 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20792 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 20793 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 20794 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 20795 | as_ln_s='cp -pR' |
9c60689e DWT |
20796 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20797 | as_ln_s=ln | |
20798 | else | |
53ba6704 | 20799 | as_ln_s='cp -pR' |
9c60689e DWT |
20800 | fi |
20801 | else | |
53ba6704 | 20802 | as_ln_s='cp -pR' |
9c60689e DWT |
20803 | fi |
20804 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20805 | rmdir conf$$.dir 2>/dev/null | |
20806 | ||
20807 | ||
20808 | # as_fn_mkdir_p | |
20809 | # ------------- | |
20810 | # Create "$as_dir" as a directory, including parents if necessary. | |
20811 | as_fn_mkdir_p () | |
20812 | { | |
20813 | ||
20814 | case $as_dir in #( | |
20815 | -*) as_dir=./$as_dir;; | |
20816 | esac | |
20817 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20818 | as_dirs= | |
20819 | while :; do | |
20820 | case $as_dir in #( | |
20821 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20822 | *) as_qdir=$as_dir;; | |
20823 | esac | |
20824 | as_dirs="'$as_qdir' $as_dirs" | |
20825 | as_dir=`$as_dirname -- "$as_dir" || | |
20826 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20827 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20828 | X"$as_dir" : 'X\(//\)$' \| \ | |
20829 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20830 | $as_echo X"$as_dir" | | |
20831 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20832 | s//\1/ | |
20833 | q | |
20834 | } | |
20835 | /^X\(\/\/\)[^/].*/{ | |
20836 | s//\1/ | |
20837 | q | |
20838 | } | |
20839 | /^X\(\/\/\)$/{ | |
20840 | s//\1/ | |
20841 | q | |
20842 | } | |
20843 | /^X\(\/\).*/{ | |
20844 | s//\1/ | |
20845 | q | |
20846 | } | |
20847 | s/.*/./; q'` | |
20848 | test -d "$as_dir" && break | |
20849 | done | |
20850 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 20851 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
20852 | |
20853 | ||
20854 | } # as_fn_mkdir_p | |
20855 | if mkdir -p . 2>/dev/null; then | |
20856 | as_mkdir_p='mkdir -p "$as_dir"' | |
20857 | else | |
20858 | test -d ./-p && rmdir ./-p | |
20859 | as_mkdir_p=false | |
20860 | fi | |
20861 | ||
53ba6704 JF |
20862 | |
20863 | # as_fn_executable_p FILE | |
20864 | # ----------------------- | |
20865 | # Test if FILE is an executable regular file. | |
20866 | as_fn_executable_p () | |
20867 | { | |
20868 | test -f "$1" && test -x "$1" | |
20869 | } # as_fn_executable_p | |
20870 | as_test_x='test -x' | |
20871 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
20872 | |
20873 | # Sed expression to map a string onto a valid CPP name. | |
20874 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20875 | ||
20876 | # Sed expression to map a string onto a valid variable name. | |
20877 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20878 | ||
20879 | ||
20880 | exec 6>&1 | |
20881 | ## ----------------------------------- ## | |
20882 | ## Main body of $CONFIG_STATUS script. ## | |
20883 | ## ----------------------------------- ## | |
20884 | _ASEOF | |
20885 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20886 | ||
20887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20888 | # Save the log message, to keep $0 and so on meaningful, and to | |
20889 | # report actual input values of CONFIG_FILES etc. instead of their | |
20890 | # values after options handling. | |
20891 | ac_log=" | |
20892 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 20893 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
20894 | |
20895 | CONFIG_FILES = $CONFIG_FILES | |
20896 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20897 | CONFIG_LINKS = $CONFIG_LINKS | |
20898 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20899 | $ $0 $@ | |
20900 | ||
20901 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20902 | " | |
20903 | ||
20904 | _ACEOF | |
20905 | ||
20906 | case $ac_config_files in *" | |
20907 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20908 | esac | |
20909 | ||
296ee9a6 JF |
20910 | case $ac_config_headers in *" |
20911 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20912 | esac | |
9c60689e DWT |
20913 | |
20914 | ||
20915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20916 | # Files that config.status was made for. | |
20917 | config_files="$ac_config_files" | |
296ee9a6 | 20918 | config_headers="$ac_config_headers" |
9c60689e DWT |
20919 | config_commands="$ac_config_commands" |
20920 | ||
20921 | _ACEOF | |
20922 | ||
20923 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20924 | ac_cs_usage="\ | |
20925 | \`$as_me' instantiates files and other configuration actions | |
20926 | from templates according to the current configuration. Unless the files | |
20927 | and actions are specified as TAGs, all are instantiated by default. | |
20928 | ||
20929 | Usage: $0 [OPTION]... [TAG]... | |
20930 | ||
20931 | -h, --help print this help, then exit | |
20932 | -V, --version print version number and configuration settings, then exit | |
20933 | --config print configuration, then exit | |
20934 | -q, --quiet, --silent | |
20935 | do not print progress messages | |
20936 | -d, --debug don't remove temporary files | |
20937 | --recheck update $as_me by reconfiguring in the same conditions | |
20938 | --file=FILE[:TEMPLATE] | |
20939 | instantiate the configuration file FILE | |
296ee9a6 JF |
20940 | --header=FILE[:TEMPLATE] |
20941 | instantiate the configuration header FILE | |
9c60689e DWT |
20942 | |
20943 | Configuration files: | |
20944 | $config_files | |
20945 | ||
296ee9a6 JF |
20946 | Configuration headers: |
20947 | $config_headers | |
20948 | ||
9c60689e DWT |
20949 | Configuration commands: |
20950 | $config_commands | |
20951 | ||
20952 | Report bugs to <saurik@saurik.com>. | |
20953 | Cycript home page: <http://www.cycript.org/>." | |
20954 | ||
20955 | _ACEOF | |
20956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20957 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
20958 | ac_cs_version="\\ | |
20959 | Cycript config.status 0.9 | |
53ba6704 | 20960 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
20961 | with options \\"\$ac_cs_config\\" |
20962 | ||
53ba6704 | 20963 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
20964 | This config.status script is free software; the Free Software Foundation |
20965 | gives unlimited permission to copy, distribute and modify it." | |
20966 | ||
20967 | ac_pwd='$ac_pwd' | |
20968 | srcdir='$srcdir' | |
20969 | INSTALL='$INSTALL' | |
66170b30 JF |
20970 | MKDIR_P='$MKDIR_P' |
20971 | AWK='$AWK' | |
9c60689e DWT |
20972 | test -n "\$AWK" || AWK=awk |
20973 | _ACEOF | |
20974 | ||
20975 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20976 | # The default lists apply if the user does not specify any file. | |
20977 | ac_need_defaults=: | |
20978 | while test $# != 0 | |
20979 | do | |
20980 | case $1 in | |
12833ad8 | 20981 | --*=?*) |
9c60689e DWT |
20982 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20983 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20984 | ac_shift=: | |
20985 | ;; | |
12833ad8 JF |
20986 | --*=) |
20987 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20988 | ac_optarg= | |
20989 | ac_shift=: | |
20990 | ;; | |
9c60689e DWT |
20991 | *) |
20992 | ac_option=$1 | |
20993 | ac_optarg=$2 | |
20994 | ac_shift=shift | |
20995 | ;; | |
20996 | esac | |
20997 | ||
20998 | case $ac_option in | |
20999 | # Handling of the options. | |
21000 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21001 | ac_cs_recheck=: ;; | |
21002 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21003 | $as_echo "$ac_cs_version"; exit ;; | |
21004 | --config | --confi | --conf | --con | --co | --c ) | |
21005 | $as_echo "$ac_cs_config"; exit ;; | |
21006 | --debug | --debu | --deb | --de | --d | -d ) | |
21007 | debug=: ;; | |
21008 | --file | --fil | --fi | --f ) | |
21009 | $ac_shift | |
21010 | case $ac_optarg in | |
21011 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 21012 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
21013 | esac |
21014 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
21015 | ac_need_defaults=false;; | |
296ee9a6 JF |
21016 | --header | --heade | --head | --hea ) |
21017 | $ac_shift | |
21018 | case $ac_optarg in | |
21019 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21020 | esac | |
21021 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
21022 | ac_need_defaults=false;; | |
21023 | --he | --h) | |
21024 | # Conflict between --help and --header | |
21025 | as_fn_error $? "ambiguous option: \`$1' | |
21026 | Try \`$0 --help' for more information.";; | |
21027 | --help | --hel | -h ) | |
9c60689e DWT |
21028 | $as_echo "$ac_cs_usage"; exit ;; |
21029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21030 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21031 | ac_cs_silent=: ;; | |
21032 | ||
21033 | # This is an error. | |
12833ad8 | 21034 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
21035 | Try \`$0 --help' for more information." ;; |
21036 | ||
21037 | *) as_fn_append ac_config_targets " $1" | |
21038 | ac_need_defaults=false ;; | |
21039 | ||
21040 | esac | |
21041 | shift | |
21042 | done | |
21043 | ||
21044 | ac_configure_extra_args= | |
21045 | ||
21046 | if $ac_cs_silent; then | |
21047 | exec 6>/dev/null | |
21048 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21049 | fi | |
21050 | ||
21051 | _ACEOF | |
21052 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21053 | if \$ac_cs_recheck; then | |
53ba6704 | 21054 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
21055 | shift |
21056 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21057 | CONFIG_SHELL='$SHELL' | |
21058 | export CONFIG_SHELL | |
21059 | exec "\$@" | |
21060 | fi | |
21061 | ||
21062 | _ACEOF | |
21063 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21064 | exec 5>>config.log | |
21065 | { | |
21066 | echo | |
21067 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21068 | ## Running $as_me. ## | |
21069 | _ASBOX | |
21070 | $as_echo "$ac_log" | |
21071 | } >&5 | |
21072 | ||
21073 | _ACEOF | |
21074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21075 | # | |
21076 | # INIT-COMMANDS | |
21077 | # | |
66170b30 | 21078 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
21079 | |
21080 | ||
21081 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21082 | # if CDPATH is set. | |
21083 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21084 | ||
21085 | sed_quote_subst='$sed_quote_subst' | |
21086 | double_quote_subst='$double_quote_subst' | |
21087 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
21088 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
21089 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
21090 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
21091 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
21092 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
21093 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
21094 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
21095 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 21096 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
21097 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
21098 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
21099 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
21100 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
21101 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
21102 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
21103 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
21104 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
21105 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
21106 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
21107 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
21108 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
21109 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
21110 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
21111 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
21112 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
21113 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
21114 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
21115 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
21116 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
21117 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21118 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21119 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
21120 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
21121 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
21122 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
21123 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
21124 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
21125 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
21126 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
21127 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
21128 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
21129 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
21130 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
21131 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
21132 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
21133 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21134 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21135 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21136 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
21137 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
21138 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
21139 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
21140 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
21141 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
21142 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
21143 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
21144 | 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"`' | |
21145 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21146 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
21147 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
21148 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
21149 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
21150 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
21151 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
21152 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
21153 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
21154 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
21155 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
21156 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
21157 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
21158 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
21159 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
21160 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
21161 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
21162 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
21163 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21164 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
21165 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
21166 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21167 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21168 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
21169 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
21170 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21171 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21172 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21173 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
21174 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21175 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
21176 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21177 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21178 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21179 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
21180 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
21181 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
21182 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
21183 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21184 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
21185 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
21186 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
21187 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
21188 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
21189 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
21190 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
21191 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
21192 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
21193 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21194 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
21195 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
21196 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
21197 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
21198 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
21199 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21200 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
21201 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
21202 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
21203 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
21204 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
21205 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21206 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21207 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
21208 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
21209 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
21210 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
21211 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
21212 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
21213 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
21214 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
21215 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
21216 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
21217 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
21218 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
21219 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
21220 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
21221 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
21222 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
21223 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
21224 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
21225 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21226 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21227 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21228 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
21229 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
21230 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21231 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
21232 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
21233 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
21234 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
21235 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
21236 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
21237 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21238 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21239 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
21240 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21241 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21242 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21243 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21244 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21245 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21246 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
21247 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21248 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21249 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21250 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
21251 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
21252 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
21253 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
21254 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
21255 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
21256 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
21257 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
21258 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
21259 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21260 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21261 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21262 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21263 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21264 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21265 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
21266 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
21267 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21268 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21269 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21270 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21271 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
21272 | |
21273 | LTCC='$LTCC' | |
21274 | LTCFLAGS='$LTCFLAGS' | |
21275 | compiler='$compiler_DEFAULT' | |
21276 | ||
ee134472 JF |
21277 | # A function that is used when there is no print builtin or printf. |
21278 | func_fallback_echo () | |
21279 | { | |
21280 | eval 'cat <<_LTECHO_EOF | |
21281 | \$1 | |
21282 | _LTECHO_EOF' | |
21283 | } | |
21284 | ||
9c60689e | 21285 | # Quote evaled strings. |
ee134472 JF |
21286 | for var in SHELL \ |
21287 | ECHO \ | |
53ba6704 | 21288 | PATH_SEPARATOR \ |
ee134472 | 21289 | SED \ |
9c60689e DWT |
21290 | GREP \ |
21291 | EGREP \ | |
21292 | FGREP \ | |
21293 | LD \ | |
21294 | NM \ | |
21295 | LN_S \ | |
21296 | lt_SP2NL \ | |
21297 | lt_NL2SP \ | |
21298 | reload_flag \ | |
21299 | OBJDUMP \ | |
21300 | deplibs_check_method \ | |
21301 | file_magic_cmd \ | |
ee134472 JF |
21302 | file_magic_glob \ |
21303 | want_nocaseglob \ | |
21304 | DLLTOOL \ | |
21305 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
21306 | AR \ |
21307 | AR_FLAGS \ | |
ee134472 | 21308 | archiver_list_spec \ |
9c60689e DWT |
21309 | STRIP \ |
21310 | RANLIB \ | |
21311 | CC \ | |
21312 | CFLAGS \ | |
21313 | compiler \ | |
21314 | lt_cv_sys_global_symbol_pipe \ | |
21315 | lt_cv_sys_global_symbol_to_cdecl \ | |
21316 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21317 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
ee134472 | 21318 | nm_file_list_spec \ |
9c60689e | 21319 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 21320 | lt_prog_compiler_pic \ |
ee134472 | 21321 | lt_prog_compiler_wl \ |
9c60689e DWT |
21322 | lt_prog_compiler_static \ |
21323 | lt_cv_prog_compiler_c_o \ | |
21324 | need_locks \ | |
ee134472 | 21325 | MANIFEST_TOOL \ |
9c60689e DWT |
21326 | DSYMUTIL \ |
21327 | NMEDIT \ | |
21328 | LIPO \ | |
21329 | OTOOL \ | |
21330 | OTOOL64 \ | |
21331 | shrext_cmds \ | |
21332 | export_dynamic_flag_spec \ | |
21333 | whole_archive_flag_spec \ | |
21334 | compiler_needs_object \ | |
21335 | with_gnu_ld \ | |
21336 | allow_undefined_flag \ | |
21337 | no_undefined_flag \ | |
21338 | hardcode_libdir_flag_spec \ | |
9c60689e | 21339 | hardcode_libdir_separator \ |
9c60689e DWT |
21340 | exclude_expsyms \ |
21341 | include_expsyms \ | |
21342 | file_list_spec \ | |
21343 | variables_saved_for_relink \ | |
21344 | libname_spec \ | |
21345 | library_names_spec \ | |
21346 | soname_spec \ | |
ee134472 | 21347 | install_override_mode \ |
9c60689e DWT |
21348 | finish_eval \ |
21349 | old_striplib \ | |
21350 | striplib \ | |
21351 | compiler_lib_search_dirs \ | |
21352 | predep_objects \ | |
21353 | postdep_objects \ | |
21354 | predeps \ | |
21355 | postdeps \ | |
21356 | compiler_lib_search_path \ | |
21357 | LD_CXX \ | |
ee134472 | 21358 | reload_flag_CXX \ |
9c60689e DWT |
21359 | compiler_CXX \ |
21360 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 21361 | lt_prog_compiler_pic_CXX \ |
ee134472 | 21362 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
21363 | lt_prog_compiler_static_CXX \ |
21364 | lt_cv_prog_compiler_c_o_CXX \ | |
21365 | export_dynamic_flag_spec_CXX \ | |
21366 | whole_archive_flag_spec_CXX \ | |
21367 | compiler_needs_object_CXX \ | |
21368 | with_gnu_ld_CXX \ | |
21369 | allow_undefined_flag_CXX \ | |
21370 | no_undefined_flag_CXX \ | |
21371 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 21372 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
21373 | exclude_expsyms_CXX \ |
21374 | include_expsyms_CXX \ | |
21375 | file_list_spec_CXX \ | |
21376 | compiler_lib_search_dirs_CXX \ | |
21377 | predep_objects_CXX \ | |
21378 | postdep_objects_CXX \ | |
21379 | predeps_CXX \ | |
21380 | postdeps_CXX \ | |
21381 | compiler_lib_search_path_CXX; do | |
ee134472 | 21382 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 21383 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21384 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21385 | ;; |
21386 | *) | |
21387 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21388 | ;; | |
21389 | esac | |
21390 | done | |
21391 | ||
21392 | # Double-quote double-evaled strings. | |
21393 | for var in reload_cmds \ | |
21394 | old_postinstall_cmds \ | |
21395 | old_postuninstall_cmds \ | |
21396 | old_archive_cmds \ | |
21397 | extract_expsyms_cmds \ | |
21398 | old_archive_from_new_cmds \ | |
21399 | old_archive_from_expsyms_cmds \ | |
21400 | archive_cmds \ | |
21401 | archive_expsym_cmds \ | |
21402 | module_cmds \ | |
21403 | module_expsym_cmds \ | |
21404 | export_symbols_cmds \ | |
21405 | prelink_cmds \ | |
ee134472 | 21406 | postlink_cmds \ |
9c60689e DWT |
21407 | postinstall_cmds \ |
21408 | postuninstall_cmds \ | |
21409 | finish_cmds \ | |
21410 | sys_lib_search_path_spec \ | |
21411 | sys_lib_dlsearch_path_spec \ | |
ee134472 | 21412 | reload_cmds_CXX \ |
9c60689e DWT |
21413 | old_archive_cmds_CXX \ |
21414 | old_archive_from_new_cmds_CXX \ | |
21415 | old_archive_from_expsyms_cmds_CXX \ | |
21416 | archive_cmds_CXX \ | |
21417 | archive_expsym_cmds_CXX \ | |
21418 | module_cmds_CXX \ | |
21419 | module_expsym_cmds_CXX \ | |
21420 | export_symbols_cmds_CXX \ | |
ee134472 JF |
21421 | prelink_cmds_CXX \ |
21422 | postlink_cmds_CXX; do | |
21423 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 21424 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21425 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21426 | ;; |
21427 | *) | |
21428 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21429 | ;; | |
21430 | esac | |
21431 | done | |
21432 | ||
9c60689e DWT |
21433 | ac_aux_dir='$ac_aux_dir' |
21434 | xsi_shell='$xsi_shell' | |
21435 | lt_shell_append='$lt_shell_append' | |
21436 | ||
21437 | # See if we are running on zsh, and set the options which allow our | |
21438 | # commands through without removal of \ escapes INIT. | |
21439 | if test -n "\${ZSH_VERSION+set}" ; then | |
21440 | setopt NO_GLOB_SUBST | |
21441 | fi | |
21442 | ||
21443 | ||
21444 | PACKAGE='$PACKAGE' | |
21445 | VERSION='$VERSION' | |
21446 | TIMESTAMP='$TIMESTAMP' | |
21447 | RM='$RM' | |
21448 | ofile='$ofile' | |
21449 | ||
21450 | ||
21451 | ||
21452 | ||
21453 | ||
21454 | ||
21455 | _ACEOF | |
21456 | ||
21457 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21458 | ||
21459 | # Handling of arguments. | |
21460 | for ac_config_target in $ac_config_targets | |
21461 | do | |
21462 | case $ac_config_target in | |
296ee9a6 | 21463 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 21464 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 21465 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 21466 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 21467 | |
ee134472 | 21468 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
21469 | esac |
21470 | done | |
21471 | ||
21472 | ||
21473 | # If the user did not use the arguments to specify the items to instantiate, | |
21474 | # then the envvar interface is used. Set only those that are not. | |
21475 | # We use the long form for the default assignment because of an extremely | |
21476 | # bizarre bug on SunOS 4.1.3. | |
21477 | if $ac_need_defaults; then | |
21478 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 21479 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
21480 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21481 | fi | |
21482 | ||
21483 | # Have a temporary directory for convenience. Make it in the build tree | |
21484 | # simply because there is no reason against having it here, and in addition, | |
21485 | # creating and moving files from /tmp can sometimes cause problems. | |
21486 | # Hook for its removal unless debugging. | |
21487 | # Note that there is a small window in which the directory will not be cleaned: | |
21488 | # after its creation but before its name has been assigned to `$tmp'. | |
21489 | $debug || | |
21490 | { | |
ee134472 | 21491 | tmp= ac_tmp= |
9c60689e | 21492 | trap 'exit_status=$? |
ee134472 JF |
21493 | : "${ac_tmp:=$tmp}" |
21494 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
21495 | ' 0 |
21496 | trap 'as_fn_exit 1' 1 2 13 15 | |
21497 | } | |
21498 | # Create a (secure) tmp directory for tmp files. | |
21499 | ||
21500 | { | |
21501 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 21502 | test -d "$tmp" |
9c60689e DWT |
21503 | } || |
21504 | { | |
21505 | tmp=./conf$$-$RANDOM | |
21506 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 21507 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 21508 | ac_tmp=$tmp |
9c60689e DWT |
21509 | |
21510 | # Set up the scripts for CONFIG_FILES section. | |
21511 | # No need to generate them if there are no CONFIG_FILES. | |
21512 | # This happens for instance with `./config.status config.h'. | |
21513 | if test -n "$CONFIG_FILES"; then | |
21514 | ||
21515 | ||
21516 | ac_cr=`echo X | tr X '\015'` | |
21517 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
21518 | # But we know of no other shell where ac_cr would be empty at this | |
21519 | # point, so we can use a bashism as a fallback. | |
21520 | if test "x$ac_cr" = x; then | |
21521 | eval ac_cr=\$\'\\r\' | |
21522 | fi | |
21523 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
21524 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 21525 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
21526 | else |
21527 | ac_cs_awk_cr=$ac_cr | |
21528 | fi | |
21529 | ||
ee134472 | 21530 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
21531 | _ACEOF |
21532 | ||
21533 | ||
21534 | { | |
21535 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
21536 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
21537 | echo "_ACEOF" | |
21538 | } >conf$$subs.sh || | |
12833ad8 JF |
21539 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
21540 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
21541 | ac_delim='%!_!# ' |
21542 | for ac_last_try in false false false false false :; do | |
21543 | . ./conf$$subs.sh || | |
12833ad8 | 21544 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21545 | |
21546 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
21547 | if test $ac_delim_n = $ac_delim_num; then | |
21548 | break | |
21549 | elif $ac_last_try; then | |
12833ad8 | 21550 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21551 | else |
21552 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21553 | fi | |
21554 | done | |
21555 | rm -f conf$$subs.sh | |
21556 | ||
21557 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 21558 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
21559 | _ACEOF |
21560 | sed -n ' | |
21561 | h | |
21562 | s/^/S["/; s/!.*/"]=/ | |
21563 | p | |
21564 | g | |
21565 | s/^[^!]*!// | |
21566 | :repl | |
21567 | t repl | |
21568 | s/'"$ac_delim"'$// | |
21569 | t delim | |
21570 | :nl | |
21571 | h | |
21572 | s/\(.\{148\}\)..*/\1/ | |
21573 | t more1 | |
21574 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
21575 | p | |
21576 | n | |
21577 | b repl | |
21578 | :more1 | |
21579 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21580 | p | |
21581 | g | |
21582 | s/.\{148\}// | |
21583 | t nl | |
21584 | :delim | |
21585 | h | |
21586 | s/\(.\{148\}\)..*/\1/ | |
21587 | t more2 | |
21588 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
21589 | p | |
21590 | b | |
21591 | :more2 | |
21592 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21593 | p | |
21594 | g | |
21595 | s/.\{148\}// | |
21596 | t delim | |
21597 | ' <conf$$subs.awk | sed ' | |
21598 | /^[^""]/{ | |
21599 | N | |
21600 | s/\n// | |
21601 | } | |
21602 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
21603 | rm -f conf$$subs.awk | |
21604 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21605 | _ACAWK | |
ee134472 | 21606 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
21607 | for (key in S) S_is_set[key] = 1 |
21608 | FS = "\a" | |
21609 | ||
21610 | } | |
21611 | { | |
21612 | line = $ 0 | |
21613 | nfields = split(line, field, "@") | |
21614 | substed = 0 | |
21615 | len = length(field[1]) | |
21616 | for (i = 2; i < nfields; i++) { | |
21617 | key = field[i] | |
21618 | keylen = length(key) | |
21619 | if (S_is_set[key]) { | |
21620 | value = S[key] | |
21621 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
21622 | len += length(value) + length(field[++i]) | |
21623 | substed = 1 | |
21624 | } else | |
21625 | len += 1 + keylen | |
21626 | } | |
21627 | ||
21628 | print line | |
21629 | } | |
21630 | ||
21631 | _ACAWK | |
21632 | _ACEOF | |
21633 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21634 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
21635 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
21636 | else | |
21637 | cat | |
ee134472 | 21638 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 21639 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
21640 | _ACEOF |
21641 | ||
12833ad8 JF |
21642 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
21643 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
21644 | # trailing colons and then remove the whole line if VPATH becomes empty |
21645 | # (actually we leave an empty line to preserve line numbers). | |
21646 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
21647 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
21648 | h | |
21649 | s/// | |
21650 | s/^/:/ | |
21651 | s/[ ]*$/:/ | |
21652 | s/:\$(srcdir):/:/g | |
21653 | s/:\${srcdir}:/:/g | |
21654 | s/:@srcdir@:/:/g | |
21655 | s/^:*// | |
9c60689e | 21656 | s/:*$// |
12833ad8 JF |
21657 | x |
21658 | s/\(=[ ]*\).*/\1/ | |
21659 | G | |
21660 | s/\n// | |
9c60689e DWT |
21661 | s/^[^=]*=[ ]*$// |
21662 | }' | |
21663 | fi | |
21664 | ||
21665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21666 | fi # test -n "$CONFIG_FILES" | |
21667 | ||
296ee9a6 JF |
21668 | # Set up the scripts for CONFIG_HEADERS section. |
21669 | # No need to generate them if there are no CONFIG_HEADERS. | |
21670 | # This happens for instance with `./config.status Makefile'. | |
21671 | if test -n "$CONFIG_HEADERS"; then | |
21672 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
21673 | BEGIN { | |
21674 | _ACEOF | |
21675 | ||
21676 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
21677 | # here-document in config.status, that substitutes the proper values into | |
21678 | # config.h.in to produce config.h. | |
21679 | ||
21680 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
21681 | # handling of long lines. | |
21682 | ac_delim='%!_!# ' | |
21683 | for ac_last_try in false false :; do | |
21684 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
21685 | if test -z "$ac_tt"; then | |
21686 | break | |
21687 | elif $ac_last_try; then | |
21688 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
21689 | else | |
21690 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21691 | fi | |
21692 | done | |
21693 | ||
21694 | # For the awk script, D is an array of macro values keyed by name, | |
21695 | # likewise P contains macro parameters if any. Preserve backslash | |
21696 | # newline sequences. | |
21697 | ||
21698 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
21699 | sed -n ' | |
21700 | s/.\{148\}/&'"$ac_delim"'/g | |
21701 | t rset | |
21702 | :rset | |
21703 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
21704 | t def | |
21705 | d | |
21706 | :def | |
21707 | s/\\$// | |
21708 | t bsnl | |
21709 | s/["\\]/\\&/g | |
21710 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21711 | D["\1"]=" \3"/p | |
21712 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
21713 | d | |
21714 | :bsnl | |
21715 | s/["\\]/\\&/g | |
21716 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21717 | D["\1"]=" \3\\\\\\n"\\/p | |
21718 | t cont | |
21719 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
21720 | t cont | |
21721 | d | |
21722 | :cont | |
21723 | n | |
21724 | s/.\{148\}/&'"$ac_delim"'/g | |
21725 | t clear | |
21726 | :clear | |
21727 | s/\\$// | |
21728 | t bsnlc | |
21729 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21730 | d | |
21731 | :bsnlc | |
21732 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21733 | b cont | |
21734 | ' <confdefs.h | sed ' | |
21735 | s/'"$ac_delim"'/"\\\ | |
21736 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21737 | ||
21738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21739 | for (key in D) D_is_set[key] = 1 | |
21740 | FS = "\a" | |
21741 | } | |
21742 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21743 | line = \$ 0 | |
21744 | split(line, arg, " ") | |
21745 | if (arg[1] == "#") { | |
21746 | defundef = arg[2] | |
21747 | mac1 = arg[3] | |
21748 | } else { | |
21749 | defundef = substr(arg[1], 2) | |
21750 | mac1 = arg[2] | |
21751 | } | |
21752 | split(mac1, mac2, "(") #) | |
21753 | macro = mac2[1] | |
21754 | prefix = substr(line, 1, index(line, defundef) - 1) | |
21755 | if (D_is_set[macro]) { | |
21756 | # Preserve the white space surrounding the "#". | |
21757 | print prefix "define", macro P[macro] D[macro] | |
21758 | next | |
21759 | } else { | |
21760 | # Replace #undef with comments. This is necessary, for example, | |
21761 | # in the case of _POSIX_SOURCE, which is predefined and required | |
21762 | # on some systems where configure will not decide to define it. | |
21763 | if (defundef == "undef") { | |
21764 | print "/*", prefix defundef, macro, "*/" | |
21765 | next | |
21766 | } | |
21767 | } | |
21768 | } | |
21769 | { print } | |
21770 | _ACAWK | |
21771 | _ACEOF | |
21772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21773 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
21774 | fi # test -n "$CONFIG_HEADERS" | |
21775 | ||
9c60689e | 21776 | |
296ee9a6 | 21777 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
21778 | shift |
21779 | for ac_tag | |
21780 | do | |
21781 | case $ac_tag in | |
21782 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
21783 | esac | |
21784 | case $ac_mode$ac_tag in | |
21785 | :[FHL]*:*);; | |
ee134472 | 21786 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
21787 | :[FH]-) ac_tag=-:-;; |
21788 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
21789 | esac | |
21790 | ac_save_IFS=$IFS | |
21791 | IFS=: | |
21792 | set x $ac_tag | |
21793 | IFS=$ac_save_IFS | |
21794 | shift | |
21795 | ac_file=$1 | |
21796 | shift | |
21797 | ||
21798 | case $ac_mode in | |
21799 | :L) ac_source=$1;; | |
21800 | :[FH]) | |
21801 | ac_file_inputs= | |
21802 | for ac_f | |
21803 | do | |
21804 | case $ac_f in | |
ee134472 | 21805 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
21806 | *) # Look for the file first in the build tree, then in the source tree |
21807 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
21808 | # because $ac_f cannot contain `:'. | |
21809 | test -f "$ac_f" || | |
21810 | case $ac_f in | |
21811 | [\\/$]*) false;; | |
21812 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21813 | esac || | |
ee134472 | 21814 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
21815 | esac |
21816 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
21817 | as_fn_append ac_file_inputs " '$ac_f'" | |
21818 | done | |
21819 | ||
21820 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21821 | # use $as_me), people would be surprised to read: | |
21822 | # /* config.h. Generated by config.status. */ | |
21823 | configure_input='Generated from '` | |
21824 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21825 | `' by configure.' | |
21826 | if test x"$ac_file" != x-; then | |
21827 | configure_input="$ac_file. $configure_input" | |
21828 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21829 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21830 | fi | |
21831 | # Neutralize special characters interpreted by sed in replacement strings. | |
21832 | case $configure_input in #( | |
21833 | *\&* | *\|* | *\\* ) | |
21834 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21835 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21836 | *) ac_sed_conf_input=$configure_input;; | |
21837 | esac | |
21838 | ||
21839 | case $ac_tag in | |
ee134472 JF |
21840 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
21841 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
21842 | esac |
21843 | ;; | |
21844 | esac | |
21845 | ||
21846 | ac_dir=`$as_dirname -- "$ac_file" || | |
21847 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21848 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21849 | X"$ac_file" : 'X\(//\)$' \| \ | |
21850 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21851 | $as_echo X"$ac_file" | | |
21852 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21853 | s//\1/ | |
21854 | q | |
21855 | } | |
21856 | /^X\(\/\/\)[^/].*/{ | |
21857 | s//\1/ | |
21858 | q | |
21859 | } | |
21860 | /^X\(\/\/\)$/{ | |
21861 | s//\1/ | |
21862 | q | |
21863 | } | |
21864 | /^X\(\/\).*/{ | |
21865 | s//\1/ | |
21866 | q | |
21867 | } | |
21868 | s/.*/./; q'` | |
21869 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21870 | ac_builddir=. | |
21871 | ||
21872 | case "$ac_dir" in | |
21873 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21874 | *) | |
21875 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21876 | # A ".." for each directory in $ac_dir_suffix. | |
21877 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21878 | case $ac_top_builddir_sub in | |
21879 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21880 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21881 | esac ;; | |
21882 | esac | |
21883 | ac_abs_top_builddir=$ac_pwd | |
21884 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21885 | # for backward compatibility: | |
21886 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 21887 | |
9c60689e DWT |
21888 | case $srcdir in |
21889 | .) # We are building in place. | |
21890 | ac_srcdir=. | |
21891 | ac_top_srcdir=$ac_top_builddir_sub | |
21892 | ac_abs_top_srcdir=$ac_pwd ;; | |
21893 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21894 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21895 | ac_top_srcdir=$srcdir | |
21896 | ac_abs_top_srcdir=$srcdir ;; | |
21897 | *) # Relative name. | |
21898 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21899 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21900 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21901 | esac | |
21902 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
21903 | |
21904 | ||
9c60689e DWT |
21905 | case $ac_mode in |
21906 | :F) | |
21907 | # | |
21908 | # CONFIG_FILE | |
21909 | # | |
35fa52c0 | 21910 | |
9c60689e DWT |
21911 | case $INSTALL in |
21912 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21913 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21914 | esac | |
66170b30 JF |
21915 | ac_MKDIR_P=$MKDIR_P |
21916 | case $MKDIR_P in | |
21917 | [\\/$]* | ?:[\\/]* ) ;; | |
21918 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
21919 | esac | |
9c60689e | 21920 | _ACEOF |
35fa52c0 | 21921 | |
9c60689e DWT |
21922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
21923 | # If the template does not know about datarootdir, expand it. | |
21924 | # FIXME: This hack should be removed a few years after 2.60. | |
21925 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
21926 | ac_sed_dataroot=' | |
21927 | /datarootdir/ { | |
21928 | p | |
21929 | q | |
21930 | } | |
21931 | /@datadir@/p | |
21932 | /@docdir@/p | |
21933 | /@infodir@/p | |
21934 | /@localedir@/p | |
21935 | /@mandir@/p' | |
21936 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21937 | *datarootdir*) ac_datarootdir_seen=yes;; | |
21938 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21940 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21941 | _ACEOF | |
21942 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21943 | ac_datarootdir_hack=' | |
21944 | s&@datadir@&$datadir&g | |
21945 | s&@docdir@&$docdir&g | |
21946 | s&@infodir@&$infodir&g | |
21947 | s&@localedir@&$localedir&g | |
21948 | s&@mandir@&$mandir&g | |
21949 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
21950 | esac | |
21951 | _ACEOF | |
35fa52c0 | 21952 | |
9c60689e DWT |
21953 | # Neutralize VPATH when `$srcdir' = `.'. |
21954 | # Shell code in configure.ac might set extrasub. | |
21955 | # FIXME: do we really want to maintain this feature? | |
21956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21957 | ac_sed_extra="$ac_vpsub | |
21958 | $extrasub | |
21959 | _ACEOF | |
21960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21961 | :t | |
21962 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21963 | s|@configure_input@|$ac_sed_conf_input|;t t | |
21964 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21965 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21966 | s&@srcdir@&$ac_srcdir&;t t | |
21967 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21968 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21969 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21970 | s&@builddir@&$ac_builddir&;t t | |
21971 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21972 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21973 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 21974 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
21975 | $ac_datarootdir_hack |
21976 | " | |
ee134472 JF |
21977 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
21978 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
21979 | |
21980 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
21981 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
21982 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
21983 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 21984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 21985 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 21986 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 21987 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 21988 | |
ee134472 | 21989 | rm -f "$ac_tmp/stdin" |
9c60689e | 21990 | case $ac_file in |
ee134472 JF |
21991 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
21992 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 21993 | esac \ |
12833ad8 | 21994 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 21995 | ;; |
296ee9a6 JF |
21996 | :H) |
21997 | # | |
21998 | # CONFIG_HEADER | |
21999 | # | |
22000 | if test x"$ac_file" != x-; then | |
22001 | { | |
22002 | $as_echo "/* $configure_input */" \ | |
22003 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
22004 | } >"$ac_tmp/config.h" \ | |
22005 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22006 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
22007 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
22008 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
22009 | else | |
22010 | rm -f "$ac_file" | |
22011 | mv "$ac_tmp/config.h" "$ac_file" \ | |
22012 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22013 | fi | |
22014 | else | |
22015 | $as_echo "/* $configure_input */" \ | |
22016 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
22017 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
22018 | fi | |
22019 | # Compute "$ac_file"'s index in $config_headers. | |
22020 | _am_arg="$ac_file" | |
22021 | _am_stamp_count=1 | |
22022 | for _am_header in $config_headers :; do | |
22023 | case $_am_header in | |
22024 | $_am_arg | $_am_arg:* ) | |
22025 | break ;; | |
22026 | * ) | |
22027 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22028 | esac | |
22029 | done | |
22030 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22031 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22032 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22033 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22034 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22035 | $as_echo X"$_am_arg" | | |
22036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22037 | s//\1/ | |
22038 | q | |
22039 | } | |
22040 | /^X\(\/\/\)[^/].*/{ | |
22041 | s//\1/ | |
22042 | q | |
22043 | } | |
22044 | /^X\(\/\/\)$/{ | |
22045 | s//\1/ | |
22046 | q | |
22047 | } | |
22048 | /^X\(\/\).*/{ | |
22049 | s//\1/ | |
22050 | q | |
22051 | } | |
22052 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22053 | ;; | |
35fa52c0 | 22054 | |
9c60689e DWT |
22055 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
22056 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22057 | ;; | |
22058 | esac | |
35fa52c0 | 22059 | |
35fa52c0 | 22060 | |
9c60689e | 22061 | case $ac_file$ac_mode in |
66170b30 JF |
22062 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22063 | # Older Autoconf quotes --file arguments for eval, but not when files | |
22064 | # are listed without --file. Let's play safe and only enable the eval | |
22065 | # if we detect the quoting. | |
22066 | case $CONFIG_FILES in | |
22067 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22068 | *) set x $CONFIG_FILES ;; | |
22069 | esac | |
22070 | shift | |
22071 | for mf | |
22072 | do | |
22073 | # Strip MF so we end up with the name of the file. | |
22074 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22075 | # Check whether this is an Automake generated Makefile or not. | |
22076 | # We used to match only the files named 'Makefile.in', but | |
22077 | # some people rename them; so instead we look at the file content. | |
22078 | # Grep'ing the first line is not enough: some people post-process | |
22079 | # each Makefile.in and add a new line on top of each file to say so. | |
22080 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22081 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22082 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22083 | dirpart=`$as_dirname -- "$mf" || | |
22084 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22085 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22086 | X"$mf" : 'X\(//\)$' \| \ | |
22087 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22088 | $as_echo X"$mf" | | |
22089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22090 | s//\1/ | |
22091 | q | |
22092 | } | |
22093 | /^X\(\/\/\)[^/].*/{ | |
22094 | s//\1/ | |
22095 | q | |
22096 | } | |
22097 | /^X\(\/\/\)$/{ | |
22098 | s//\1/ | |
22099 | q | |
22100 | } | |
22101 | /^X\(\/\).*/{ | |
22102 | s//\1/ | |
22103 | q | |
22104 | } | |
22105 | s/.*/./; q'` | |
22106 | else | |
22107 | continue | |
22108 | fi | |
22109 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22110 | # from the Makefile without running 'make'. | |
22111 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22112 | test -z "$DEPDIR" && continue | |
22113 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 22114 | test -z "$am__include" && continue |
66170b30 JF |
22115 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
22116 | # Find all dependency output files, they are included files with | |
22117 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22118 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22119 | # expansion. | |
22120 | for file in `sed -n " | |
22121 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22122 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
22123 | # Make sure the directory exists. | |
22124 | test -f "$dirpart/$file" && continue | |
22125 | fdir=`$as_dirname -- "$file" || | |
22126 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22127 | X"$file" : 'X\(//\)[^/]' \| \ | |
22128 | X"$file" : 'X\(//\)$' \| \ | |
22129 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22130 | $as_echo X"$file" | | |
22131 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22132 | s//\1/ | |
22133 | q | |
22134 | } | |
22135 | /^X\(\/\/\)[^/].*/{ | |
22136 | s//\1/ | |
22137 | q | |
22138 | } | |
22139 | /^X\(\/\/\)$/{ | |
22140 | s//\1/ | |
22141 | q | |
22142 | } | |
22143 | /^X\(\/\).*/{ | |
22144 | s//\1/ | |
22145 | q | |
22146 | } | |
22147 | s/.*/./; q'` | |
22148 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
22149 | # echo "creating $dirpart/$file" | |
22150 | echo '# dummy' > "$dirpart/$file" | |
22151 | done | |
22152 | done | |
22153 | } | |
22154 | ;; | |
9c60689e DWT |
22155 | "libtool":C) |
22156 | ||
22157 | # See if we are running on zsh, and set the options which allow our | |
22158 | # commands through without removal of \ escapes. | |
22159 | if test -n "${ZSH_VERSION+set}" ; then | |
22160 | setopt NO_GLOB_SUBST | |
35fa52c0 | 22161 | fi |
35fa52c0 | 22162 | |
9c60689e DWT |
22163 | cfgfile="${ofile}T" |
22164 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22165 | $RM "$cfgfile" | |
35fa52c0 | 22166 | |
9c60689e DWT |
22167 | cat <<_LT_EOF >> "$cfgfile" |
22168 | #! $SHELL | |
35fa52c0 | 22169 | |
9c60689e DWT |
22170 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
22171 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
22172 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22173 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22174 | # | |
22175 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
53ba6704 JF |
22176 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
22177 | # Foundation, Inc. | |
9c60689e DWT |
22178 | # Written by Gordon Matzigkeit, 1996 |
22179 | # | |
22180 | # This file is part of GNU Libtool. | |
22181 | # | |
22182 | # GNU Libtool is free software; you can redistribute it and/or | |
22183 | # modify it under the terms of the GNU General Public License as | |
22184 | # published by the Free Software Foundation; either version 2 of | |
22185 | # the License, or (at your option) any later version. | |
22186 | # | |
22187 | # As a special exception to the GNU General Public License, | |
22188 | # if you distribute this file as part of a program or library that | |
22189 | # is built using GNU Libtool, you may include this file under the | |
22190 | # same distribution terms that you use for the rest of that program. | |
22191 | # | |
22192 | # GNU Libtool is distributed in the hope that it will be useful, | |
22193 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22194 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22195 | # GNU General Public License for more details. | |
22196 | # | |
22197 | # You should have received a copy of the GNU General Public License | |
22198 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
22199 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
22200 | # obtained by writing to the Free Software Foundation, Inc., | |
22201 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 22202 | |
35fa52c0 | 22203 | |
9c60689e DWT |
22204 | # The names of the tagged configurations supported by this script. |
22205 | available_tags="CXX " | |
35fa52c0 | 22206 | |
9c60689e | 22207 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 22208 | |
9c60689e DWT |
22209 | # Which release of libtool.m4 was used? |
22210 | macro_version=$macro_version | |
22211 | macro_revision=$macro_revision | |
35fa52c0 | 22212 | |
9c60689e DWT |
22213 | # Whether or not to build static libraries. |
22214 | build_old_libs=$enable_static | |
35fa52c0 | 22215 | |
549f29b5 DWT |
22216 | # Whether or not to build shared libraries. |
22217 | build_libtool_libs=$enable_shared | |
22218 | ||
9c60689e DWT |
22219 | # What type of objects to build. |
22220 | pic_mode=$pic_mode | |
35fa52c0 | 22221 | |
9c60689e DWT |
22222 | # Whether or not to optimize for fast installation. |
22223 | fast_install=$enable_fast_install | |
35fa52c0 | 22224 | |
ee134472 JF |
22225 | # Shell to use when invoking shell scripts. |
22226 | SHELL=$lt_SHELL | |
22227 | ||
22228 | # An echo program that protects backslashes. | |
22229 | ECHO=$lt_ECHO | |
22230 | ||
53ba6704 JF |
22231 | # The PATH separator for the build system. |
22232 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
22233 | ||
9c60689e DWT |
22234 | # The host system. |
22235 | host_alias=$host_alias | |
22236 | host=$host | |
22237 | host_os=$host_os | |
35fa52c0 | 22238 | |
9c60689e DWT |
22239 | # The build system. |
22240 | build_alias=$build_alias | |
22241 | build=$build | |
22242 | build_os=$build_os | |
22243 | ||
22244 | # A sed program that does not truncate output. | |
22245 | SED=$lt_SED | |
22246 | ||
22247 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22248 | Xsed="\$SED -e 1s/^X//" | |
22249 | ||
22250 | # A grep program that handles long lines. | |
22251 | GREP=$lt_GREP | |
22252 | ||
22253 | # An ERE matcher. | |
22254 | EGREP=$lt_EGREP | |
22255 | ||
22256 | # A literal string matcher. | |
22257 | FGREP=$lt_FGREP | |
22258 | ||
22259 | # A BSD- or MS-compatible name lister. | |
22260 | NM=$lt_NM | |
22261 | ||
22262 | # Whether we need soft or hard links. | |
22263 | LN_S=$lt_LN_S | |
22264 | ||
22265 | # What is the maximum length of a command? | |
22266 | max_cmd_len=$max_cmd_len | |
22267 | ||
22268 | # Object file suffix (normally "o"). | |
22269 | objext=$ac_objext | |
22270 | ||
22271 | # Executable file suffix (normally ""). | |
22272 | exeext=$exeext | |
22273 | ||
22274 | # whether the shell understands "unset". | |
22275 | lt_unset=$lt_unset | |
22276 | ||
22277 | # turn spaces into newlines. | |
22278 | SP2NL=$lt_lt_SP2NL | |
22279 | ||
22280 | # turn newlines into spaces. | |
22281 | NL2SP=$lt_lt_NL2SP | |
22282 | ||
ee134472 JF |
22283 | # convert \$build file names to \$host format. |
22284 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
22285 | ||
22286 | # convert \$build files to toolchain format. | |
22287 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
22288 | |
22289 | # An object symbol dumper. | |
22290 | OBJDUMP=$lt_OBJDUMP | |
22291 | ||
22292 | # Method to check whether dependent libraries are shared objects. | |
22293 | deplibs_check_method=$lt_deplibs_check_method | |
22294 | ||
ee134472 | 22295 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
22296 | file_magic_cmd=$lt_file_magic_cmd |
22297 | ||
ee134472 JF |
22298 | # How to find potential files when deplibs_check_method = "file_magic". |
22299 | file_magic_glob=$lt_file_magic_glob | |
22300 | ||
22301 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
22302 | want_nocaseglob=$lt_want_nocaseglob | |
22303 | ||
22304 | # DLL creation program. | |
22305 | DLLTOOL=$lt_DLLTOOL | |
22306 | ||
22307 | # Command to associate shared and link libraries. | |
22308 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
22309 | ||
9c60689e DWT |
22310 | # The archiver. |
22311 | AR=$lt_AR | |
ee134472 JF |
22312 | |
22313 | # Flags to create an archive. | |
9c60689e DWT |
22314 | AR_FLAGS=$lt_AR_FLAGS |
22315 | ||
ee134472 JF |
22316 | # How to feed a file listing to the archiver. |
22317 | archiver_list_spec=$lt_archiver_list_spec | |
22318 | ||
9c60689e DWT |
22319 | # A symbol stripping program. |
22320 | STRIP=$lt_STRIP | |
22321 | ||
22322 | # Commands used to install an old-style archive. | |
22323 | RANLIB=$lt_RANLIB | |
22324 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22325 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22326 | ||
ee134472 JF |
22327 | # Whether to use a lock for old archive extraction. |
22328 | lock_old_archive_extraction=$lock_old_archive_extraction | |
22329 | ||
9c60689e DWT |
22330 | # A C compiler. |
22331 | LTCC=$lt_CC | |
22332 | ||
22333 | # LTCC compiler flags. | |
22334 | LTCFLAGS=$lt_CFLAGS | |
22335 | ||
22336 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22337 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22338 | ||
22339 | # Transform the output of nm in a proper C declaration. | |
22340 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22341 | ||
22342 | # Transform the output of nm in a C name address pair. | |
22343 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22344 | ||
22345 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
22346 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
22347 | ||
ee134472 JF |
22348 | # Specify filename containing input files for \$NM. |
22349 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 22350 | |
ee134472 JF |
22351 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
22352 | lt_sysroot=$lt_sysroot | |
9c60689e | 22353 | |
ee134472 JF |
22354 | # The name of the directory that contains temporary libtool files. |
22355 | objdir=$objdir | |
9c60689e DWT |
22356 | |
22357 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22358 | MAGIC_CMD=$MAGIC_CMD | |
22359 | ||
22360 | # Must we lock files when doing compilation? | |
22361 | need_locks=$lt_need_locks | |
22362 | ||
ee134472 JF |
22363 | # Manifest tool. |
22364 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
22365 | ||
9c60689e DWT |
22366 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
22367 | DSYMUTIL=$lt_DSYMUTIL | |
22368 | ||
22369 | # Tool to change global to local symbols on Mac OS X. | |
22370 | NMEDIT=$lt_NMEDIT | |
22371 | ||
22372 | # Tool to manipulate fat objects and archives on Mac OS X. | |
22373 | LIPO=$lt_LIPO | |
22374 | ||
22375 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
22376 | OTOOL=$lt_OTOOL | |
22377 | ||
22378 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
22379 | OTOOL64=$lt_OTOOL64 | |
22380 | ||
22381 | # Old archive suffix (normally "a"). | |
22382 | libext=$libext | |
22383 | ||
22384 | # Shared library suffix (normally ".so"). | |
22385 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 22386 | |
9c60689e DWT |
22387 | # The commands to extract the exported symbol list from a shared archive. |
22388 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 22389 | |
9c60689e DWT |
22390 | # Variables whose values should be saved in libtool wrapper scripts and |
22391 | # restored at link time. | |
22392 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 22393 | |
9c60689e DWT |
22394 | # Do we need the "lib" prefix for modules? |
22395 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 22396 | |
9c60689e DWT |
22397 | # Do we need a version for libraries? |
22398 | need_version=$need_version | |
35fa52c0 | 22399 | |
9c60689e DWT |
22400 | # Library versioning type. |
22401 | version_type=$version_type | |
35fa52c0 | 22402 | |
9c60689e DWT |
22403 | # Shared library runtime path variable. |
22404 | runpath_var=$runpath_var | |
35fa52c0 | 22405 | |
9c60689e DWT |
22406 | # Shared library path variable. |
22407 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 22408 | |
9c60689e DWT |
22409 | # Is shlibpath searched before the hard-coded library search path? |
22410 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 22411 | |
9c60689e DWT |
22412 | # Format of library name prefix. |
22413 | libname_spec=$lt_libname_spec | |
35fa52c0 | 22414 | |
9c60689e DWT |
22415 | # List of archive names. First name is the real one, the rest are links. |
22416 | # The last name is the one that the linker finds with -lNAME | |
22417 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 22418 | |
9c60689e DWT |
22419 | # The coded name of the library, if different from the real name. |
22420 | soname_spec=$lt_soname_spec | |
dbadc56a | 22421 | |
ee134472 JF |
22422 | # Permission mode override for installation of shared libraries. |
22423 | install_override_mode=$lt_install_override_mode | |
22424 | ||
9c60689e DWT |
22425 | # Command to use after installation of a shared archive. |
22426 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 22427 | |
9c60689e DWT |
22428 | # Command to use after uninstallation of a shared archive. |
22429 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 22430 | |
9c60689e DWT |
22431 | # Commands used to finish a libtool library installation in a directory. |
22432 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 22433 | |
9c60689e DWT |
22434 | # As "finish_cmds", except a single script fragment to be evaled but |
22435 | # not shown. | |
22436 | finish_eval=$lt_finish_eval | |
35fa52c0 | 22437 | |
9c60689e DWT |
22438 | # Whether we should hardcode library paths into libraries. |
22439 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 22440 | |
9c60689e DWT |
22441 | # Compile-time system search path for libraries. |
22442 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 22443 | |
9c60689e DWT |
22444 | # Run-time system search path for libraries. |
22445 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 22446 | |
9c60689e DWT |
22447 | # Whether dlopen is supported. |
22448 | dlopen_support=$enable_dlopen | |
dbadc56a | 22449 | |
9c60689e DWT |
22450 | # Whether dlopen of programs is supported. |
22451 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 22452 | |
9c60689e DWT |
22453 | # Whether dlopen of statically linked programs is supported. |
22454 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 22455 | |
9c60689e DWT |
22456 | # Commands to strip libraries. |
22457 | old_striplib=$lt_old_striplib | |
22458 | striplib=$lt_striplib | |
35fa52c0 | 22459 | |
35fa52c0 | 22460 | |
9c60689e DWT |
22461 | # The linker used to build libraries. |
22462 | LD=$lt_LD | |
dbadc56a | 22463 | |
ee134472 JF |
22464 | # How to create reloadable object files. |
22465 | reload_flag=$lt_reload_flag | |
22466 | reload_cmds=$lt_reload_cmds | |
22467 | ||
9c60689e DWT |
22468 | # Commands used to build an old-style archive. |
22469 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 22470 | |
9c60689e DWT |
22471 | # A language specific compiler. |
22472 | CC=$lt_compiler | |
35fa52c0 | 22473 | |
9c60689e DWT |
22474 | # Is the compiler the GNU compiler? |
22475 | with_gcc=$GCC | |
dbadc56a | 22476 | |
9c60689e DWT |
22477 | # Compiler flag to turn off builtin functions. |
22478 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 22479 | |
9c60689e DWT |
22480 | # Additional compiler flags for building library objects. |
22481 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 22482 | |
ee134472 JF |
22483 | # How to pass a linker flag through the compiler. |
22484 | wl=$lt_lt_prog_compiler_wl | |
22485 | ||
9c60689e DWT |
22486 | # Compiler flag to prevent dynamic linking. |
22487 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 22488 | |
9c60689e DWT |
22489 | # Does compiler simultaneously support -c and -o options? |
22490 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 22491 | |
9c60689e DWT |
22492 | # Whether or not to add -lc for building shared libraries. |
22493 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 22494 | |
9c60689e DWT |
22495 | # Whether or not to disallow shared libs when runtime libs are static. |
22496 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 22497 | |
9c60689e DWT |
22498 | # Compiler flag to allow reflexive dlopens. |
22499 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 22500 | |
9c60689e DWT |
22501 | # Compiler flag to generate shared objects directly from archives. |
22502 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 22503 | |
9c60689e DWT |
22504 | # Whether the compiler copes with passing no objects directly. |
22505 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 22506 | |
9c60689e DWT |
22507 | # Create an old-style archive from a shared archive. |
22508 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 22509 | |
9c60689e DWT |
22510 | # Create a temporary old-style archive to link instead of a shared archive. |
22511 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 22512 | |
9c60689e DWT |
22513 | # Commands used to build a shared archive. |
22514 | archive_cmds=$lt_archive_cmds | |
22515 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 22516 | |
9c60689e DWT |
22517 | # Commands used to build a loadable module if different from building |
22518 | # a shared archive. | |
22519 | module_cmds=$lt_module_cmds | |
22520 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 22521 | |
9c60689e DWT |
22522 | # Whether we are building with GNU ld or not. |
22523 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 22524 | |
9c60689e DWT |
22525 | # Flag that allows shared libraries with undefined symbols to be built. |
22526 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 22527 | |
9c60689e DWT |
22528 | # Flag that enforces no undefined symbols. |
22529 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 22530 | |
9c60689e DWT |
22531 | # Flag to hardcode \$libdir into a binary during linking. |
22532 | # This must work even if \$libdir does not exist | |
22533 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 22534 | |
9c60689e DWT |
22535 | # Whether we need a single "-rpath" flag with a separated argument. |
22536 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 22537 | |
9c60689e DWT |
22538 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22539 | # DIR into the resulting binary. | |
22540 | hardcode_direct=$hardcode_direct | |
6b66678a | 22541 | |
9c60689e DWT |
22542 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22543 | # DIR into the resulting binary and the resulting library dependency is | |
22544 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22545 | # library is relocated. | |
22546 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 22547 | |
9c60689e DWT |
22548 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22549 | # into the resulting binary. | |
22550 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 22551 | |
9c60689e DWT |
22552 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22553 | # into the resulting binary. | |
22554 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 22555 | |
9c60689e DWT |
22556 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22557 | # into the library and all subsequent libraries and executables linked | |
22558 | # against it. | |
22559 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 22560 | |
9c60689e DWT |
22561 | # Set to yes if linker adds runtime paths of dependent libraries |
22562 | # to runtime path list. | |
22563 | inherit_rpath=$inherit_rpath | |
6b66678a | 22564 | |
9c60689e DWT |
22565 | # Whether libtool must link a program against all its dependency libraries. |
22566 | link_all_deplibs=$link_all_deplibs | |
22567 | ||
9c60689e DWT |
22568 | # Set to "yes" if exported symbols are required. |
22569 | always_export_symbols=$always_export_symbols | |
6b66678a | 22570 | |
9c60689e DWT |
22571 | # The commands to list exported symbols. |
22572 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 22573 | |
9c60689e DWT |
22574 | # Symbols that should not be listed in the preloaded symbols. |
22575 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 22576 | |
9c60689e DWT |
22577 | # Symbols that must always be exported. |
22578 | include_expsyms=$lt_include_expsyms | |
6b66678a | 22579 | |
9c60689e DWT |
22580 | # Commands necessary for linking programs (against libraries) with templates. |
22581 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 22582 | |
ee134472 JF |
22583 | # Commands necessary for finishing linking programs. |
22584 | postlink_cmds=$lt_postlink_cmds | |
22585 | ||
9c60689e DWT |
22586 | # Specify filename containing input files. |
22587 | file_list_spec=$lt_file_list_spec | |
6b66678a | 22588 | |
9c60689e DWT |
22589 | # How to hardcode a shared library path into an executable. |
22590 | hardcode_action=$hardcode_action | |
22591 | ||
22592 | # The directories searched by this compiler when creating a shared library. | |
22593 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
22594 | ||
22595 | # Dependencies to place before and after the objects being linked to | |
22596 | # create a shared library. | |
22597 | predep_objects=$lt_predep_objects | |
22598 | postdep_objects=$lt_postdep_objects | |
22599 | predeps=$lt_predeps | |
22600 | postdeps=$lt_postdeps | |
22601 | ||
22602 | # The library search path used internally by the compiler when linking | |
22603 | # a shared library. | |
22604 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
22605 | ||
22606 | # ### END LIBTOOL CONFIG | |
22607 | ||
22608 | _LT_EOF | |
22609 | ||
22610 | case $host_os in | |
22611 | aix3*) | |
22612 | cat <<\_LT_EOF >> "$cfgfile" | |
22613 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22614 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22615 | # vanish in a puff of smoke. | |
22616 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22617 | COLLECT_NAMES= | |
22618 | export COLLECT_NAMES | |
6b66678a | 22619 | fi |
9c60689e DWT |
22620 | _LT_EOF |
22621 | ;; | |
22622 | esac | |
6b66678a DWT |
22623 | |
22624 | ||
9c60689e | 22625 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 22626 | |
9c60689e DWT |
22627 | |
22628 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22629 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22630 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22631 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
22632 | sed '$q' "$ltmain" >> "$cfgfile" \ |
22633 | || (rm -f "$cfgfile"; exit 1) | |
22634 | ||
22635 | if test x"$xsi_shell" = xyes; then | |
22636 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
22637 | func_dirname ()\ | |
22638 | {\ | |
22639 | \ case ${1} in\ | |
22640 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22641 | \ * ) func_dirname_result="${3}" ;;\ | |
22642 | \ esac\ | |
22643 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22644 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22645 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22646 | test 0 -eq $? || _lt_function_replace_fail=: | |
22647 | ||
22648 | ||
22649 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
22650 | func_basename ()\ | |
22651 | {\ | |
22652 | \ func_basename_result="${1##*/}"\ | |
22653 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22654 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22655 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22656 | test 0 -eq $? || _lt_function_replace_fail=: | |
22657 | ||
22658 | ||
22659 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
22660 | func_dirname_and_basename ()\ | |
22661 | {\ | |
22662 | \ case ${1} in\ | |
22663 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22664 | \ * ) func_dirname_result="${3}" ;;\ | |
22665 | \ esac\ | |
22666 | \ func_basename_result="${1##*/}"\ | |
22667 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22668 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22669 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22670 | test 0 -eq $? || _lt_function_replace_fail=: | |
22671 | ||
22672 | ||
22673 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
22674 | func_stripname ()\ | |
22675 | {\ | |
22676 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
22677 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
22678 | \ func_stripname_result=${3}\ | |
22679 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
22680 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
22681 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22682 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22683 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22684 | test 0 -eq $? || _lt_function_replace_fail=: | |
22685 | ||
22686 | ||
22687 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
22688 | func_split_long_opt ()\ | |
22689 | {\ | |
22690 | \ func_split_long_opt_name=${1%%=*}\ | |
22691 | \ func_split_long_opt_arg=${1#*=}\ | |
22692 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22693 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22694 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22695 | test 0 -eq $? || _lt_function_replace_fail=: | |
22696 | ||
22697 | ||
22698 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
22699 | func_split_short_opt ()\ | |
22700 | {\ | |
22701 | \ func_split_short_opt_arg=${1#??}\ | |
22702 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
22703 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22704 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22705 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22706 | test 0 -eq $? || _lt_function_replace_fail=: | |
22707 | ||
22708 | ||
22709 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
22710 | func_lo2o ()\ | |
22711 | {\ | |
22712 | \ case ${1} in\ | |
22713 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
22714 | \ *) func_lo2o_result=${1} ;;\ | |
22715 | \ esac\ | |
22716 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
22717 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22718 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22719 | test 0 -eq $? || _lt_function_replace_fail=: | |
22720 | ||
22721 | ||
22722 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
22723 | func_xform ()\ | |
22724 | {\ | |
22725 | func_xform_result=${1%.*}.lo\ | |
22726 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
22727 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22728 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22729 | test 0 -eq $? || _lt_function_replace_fail=: | |
22730 | ||
22731 | ||
22732 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
22733 | func_arith ()\ | |
22734 | {\ | |
22735 | func_arith_result=$(( $* ))\ | |
22736 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
22737 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22738 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22739 | test 0 -eq $? || _lt_function_replace_fail=: | |
22740 | ||
22741 | ||
22742 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
22743 | func_len ()\ | |
22744 | {\ | |
22745 | func_len_result=${#1}\ | |
22746 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
22747 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22748 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22749 | test 0 -eq $? || _lt_function_replace_fail=: | |
22750 | ||
22751 | fi | |
22752 | ||
22753 | if test x"$lt_shell_append" = xyes; then | |
22754 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
22755 | func_append ()\ | |
22756 | {\ | |
22757 | eval "${1}+=\\${2}"\ | |
22758 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
22759 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22760 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22761 | test 0 -eq $? || _lt_function_replace_fail=: | |
22762 | ||
22763 | ||
22764 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
22765 | func_append_quoted ()\ | |
22766 | {\ | |
22767 | \ func_quote_for_eval "${2}"\ | |
22768 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
22769 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
22770 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22771 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22772 | test 0 -eq $? || _lt_function_replace_fail=: | |
22773 | ||
22774 | ||
22775 | # Save a `func_append' function call where possible by direct use of '+=' | |
22776 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
22777 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22778 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22779 | test 0 -eq $? || _lt_function_replace_fail=: | |
22780 | else | |
22781 | # Save a `func_append' function call even when '+=' is not available | |
22782 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
22783 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22784 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22785 | test 0 -eq $? || _lt_function_replace_fail=: | |
22786 | fi | |
22787 | ||
22788 | if test x"$_lt_function_replace_fail" = x":"; then | |
22789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
22790 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
22791 | fi | |
22792 | ||
22793 | ||
22794 | mv -f "$cfgfile" "$ofile" || | |
9c60689e DWT |
22795 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
22796 | chmod +x "$ofile" | |
22797 | ||
22798 | ||
22799 | cat <<_LT_EOF >> "$ofile" | |
22800 | ||
22801 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
22802 | ||
22803 | # The linker used to build libraries. | |
22804 | LD=$lt_LD_CXX | |
22805 | ||
ee134472 JF |
22806 | # How to create reloadable object files. |
22807 | reload_flag=$lt_reload_flag_CXX | |
22808 | reload_cmds=$lt_reload_cmds_CXX | |
22809 | ||
9c60689e DWT |
22810 | # Commands used to build an old-style archive. |
22811 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
22812 | ||
22813 | # A language specific compiler. | |
22814 | CC=$lt_compiler_CXX | |
22815 | ||
22816 | # Is the compiler the GNU compiler? | |
22817 | with_gcc=$GCC_CXX | |
22818 | ||
22819 | # Compiler flag to turn off builtin functions. | |
22820 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 22821 | |
9c60689e DWT |
22822 | # Additional compiler flags for building library objects. |
22823 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 22824 | |
ee134472 JF |
22825 | # How to pass a linker flag through the compiler. |
22826 | wl=$lt_lt_prog_compiler_wl_CXX | |
22827 | ||
9c60689e DWT |
22828 | # Compiler flag to prevent dynamic linking. |
22829 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 22830 | |
9c60689e DWT |
22831 | # Does compiler simultaneously support -c and -o options? |
22832 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 22833 | |
9c60689e DWT |
22834 | # Whether or not to add -lc for building shared libraries. |
22835 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 22836 | |
9c60689e DWT |
22837 | # Whether or not to disallow shared libs when runtime libs are static. |
22838 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 22839 | |
9c60689e DWT |
22840 | # Compiler flag to allow reflexive dlopens. |
22841 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 22842 | |
9c60689e DWT |
22843 | # Compiler flag to generate shared objects directly from archives. |
22844 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 22845 | |
9c60689e DWT |
22846 | # Whether the compiler copes with passing no objects directly. |
22847 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 22848 | |
9c60689e DWT |
22849 | # Create an old-style archive from a shared archive. |
22850 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 22851 | |
9c60689e DWT |
22852 | # Create a temporary old-style archive to link instead of a shared archive. |
22853 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 22854 | |
9c60689e DWT |
22855 | # Commands used to build a shared archive. |
22856 | archive_cmds=$lt_archive_cmds_CXX | |
22857 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 22858 | |
9c60689e DWT |
22859 | # Commands used to build a loadable module if different from building |
22860 | # a shared archive. | |
22861 | module_cmds=$lt_module_cmds_CXX | |
22862 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 22863 | |
9c60689e DWT |
22864 | # Whether we are building with GNU ld or not. |
22865 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 22866 | |
9c60689e DWT |
22867 | # Flag that allows shared libraries with undefined symbols to be built. |
22868 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 22869 | |
9c60689e DWT |
22870 | # Flag that enforces no undefined symbols. |
22871 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 22872 | |
9c60689e DWT |
22873 | # Flag to hardcode \$libdir into a binary during linking. |
22874 | # This must work even if \$libdir does not exist | |
22875 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 22876 | |
9c60689e DWT |
22877 | # Whether we need a single "-rpath" flag with a separated argument. |
22878 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 22879 | |
9c60689e DWT |
22880 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22881 | # DIR into the resulting binary. | |
22882 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 22883 | |
9c60689e DWT |
22884 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22885 | # DIR into the resulting binary and the resulting library dependency is | |
22886 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22887 | # library is relocated. | |
22888 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 22889 | |
9c60689e DWT |
22890 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22891 | # into the resulting binary. | |
22892 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 22893 | |
9c60689e DWT |
22894 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22895 | # into the resulting binary. | |
22896 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 22897 | |
9c60689e DWT |
22898 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22899 | # into the library and all subsequent libraries and executables linked | |
22900 | # against it. | |
22901 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 22902 | |
9c60689e DWT |
22903 | # Set to yes if linker adds runtime paths of dependent libraries |
22904 | # to runtime path list. | |
22905 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 22906 | |
9c60689e DWT |
22907 | # Whether libtool must link a program against all its dependency libraries. |
22908 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 22909 | |
9c60689e DWT |
22910 | # Set to "yes" if exported symbols are required. |
22911 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 22912 | |
9c60689e DWT |
22913 | # The commands to list exported symbols. |
22914 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 22915 | |
9c60689e DWT |
22916 | # Symbols that should not be listed in the preloaded symbols. |
22917 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 22918 | |
9c60689e DWT |
22919 | # Symbols that must always be exported. |
22920 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 22921 | |
9c60689e DWT |
22922 | # Commands necessary for linking programs (against libraries) with templates. |
22923 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 22924 | |
ee134472 JF |
22925 | # Commands necessary for finishing linking programs. |
22926 | postlink_cmds=$lt_postlink_cmds_CXX | |
22927 | ||
9c60689e DWT |
22928 | # Specify filename containing input files. |
22929 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 22930 | |
9c60689e DWT |
22931 | # How to hardcode a shared library path into an executable. |
22932 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 22933 | |
9c60689e DWT |
22934 | # The directories searched by this compiler when creating a shared library. |
22935 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 22936 | |
9c60689e DWT |
22937 | # Dependencies to place before and after the objects being linked to |
22938 | # create a shared library. | |
22939 | predep_objects=$lt_predep_objects_CXX | |
22940 | postdep_objects=$lt_postdep_objects_CXX | |
22941 | predeps=$lt_predeps_CXX | |
22942 | postdeps=$lt_postdeps_CXX | |
309b0535 | 22943 | |
9c60689e DWT |
22944 | # The library search path used internally by the compiler when linking |
22945 | # a shared library. | |
22946 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
22947 | ||
22948 | # ### END LIBTOOL TAG CONFIG: CXX | |
22949 | _LT_EOF | |
22950 | ||
22951 | ;; | |
22952 | ||
22953 | esac | |
22954 | done # for ac_tag | |
22955 | ||
22956 | ||
22957 | as_fn_exit 0 | |
22958 | _ACEOF | |
22959 | ac_clean_files=$ac_clean_files_save | |
22960 | ||
22961 | test $ac_write_fail = 0 || | |
12833ad8 | 22962 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
22963 | |
22964 | ||
22965 | # configure is writing to config.log, and then calls config.status. | |
22966 | # config.status does its own redirection, appending to config.log. | |
22967 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22968 | # by configure, so config.status won't be able to write to it; its | |
22969 | # output is simply discarded. So we exec the FD to /dev/null, | |
22970 | # effectively closing config.log, so it can be properly (re)opened and | |
22971 | # appended to by config.status. When coming back to configure, we | |
22972 | # need to make the FD available again. | |
22973 | if test "$no_create" != yes; then | |
22974 | ac_cs_success=: | |
22975 | ac_config_status_args= | |
22976 | test "$silent" = yes && | |
22977 | ac_config_status_args="$ac_config_status_args --quiet" | |
22978 | exec 5>/dev/null | |
22979 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22980 | exec 5>>config.log | |
22981 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22982 | # would make configure fail if this is the last instruction. | |
12833ad8 | 22983 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 22984 | fi |
9c60689e DWT |
22985 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22987 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22988 | fi | |
22989 |