]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64 for Cycript 0.9. | |
4 | # | |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
9 | # Foundation, Inc. | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | case $0 in #(( | |
93 | *[\\/]* ) as_myself=$0 ;; | |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
100 | done | |
101 | IFS=$as_save_IFS | |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
112 | exit 1 | |
113 | fi | |
114 | ||
115 | # Unset variables that we do not need and which cause bugs (e.g. in | |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
122 | done | |
123 | PS1='$ ' | |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
128 | LC_ALL=C | |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
132 | ||
133 | # CDPATH. | |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 DWT |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
c7aa54aa DWT |
175 | if (eval "$as_required") 2>/dev/null; then : |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
232 | $0: about your system, including any error possibly output | |
233 | $0: before this message. Then install a modern shell, or | |
234 | $0: manually run the script under such a shell if you do | |
235 | $0: have one." | |
236 | fi | |
237 | exit 1 | |
238 | fi | |
239 | fi | |
240 | fi | |
241 | SHELL=${CONFIG_SHELL-/bin/sh} | |
242 | export SHELL | |
243 | # Unset more variables known to interfere with behavior of common tools. | |
244 | CLICOLOR_FORCE= GREP_OPTIONS= | |
245 | unset CLICOLOR_FORCE GREP_OPTIONS | |
246 | ||
247 | ## --------------------- ## | |
248 | ## M4sh Shell Functions. ## | |
249 | ## --------------------- ## | |
250 | # as_fn_unset VAR | |
251 | # --------------- | |
252 | # Portably unset VAR. | |
253 | as_fn_unset () | |
254 | { | |
255 | { eval $1=; unset $1;} | |
256 | } | |
257 | as_unset=as_fn_unset | |
258 | ||
259 | # as_fn_set_status STATUS | |
260 | # ----------------------- | |
261 | # Set $? to STATUS, without forking. | |
262 | as_fn_set_status () | |
263 | { | |
264 | return $1 | |
265 | } # as_fn_set_status | |
266 | ||
267 | # as_fn_exit STATUS | |
268 | # ----------------- | |
269 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
270 | as_fn_exit () | |
271 | { | |
272 | set +e | |
273 | as_fn_set_status $1 | |
274 | exit $1 | |
275 | } # as_fn_exit | |
276 | ||
277 | # as_fn_mkdir_p | |
278 | # ------------- | |
279 | # Create "$as_dir" as a directory, including parents if necessary. | |
280 | as_fn_mkdir_p () | |
281 | { | |
282 | ||
283 | case $as_dir in #( | |
284 | -*) as_dir=./$as_dir;; | |
285 | esac | |
286 | test -d "$as_dir" || eval $as_mkdir_p || { | |
287 | as_dirs= | |
288 | while :; do | |
289 | case $as_dir in #( | |
290 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
291 | *) as_qdir=$as_dir;; | |
292 | esac | |
293 | as_dirs="'$as_qdir' $as_dirs" | |
294 | as_dir=`$as_dirname -- "$as_dir" || | |
295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
296 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
297 | X"$as_dir" : 'X\(//\)$' \| \ | |
298 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
299 | $as_echo X"$as_dir" | | |
300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
301 | s//\1/ | |
302 | q | |
303 | } | |
304 | /^X\(\/\/\)[^/].*/{ | |
305 | s//\1/ | |
306 | q | |
307 | } | |
308 | /^X\(\/\/\)$/{ | |
309 | s//\1/ | |
310 | q | |
311 | } | |
312 | /^X\(\/\).*/{ | |
313 | s//\1/ | |
314 | q | |
315 | } | |
316 | s/.*/./; q'` | |
317 | test -d "$as_dir" && break | |
318 | done | |
319 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
320 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
321 | ||
322 | ||
323 | } # as_fn_mkdir_p | |
324 | # as_fn_append VAR VALUE | |
325 | # ---------------------- | |
326 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
327 | # advantage of any shell optimizations that allow amortized linear growth over | |
328 | # repeated appends, instead of the typical quadratic growth present in naive | |
329 | # implementations. | |
330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
331 | eval 'as_fn_append () | |
332 | { | |
333 | eval $1+=\$2 | |
334 | }' | |
335 | else | |
336 | as_fn_append () | |
337 | { | |
338 | eval $1=\$$1\$2 | |
339 | } | |
340 | fi # as_fn_append | |
341 | ||
342 | # as_fn_arith ARG... | |
343 | # ------------------ | |
344 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
345 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
346 | # must be portable across $(()) and expr. | |
347 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
348 | eval 'as_fn_arith () | |
349 | { | |
350 | as_val=$(( $* )) | |
351 | }' | |
352 | else | |
353 | as_fn_arith () | |
354 | { | |
355 | as_val=`expr "$@" || test $? -eq 1` | |
356 | } | |
357 | fi # as_fn_arith | |
358 | ||
359 | ||
360 | # as_fn_error ERROR [LINENO LOG_FD] | |
361 | # --------------------------------- | |
362 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
363 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
364 | # script with status $?, using 1 if that was 0. | |
365 | as_fn_error () | |
366 | { | |
367 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
368 | if test "$3"; then | |
369 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
370 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
371 | fi | |
372 | $as_echo "$as_me: error: $1" >&2 | |
373 | as_fn_exit $as_status | |
374 | } # as_fn_error | |
375 | ||
376 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
377 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
378 | as_expr=expr | |
379 | else | |
380 | as_expr=false | |
381 | fi | |
382 | ||
383 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
384 | as_basename=basename | |
385 | else | |
386 | as_basename=false | |
387 | fi | |
388 | ||
389 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
390 | as_dirname=dirname | |
391 | else | |
392 | as_dirname=false | |
393 | fi | |
394 | ||
395 | as_me=`$as_basename -- "$0" || | |
396 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
397 | X"$0" : 'X\(//\)$' \| \ | |
398 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
399 | $as_echo X/"$0" | | |
400 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
401 | s//\1/ | |
402 | q | |
403 | } | |
404 | /^X\/\(\/\/\)$/{ | |
405 | s//\1/ | |
406 | q | |
407 | } | |
408 | /^X\/\(\/\).*/{ | |
409 | s//\1/ | |
410 | q | |
411 | } | |
412 | s/.*/./; q'` | |
413 | ||
414 | # Avoid depending upon Character Ranges. | |
415 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
416 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
417 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
418 | as_cr_digits='0123456789' | |
419 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
420 | ||
421 | ||
422 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
423 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
424 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
425 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
426 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
427 | sed -n ' | |
428 | p | |
429 | /[$]LINENO/= | |
430 | ' <$as_myself | | |
431 | sed ' | |
432 | s/[$]LINENO.*/&-/ | |
433 | t lineno | |
434 | b | |
435 | :lineno | |
436 | N | |
437 | :loop | |
438 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
439 | t loop | |
440 | s/-\n.*// | |
441 | ' >$as_me.lineno && | |
442 | chmod +x "$as_me.lineno" || | |
443 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
444 | ||
445 | # Don't try to exec as it changes $[0], causing all sort of problems | |
446 | # (the dirname of $[0] is not the place where we might find the | |
447 | # original and so on. Autoconf is especially sensitive to this). | |
448 | . "./$as_me.lineno" | |
449 | # Exit status is that of the last command. | |
450 | exit | |
451 | } | |
452 | ||
453 | ECHO_C= ECHO_N= ECHO_T= | |
454 | case `echo -n x` in #((((( | |
455 | -n*) | |
456 | case `echo 'xy\c'` in | |
457 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
458 | xy) ECHO_C='\c';; | |
459 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
460 | ECHO_T=' ';; | |
461 | esac;; | |
462 | *) | |
463 | ECHO_N='-n';; | |
464 | esac | |
465 | ||
466 | rm -f conf$$ conf$$.exe conf$$.file | |
467 | if test -d conf$$.dir; then | |
468 | rm -f conf$$.dir/conf$$.file | |
469 | else | |
470 | rm -f conf$$.dir | |
471 | mkdir conf$$.dir 2>/dev/null | |
472 | fi | |
473 | if (echo >conf$$.file) 2>/dev/null; then | |
474 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
475 | as_ln_s='ln -s' | |
476 | # ... but there are two gotchas: | |
477 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
478 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
479 | # In both cases, we have to default to `cp -p'. | |
480 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
481 | as_ln_s='cp -p' | |
482 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
483 | as_ln_s=ln | |
484 | else | |
485 | as_ln_s='cp -p' | |
486 | fi | |
487 | else | |
488 | as_ln_s='cp -p' | |
489 | fi | |
490 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
491 | rmdir conf$$.dir 2>/dev/null | |
492 | ||
493 | if mkdir -p . 2>/dev/null; then | |
494 | as_mkdir_p='mkdir -p "$as_dir"' | |
495 | else | |
496 | test -d ./-p && rmdir ./-p | |
497 | as_mkdir_p=false | |
498 | fi | |
499 | ||
500 | if test -x / >/dev/null 2>&1; then | |
501 | as_test_x='test -x' | |
502 | else | |
503 | if ls -dL / >/dev/null 2>&1; then | |
504 | as_ls_L_option=L | |
505 | else | |
506 | as_ls_L_option= | |
507 | fi | |
508 | as_test_x=' | |
509 | eval sh -c '\'' | |
510 | if test -d "$1"; then | |
511 | test -d "$1/."; | |
512 | else | |
513 | case $1 in #( | |
514 | -*)set "./$1";; | |
515 | esac; | |
516 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
517 | ???[sx]*):;;*)false;;esac;fi | |
518 | '\'' sh | |
519 | ' | |
520 | fi | |
521 | as_executable_p=$as_test_x | |
522 | ||
523 | # Sed expression to map a string onto a valid CPP name. | |
524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | # Sed expression to map a string onto a valid variable name. | |
527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
528 | ||
6b66678a DWT |
529 | as_awk_strverscmp=' |
530 | # Use only awk features that work with 7th edition Unix awk (1978). | |
531 | # My, what an old awk you have, Mr. Solaris! | |
532 | END { | |
533 | while (length(v1) && length(v2)) { | |
534 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
535 | # Normally this is a single character, but if v1 and v2 contain digits, | |
536 | # compare them as integers and fractions as strverscmp does. | |
537 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | |
538 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
539 | # and advance v1 and v2 past the leading digit strings. | |
540 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | |
541 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | |
542 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
543 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
544 | if (d1 ~ /^0/) { | |
545 | if (d2 ~ /^0/) { | |
546 | # Compare two fractions. | |
547 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
548 | d1 = substr(d1, 2); len1-- | |
549 | d2 = substr(d2, 2); len2-- | |
550 | } | |
551 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
552 | # The two components differ in length, and the common prefix | |
553 | # contains only leading zeros. Consider the longer to be less. | |
554 | d1 = -len1 | |
555 | d2 = -len2 | |
556 | } else { | |
557 | # Otherwise, compare as strings. | |
558 | d1 = "x" d1 | |
559 | d2 = "x" d2 | |
560 | } | |
561 | } else { | |
562 | # A fraction is less than an integer. | |
563 | exit 1 | |
564 | } | |
565 | } else { | |
566 | if (d2 ~ /^0/) { | |
567 | # An integer is greater than a fraction. | |
568 | exit 2 | |
569 | } else { | |
570 | # Compare two integers. | |
571 | d1 += 0 | |
572 | d2 += 0 | |
573 | } | |
574 | } | |
575 | } else { | |
576 | # The normal case, without worrying about digits. | |
577 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
578 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
579 | } | |
580 | if (d1 < d2) exit 1 | |
581 | if (d1 > d2) exit 2 | |
582 | } | |
583 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
584 | # which mishandles some comparisons of empty strings to integers. | |
585 | if (length(v2)) exit 1 | |
586 | if (length(v1)) exit 2 | |
587 | } | |
588 | ' | |
c7aa54aa DWT |
589 | |
590 | exec 7<&0 </dev/null 6>&1 | |
591 | ||
592 | # Name of the host. | |
593 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
594 | # so uname gets run too. | |
595 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
596 | ||
597 | # | |
598 | # Initializations. | |
599 | # | |
600 | ac_default_prefix=/usr/local | |
601 | ac_clean_files= | |
602 | ac_config_libobj_dir=. | |
603 | LIBOBJS= | |
604 | cross_compiling=no | |
605 | subdirs= | |
606 | MFLAGS= | |
607 | MAKEFLAGS= | |
608 | ||
609 | # Identity of this package. | |
610 | PACKAGE_NAME='Cycript' | |
611 | PACKAGE_TARNAME='cycript' | |
612 | PACKAGE_VERSION='0.9' | |
613 | PACKAGE_STRING='Cycript 0.9' | |
614 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
615 | PACKAGE_URL='http://www.cycript.org/' | |
616 | ||
35fa52c0 | 617 | ac_unique_file="Console.cpp" |
6b66678a DWT |
618 | # Factoring default headers for most tests. |
619 | ac_includes_default="\ | |
620 | #include <stdio.h> | |
621 | #ifdef HAVE_SYS_TYPES_H | |
622 | # include <sys/types.h> | |
623 | #endif | |
624 | #ifdef HAVE_SYS_STAT_H | |
625 | # include <sys/stat.h> | |
626 | #endif | |
627 | #ifdef STDC_HEADERS | |
628 | # include <stdlib.h> | |
629 | # include <stddef.h> | |
630 | #else | |
631 | # ifdef HAVE_STDLIB_H | |
632 | # include <stdlib.h> | |
633 | # endif | |
634 | #endif | |
635 | #ifdef HAVE_STRING_H | |
636 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
637 | # include <memory.h> | |
638 | # endif | |
639 | # include <string.h> | |
640 | #endif | |
641 | #ifdef HAVE_STRINGS_H | |
642 | # include <strings.h> | |
643 | #endif | |
644 | #ifdef HAVE_INTTYPES_H | |
645 | # include <inttypes.h> | |
646 | #endif | |
647 | #ifdef HAVE_STDINT_H | |
648 | # include <stdint.h> | |
649 | #endif | |
650 | #ifdef HAVE_UNISTD_H | |
651 | # include <unistd.h> | |
652 | #endif" | |
653 | ||
309b0535 | 654 | ac_subst_vars='ifGNUmake |
6b66678a DWT |
655 | EGREP |
656 | GREP | |
657 | CPP | |
309b0535 | 658 | LIBFFI_LIBS |
35fa52c0 DWT |
659 | LIBFFI_CFLAGS |
660 | WEBKIT_LIBS | |
661 | WEBKIT_CFLAGS | |
662 | PKG_CONFIG | |
663 | LTLIBICONV | |
664 | LIBICONV | |
665 | host_os | |
666 | host_vendor | |
667 | host_cpu | |
668 | host | |
669 | build_os | |
670 | build_vendor | |
671 | build_cpu | |
672 | build | |
673 | INSTALL_DATA | |
674 | INSTALL_SCRIPT | |
675 | INSTALL_PROGRAM | |
dbadc56a | 676 | ac_ct_CXX |
dbadc56a DWT |
677 | CXXFLAGS |
678 | CXX | |
309b0535 | 679 | APR |
35fa52c0 DWT |
680 | FLEX |
681 | LEXLIB | |
682 | OBJEXT | |
683 | EXEEXT | |
684 | ac_ct_CC | |
685 | CPPFLAGS | |
686 | LDFLAGS | |
687 | CFLAGS | |
688 | CC | |
689 | LEX_OUTPUT_ROOT | |
690 | LEX | |
691 | BISON | |
692 | AWK | |
693 | SED | |
694 | YFLAGS | |
695 | YACC | |
dbadc56a | 696 | target_alias |
c7aa54aa DWT |
697 | host_alias |
698 | build_alias | |
699 | LIBS | |
700 | ECHO_T | |
701 | ECHO_N | |
702 | ECHO_C | |
703 | DEFS | |
704 | mandir | |
705 | localedir | |
706 | libdir | |
707 | psdir | |
708 | pdfdir | |
709 | dvidir | |
710 | htmldir | |
711 | infodir | |
712 | docdir | |
713 | oldincludedir | |
714 | includedir | |
715 | localstatedir | |
716 | sharedstatedir | |
717 | sysconfdir | |
718 | datadir | |
719 | datarootdir | |
720 | libexecdir | |
721 | sbindir | |
722 | bindir | |
723 | program_transform_name | |
724 | prefix | |
725 | exec_prefix | |
726 | PACKAGE_URL | |
727 | PACKAGE_BUGREPORT | |
728 | PACKAGE_STRING | |
729 | PACKAGE_VERSION | |
730 | PACKAGE_TARNAME | |
731 | PACKAGE_NAME | |
732 | PATH_SEPARATOR | |
733 | SHELL' | |
734 | ac_subst_files='' | |
735 | ac_user_opts=' | |
736 | enable_option_checking | |
309b0535 | 737 | with_apr |
35fa52c0 DWT |
738 | with_gnu_ld |
739 | enable_rpath | |
740 | with_libiconv_prefix | |
c7aa54aa DWT |
741 | ' |
742 | ac_precious_vars='build_alias | |
743 | host_alias | |
dbadc56a | 744 | target_alias |
35fa52c0 DWT |
745 | YACC |
746 | YFLAGS | |
747 | CC | |
748 | CFLAGS | |
dbadc56a DWT |
749 | LDFLAGS |
750 | LIBS | |
751 | CPPFLAGS | |
35fa52c0 DWT |
752 | CXX |
753 | CXXFLAGS | |
754 | CCC | |
755 | PKG_CONFIG | |
756 | WEBKIT_CFLAGS | |
757 | WEBKIT_LIBS | |
758 | LIBFFI_CFLAGS | |
6b66678a DWT |
759 | LIBFFI_LIBS |
760 | CPP' | |
c7aa54aa DWT |
761 | |
762 | ||
763 | # Initialize some variables set by options. | |
764 | ac_init_help= | |
765 | ac_init_version=false | |
766 | ac_unrecognized_opts= | |
767 | ac_unrecognized_sep= | |
768 | # The variables have the same names as the options, with | |
769 | # dashes changed to underlines. | |
770 | cache_file=/dev/null | |
771 | exec_prefix=NONE | |
772 | no_create= | |
773 | no_recursion= | |
774 | prefix=NONE | |
775 | program_prefix=NONE | |
776 | program_suffix=NONE | |
777 | program_transform_name=s,x,x, | |
778 | silent= | |
779 | site= | |
780 | srcdir= | |
781 | verbose= | |
782 | x_includes=NONE | |
783 | x_libraries=NONE | |
784 | ||
785 | # Installation directory options. | |
786 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
787 | # and all the variables that are supposed to be based on exec_prefix | |
788 | # by default will actually change. | |
789 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
790 | # (The list follows the same order as the GNU Coding Standards.) | |
791 | bindir='${exec_prefix}/bin' | |
792 | sbindir='${exec_prefix}/sbin' | |
793 | libexecdir='${exec_prefix}/libexec' | |
794 | datarootdir='${prefix}/share' | |
795 | datadir='${datarootdir}' | |
796 | sysconfdir='${prefix}/etc' | |
797 | sharedstatedir='${prefix}/com' | |
798 | localstatedir='${prefix}/var' | |
799 | includedir='${prefix}/include' | |
800 | oldincludedir='/usr/include' | |
801 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
802 | infodir='${datarootdir}/info' | |
803 | htmldir='${docdir}' | |
804 | dvidir='${docdir}' | |
805 | pdfdir='${docdir}' | |
806 | psdir='${docdir}' | |
807 | libdir='${exec_prefix}/lib' | |
808 | localedir='${datarootdir}/locale' | |
809 | mandir='${datarootdir}/man' | |
810 | ||
811 | ac_prev= | |
812 | ac_dashdash= | |
813 | for ac_option | |
814 | do | |
815 | # If the previous option needs an argument, assign it. | |
816 | if test -n "$ac_prev"; then | |
817 | eval $ac_prev=\$ac_option | |
818 | ac_prev= | |
819 | continue | |
820 | fi | |
821 | ||
822 | case $ac_option in | |
823 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
824 | *) ac_optarg=yes ;; | |
825 | esac | |
826 | ||
827 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
828 | ||
829 | case $ac_dashdash$ac_option in | |
830 | --) | |
831 | ac_dashdash=yes ;; | |
832 | ||
833 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
834 | ac_prev=bindir ;; | |
835 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
836 | bindir=$ac_optarg ;; | |
837 | ||
838 | -build | --build | --buil | --bui | --bu) | |
839 | ac_prev=build_alias ;; | |
840 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
841 | build_alias=$ac_optarg ;; | |
842 | ||
843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
845 | ac_prev=cache_file ;; | |
846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
848 | cache_file=$ac_optarg ;; | |
849 | ||
850 | --config-cache | -C) | |
851 | cache_file=config.cache ;; | |
852 | ||
853 | -datadir | --datadir | --datadi | --datad) | |
854 | ac_prev=datadir ;; | |
855 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
856 | datadir=$ac_optarg ;; | |
857 | ||
858 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
859 | | --dataroo | --dataro | --datar) | |
860 | ac_prev=datarootdir ;; | |
861 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
862 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
863 | datarootdir=$ac_optarg ;; | |
864 | ||
865 | -disable-* | --disable-*) | |
866 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
867 | # Reject names that are not valid shell variable names. | |
868 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
869 | as_fn_error "invalid feature name: $ac_useropt" | |
870 | ac_useropt_orig=$ac_useropt | |
871 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
872 | case $ac_user_opts in | |
873 | *" | |
874 | "enable_$ac_useropt" | |
875 | "*) ;; | |
876 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
877 | ac_unrecognized_sep=', ';; | |
878 | esac | |
879 | eval enable_$ac_useropt=no ;; | |
880 | ||
881 | -docdir | --docdir | --docdi | --doc | --do) | |
882 | ac_prev=docdir ;; | |
883 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
884 | docdir=$ac_optarg ;; | |
885 | ||
886 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
887 | ac_prev=dvidir ;; | |
888 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
889 | dvidir=$ac_optarg ;; | |
890 | ||
891 | -enable-* | --enable-*) | |
892 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
893 | # Reject names that are not valid shell variable names. | |
894 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
895 | as_fn_error "invalid feature name: $ac_useropt" | |
896 | ac_useropt_orig=$ac_useropt | |
897 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
898 | case $ac_user_opts in | |
899 | *" | |
900 | "enable_$ac_useropt" | |
901 | "*) ;; | |
902 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
903 | ac_unrecognized_sep=', ';; | |
904 | esac | |
905 | eval enable_$ac_useropt=\$ac_optarg ;; | |
906 | ||
907 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
908 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
909 | | --exec | --exe | --ex) | |
910 | ac_prev=exec_prefix ;; | |
911 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
912 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
913 | | --exec=* | --exe=* | --ex=*) | |
914 | exec_prefix=$ac_optarg ;; | |
915 | ||
916 | -gas | --gas | --ga | --g) | |
917 | # Obsolete; use --with-gas. | |
918 | with_gas=yes ;; | |
919 | ||
920 | -help | --help | --hel | --he | -h) | |
921 | ac_init_help=long ;; | |
922 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
923 | ac_init_help=recursive ;; | |
924 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
925 | ac_init_help=short ;; | |
926 | ||
927 | -host | --host | --hos | --ho) | |
928 | ac_prev=host_alias ;; | |
929 | -host=* | --host=* | --hos=* | --ho=*) | |
930 | host_alias=$ac_optarg ;; | |
931 | ||
932 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
933 | ac_prev=htmldir ;; | |
934 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
935 | | --ht=*) | |
936 | htmldir=$ac_optarg ;; | |
937 | ||
938 | -includedir | --includedir | --includedi | --included | --include \ | |
939 | | --includ | --inclu | --incl | --inc) | |
940 | ac_prev=includedir ;; | |
941 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
942 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
943 | includedir=$ac_optarg ;; | |
944 | ||
945 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
946 | ac_prev=infodir ;; | |
947 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
948 | infodir=$ac_optarg ;; | |
949 | ||
950 | -libdir | --libdir | --libdi | --libd) | |
951 | ac_prev=libdir ;; | |
952 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
953 | libdir=$ac_optarg ;; | |
954 | ||
955 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
956 | | --libexe | --libex | --libe) | |
957 | ac_prev=libexecdir ;; | |
958 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
959 | | --libexe=* | --libex=* | --libe=*) | |
960 | libexecdir=$ac_optarg ;; | |
961 | ||
962 | -localedir | --localedir | --localedi | --localed | --locale) | |
963 | ac_prev=localedir ;; | |
964 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
965 | localedir=$ac_optarg ;; | |
966 | ||
967 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
968 | | --localstate | --localstat | --localsta | --localst | --locals) | |
969 | ac_prev=localstatedir ;; | |
970 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
971 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
972 | localstatedir=$ac_optarg ;; | |
973 | ||
974 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
975 | ac_prev=mandir ;; | |
976 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
977 | mandir=$ac_optarg ;; | |
978 | ||
979 | -nfp | --nfp | --nf) | |
980 | # Obsolete; use --without-fp. | |
981 | with_fp=no ;; | |
982 | ||
983 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
984 | | --no-cr | --no-c | -n) | |
985 | no_create=yes ;; | |
986 | ||
987 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
988 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
989 | no_recursion=yes ;; | |
990 | ||
991 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
992 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
993 | | --oldin | --oldi | --old | --ol | --o) | |
994 | ac_prev=oldincludedir ;; | |
995 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
996 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
997 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
998 | oldincludedir=$ac_optarg ;; | |
999 | ||
1000 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1001 | ac_prev=prefix ;; | |
1002 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1003 | prefix=$ac_optarg ;; | |
1004 | ||
1005 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1006 | | --program-pre | --program-pr | --program-p) | |
1007 | ac_prev=program_prefix ;; | |
1008 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1009 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1010 | program_prefix=$ac_optarg ;; | |
1011 | ||
1012 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1013 | | --program-suf | --program-su | --program-s) | |
1014 | ac_prev=program_suffix ;; | |
1015 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1016 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1017 | program_suffix=$ac_optarg ;; | |
1018 | ||
1019 | -program-transform-name | --program-transform-name \ | |
1020 | | --program-transform-nam | --program-transform-na \ | |
1021 | | --program-transform-n | --program-transform- \ | |
1022 | | --program-transform | --program-transfor \ | |
1023 | | --program-transfo | --program-transf \ | |
1024 | | --program-trans | --program-tran \ | |
1025 | | --progr-tra | --program-tr | --program-t) | |
1026 | ac_prev=program_transform_name ;; | |
1027 | -program-transform-name=* | --program-transform-name=* \ | |
1028 | | --program-transform-nam=* | --program-transform-na=* \ | |
1029 | | --program-transform-n=* | --program-transform-=* \ | |
1030 | | --program-transform=* | --program-transfor=* \ | |
1031 | | --program-transfo=* | --program-transf=* \ | |
1032 | | --program-trans=* | --program-tran=* \ | |
1033 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1034 | program_transform_name=$ac_optarg ;; | |
1035 | ||
1036 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1037 | ac_prev=pdfdir ;; | |
1038 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1039 | pdfdir=$ac_optarg ;; | |
1040 | ||
1041 | -psdir | --psdir | --psdi | --psd | --ps) | |
1042 | ac_prev=psdir ;; | |
1043 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1044 | psdir=$ac_optarg ;; | |
1045 | ||
1046 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1047 | | -silent | --silent | --silen | --sile | --sil) | |
1048 | silent=yes ;; | |
1049 | ||
1050 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1051 | ac_prev=sbindir ;; | |
1052 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1053 | | --sbi=* | --sb=*) | |
1054 | sbindir=$ac_optarg ;; | |
1055 | ||
1056 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1057 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1058 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1059 | | --sha | --sh) | |
1060 | ac_prev=sharedstatedir ;; | |
1061 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1062 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1063 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1064 | | --sha=* | --sh=*) | |
1065 | sharedstatedir=$ac_optarg ;; | |
1066 | ||
1067 | -site | --site | --sit) | |
1068 | ac_prev=site ;; | |
1069 | -site=* | --site=* | --sit=*) | |
1070 | site=$ac_optarg ;; | |
1071 | ||
1072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1073 | ac_prev=srcdir ;; | |
1074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1075 | srcdir=$ac_optarg ;; | |
1076 | ||
1077 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1078 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1079 | ac_prev=sysconfdir ;; | |
1080 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1081 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1082 | sysconfdir=$ac_optarg ;; | |
1083 | ||
1084 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1085 | ac_prev=target_alias ;; | |
1086 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1087 | target_alias=$ac_optarg ;; | |
1088 | ||
1089 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1090 | verbose=yes ;; | |
1091 | ||
1092 | -version | --version | --versio | --versi | --vers | -V) | |
1093 | ac_init_version=: ;; | |
1094 | ||
1095 | -with-* | --with-*) | |
1096 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1097 | # Reject names that are not valid shell variable names. | |
1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1099 | as_fn_error "invalid package name: $ac_useropt" | |
1100 | ac_useropt_orig=$ac_useropt | |
1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1102 | case $ac_user_opts in | |
1103 | *" | |
1104 | "with_$ac_useropt" | |
1105 | "*) ;; | |
1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1107 | ac_unrecognized_sep=', ';; | |
1108 | esac | |
1109 | eval with_$ac_useropt=\$ac_optarg ;; | |
1110 | ||
1111 | -without-* | --without-*) | |
1112 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1113 | # Reject names that are not valid shell variable names. | |
1114 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1115 | as_fn_error "invalid package name: $ac_useropt" | |
1116 | ac_useropt_orig=$ac_useropt | |
1117 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1118 | case $ac_user_opts in | |
1119 | *" | |
1120 | "with_$ac_useropt" | |
1121 | "*) ;; | |
1122 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1123 | ac_unrecognized_sep=', ';; | |
1124 | esac | |
1125 | eval with_$ac_useropt=no ;; | |
1126 | ||
1127 | --x) | |
1128 | # Obsolete; use --with-x. | |
1129 | with_x=yes ;; | |
1130 | ||
1131 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1132 | | --x-incl | --x-inc | --x-in | --x-i) | |
1133 | ac_prev=x_includes ;; | |
1134 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1135 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1136 | x_includes=$ac_optarg ;; | |
1137 | ||
1138 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1139 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1140 | ac_prev=x_libraries ;; | |
1141 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1142 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1143 | x_libraries=$ac_optarg ;; | |
1144 | ||
1145 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1146 | Try \`$0 --help' for more information." | |
1147 | ;; | |
1148 | ||
1149 | *=*) | |
1150 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1151 | # Reject names that are not valid shell variable names. | |
1152 | case $ac_envvar in #( | |
1153 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1154 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1155 | esac | |
1156 | eval $ac_envvar=\$ac_optarg | |
1157 | export $ac_envvar ;; | |
1158 | ||
1159 | *) | |
1160 | # FIXME: should be removed in autoconf 3.0. | |
1161 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1162 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1163 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1164 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1165 | ;; | |
1166 | ||
1167 | esac | |
1168 | done | |
1169 | ||
1170 | if test -n "$ac_prev"; then | |
1171 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1172 | as_fn_error "missing argument to $ac_option" | |
1173 | fi | |
1174 | ||
1175 | if test -n "$ac_unrecognized_opts"; then | |
1176 | case $enable_option_checking in | |
1177 | no) ;; | |
1178 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1179 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1180 | esac | |
1181 | fi | |
1182 | ||
1183 | # Check all directory arguments for consistency. | |
1184 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1185 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1186 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1187 | libdir localedir mandir | |
1188 | do | |
1189 | eval ac_val=\$$ac_var | |
1190 | # Remove trailing slashes. | |
1191 | case $ac_val in | |
1192 | */ ) | |
1193 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1194 | eval $ac_var=\$ac_val;; | |
1195 | esac | |
1196 | # Be sure to have absolute directory names. | |
1197 | case $ac_val in | |
1198 | [\\/$]* | ?:[\\/]* ) continue;; | |
1199 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1200 | esac | |
1201 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1202 | done | |
1203 | ||
1204 | # There might be people who depend on the old broken behavior: `$host' | |
1205 | # used to hold the argument of --host etc. | |
1206 | # FIXME: To remove some day. | |
1207 | build=$build_alias | |
1208 | host=$host_alias | |
1209 | target=$target_alias | |
1210 | ||
1211 | # FIXME: To remove some day. | |
1212 | if test "x$host_alias" != x; then | |
1213 | if test "x$build_alias" = x; then | |
1214 | cross_compiling=maybe | |
1215 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1216 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1217 | elif test "x$build_alias" != "x$host_alias"; then | |
1218 | cross_compiling=yes | |
1219 | fi | |
1220 | fi | |
1221 | ||
1222 | ac_tool_prefix= | |
1223 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1224 | ||
1225 | test "$silent" = yes && exec 6>/dev/null | |
1226 | ||
1227 | ||
1228 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1229 | ac_ls_di=`ls -di .` && | |
1230 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1231 | as_fn_error "working directory cannot be determined" | |
1232 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1233 | as_fn_error "pwd does not report name of working directory" | |
1234 | ||
1235 | ||
1236 | # Find the source files, if location was not specified. | |
1237 | if test -z "$srcdir"; then | |
1238 | ac_srcdir_defaulted=yes | |
1239 | # Try the directory containing this script, then the parent directory. | |
1240 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1241 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1242 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1243 | X"$as_myself" : 'X\(//\)$' \| \ | |
1244 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1245 | $as_echo X"$as_myself" | | |
1246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1247 | s//\1/ | |
1248 | q | |
1249 | } | |
1250 | /^X\(\/\/\)[^/].*/{ | |
1251 | s//\1/ | |
1252 | q | |
1253 | } | |
1254 | /^X\(\/\/\)$/{ | |
1255 | s//\1/ | |
1256 | q | |
1257 | } | |
1258 | /^X\(\/\).*/{ | |
1259 | s//\1/ | |
1260 | q | |
1261 | } | |
1262 | s/.*/./; q'` | |
1263 | srcdir=$ac_confdir | |
1264 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1265 | srcdir=.. | |
1266 | fi | |
1267 | else | |
1268 | ac_srcdir_defaulted=no | |
1269 | fi | |
1270 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1271 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1272 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1273 | fi | |
1274 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1275 | ac_abs_confdir=`( | |
1276 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1277 | pwd)` | |
1278 | # When building in place, set srcdir=. | |
1279 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1280 | srcdir=. | |
1281 | fi | |
1282 | # Remove unnecessary trailing slashes from srcdir. | |
1283 | # Double slashes in file names in object file debugging info | |
1284 | # mess up M-x gdb in Emacs. | |
1285 | case $srcdir in | |
1286 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1287 | esac | |
1288 | for ac_var in $ac_precious_vars; do | |
1289 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1290 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1291 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1292 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1293 | done | |
1294 | ||
1295 | # | |
1296 | # Report the --help message. | |
1297 | # | |
1298 | if test "$ac_init_help" = "long"; then | |
1299 | # Omit some internal or obsolete options to make the list less imposing. | |
1300 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1301 | cat <<_ACEOF | |
1302 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1303 | ||
1304 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1305 | ||
1306 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1307 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1308 | ||
1309 | Defaults for the options are specified in brackets. | |
1310 | ||
1311 | Configuration: | |
1312 | -h, --help display this help and exit | |
1313 | --help=short display options specific to this package | |
1314 | --help=recursive display the short help of all the included packages | |
1315 | -V, --version display version information and exit | |
1316 | -q, --quiet, --silent do not print \`checking...' messages | |
1317 | --cache-file=FILE cache test results in FILE [disabled] | |
1318 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1319 | -n, --no-create do not create output files | |
1320 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1321 | ||
1322 | Installation directories: | |
1323 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1324 | [$ac_default_prefix] | |
1325 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1326 | [PREFIX] | |
1327 | ||
1328 | By default, \`make install' will install all the files in | |
1329 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1330 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1331 | for instance \`--prefix=\$HOME'. | |
1332 | ||
1333 | For better control, use the options below. | |
1334 | ||
1335 | Fine tuning of the installation directories: | |
1336 | --bindir=DIR user executables [EPREFIX/bin] | |
1337 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1338 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1339 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1340 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1341 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1342 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1343 | --includedir=DIR C header files [PREFIX/include] | |
1344 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1345 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1346 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1347 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1348 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1349 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1350 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1351 | --htmldir=DIR html documentation [DOCDIR] | |
1352 | --dvidir=DIR dvi documentation [DOCDIR] | |
1353 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1354 | --psdir=DIR ps documentation [DOCDIR] | |
1355 | _ACEOF | |
1356 | ||
1357 | cat <<\_ACEOF | |
35fa52c0 DWT |
1358 | |
1359 | System types: | |
1360 | --build=BUILD configure for building on BUILD [guessed] | |
1361 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1362 | _ACEOF |
1363 | fi | |
1364 | ||
1365 | if test -n "$ac_init_help"; then | |
1366 | case $ac_init_help in | |
1367 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1368 | esac | |
1369 | cat <<\_ACEOF | |
1370 | ||
35fa52c0 DWT |
1371 | Optional Features: |
1372 | --disable-option-checking ignore unrecognized --enable/--with options | |
1373 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1374 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1375 | --disable-rpath do not hardcode runtime library paths | |
1376 | ||
1377 | Optional Packages: | |
1378 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1379 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
309b0535 DWT |
1380 | --with-apr=PATH prefix for installed APR or the full path to |
1381 | apr-config | |
35fa52c0 DWT |
1382 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1383 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1384 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1385 | ||
dbadc56a | 1386 | Some influential environment variables: |
35fa52c0 DWT |
1387 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1388 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1389 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1390 | This script will default YFLAGS to the empty string to avoid a | |
1391 | default value of `-d' given by some make applications. | |
1392 | CC C compiler command | |
1393 | CFLAGS C compiler flags | |
dbadc56a DWT |
1394 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1395 | nonstandard directory <lib dir> | |
1396 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1397 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1398 | you have headers in a nonstandard directory <include dir> | |
35fa52c0 DWT |
1399 | CXX C++ compiler command |
1400 | CXXFLAGS C++ compiler flags | |
1401 | PKG_CONFIG path to pkg-config utility | |
1402 | WEBKIT_CFLAGS | |
1403 | C compiler flags for WEBKIT, overriding pkg-config | |
1404 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1405 | LIBFFI_CFLAGS | |
1406 | C compiler flags for LIBFFI, overriding pkg-config | |
1407 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
6b66678a | 1408 | CPP C preprocessor |
dbadc56a DWT |
1409 | |
1410 | Use these variables to override the choices made by `configure' or to help | |
1411 | it to find libraries and programs with nonstandard names/locations. | |
1412 | ||
c7aa54aa DWT |
1413 | Report bugs to <saurik@saurik.com>. |
1414 | Cycript home page: <http://www.cycript.org/>. | |
1415 | _ACEOF | |
1416 | ac_status=$? | |
1417 | fi | |
1418 | ||
1419 | if test "$ac_init_help" = "recursive"; then | |
1420 | # If there are subdirs, report their specific --help. | |
1421 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1422 | test -d "$ac_dir" || | |
1423 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1424 | continue | |
1425 | ac_builddir=. | |
1426 | ||
1427 | case "$ac_dir" in | |
1428 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1429 | *) | |
1430 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1431 | # A ".." for each directory in $ac_dir_suffix. | |
1432 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1433 | case $ac_top_builddir_sub in | |
1434 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1435 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1436 | esac ;; | |
1437 | esac | |
1438 | ac_abs_top_builddir=$ac_pwd | |
1439 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1440 | # for backward compatibility: | |
1441 | ac_top_builddir=$ac_top_build_prefix | |
1442 | ||
1443 | case $srcdir in | |
1444 | .) # We are building in place. | |
1445 | ac_srcdir=. | |
1446 | ac_top_srcdir=$ac_top_builddir_sub | |
1447 | ac_abs_top_srcdir=$ac_pwd ;; | |
1448 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1449 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1450 | ac_top_srcdir=$srcdir | |
1451 | ac_abs_top_srcdir=$srcdir ;; | |
1452 | *) # Relative name. | |
1453 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1454 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1455 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1456 | esac | |
1457 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1458 | ||
1459 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1460 | # Check for guested configure. | |
1461 | if test -f "$ac_srcdir/configure.gnu"; then | |
1462 | echo && | |
1463 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1464 | elif test -f "$ac_srcdir/configure"; then | |
1465 | echo && | |
1466 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1467 | else | |
1468 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1469 | fi || ac_status=$? | |
1470 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1471 | done | |
1472 | fi | |
1473 | ||
1474 | test -n "$ac_init_help" && exit $ac_status | |
1475 | if $ac_init_version; then | |
1476 | cat <<\_ACEOF | |
1477 | Cycript configure 0.9 | |
1478 | generated by GNU Autoconf 2.64 | |
1479 | ||
1480 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1481 | This configure script is free software; the Free Software Foundation | |
1482 | gives unlimited permission to copy, distribute and modify it. | |
1483 | _ACEOF | |
1484 | exit | |
1485 | fi | |
1486 | ||
1487 | ## ------------------------ ## | |
1488 | ## Autoconf initialization. ## | |
1489 | ## ------------------------ ## | |
dbadc56a | 1490 | |
35fa52c0 DWT |
1491 | # ac_fn_c_try_compile LINENO |
1492 | # -------------------------- | |
1493 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1494 | ac_fn_c_try_compile () | |
1495 | { | |
1496 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1497 | rm -f conftest.$ac_objext | |
1498 | if { { ac_try="$ac_compile" | |
1499 | case "(($ac_try" in | |
1500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1501 | *) ac_try_echo=$ac_try;; | |
1502 | esac | |
1503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1504 | $as_echo "$ac_try_echo"; } >&5 | |
1505 | (eval "$ac_compile") 2>conftest.err | |
1506 | ac_status=$? | |
1507 | if test -s conftest.err; then | |
1508 | grep -v '^ *+' conftest.err >conftest.er1 | |
1509 | cat conftest.er1 >&5 | |
1510 | mv -f conftest.er1 conftest.err | |
1511 | fi | |
1512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1513 | test $ac_status = 0; } && { | |
1514 | test -z "$ac_c_werror_flag" || | |
1515 | test ! -s conftest.err | |
1516 | } && test -s conftest.$ac_objext; then : | |
1517 | ac_retval=0 | |
1518 | else | |
1519 | $as_echo "$as_me: failed program was:" >&5 | |
1520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1521 | ||
1522 | ac_retval=1 | |
1523 | fi | |
1524 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1525 | return $ac_retval | |
1526 | ||
1527 | } # ac_fn_c_try_compile | |
1528 | ||
1529 | # ac_fn_c_try_link LINENO | |
1530 | # ----------------------- | |
1531 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1532 | ac_fn_c_try_link () | |
1533 | { | |
1534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1536 | if { { ac_try="$ac_link" | |
1537 | case "(($ac_try" in | |
1538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1539 | *) ac_try_echo=$ac_try;; | |
1540 | esac | |
1541 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1542 | $as_echo "$ac_try_echo"; } >&5 | |
1543 | (eval "$ac_link") 2>conftest.err | |
1544 | ac_status=$? | |
1545 | if test -s conftest.err; then | |
1546 | grep -v '^ *+' conftest.err >conftest.er1 | |
1547 | cat conftest.er1 >&5 | |
1548 | mv -f conftest.er1 conftest.err | |
1549 | fi | |
1550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1551 | test $ac_status = 0; } && { | |
1552 | test -z "$ac_c_werror_flag" || | |
1553 | test ! -s conftest.err | |
1554 | } && test -s conftest$ac_exeext && { | |
1555 | test "$cross_compiling" = yes || | |
1556 | $as_test_x conftest$ac_exeext | |
1557 | }; then : | |
1558 | ac_retval=0 | |
1559 | else | |
1560 | $as_echo "$as_me: failed program was:" >&5 | |
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1562 | ||
1563 | ac_retval=1 | |
1564 | fi | |
1565 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1566 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1567 | # interfere with the next link command; also delete a directory that is | |
1568 | # left behind by Apple's compiler. We do this before executing the actions. | |
1569 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1570 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1571 | return $ac_retval | |
1572 | ||
1573 | } # ac_fn_c_try_link | |
1574 | ||
dbadc56a DWT |
1575 | # ac_fn_cxx_try_compile LINENO |
1576 | # ---------------------------- | |
1577 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1578 | ac_fn_cxx_try_compile () | |
1579 | { | |
1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1581 | rm -f conftest.$ac_objext | |
1582 | if { { ac_try="$ac_compile" | |
1583 | case "(($ac_try" in | |
1584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1585 | *) ac_try_echo=$ac_try;; | |
1586 | esac | |
1587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1588 | $as_echo "$ac_try_echo"; } >&5 | |
1589 | (eval "$ac_compile") 2>conftest.err | |
1590 | ac_status=$? | |
1591 | if test -s conftest.err; then | |
1592 | grep -v '^ *+' conftest.err >conftest.er1 | |
1593 | cat conftest.er1 >&5 | |
1594 | mv -f conftest.er1 conftest.err | |
1595 | fi | |
1596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1597 | test $ac_status = 0; } && { | |
1598 | test -z "$ac_cxx_werror_flag" || | |
1599 | test ! -s conftest.err | |
1600 | } && test -s conftest.$ac_objext; then : | |
1601 | ac_retval=0 | |
1602 | else | |
1603 | $as_echo "$as_me: failed program was:" >&5 | |
1604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1605 | ||
1606 | ac_retval=1 | |
1607 | fi | |
1608 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1609 | return $ac_retval | |
1610 | ||
1611 | } # ac_fn_cxx_try_compile | |
35fa52c0 DWT |
1612 | |
1613 | # ac_fn_c_try_run LINENO | |
1614 | # ---------------------- | |
1615 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1616 | # that executables *can* be run. | |
1617 | ac_fn_c_try_run () | |
1618 | { | |
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1620 | if { { ac_try="$ac_link" | |
1621 | case "(($ac_try" in | |
1622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1623 | *) ac_try_echo=$ac_try;; | |
1624 | esac | |
1625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1626 | $as_echo "$ac_try_echo"; } >&5 | |
1627 | (eval "$ac_link") 2>&5 | |
1628 | ac_status=$? | |
1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1630 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1631 | { { case "(($ac_try" in | |
1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1633 | *) ac_try_echo=$ac_try;; | |
1634 | esac | |
1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1636 | $as_echo "$ac_try_echo"; } >&5 | |
1637 | (eval "$ac_try") 2>&5 | |
1638 | ac_status=$? | |
1639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1640 | test $ac_status = 0; }; }; then : | |
1641 | ac_retval=0 | |
1642 | else | |
1643 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1646 | ||
1647 | ac_retval=$ac_status | |
1648 | fi | |
1649 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1650 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1651 | return $ac_retval | |
1652 | ||
1653 | } # ac_fn_c_try_run | |
6b66678a DWT |
1654 | |
1655 | # ac_fn_c_try_cpp LINENO | |
1656 | # ---------------------- | |
1657 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1658 | ac_fn_c_try_cpp () | |
1659 | { | |
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1661 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1662 | case "(($ac_try" in | |
1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1664 | *) ac_try_echo=$ac_try;; | |
1665 | esac | |
1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1667 | $as_echo "$ac_try_echo"; } >&5 | |
1668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1669 | ac_status=$? | |
1670 | if test -s conftest.err; then | |
1671 | grep -v '^ *+' conftest.err >conftest.er1 | |
1672 | cat conftest.er1 >&5 | |
1673 | mv -f conftest.er1 conftest.err | |
1674 | fi | |
1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1676 | test $ac_status = 0; } >/dev/null && { | |
1677 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1678 | test ! -s conftest.err | |
1679 | }; then : | |
1680 | ac_retval=0 | |
1681 | else | |
1682 | $as_echo "$as_me: failed program was:" >&5 | |
1683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1684 | ||
1685 | ac_retval=1 | |
1686 | fi | |
1687 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1688 | return $ac_retval | |
1689 | ||
1690 | } # ac_fn_c_try_cpp | |
1691 | ||
1692 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1693 | # ------------------------------------------------------- | |
1694 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1695 | # the include files in INCLUDES and setting the cache variable VAR | |
1696 | # accordingly. | |
1697 | ac_fn_c_check_header_mongrel () | |
1698 | { | |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1700 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1702 | $as_echo_n "checking for $2... " >&6; } | |
1703 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1704 | $as_echo_n "(cached) " >&6 | |
1705 | fi | |
1706 | eval ac_res=\$$3 | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1708 | $as_echo "$ac_res" >&6; } | |
1709 | else | |
1710 | # Is the header compilable? | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1712 | $as_echo_n "checking $2 usability... " >&6; } | |
1713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1714 | /* end confdefs.h. */ | |
1715 | $4 | |
1716 | #include <$2> | |
1717 | _ACEOF | |
1718 | if ac_fn_c_try_compile "$LINENO"; then : | |
1719 | ac_header_compiler=yes | |
1720 | else | |
1721 | ac_header_compiler=no | |
1722 | fi | |
1723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1725 | $as_echo "$ac_header_compiler" >&6; } | |
1726 | ||
1727 | # Is the header present? | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1729 | $as_echo_n "checking $2 presence... " >&6; } | |
1730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1731 | /* end confdefs.h. */ | |
1732 | #include <$2> | |
1733 | _ACEOF | |
1734 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1735 | ac_header_preproc=yes | |
1736 | else | |
1737 | ac_header_preproc=no | |
1738 | fi | |
1739 | rm -f conftest.err conftest.$ac_ext | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1741 | $as_echo "$ac_header_preproc" >&6; } | |
1742 | ||
1743 | # So? What about this header? | |
1744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1745 | yes:no: ) | |
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1747 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1749 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1750 | ;; | |
1751 | no:yes:* ) | |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1753 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1755 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1757 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1759 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1761 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1762 | ( cat <<\_ASBOX | |
1763 | ## -------------------------------- ## | |
1764 | ## Report this to saurik@saurik.com ## | |
1765 | ## -------------------------------- ## | |
1766 | _ASBOX | |
1767 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1768 | ;; | |
1769 | esac | |
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1771 | $as_echo_n "checking for $2... " >&6; } | |
1772 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1773 | $as_echo_n "(cached) " >&6 | |
1774 | else | |
1775 | eval "$3=\$ac_header_compiler" | |
1776 | fi | |
1777 | eval ac_res=\$$3 | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1779 | $as_echo "$ac_res" >&6; } | |
1780 | fi | |
1781 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1782 | ||
1783 | } # ac_fn_c_check_header_mongrel | |
1784 | ||
1785 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1786 | # ------------------------------------------------------- | |
1787 | # Tests whether HEADER exists and can be compiled using the include files in | |
1788 | # INCLUDES, setting the cache variable VAR accordingly. | |
1789 | ac_fn_c_check_header_compile () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
1794 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1795 | $as_echo_n "(cached) " >&6 | |
1796 | else | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | $4 | |
1800 | #include <$2> | |
1801 | _ACEOF | |
1802 | if ac_fn_c_try_compile "$LINENO"; then : | |
1803 | eval "$3=yes" | |
1804 | else | |
1805 | eval "$3=no" | |
1806 | fi | |
1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
1812 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1813 | ||
1814 | } # ac_fn_c_check_header_compile | |
c7aa54aa DWT |
1815 | cat >config.log <<_ACEOF |
1816 | This file contains any messages produced by compilers while | |
1817 | running configure, to aid debugging if configure makes a mistake. | |
1818 | ||
1819 | It was created by Cycript $as_me 0.9, which was | |
1820 | generated by GNU Autoconf 2.64. Invocation command line was | |
1821 | ||
1822 | $ $0 $@ | |
1823 | ||
1824 | _ACEOF | |
1825 | exec 5>>config.log | |
1826 | { | |
1827 | cat <<_ASUNAME | |
1828 | ## --------- ## | |
1829 | ## Platform. ## | |
1830 | ## --------- ## | |
1831 | ||
1832 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1833 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1834 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1835 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1836 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1837 | ||
1838 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1839 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1840 | ||
1841 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1842 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1843 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1844 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1845 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1846 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1847 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1848 | ||
1849 | _ASUNAME | |
1850 | ||
1851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1852 | for as_dir in $PATH | |
1853 | do | |
1854 | IFS=$as_save_IFS | |
1855 | test -z "$as_dir" && as_dir=. | |
1856 | $as_echo "PATH: $as_dir" | |
1857 | done | |
1858 | IFS=$as_save_IFS | |
1859 | ||
1860 | } >&5 | |
1861 | ||
1862 | cat >&5 <<_ACEOF | |
1863 | ||
1864 | ||
1865 | ## ----------- ## | |
1866 | ## Core tests. ## | |
1867 | ## ----------- ## | |
1868 | ||
1869 | _ACEOF | |
1870 | ||
1871 | ||
1872 | # Keep a trace of the command line. | |
1873 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1874 | # Strip out --silent because we don't want to record it for future runs. | |
1875 | # Also quote any args containing shell meta-characters. | |
1876 | # Make two passes to allow for proper duplicate-argument suppression. | |
1877 | ac_configure_args= | |
1878 | ac_configure_args0= | |
1879 | ac_configure_args1= | |
1880 | ac_must_keep_next=false | |
1881 | for ac_pass in 1 2 | |
1882 | do | |
1883 | for ac_arg | |
1884 | do | |
1885 | case $ac_arg in | |
1886 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1887 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1888 | | -silent | --silent | --silen | --sile | --sil) | |
1889 | continue ;; | |
1890 | *\'*) | |
1891 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1892 | esac | |
1893 | case $ac_pass in | |
1894 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1895 | 2) | |
1896 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1897 | if test $ac_must_keep_next = true; then | |
1898 | ac_must_keep_next=false # Got value, back to normal. | |
1899 | else | |
1900 | case $ac_arg in | |
1901 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1902 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1903 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1904 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1905 | case "$ac_configure_args0 " in | |
1906 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1907 | esac | |
1908 | ;; | |
1909 | -* ) ac_must_keep_next=true ;; | |
1910 | esac | |
1911 | fi | |
1912 | as_fn_append ac_configure_args " '$ac_arg'" | |
1913 | ;; | |
1914 | esac | |
1915 | done | |
1916 | done | |
1917 | { ac_configure_args0=; unset ac_configure_args0;} | |
1918 | { ac_configure_args1=; unset ac_configure_args1;} | |
1919 | ||
1920 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1921 | # config.log. We remove comments because anyway the quotes in there | |
1922 | # would cause problems or look ugly. | |
1923 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1924 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1925 | trap 'exit_status=$? | |
1926 | # Save into config.log some information that might help in debugging. | |
1927 | { | |
1928 | echo | |
1929 | ||
1930 | cat <<\_ASBOX | |
1931 | ## ---------------- ## | |
1932 | ## Cache variables. ## | |
1933 | ## ---------------- ## | |
1934 | _ASBOX | |
1935 | echo | |
1936 | # The following way of writing the cache mishandles newlines in values, | |
1937 | ( | |
1938 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1939 | eval ac_val=\$$ac_var | |
1940 | case $ac_val in #( | |
1941 | *${as_nl}*) | |
1942 | case $ac_var in #( | |
1943 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1944 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1945 | esac | |
1946 | case $ac_var in #( | |
1947 | _ | IFS | as_nl) ;; #( | |
1948 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1949 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1950 | esac ;; | |
1951 | esac | |
1952 | done | |
1953 | (set) 2>&1 | | |
1954 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1955 | *${as_nl}ac_space=\ *) | |
1956 | sed -n \ | |
1957 | "s/'\''/'\''\\\\'\'''\''/g; | |
1958 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1959 | ;; #( | |
1960 | *) | |
1961 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1962 | ;; | |
1963 | esac | | |
1964 | sort | |
1965 | ) | |
1966 | echo | |
1967 | ||
1968 | cat <<\_ASBOX | |
1969 | ## ----------------- ## | |
1970 | ## Output variables. ## | |
1971 | ## ----------------- ## | |
1972 | _ASBOX | |
1973 | echo | |
1974 | for ac_var in $ac_subst_vars | |
1975 | do | |
1976 | eval ac_val=\$$ac_var | |
1977 | case $ac_val in | |
1978 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1979 | esac | |
1980 | $as_echo "$ac_var='\''$ac_val'\''" | |
1981 | done | sort | |
1982 | echo | |
1983 | ||
1984 | if test -n "$ac_subst_files"; then | |
1985 | cat <<\_ASBOX | |
1986 | ## ------------------- ## | |
1987 | ## File substitutions. ## | |
1988 | ## ------------------- ## | |
1989 | _ASBOX | |
1990 | echo | |
1991 | for ac_var in $ac_subst_files | |
1992 | do | |
1993 | eval ac_val=\$$ac_var | |
1994 | case $ac_val in | |
1995 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1996 | esac | |
1997 | $as_echo "$ac_var='\''$ac_val'\''" | |
1998 | done | sort | |
1999 | echo | |
2000 | fi | |
2001 | ||
2002 | if test -s confdefs.h; then | |
2003 | cat <<\_ASBOX | |
2004 | ## ----------- ## | |
2005 | ## confdefs.h. ## | |
2006 | ## ----------- ## | |
2007 | _ASBOX | |
2008 | echo | |
2009 | cat confdefs.h | |
2010 | echo | |
2011 | fi | |
2012 | test "$ac_signal" != 0 && | |
2013 | $as_echo "$as_me: caught signal $ac_signal" | |
2014 | $as_echo "$as_me: exit $exit_status" | |
2015 | } >&5 | |
2016 | rm -f core *.core core.conftest.* && | |
2017 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2018 | exit $exit_status | |
2019 | ' 0 | |
2020 | for ac_signal in 1 2 13 15; do | |
2021 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2022 | done | |
2023 | ac_signal=0 | |
2024 | ||
2025 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2026 | rm -f -r conftest* confdefs.h | |
2027 | ||
2028 | $as_echo "/* confdefs.h */" > confdefs.h | |
2029 | ||
2030 | # Predefined preprocessor variables. | |
2031 | ||
2032 | cat >>confdefs.h <<_ACEOF | |
2033 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2034 | _ACEOF | |
2035 | ||
2036 | cat >>confdefs.h <<_ACEOF | |
2037 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2038 | _ACEOF | |
2039 | ||
2040 | cat >>confdefs.h <<_ACEOF | |
2041 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2042 | _ACEOF | |
2043 | ||
2044 | cat >>confdefs.h <<_ACEOF | |
2045 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2046 | _ACEOF | |
2047 | ||
2048 | cat >>confdefs.h <<_ACEOF | |
2049 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2050 | _ACEOF | |
2051 | ||
2052 | cat >>confdefs.h <<_ACEOF | |
2053 | #define PACKAGE_URL "$PACKAGE_URL" | |
2054 | _ACEOF | |
2055 | ||
2056 | ||
2057 | # Let the site file select an alternate cache file if it wants to. | |
2058 | # Prefer an explicitly selected file to automatically selected ones. | |
2059 | ac_site_file1=NONE | |
2060 | ac_site_file2=NONE | |
2061 | if test -n "$CONFIG_SITE"; then | |
2062 | ac_site_file1=$CONFIG_SITE | |
2063 | elif test "x$prefix" != xNONE; then | |
2064 | ac_site_file1=$prefix/share/config.site | |
2065 | ac_site_file2=$prefix/etc/config.site | |
2066 | else | |
2067 | ac_site_file1=$ac_default_prefix/share/config.site | |
2068 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2069 | fi | |
2070 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2071 | do | |
2072 | test "x$ac_site_file" = xNONE && continue | |
2073 | if test -r "$ac_site_file"; then | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2075 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2076 | sed 's/^/| /' "$ac_site_file" >&5 | |
2077 | . "$ac_site_file" | |
2078 | fi | |
2079 | done | |
2080 | ||
2081 | if test -r "$cache_file"; then | |
2082 | # Some versions of bash will fail to source /dev/null (special | |
2083 | # files actually), so we avoid doing that. | |
2084 | if test -f "$cache_file"; then | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2086 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2087 | case $cache_file in | |
2088 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2089 | *) . "./$cache_file";; | |
2090 | esac | |
2091 | fi | |
2092 | else | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2094 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2095 | >$cache_file | |
2096 | fi | |
2097 | ||
2098 | # Check that the precious variables saved in the cache have kept the same | |
2099 | # value. | |
2100 | ac_cache_corrupted=false | |
2101 | for ac_var in $ac_precious_vars; do | |
2102 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2103 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2104 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2105 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2106 | case $ac_old_set,$ac_new_set in | |
2107 | set,) | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2109 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2110 | ac_cache_corrupted=: ;; | |
2111 | ,set) | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2113 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2114 | ac_cache_corrupted=: ;; | |
2115 | ,);; | |
2116 | *) | |
2117 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2118 | # differences in whitespace do not lead to failure. | |
2119 | ac_old_val_w=`echo x $ac_old_val` | |
2120 | ac_new_val_w=`echo x $ac_new_val` | |
2121 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2123 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2124 | ac_cache_corrupted=: | |
2125 | else | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2127 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2128 | eval $ac_var=\$ac_old_val | |
2129 | fi | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2131 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2133 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2134 | fi;; | |
2135 | esac | |
2136 | # Pass precious variables to config.status. | |
2137 | if test "$ac_new_set" = set; then | |
2138 | case $ac_new_val in | |
2139 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2140 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2141 | esac | |
2142 | case " $ac_configure_args " in | |
2143 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2144 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2145 | esac | |
2146 | fi | |
2147 | done | |
2148 | if $ac_cache_corrupted; then | |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2150 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2152 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2153 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2154 | fi | |
2155 | ## -------------------- ## | |
2156 | ## Main body of script. ## | |
2157 | ## -------------------- ## | |
2158 | ||
2159 | ac_ext=c | |
2160 | ac_cpp='$CPP $CPPFLAGS' | |
2161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2164 | ||
2165 | ||
35fa52c0 | 2166 | |
6b66678a DWT |
2167 | ac_aux_dir= |
2168 | for ac_dir in . "$srcdir"/.; do | |
2169 | for ac_t in install-sh install.sh shtool; do | |
2170 | if test -f "$ac_dir/$ac_t"; then | |
2171 | ac_aux_dir=$ac_dir | |
2172 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2173 | break 2 | |
2174 | fi | |
2175 | done | |
2176 | done | |
2177 | if test -z "$ac_aux_dir"; then | |
2178 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2179 | fi | |
2180 | ||
2181 | # These three variables are undocumented and unsupported, | |
2182 | # and are intended to be withdrawn in a future Autoconf release. | |
2183 | # They can cause serious problems if a builder's source tree is in a directory | |
2184 | # whose full name contains unusual characters. | |
2185 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2186 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2187 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2188 | ||
2189 | ||
35fa52c0 DWT |
2190 | for ac_prog in 'bison -y' byacc |
2191 | do | |
2192 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2193 | set dummy $ac_prog; ac_word=$2 | |
dbadc56a DWT |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2195 | $as_echo_n "checking for $ac_word... " >&6; } | |
35fa52c0 | 2196 | if test "${ac_cv_prog_YACC+set}" = set; then : |
dbadc56a DWT |
2197 | $as_echo_n "(cached) " >&6 |
2198 | else | |
35fa52c0 DWT |
2199 | if test -n "$YACC"; then |
2200 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
dbadc56a DWT |
2201 | else |
2202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2203 | for as_dir in $PATH | |
2204 | do | |
2205 | IFS=$as_save_IFS | |
2206 | test -z "$as_dir" && as_dir=. | |
2207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
35fa52c0 | 2209 | ac_cv_prog_YACC="$ac_prog" |
dbadc56a DWT |
2210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2211 | break 2 | |
2212 | fi | |
2213 | done | |
2214 | done | |
2215 | IFS=$as_save_IFS | |
2216 | ||
2217 | fi | |
2218 | fi | |
35fa52c0 DWT |
2219 | YACC=$ac_cv_prog_YACC |
2220 | if test -n "$YACC"; then | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
2222 | $as_echo "$YACC" >&6; } | |
dbadc56a DWT |
2223 | else |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2225 | $as_echo "no" >&6; } | |
2226 | fi | |
2227 | ||
2228 | ||
35fa52c0 DWT |
2229 | test -n "$YACC" && break |
2230 | done | |
2231 | test -n "$YACC" || YACC="yacc" | |
2232 | ||
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2234 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2235 | if test "${ac_cv_path_SED+set}" = set; then : | |
2236 | $as_echo_n "(cached) " >&6 | |
2237 | else | |
2238 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2239 | for ac_i in 1 2 3 4 5 6 7; do | |
2240 | ac_script="$ac_script$as_nl$ac_script" | |
2241 | done | |
2242 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2243 | { ac_script=; unset ac_script;} | |
2244 | if test -z "$SED"; then | |
2245 | ac_path_SED_found=false | |
2246 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2248 | for as_dir in $PATH | |
2249 | do | |
2250 | IFS=$as_save_IFS | |
2251 | test -z "$as_dir" && as_dir=. | |
2252 | for ac_prog in sed gsed; do | |
2253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2254 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2255 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2256 | # Check for GNU ac_path_SED and select it if it is found. | |
2257 | # Check for GNU $ac_path_SED | |
2258 | case `"$ac_path_SED" --version 2>&1` in | |
2259 | *GNU*) | |
2260 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2261 | *) | |
2262 | ac_count=0 | |
2263 | $as_echo_n 0123456789 >"conftest.in" | |
2264 | while : | |
2265 | do | |
2266 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2267 | mv "conftest.tmp" "conftest.in" | |
2268 | cp "conftest.in" "conftest.nl" | |
2269 | $as_echo '' >> "conftest.nl" | |
2270 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2271 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2272 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2273 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2274 | # Best one so far, save it but keep looking for a better one | |
2275 | ac_cv_path_SED="$ac_path_SED" | |
2276 | ac_path_SED_max=$ac_count | |
2277 | fi | |
2278 | # 10*(2^10) chars as input seems more than enough | |
2279 | test $ac_count -gt 10 && break | |
2280 | done | |
2281 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2282 | esac | |
2283 | ||
2284 | $ac_path_SED_found && break 3 | |
2285 | done | |
2286 | done | |
dbadc56a | 2287 | done |
35fa52c0 DWT |
2288 | IFS=$as_save_IFS |
2289 | if test -z "$ac_cv_path_SED"; then | |
2290 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2291 | fi | |
2292 | else | |
2293 | ac_cv_path_SED=$SED | |
dbadc56a | 2294 | fi |
35fa52c0 DWT |
2295 | |
2296 | fi | |
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2298 | $as_echo "$ac_cv_path_SED" >&6; } | |
2299 | SED="$ac_cv_path_SED" | |
2300 | rm -f conftest.sed | |
2301 | ||
2302 | ||
2303 | ||
2304 | ||
2305 | ||
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 | |
2307 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
2308 | if test "${ax_cv_prog_bison+set}" = set; then : | |
2309 | $as_echo_n "(cached) " >&6 | |
2310 | else | |
2311 | ||
2312 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : | |
2313 | ||
2314 | ax_cv_prog_bison=yes | |
2315 | ||
2316 | else | |
2317 | ||
2318 | ax_cv_prog_bison=no | |
2319 | ||
2320 | fi | |
2321 | ||
2322 | fi | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
2324 | $as_echo "$ax_cv_prog_bison" >&6; } | |
2325 | if test "$ax_cv_prog_bison" = yes; then : | |
2326 | ||
2327 | : | |
2328 | ||
2329 | BISON=`echo $YACC | $SED -e 's/ -y//'` | |
2330 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
2331 | ||
2332 | ||
2333 | else | |
2334 | ||
2335 | : | |
2336 | as_fn_error "You need bison 2.4 or greater" "$LINENO" 5 | |
2337 | ||
2338 | fi | |
2339 | ||
2340 | for ac_prog in gawk mawk nawk awk | |
dbadc56a DWT |
2341 | do |
2342 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2343 | set dummy $ac_prog; ac_word=$2 | |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2345 | $as_echo_n "checking for $ac_word... " >&6; } | |
35fa52c0 | 2346 | if test "${ac_cv_prog_AWK+set}" = set; then : |
dbadc56a DWT |
2347 | $as_echo_n "(cached) " >&6 |
2348 | else | |
35fa52c0 DWT |
2349 | if test -n "$AWK"; then |
2350 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
dbadc56a DWT |
2351 | else |
2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | for as_dir in $PATH | |
2354 | do | |
2355 | IFS=$as_save_IFS | |
2356 | test -z "$as_dir" && as_dir=. | |
2357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
35fa52c0 | 2359 | ac_cv_prog_AWK="$ac_prog" |
dbadc56a DWT |
2360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2361 | break 2 | |
2362 | fi | |
2363 | done | |
2364 | done | |
2365 | IFS=$as_save_IFS | |
2366 | ||
2367 | fi | |
2368 | fi | |
35fa52c0 DWT |
2369 | AWK=$ac_cv_prog_AWK |
2370 | if test -n "$AWK"; then | |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2372 | $as_echo "$AWK" >&6; } | |
dbadc56a DWT |
2373 | else |
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2375 | $as_echo "no" >&6; } | |
2376 | fi | |
2377 | ||
2378 | ||
35fa52c0 | 2379 | test -n "$AWK" && break |
dbadc56a DWT |
2380 | done |
2381 | ||
35fa52c0 DWT |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5 |
2383 | $as_echo_n "checking if bison is >= 2.4... " >&6; } | |
6b66678a DWT |
2384 | as_arg_v1=$BISON_VERSION |
2385 | as_arg_v2=2.4 | |
2386 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
2387 | case $? in #( | |
2388 | 1) : | |
dbadc56a | 2389 | |
35fa52c0 DWT |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2391 | $as_echo "no" >&6; } | |
2392 | as_fn_error "You need bison 2.4 or greater" "$LINENO" 5 | |
6b66678a DWT |
2393 | ;; #( |
2394 | 0) : | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2396 | $as_echo "yes" >&6; } ;; #( | |
2397 | 2) : | |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2399 | $as_echo "yes" >&6; } ;; #( | |
2400 | *) : | |
2401 | ;; | |
2402 | esac | |
35fa52c0 | 2403 | |
6b66678a DWT |
2404 | # expand $ac_aux_dir to an absolute path |
2405 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
35fa52c0 | 2406 | |
6b66678a DWT |
2407 | if test x"${MISSING+set}" != xset; then |
2408 | case $am_aux_dir in | |
2409 | *\ * | *\ *) | |
2410 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2411 | *) | |
2412 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2413 | esac | |
2414 | fi | |
2415 | # Use eval to expand $SHELL | |
2416 | if eval "$MISSING --run true"; then | |
2417 | am_missing_run="$MISSING --run " | |
2418 | else | |
2419 | am_missing_run= | |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2421 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2422 | fi | |
35fa52c0 DWT |
2423 | |
2424 | ac_ext=c | |
2425 | ac_cpp='$CPP $CPPFLAGS' | |
2426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2429 | if test -n "$ac_tool_prefix"; then | |
2430 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2431 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2433 | $as_echo_n "checking for $ac_word... " >&6; } | |
2434 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2435 | $as_echo_n "(cached) " >&6 | |
2436 | else | |
2437 | if test -n "$CC"; then | |
2438 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2439 | else | |
2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2441 | for as_dir in $PATH | |
2442 | do | |
2443 | IFS=$as_save_IFS | |
2444 | test -z "$as_dir" && as_dir=. | |
2445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2447 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2449 | break 2 | |
2450 | fi | |
2451 | done | |
2452 | done | |
2453 | IFS=$as_save_IFS | |
2454 | ||
2455 | fi | |
2456 | fi | |
2457 | CC=$ac_cv_prog_CC | |
2458 | if test -n "$CC"; then | |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2460 | $as_echo "$CC" >&6; } | |
2461 | else | |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2463 | $as_echo "no" >&6; } | |
2464 | fi | |
2465 | ||
2466 | ||
2467 | fi | |
2468 | if test -z "$ac_cv_prog_CC"; then | |
2469 | ac_ct_CC=$CC | |
2470 | # Extract the first word of "gcc", so it can be a program name with args. | |
2471 | set dummy gcc; ac_word=$2 | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2473 | $as_echo_n "checking for $ac_word... " >&6; } | |
2474 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2475 | $as_echo_n "(cached) " >&6 | |
2476 | else | |
2477 | if test -n "$ac_ct_CC"; then | |
2478 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2479 | else | |
2480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2481 | for as_dir in $PATH | |
2482 | do | |
2483 | IFS=$as_save_IFS | |
2484 | test -z "$as_dir" && as_dir=. | |
2485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2487 | ac_cv_prog_ac_ct_CC="gcc" | |
2488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2489 | break 2 | |
2490 | fi | |
2491 | done | |
2492 | done | |
2493 | IFS=$as_save_IFS | |
2494 | ||
2495 | fi | |
2496 | fi | |
2497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2498 | if test -n "$ac_ct_CC"; then | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2500 | $as_echo "$ac_ct_CC" >&6; } | |
2501 | else | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2503 | $as_echo "no" >&6; } | |
2504 | fi | |
2505 | ||
2506 | if test "x$ac_ct_CC" = x; then | |
2507 | CC="" | |
2508 | else | |
2509 | case $cross_compiling:$ac_tool_warned in | |
2510 | yes:) | |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2513 | ac_tool_warned=yes ;; | |
2514 | esac | |
2515 | CC=$ac_ct_CC | |
2516 | fi | |
2517 | else | |
2518 | CC="$ac_cv_prog_CC" | |
2519 | fi | |
2520 | ||
2521 | if test -z "$CC"; then | |
2522 | if test -n "$ac_tool_prefix"; then | |
2523 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2524 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2526 | $as_echo_n "checking for $ac_word... " >&6; } | |
2527 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2528 | $as_echo_n "(cached) " >&6 | |
2529 | else | |
2530 | if test -n "$CC"; then | |
2531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2532 | else | |
2533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2534 | for as_dir in $PATH | |
2535 | do | |
2536 | IFS=$as_save_IFS | |
2537 | test -z "$as_dir" && as_dir=. | |
2538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2540 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2542 | break 2 | |
2543 | fi | |
2544 | done | |
2545 | done | |
2546 | IFS=$as_save_IFS | |
2547 | ||
2548 | fi | |
2549 | fi | |
2550 | CC=$ac_cv_prog_CC | |
2551 | if test -n "$CC"; then | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2553 | $as_echo "$CC" >&6; } | |
2554 | else | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2556 | $as_echo "no" >&6; } | |
2557 | fi | |
2558 | ||
2559 | ||
2560 | fi | |
2561 | fi | |
2562 | if test -z "$CC"; then | |
2563 | # Extract the first word of "cc", so it can be a program name with args. | |
2564 | set dummy cc; ac_word=$2 | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2566 | $as_echo_n "checking for $ac_word... " >&6; } | |
2567 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2568 | $as_echo_n "(cached) " >&6 | |
2569 | else | |
2570 | if test -n "$CC"; then | |
2571 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2572 | else | |
2573 | ac_prog_rejected=no | |
2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2575 | for as_dir in $PATH | |
2576 | do | |
2577 | IFS=$as_save_IFS | |
2578 | test -z "$as_dir" && as_dir=. | |
2579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2581 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2582 | ac_prog_rejected=yes | |
2583 | continue | |
2584 | fi | |
2585 | ac_cv_prog_CC="cc" | |
2586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2587 | break 2 | |
2588 | fi | |
2589 | done | |
2590 | done | |
2591 | IFS=$as_save_IFS | |
2592 | ||
2593 | if test $ac_prog_rejected = yes; then | |
2594 | # We found a bogon in the path, so make sure we never use it. | |
2595 | set dummy $ac_cv_prog_CC | |
2596 | shift | |
2597 | if test $# != 0; then | |
2598 | # We chose a different compiler from the bogus one. | |
2599 | # However, it has the same basename, so the bogon will be chosen | |
2600 | # first if we set CC to just the basename; use the full file name. | |
2601 | shift | |
2602 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2603 | fi | |
2604 | fi | |
2605 | fi | |
2606 | fi | |
2607 | CC=$ac_cv_prog_CC | |
2608 | if test -n "$CC"; then | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2610 | $as_echo "$CC" >&6; } | |
2611 | else | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2613 | $as_echo "no" >&6; } | |
2614 | fi | |
2615 | ||
2616 | ||
2617 | fi | |
2618 | if test -z "$CC"; then | |
2619 | if test -n "$ac_tool_prefix"; then | |
2620 | for ac_prog in cl.exe | |
2621 | do | |
2622 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2623 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2625 | $as_echo_n "checking for $ac_word... " >&6; } | |
2626 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2627 | $as_echo_n "(cached) " >&6 | |
2628 | else | |
2629 | if test -n "$CC"; then | |
2630 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2631 | else | |
2632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2633 | for as_dir in $PATH | |
2634 | do | |
2635 | IFS=$as_save_IFS | |
2636 | test -z "$as_dir" && as_dir=. | |
2637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2639 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2641 | break 2 | |
2642 | fi | |
2643 | done | |
2644 | done | |
2645 | IFS=$as_save_IFS | |
2646 | ||
2647 | fi | |
2648 | fi | |
2649 | CC=$ac_cv_prog_CC | |
2650 | if test -n "$CC"; then | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2652 | $as_echo "$CC" >&6; } | |
2653 | else | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2655 | $as_echo "no" >&6; } | |
2656 | fi | |
2657 | ||
2658 | ||
2659 | test -n "$CC" && break | |
2660 | done | |
2661 | fi | |
2662 | if test -z "$CC"; then | |
2663 | ac_ct_CC=$CC | |
2664 | for ac_prog in cl.exe | |
2665 | do | |
2666 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2667 | set dummy $ac_prog; ac_word=$2 | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2669 | $as_echo_n "checking for $ac_word... " >&6; } | |
2670 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2671 | $as_echo_n "(cached) " >&6 | |
2672 | else | |
2673 | if test -n "$ac_ct_CC"; then | |
2674 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2675 | else | |
2676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2677 | for as_dir in $PATH | |
2678 | do | |
2679 | IFS=$as_save_IFS | |
2680 | test -z "$as_dir" && as_dir=. | |
2681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2683 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2685 | break 2 | |
2686 | fi | |
2687 | done | |
2688 | done | |
2689 | IFS=$as_save_IFS | |
2690 | ||
2691 | fi | |
2692 | fi | |
2693 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2694 | if test -n "$ac_ct_CC"; then | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2696 | $as_echo "$ac_ct_CC" >&6; } | |
2697 | else | |
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2699 | $as_echo "no" >&6; } | |
2700 | fi | |
2701 | ||
2702 | ||
2703 | test -n "$ac_ct_CC" && break | |
2704 | done | |
2705 | ||
2706 | if test "x$ac_ct_CC" = x; then | |
2707 | CC="" | |
2708 | else | |
2709 | case $cross_compiling:$ac_tool_warned in | |
2710 | yes:) | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2712 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2713 | ac_tool_warned=yes ;; | |
2714 | esac | |
2715 | CC=$ac_ct_CC | |
2716 | fi | |
2717 | fi | |
2718 | ||
2719 | fi | |
2720 | ||
2721 | ||
2722 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2724 | as_fn_error "no acceptable C compiler found in \$PATH | |
2725 | See \`config.log' for more details." "$LINENO" 5; } | |
2726 | ||
2727 | # Provide some information about the compiler. | |
2728 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2729 | set X $ac_compile | |
2730 | ac_compiler=$2 | |
2731 | for ac_option in --version -v -V -qversion; do | |
2732 | { { ac_try="$ac_compiler $ac_option >&5" | |
2733 | case "(($ac_try" in | |
2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2735 | *) ac_try_echo=$ac_try;; | |
2736 | esac | |
2737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2738 | $as_echo "$ac_try_echo"; } >&5 | |
2739 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2740 | ac_status=$? | |
2741 | if test -s conftest.err; then | |
2742 | sed '10a\ | |
2743 | ... rest of stderr output deleted ... | |
2744 | 10q' conftest.err >conftest.er1 | |
2745 | cat conftest.er1 >&5 | |
2746 | rm -f conftest.er1 conftest.err | |
2747 | fi | |
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2749 | test $ac_status = 0; } | |
2750 | done | |
2751 | ||
2752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2753 | /* end confdefs.h. */ | |
2754 | #include <stdio.h> | |
2755 | int | |
2756 | main () | |
2757 | { | |
2758 | FILE *f = fopen ("conftest.out", "w"); | |
2759 | return ferror (f) || fclose (f) != 0; | |
2760 | ||
2761 | ; | |
2762 | return 0; | |
2763 | } | |
2764 | _ACEOF | |
2765 | ac_clean_files_save=$ac_clean_files | |
2766 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
2767 | # Try to create an executable without -o first, disregard a.out. | |
2768 | # It will help us diagnose broken compilers, and finding out an intuition | |
2769 | # of exeext. | |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2771 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2772 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2773 | ||
2774 | # The possible output files: | |
2775 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2776 | ||
2777 | ac_rmfiles= | |
2778 | for ac_file in $ac_files | |
2779 | do | |
2780 | case $ac_file in | |
2781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2782 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2783 | esac | |
2784 | done | |
2785 | rm -f $ac_rmfiles | |
2786 | ||
2787 | if { { ac_try="$ac_link_default" | |
2788 | case "(($ac_try" in | |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2790 | *) ac_try_echo=$ac_try;; | |
2791 | esac | |
2792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2793 | $as_echo "$ac_try_echo"; } >&5 | |
2794 | (eval "$ac_link_default") 2>&5 | |
2795 | ac_status=$? | |
2796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2797 | test $ac_status = 0; }; then : | |
2798 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2799 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2800 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2801 | # so that the user can short-circuit this test for compilers unknown to | |
2802 | # Autoconf. | |
2803 | for ac_file in $ac_files '' | |
2804 | do | |
2805 | test -f "$ac_file" || continue | |
2806 | case $ac_file in | |
2807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2808 | ;; | |
2809 | [ab].out ) | |
2810 | # We found the default executable, but exeext='' is most | |
2811 | # certainly right. | |
2812 | break;; | |
2813 | *.* ) | |
2814 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2815 | then :; else | |
2816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2817 | fi | |
2818 | # We set ac_cv_exeext here because the later test for it is not | |
2819 | # safe: cross compilers may not add the suffix if given an `-o' | |
2820 | # argument, so we may need to know it at that point already. | |
2821 | # Even if this section looks crufty: it has the advantage of | |
2822 | # actually working. | |
2823 | break;; | |
2824 | * ) | |
2825 | break;; | |
2826 | esac | |
2827 | done | |
2828 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2829 | ||
2830 | else | |
2831 | ac_file='' | |
2832 | fi | |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2834 | $as_echo "$ac_file" >&6; } | |
2835 | if test -z "$ac_file"; then : | |
2836 | $as_echo "$as_me: failed program was:" >&5 | |
2837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2838 | ||
2839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2841 | { as_fn_set_status 77 | |
2842 | as_fn_error "C compiler cannot create executables | |
2843 | See \`config.log' for more details." "$LINENO" 5; }; } | |
2844 | fi | |
2845 | ac_exeext=$ac_cv_exeext | |
2846 | ||
2847 | # Check that the compiler produces executables we can run. If not, either | |
2848 | # the compiler is broken, or we cross compile. | |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2850 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2851 | # If not cross compiling, check that we can run a simple program. | |
2852 | if test "$cross_compiling" != yes; then | |
2853 | if { ac_try='./$ac_file' | |
2854 | { { case "(($ac_try" in | |
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2856 | *) ac_try_echo=$ac_try;; | |
2857 | esac | |
2858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2859 | $as_echo "$ac_try_echo"; } >&5 | |
2860 | (eval "$ac_try") 2>&5 | |
2861 | ac_status=$? | |
2862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2863 | test $ac_status = 0; }; }; then | |
2864 | cross_compiling=no | |
2865 | else | |
2866 | if test "$cross_compiling" = maybe; then | |
2867 | cross_compiling=yes | |
2868 | else | |
2869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2871 | as_fn_error "cannot run C compiled programs. | |
2872 | If you meant to cross compile, use \`--host'. | |
2873 | See \`config.log' for more details." "$LINENO" 5; } | |
2874 | fi | |
2875 | fi | |
2876 | fi | |
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2878 | $as_echo "yes" >&6; } | |
2879 | ||
2880 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out | |
2881 | ac_clean_files=$ac_clean_files_save | |
2882 | # Check that the compiler produces executables we can run. If not, either | |
2883 | # the compiler is broken, or we cross compile. | |
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2885 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2887 | $as_echo "$cross_compiling" >&6; } | |
2888 | ||
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2890 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2891 | if { { ac_try="$ac_link" | |
2892 | case "(($ac_try" in | |
2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2894 | *) ac_try_echo=$ac_try;; | |
2895 | esac | |
2896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2897 | $as_echo "$ac_try_echo"; } >&5 | |
2898 | (eval "$ac_link") 2>&5 | |
2899 | ac_status=$? | |
2900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2901 | test $ac_status = 0; }; then : | |
2902 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2903 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2904 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2905 | # `rm'. | |
2906 | for ac_file in conftest.exe conftest conftest.*; do | |
2907 | test -f "$ac_file" || continue | |
2908 | case $ac_file in | |
2909 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2910 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2911 | break;; | |
2912 | * ) break;; | |
2913 | esac | |
2914 | done | |
2915 | else | |
2916 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2918 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2919 | See \`config.log' for more details." "$LINENO" 5; } | |
2920 | fi | |
2921 | rm -f conftest$ac_cv_exeext | |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2923 | $as_echo "$ac_cv_exeext" >&6; } | |
2924 | ||
2925 | rm -f conftest.$ac_ext | |
2926 | EXEEXT=$ac_cv_exeext | |
2927 | ac_exeext=$EXEEXT | |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2929 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2930 | if test "${ac_cv_objext+set}" = set; then : | |
2931 | $as_echo_n "(cached) " >&6 | |
2932 | else | |
2933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2934 | /* end confdefs.h. */ | |
2935 | ||
2936 | int | |
2937 | main () | |
2938 | { | |
2939 | ||
2940 | ; | |
2941 | return 0; | |
2942 | } | |
2943 | _ACEOF | |
2944 | rm -f conftest.o conftest.obj | |
2945 | if { { ac_try="$ac_compile" | |
2946 | case "(($ac_try" in | |
2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2948 | *) ac_try_echo=$ac_try;; | |
2949 | esac | |
2950 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2951 | $as_echo "$ac_try_echo"; } >&5 | |
2952 | (eval "$ac_compile") 2>&5 | |
2953 | ac_status=$? | |
2954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2955 | test $ac_status = 0; }; then : | |
2956 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2957 | test -f "$ac_file" || continue; | |
2958 | case $ac_file in | |
2959 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2960 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2961 | break;; | |
2962 | esac | |
2963 | done | |
2964 | else | |
2965 | $as_echo "$as_me: failed program was:" >&5 | |
2966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2967 | ||
2968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2970 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2971 | See \`config.log' for more details." "$LINENO" 5; } | |
2972 | fi | |
2973 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2974 | fi | |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2976 | $as_echo "$ac_cv_objext" >&6; } | |
2977 | OBJEXT=$ac_cv_objext | |
2978 | ac_objext=$OBJEXT | |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2980 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2981 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2982 | $as_echo_n "(cached) " >&6 | |
2983 | else | |
2984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2985 | /* end confdefs.h. */ | |
2986 | ||
2987 | int | |
2988 | main () | |
2989 | { | |
2990 | #ifndef __GNUC__ | |
2991 | choke me | |
2992 | #endif | |
2993 | ||
2994 | ; | |
2995 | return 0; | |
2996 | } | |
2997 | _ACEOF | |
2998 | if ac_fn_c_try_compile "$LINENO"; then : | |
2999 | ac_compiler_gnu=yes | |
3000 | else | |
3001 | ac_compiler_gnu=no | |
3002 | fi | |
3003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3004 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3005 | ||
3006 | fi | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3008 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3009 | if test $ac_compiler_gnu = yes; then | |
3010 | GCC=yes | |
3011 | else | |
3012 | GCC= | |
3013 | fi | |
3014 | ac_test_CFLAGS=${CFLAGS+set} | |
3015 | ac_save_CFLAGS=$CFLAGS | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3017 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3018 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3019 | $as_echo_n "(cached) " >&6 | |
3020 | else | |
3021 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3022 | ac_c_werror_flag=yes | |
3023 | ac_cv_prog_cc_g=no | |
3024 | CFLAGS="-g" | |
3025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3026 | /* end confdefs.h. */ | |
3027 | ||
3028 | int | |
3029 | main () | |
3030 | { | |
3031 | ||
3032 | ; | |
3033 | return 0; | |
3034 | } | |
3035 | _ACEOF | |
3036 | if ac_fn_c_try_compile "$LINENO"; then : | |
3037 | ac_cv_prog_cc_g=yes | |
3038 | else | |
3039 | CFLAGS="" | |
3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3041 | /* end confdefs.h. */ | |
3042 | ||
3043 | int | |
3044 | main () | |
3045 | { | |
3046 | ||
3047 | ; | |
3048 | return 0; | |
3049 | } | |
3050 | _ACEOF | |
3051 | if ac_fn_c_try_compile "$LINENO"; then : | |
3052 | ||
3053 | else | |
3054 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3055 | CFLAGS="-g" | |
3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3057 | /* end confdefs.h. */ | |
3058 | ||
3059 | int | |
3060 | main () | |
3061 | { | |
3062 | ||
3063 | ; | |
3064 | return 0; | |
3065 | } | |
3066 | _ACEOF | |
3067 | if ac_fn_c_try_compile "$LINENO"; then : | |
3068 | ac_cv_prog_cc_g=yes | |
3069 | fi | |
3070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3071 | fi | |
3072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3073 | fi | |
3074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3075 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3076 | fi | |
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3078 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3079 | if test "$ac_test_CFLAGS" = set; then | |
3080 | CFLAGS=$ac_save_CFLAGS | |
3081 | elif test $ac_cv_prog_cc_g = yes; then | |
3082 | if test "$GCC" = yes; then | |
3083 | CFLAGS="-g -O2" | |
3084 | else | |
3085 | CFLAGS="-g" | |
3086 | fi | |
3087 | else | |
3088 | if test "$GCC" = yes; then | |
3089 | CFLAGS="-O2" | |
3090 | else | |
3091 | CFLAGS= | |
3092 | fi | |
3093 | fi | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3095 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3096 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3097 | $as_echo_n "(cached) " >&6 | |
3098 | else | |
3099 | ac_cv_prog_cc_c89=no | |
3100 | ac_save_CC=$CC | |
3101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3102 | /* end confdefs.h. */ | |
3103 | #include <stdarg.h> | |
3104 | #include <stdio.h> | |
3105 | #include <sys/types.h> | |
3106 | #include <sys/stat.h> | |
3107 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3108 | struct buf { int x; }; | |
3109 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3110 | static char *e (p, i) | |
3111 | char **p; | |
3112 | int i; | |
3113 | { | |
3114 | return p[i]; | |
3115 | } | |
3116 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3117 | { | |
3118 | char *s; | |
3119 | va_list v; | |
3120 | va_start (v,p); | |
3121 | s = g (p, va_arg (v,int)); | |
3122 | va_end (v); | |
3123 | return s; | |
3124 | } | |
3125 | ||
3126 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3127 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3128 | These don't provoke an error unfortunately, instead are silently treated | |
3129 | as 'x'. The following induces an error, until -std is added to get | |
3130 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3131 | array size at least. It's necessary to write '\x00'==0 to get something | |
3132 | that's true only with -std. */ | |
3133 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3134 | ||
3135 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3136 | inside strings and character constants. */ | |
3137 | #define FOO(x) 'x' | |
3138 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3139 | ||
3140 | int test (int i, double x); | |
3141 | struct s1 {int (*f) (int a);}; | |
3142 | struct s2 {int (*f) (double a);}; | |
3143 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3144 | int argc; | |
3145 | char **argv; | |
3146 | int | |
3147 | main () | |
3148 | { | |
3149 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3150 | ; | |
3151 | return 0; | |
3152 | } | |
3153 | _ACEOF | |
3154 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3155 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3156 | do | |
3157 | CC="$ac_save_CC $ac_arg" | |
3158 | if ac_fn_c_try_compile "$LINENO"; then : | |
3159 | ac_cv_prog_cc_c89=$ac_arg | |
3160 | fi | |
3161 | rm -f core conftest.err conftest.$ac_objext | |
3162 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3163 | done | |
3164 | rm -f conftest.$ac_ext | |
3165 | CC=$ac_save_CC | |
3166 | ||
3167 | fi | |
3168 | # AC_CACHE_VAL | |
3169 | case "x$ac_cv_prog_cc_c89" in | |
3170 | x) | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3172 | $as_echo "none needed" >&6; } ;; | |
3173 | xno) | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3175 | $as_echo "unsupported" >&6; } ;; | |
3176 | *) | |
3177 | CC="$CC $ac_cv_prog_cc_c89" | |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3179 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3180 | esac | |
3181 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3182 | ||
3183 | fi | |
3184 | ||
3185 | ac_ext=c | |
3186 | ac_cpp='$CPP $CPPFLAGS' | |
3187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3190 | ||
3191 | ||
3192 | for ac_prog in flex lex | |
3193 | do | |
3194 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3195 | set dummy $ac_prog; ac_word=$2 | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3197 | $as_echo_n "checking for $ac_word... " >&6; } | |
3198 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
3199 | $as_echo_n "(cached) " >&6 | |
3200 | else | |
3201 | if test -n "$LEX"; then | |
3202 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
3203 | else | |
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3205 | for as_dir in $PATH | |
3206 | do | |
3207 | IFS=$as_save_IFS | |
3208 | test -z "$as_dir" && as_dir=. | |
3209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3211 | ac_cv_prog_LEX="$ac_prog" | |
3212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3213 | break 2 | |
3214 | fi | |
3215 | done | |
3216 | done | |
3217 | IFS=$as_save_IFS | |
3218 | ||
3219 | fi | |
3220 | fi | |
3221 | LEX=$ac_cv_prog_LEX | |
3222 | if test -n "$LEX"; then | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
3224 | $as_echo "$LEX" >&6; } | |
3225 | else | |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3227 | $as_echo "no" >&6; } | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | test -n "$LEX" && break | |
3232 | done | |
3233 | test -n "$LEX" || LEX=":" | |
3234 | ||
3235 | if test "x$LEX" != "x:"; then | |
3236 | cat >conftest.l <<_ACEOF | |
3237 | %% | |
3238 | a { ECHO; } | |
3239 | b { REJECT; } | |
3240 | c { yymore (); } | |
3241 | d { yyless (1); } | |
3242 | e { yyless (input () != 0); } | |
3243 | f { unput (yytext[0]); } | |
3244 | . { BEGIN INITIAL; } | |
3245 | %% | |
3246 | #ifdef YYTEXT_POINTER | |
3247 | extern char *yytext; | |
3248 | #endif | |
3249 | int | |
3250 | main (void) | |
3251 | { | |
3252 | return ! yylex () + ! yywrap (); | |
3253 | } | |
3254 | _ACEOF | |
3255 | { { ac_try="$LEX conftest.l" | |
3256 | case "(($ac_try" in | |
3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3258 | *) ac_try_echo=$ac_try;; | |
3259 | esac | |
3260 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3261 | $as_echo "$ac_try_echo"; } >&5 | |
3262 | (eval "$LEX conftest.l") 2>&5 | |
3263 | ac_status=$? | |
3264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3265 | test $ac_status = 0; } | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
3267 | $as_echo_n "checking lex output file root... " >&6; } | |
3268 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
3269 | $as_echo_n "(cached) " >&6 | |
3270 | else | |
3271 | ||
3272 | if test -f lex.yy.c; then | |
3273 | ac_cv_prog_lex_root=lex.yy | |
3274 | elif test -f lexyy.c; then | |
3275 | ac_cv_prog_lex_root=lexyy | |
3276 | else | |
3277 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
3278 | fi | |
3279 | fi | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
3281 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
3282 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
3283 | ||
3284 | if test -z "${LEXLIB+set}"; then | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
3286 | $as_echo_n "checking lex library... " >&6; } | |
3287 | if test "${ac_cv_lib_lex+set}" = set; then : | |
3288 | $as_echo_n "(cached) " >&6 | |
3289 | else | |
3290 | ||
3291 | ac_save_LIBS=$LIBS | |
3292 | ac_cv_lib_lex='none needed' | |
3293 | for ac_lib in '' -lfl -ll; do | |
3294 | LIBS="$ac_lib $ac_save_LIBS" | |
3295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3296 | /* end confdefs.h. */ | |
3297 | `cat $LEX_OUTPUT_ROOT.c` | |
3298 | _ACEOF | |
3299 | if ac_fn_c_try_link "$LINENO"; then : | |
3300 | ac_cv_lib_lex=$ac_lib | |
3301 | fi | |
3302 | rm -f core conftest.err conftest.$ac_objext \ | |
3303 | conftest$ac_exeext conftest.$ac_ext | |
3304 | test "$ac_cv_lib_lex" != 'none needed' && break | |
3305 | done | |
3306 | LIBS=$ac_save_LIBS | |
3307 | ||
3308 | fi | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
3310 | $as_echo "$ac_cv_lib_lex" >&6; } | |
3311 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
3312 | fi | |
3313 | ||
3314 | ||
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
3316 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
3317 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
3318 | $as_echo_n "(cached) " >&6 | |
3319 | else | |
3320 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
3321 | # default is implementation-dependent. Figure out which it is, since | |
3322 | # not all implementations provide the %pointer and %array declarations. | |
3323 | ac_cv_prog_lex_yytext_pointer=no | |
3324 | ac_save_LIBS=$LIBS | |
3325 | LIBS="$LEXLIB $ac_save_LIBS" | |
3326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3327 | /* end confdefs.h. */ | |
3328 | #define YYTEXT_POINTER 1 | |
3329 | `cat $LEX_OUTPUT_ROOT.c` | |
3330 | _ACEOF | |
3331 | if ac_fn_c_try_link "$LINENO"; then : | |
3332 | ac_cv_prog_lex_yytext_pointer=yes | |
3333 | fi | |
3334 | rm -f core conftest.err conftest.$ac_objext \ | |
3335 | conftest$ac_exeext conftest.$ac_ext | |
3336 | LIBS=$ac_save_LIBS | |
3337 | ||
3338 | fi | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
3340 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
3341 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
3342 | ||
3343 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
3344 | ||
3345 | fi | |
3346 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
3347 | ||
3348 | fi | |
6b66678a DWT |
3349 | if test "$LEX" = :; then |
3350 | LEX=${am_missing_run}flex | |
3351 | fi | |
3352 | ||
3353 | ||
3354 | ||
3355 | ||
3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 | |
3357 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
3358 | if test "${ax_cv_prog_flex+set}" = set; then : | |
3359 | $as_echo_n "(cached) " >&6 | |
3360 | else | |
3361 | ||
3362 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : | |
3363 | ||
3364 | ax_cv_prog_flex=yes | |
3365 | ||
3366 | else | |
3367 | ||
3368 | ax_cv_prog_flex=no | |
3369 | ||
3370 | fi | |
3371 | ||
3372 | fi | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 | |
3374 | $as_echo "$ax_cv_prog_flex" >&6; } | |
3375 | if test "$ax_cv_prog_flex" = yes; then : | |
3376 | ||
3377 | : | |
35fa52c0 | 3378 | |
35fa52c0 | 3379 | FLEX=$LEX |
6b66678a | 3380 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \(.*\)$/\1/p;d'` |
35fa52c0 | 3381 | |
309b0535 | 3382 | |
35fa52c0 DWT |
3383 | else |
3384 | ||
6b66678a DWT |
3385 | : |
3386 | ||
3387 | as_fn_error "You need flex 2.5.35 or greater" "$LINENO" 5 | |
3388 | ||
3389 | ||
3390 | fi | |
3391 | ||
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.35" >&5 | |
3393 | $as_echo_n "checking if flex is >= 2.5.35... " >&6; } | |
3394 | as_arg_v1=$FLEX_VERSION | |
3395 | as_arg_v2=2.5.35 | |
3396 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
3397 | case $? in #( | |
3398 | 1) : | |
3399 | ||
35fa52c0 DWT |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3401 | $as_echo "no" >&6; } | |
6b66678a DWT |
3402 | as_fn_error "You need flex 2.5.35 or greater" "$LINENO" 5 |
3403 | ;; #( | |
3404 | 0) : | |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3406 | $as_echo "yes" >&6; } ;; #( | |
3407 | 2) : | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3409 | $as_echo "yes" >&6; } ;; #( | |
3410 | *) : | |
3411 | ;; | |
3412 | esac | |
35fa52c0 | 3413 | |
35fa52c0 | 3414 | |
309b0535 DWT |
3415 | apr_found="no" |
3416 | ||
3417 | if test "$target_os" = "os2-emx"; then | |
3418 | # Scripts don't pass test -x on OS/2 | |
3419 | TEST_X="test -f" | |
3420 | else | |
3421 | TEST_X="test -x" | |
3422 | fi | |
3423 | ||
3424 | acceptable_majors="1" | |
3425 | ||
3426 | apr_temp_acceptable_apr_config="" | |
3427 | for apr_temp_major in $acceptable_majors | |
3428 | do | |
3429 | case $apr_temp_major in | |
3430 | 0) | |
3431 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
3432 | ;; | |
3433 | *) | |
3434 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
3435 | ;; | |
3436 | esac | |
3437 | done | |
3438 | ||
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
3440 | $as_echo_n "checking for APR... " >&6; } | |
3441 | ||
3442 | # Check whether --with-apr was given. | |
3443 | if test "${with_apr+set}" = set; then : | |
3444 | withval=$with_apr; | |
3445 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
3446 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
3447 | fi | |
3448 | ||
3449 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
3450 | do | |
3451 | for lookdir in "$withval/bin" "$withval" | |
3452 | do | |
3453 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
3454 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
3455 | ||
3456 | apr_found="yes" | |
3457 | break 2 | |
3458 | fi | |
3459 | done | |
3460 | done | |
3461 | ||
3462 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
3463 | apr_config="$withval" | |
3464 | apr_found="yes" | |
3465 | fi | |
3466 | ||
3467 | if test "$apr_found" != "yes"; then | |
3468 | 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 | |
3469 | fi | |
3470 | ||
3471 | else | |
3472 | ||
3473 | if test -n "1" && test "1" = "1"; then | |
3474 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
3475 | do | |
3476 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
3477 | apr_config="$apr_temp_apr_config_file" | |
3478 | ||
3479 | apr_found="yes" | |
3480 | break | |
3481 | else | |
3482 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
3483 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
3484 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
3485 | ||
3486 | apr_found="yes" | |
3487 | break 2 | |
3488 | fi | |
3489 | done | |
3490 | fi | |
3491 | done | |
3492 | fi | |
3493 | if test "$apr_found" = "no" && test -d ""; then | |
3494 | apr_temp_abs_srcdir="`cd && pwd`" | |
3495 | apr_found="reconfig" | |
3496 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
3497 | case $apr_bundled_major in | |
3498 | "") | |
3499 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
3500 | ;; | |
3501 | 0) | |
3502 | apr_temp_apr_config_file="apr-config" | |
3503 | ;; | |
3504 | *) | |
3505 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
3506 | ;; | |
3507 | esac | |
3508 | if test -n ""; then | |
3509 | apr_config="/$apr_temp_apr_config_file" | |
3510 | else | |
3511 | apr_config="/$apr_temp_apr_config_file" | |
3512 | fi | |
3513 | fi | |
3514 | ||
3515 | fi | |
3516 | ||
3517 | ||
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
3519 | $as_echo "$apr_found" >&6; } | |
3520 | ||
3521 | case $apr_found in #( | |
3522 | yes) : | |
3523 | ||
3524 | ||
3525 | for element in `$apr_config --includes`; do | |
3526 | haveit= | |
3527 | for x in $CPPFLAGS; do | |
3528 | ||
3529 | acl_save_prefix="$prefix" | |
3530 | prefix="$acl_final_prefix" | |
3531 | acl_save_exec_prefix="$exec_prefix" | |
3532 | exec_prefix="$acl_final_exec_prefix" | |
3533 | eval x=\"$x\" | |
3534 | exec_prefix="$acl_save_exec_prefix" | |
3535 | prefix="$acl_save_prefix" | |
3536 | ||
3537 | if test "X$x" = "X$element"; then | |
3538 | haveit=yes | |
3539 | break | |
3540 | fi | |
3541 | done | |
3542 | if test -z "$haveit"; then | |
3543 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
3544 | fi | |
3545 | done | |
3546 | ||
3547 | APR=`$apr_config --link-ld` | |
3548 | ||
3549 | ;; #( | |
3550 | *) : | |
3551 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
3552 | esac | |
35fa52c0 DWT |
3553 | ac_ext=cpp |
3554 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3555 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3556 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3557 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3558 | if test -z "$CXX"; then | |
3559 | if test -n "$CCC"; then | |
3560 | CXX=$CCC | |
3561 | else | |
3562 | if test -n "$ac_tool_prefix"; then | |
3563 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3564 | do | |
3565 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3566 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3568 | $as_echo_n "checking for $ac_word... " >&6; } | |
3569 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
3570 | $as_echo_n "(cached) " >&6 | |
3571 | else | |
3572 | if test -n "$CXX"; then | |
3573 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3574 | else | |
3575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3576 | for as_dir in $PATH | |
3577 | do | |
3578 | IFS=$as_save_IFS | |
3579 | test -z "$as_dir" && as_dir=. | |
3580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3582 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3584 | break 2 | |
3585 | fi | |
3586 | done | |
3587 | done | |
3588 | IFS=$as_save_IFS | |
3589 | ||
3590 | fi | |
3591 | fi | |
3592 | CXX=$ac_cv_prog_CXX | |
3593 | if test -n "$CXX"; then | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3595 | $as_echo "$CXX" >&6; } | |
3596 | else | |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3598 | $as_echo "no" >&6; } | |
3599 | fi | |
3600 | ||
3601 | ||
3602 | test -n "$CXX" && break | |
3603 | done | |
3604 | fi | |
3605 | if test -z "$CXX"; then | |
3606 | ac_ct_CXX=$CXX | |
3607 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3608 | do | |
3609 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3610 | set dummy $ac_prog; ac_word=$2 | |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3612 | $as_echo_n "checking for $ac_word... " >&6; } | |
3613 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
3614 | $as_echo_n "(cached) " >&6 | |
3615 | else | |
3616 | if test -n "$ac_ct_CXX"; then | |
3617 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3618 | else | |
3619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3620 | for as_dir in $PATH | |
3621 | do | |
3622 | IFS=$as_save_IFS | |
3623 | test -z "$as_dir" && as_dir=. | |
3624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3626 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3628 | break 2 | |
3629 | fi | |
3630 | done | |
3631 | done | |
3632 | IFS=$as_save_IFS | |
3633 | ||
3634 | fi | |
3635 | fi | |
3636 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3637 | if test -n "$ac_ct_CXX"; then | |
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3639 | $as_echo "$ac_ct_CXX" >&6; } | |
3640 | else | |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3642 | $as_echo "no" >&6; } | |
3643 | fi | |
3644 | ||
3645 | ||
3646 | test -n "$ac_ct_CXX" && break | |
3647 | done | |
3648 | ||
3649 | if test "x$ac_ct_CXX" = x; then | |
3650 | CXX="g++" | |
3651 | else | |
3652 | case $cross_compiling:$ac_tool_warned in | |
3653 | yes:) | |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3655 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3656 | ac_tool_warned=yes ;; | |
3657 | esac | |
3658 | CXX=$ac_ct_CXX | |
3659 | fi | |
3660 | fi | |
3661 | ||
3662 | fi | |
3663 | fi | |
3664 | # Provide some information about the compiler. | |
3665 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3666 | set X $ac_compile | |
3667 | ac_compiler=$2 | |
3668 | for ac_option in --version -v -V -qversion; do | |
3669 | { { ac_try="$ac_compiler $ac_option >&5" | |
3670 | case "(($ac_try" in | |
3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3672 | *) ac_try_echo=$ac_try;; | |
3673 | esac | |
3674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3675 | $as_echo "$ac_try_echo"; } >&5 | |
3676 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3677 | ac_status=$? | |
3678 | if test -s conftest.err; then | |
3679 | sed '10a\ | |
3680 | ... rest of stderr output deleted ... | |
3681 | 10q' conftest.err >conftest.er1 | |
3682 | cat conftest.er1 >&5 | |
3683 | rm -f conftest.er1 conftest.err | |
3684 | fi | |
3685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3686 | test $ac_status = 0; } | |
3687 | done | |
3688 | ||
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3690 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3691 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
3692 | $as_echo_n "(cached) " >&6 | |
3693 | else | |
3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3695 | /* end confdefs.h. */ | |
3696 | ||
3697 | int | |
3698 | main () | |
3699 | { | |
3700 | #ifndef __GNUC__ | |
3701 | choke me | |
3702 | #endif | |
3703 | ||
3704 | ; | |
3705 | return 0; | |
3706 | } | |
3707 | _ACEOF | |
3708 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3709 | ac_compiler_gnu=yes | |
3710 | else | |
3711 | ac_compiler_gnu=no | |
3712 | fi | |
3713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3714 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3715 | ||
3716 | fi | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3718 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3719 | if test $ac_compiler_gnu = yes; then | |
3720 | GXX=yes | |
3721 | else | |
3722 | GXX= | |
3723 | fi | |
3724 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3725 | ac_save_CXXFLAGS=$CXXFLAGS | |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3727 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3728 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
3729 | $as_echo_n "(cached) " >&6 | |
3730 | else | |
3731 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3732 | ac_cxx_werror_flag=yes | |
3733 | ac_cv_prog_cxx_g=no | |
3734 | CXXFLAGS="-g" | |
3735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3736 | /* end confdefs.h. */ | |
3737 | ||
3738 | int | |
3739 | main () | |
3740 | { | |
3741 | ||
3742 | ; | |
3743 | return 0; | |
3744 | } | |
3745 | _ACEOF | |
3746 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3747 | ac_cv_prog_cxx_g=yes | |
3748 | else | |
3749 | CXXFLAGS="" | |
3750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3751 | /* end confdefs.h. */ | |
3752 | ||
3753 | int | |
3754 | main () | |
3755 | { | |
3756 | ||
3757 | ; | |
3758 | return 0; | |
3759 | } | |
3760 | _ACEOF | |
3761 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3762 | ||
3763 | else | |
3764 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3765 | CXXFLAGS="-g" | |
3766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3767 | /* end confdefs.h. */ | |
3768 | ||
3769 | int | |
3770 | main () | |
3771 | { | |
3772 | ||
3773 | ; | |
3774 | return 0; | |
3775 | } | |
3776 | _ACEOF | |
3777 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3778 | ac_cv_prog_cxx_g=yes | |
3779 | fi | |
3780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3781 | fi | |
3782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3783 | fi | |
3784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3785 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3786 | fi | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3788 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3789 | if test "$ac_test_CXXFLAGS" = set; then | |
3790 | CXXFLAGS=$ac_save_CXXFLAGS | |
3791 | elif test $ac_cv_prog_cxx_g = yes; then | |
3792 | if test "$GXX" = yes; then | |
3793 | CXXFLAGS="-g -O2" | |
3794 | else | |
3795 | CXXFLAGS="-g" | |
3796 | fi | |
3797 | else | |
3798 | if test "$GXX" = yes; then | |
3799 | CXXFLAGS="-O2" | |
3800 | else | |
3801 | CXXFLAGS= | |
3802 | fi | |
3803 | fi | |
3804 | ac_ext=c | |
3805 | ac_cpp='$CPP $CPPFLAGS' | |
3806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3809 | ||
35fa52c0 DWT |
3810 | # Find a good install program. We prefer a C program (faster), |
3811 | # so one script is as good as another. But avoid the broken or | |
3812 | # incompatible versions: | |
3813 | # SysV /etc/install, /usr/sbin/install | |
3814 | # SunOS /usr/etc/install | |
3815 | # IRIX /sbin/install | |
3816 | # AIX /bin/install | |
3817 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3818 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3819 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3820 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3821 | # OS/2's system install, which has a completely different semantic | |
3822 | # ./install, which can be erroneously created by make from ./install.sh. | |
3823 | # Reject install programs that cannot install multiple files. | |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3825 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3826 | if test -z "$INSTALL"; then | |
3827 | if test "${ac_cv_path_install+set}" = set; then : | |
3828 | $as_echo_n "(cached) " >&6 | |
3829 | else | |
3830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3831 | for as_dir in $PATH | |
dbadc56a | 3832 | do |
35fa52c0 DWT |
3833 | IFS=$as_save_IFS |
3834 | test -z "$as_dir" && as_dir=. | |
3835 | # Account for people who put trailing slashes in PATH elements. | |
3836 | case $as_dir/ in #(( | |
3837 | ./ | .// | /[cC]/* | \ | |
3838 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3839 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3840 | /usr/ucb/* ) ;; | |
3841 | *) | |
3842 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3843 | # Don't use installbsd from OSF since it installs stuff as root | |
3844 | # by default. | |
3845 | for ac_prog in ginstall scoinst install; do | |
3846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3847 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3848 | if test $ac_prog = install && | |
3849 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3850 | # AIX install. It has an incompatible calling convention. | |
3851 | : | |
3852 | elif test $ac_prog = install && | |
3853 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3854 | # program-specific install script used by HP pwplus--don't use. | |
3855 | : | |
3856 | else | |
3857 | rm -rf conftest.one conftest.two conftest.dir | |
3858 | echo one > conftest.one | |
3859 | echo two > conftest.two | |
3860 | mkdir conftest.dir | |
3861 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3862 | test -s conftest.one && test -s conftest.two && | |
3863 | test -s conftest.dir/conftest.one && | |
3864 | test -s conftest.dir/conftest.two | |
3865 | then | |
3866 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3867 | break 3 | |
3868 | fi | |
3869 | fi | |
3870 | fi | |
3871 | done | |
3872 | done | |
3873 | ;; | |
3874 | esac | |
3875 | ||
3876 | done | |
3877 | IFS=$as_save_IFS | |
3878 | ||
3879 | rm -rf conftest.one conftest.two conftest.dir | |
3880 | ||
3881 | fi | |
3882 | if test "${ac_cv_path_install+set}" = set; then | |
3883 | INSTALL=$ac_cv_path_install | |
3884 | else | |
3885 | # As a last resort, use the slow shell script. Don't cache a | |
3886 | # value for INSTALL within a source directory, because that will | |
3887 | # break other packages using the cache if that directory is | |
3888 | # removed, or if the value is a relative name. | |
3889 | INSTALL=$ac_install_sh | |
3890 | fi | |
3891 | fi | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3893 | $as_echo "$INSTALL" >&6; } | |
3894 | ||
3895 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3896 | # It thinks the first close brace ends the variable substitution. | |
3897 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3898 | ||
3899 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3900 | ||
3901 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3902 | ||
3903 | # Make sure we can run config.sub. | |
3904 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3905 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3906 | ||
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3908 | $as_echo_n "checking build system type... " >&6; } | |
3909 | if test "${ac_cv_build+set}" = set; then : | |
3910 | $as_echo_n "(cached) " >&6 | |
3911 | else | |
3912 | ac_build_alias=$build_alias | |
3913 | test "x$ac_build_alias" = x && | |
3914 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3915 | test "x$ac_build_alias" = x && | |
3916 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3917 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3918 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3919 | ||
3920 | fi | |
3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3922 | $as_echo "$ac_cv_build" >&6; } | |
3923 | case $ac_cv_build in | |
3924 | *-*-*) ;; | |
3925 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3926 | esac | |
3927 | build=$ac_cv_build | |
3928 | ac_save_IFS=$IFS; IFS='-' | |
3929 | set x $ac_cv_build | |
3930 | shift | |
3931 | build_cpu=$1 | |
3932 | build_vendor=$2 | |
3933 | shift; shift | |
3934 | # Remember, the first character of IFS is used to create $*, | |
3935 | # except with old shells: | |
3936 | build_os=$* | |
3937 | IFS=$ac_save_IFS | |
3938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3939 | ||
3940 | ||
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3942 | $as_echo_n "checking host system type... " >&6; } | |
3943 | if test "${ac_cv_host+set}" = set; then : | |
3944 | $as_echo_n "(cached) " >&6 | |
3945 | else | |
3946 | if test "x$host_alias" = x; then | |
3947 | ac_cv_host=$ac_cv_build | |
3948 | else | |
3949 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3950 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3951 | fi | |
3952 | ||
3953 | fi | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3955 | $as_echo "$ac_cv_host" >&6; } | |
3956 | case $ac_cv_host in | |
3957 | *-*-*) ;; | |
3958 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3959 | esac | |
3960 | host=$ac_cv_host | |
3961 | ac_save_IFS=$IFS; IFS='-' | |
3962 | set x $ac_cv_host | |
3963 | shift | |
3964 | host_cpu=$1 | |
3965 | host_vendor=$2 | |
3966 | shift; shift | |
3967 | # Remember, the first character of IFS is used to create $*, | |
3968 | # except with old shells: | |
3969 | host_os=$* | |
3970 | IFS=$ac_save_IFS | |
3971 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3972 | ||
3973 | ||
3974 | ||
3975 | if test "X$prefix" = "XNONE"; then | |
3976 | acl_final_prefix="$ac_default_prefix" | |
3977 | else | |
3978 | acl_final_prefix="$prefix" | |
3979 | fi | |
3980 | if test "X$exec_prefix" = "XNONE"; then | |
3981 | acl_final_exec_prefix='${prefix}' | |
3982 | else | |
3983 | acl_final_exec_prefix="$exec_prefix" | |
3984 | fi | |
3985 | acl_save_prefix="$prefix" | |
3986 | prefix="$acl_final_prefix" | |
3987 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
3988 | prefix="$acl_save_prefix" | |
3989 | ||
3990 | ||
3991 | # Check whether --with-gnu-ld was given. | |
3992 | if test "${with_gnu_ld+set}" = set; then : | |
3993 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
3994 | else | |
3995 | with_gnu_ld=no | |
3996 | fi | |
3997 | ||
3998 | # Prepare PATH_SEPARATOR. | |
3999 | # The user is always right. | |
4000 | if test "${PATH_SEPARATOR+set}" != set; then | |
4001 | echo "#! /bin/sh" >conf$$.sh | |
4002 | echo "exit 0" >>conf$$.sh | |
4003 | chmod +x conf$$.sh | |
4004 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4005 | PATH_SEPARATOR=';' | |
4006 | else | |
4007 | PATH_SEPARATOR=: | |
4008 | fi | |
4009 | rm -f conf$$.sh | |
4010 | fi | |
4011 | ac_prog=ld | |
4012 | if test "$GCC" = yes; then | |
4013 | # Check if gcc -print-prog-name=ld gives a path. | |
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
4015 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
4016 | case $host in | |
4017 | *-*-mingw*) | |
4018 | # gcc leaves a trailing carriage return which upsets mingw | |
4019 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4020 | *) | |
4021 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
dbadc56a | 4022 | esac |
35fa52c0 DWT |
4023 | case $ac_prog in |
4024 | # Accept absolute paths. | |
4025 | [\\/]* | [A-Za-z]:[\\/]*) | |
4026 | re_direlt='/[^/][^/]*/\.\./' | |
4027 | # Canonicalize the path of ld | |
4028 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
4029 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4030 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
4031 | done | |
4032 | test -z "$LD" && LD="$ac_prog" | |
4033 | ;; | |
4034 | "") | |
4035 | # If it fails, then pretend we aren't using GCC. | |
4036 | ac_prog=ld | |
4037 | ;; | |
4038 | *) | |
4039 | # If it is relative, then search for the first ld in PATH. | |
4040 | with_gnu_ld=unknown | |
4041 | ;; | |
4042 | esac | |
4043 | elif test "$with_gnu_ld" = yes; then | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4045 | $as_echo_n "checking for GNU ld... " >&6; } | |
4046 | else | |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4048 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4049 | fi | |
4050 | if test "${acl_cv_path_LD+set}" = set; then : | |
4051 | $as_echo_n "(cached) " >&6 | |
4052 | else | |
4053 | if test -z "$LD"; then | |
4054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
4055 | for ac_dir in $PATH; do | |
4056 | test -z "$ac_dir" && ac_dir=. | |
4057 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4058 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
4059 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4060 | # but apparently some GNU ld's only accept -v. | |
4061 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4062 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
4063 | *GNU* | *'with BFD'*) | |
4064 | test "$with_gnu_ld" != no && break ;; | |
4065 | *) | |
4066 | test "$with_gnu_ld" != yes && break ;; | |
4067 | esac | |
4068 | fi | |
4069 | done | |
4070 | IFS="$ac_save_ifs" | |
4071 | else | |
4072 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
4073 | fi | |
4074 | fi | |
4075 | ||
4076 | LD="$acl_cv_path_LD" | |
4077 | if test -n "$LD"; then | |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4079 | $as_echo "$LD" >&6; } | |
4080 | else | |
4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4082 | $as_echo "no" >&6; } | |
4083 | fi | |
4084 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4086 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4087 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
4088 | $as_echo_n "(cached) " >&6 | |
4089 | else | |
4090 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
4091 | case `$LD -v 2>&1 </dev/null` in | |
4092 | *GNU* | *'with BFD'*) | |
4093 | acl_cv_prog_gnu_ld=yes ;; | |
4094 | *) | |
4095 | acl_cv_prog_gnu_ld=no ;; | |
4096 | esac | |
4097 | fi | |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
4099 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
4100 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
4101 | ||
4102 | ||
4103 | ||
4104 | ||
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
4106 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
4107 | if test "${acl_cv_rpath+set}" = set; then : | |
4108 | $as_echo_n "(cached) " >&6 | |
4109 | else | |
4110 | ||
4111 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
4112 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
4113 | . ./conftest.sh | |
4114 | rm -f ./conftest.sh | |
4115 | acl_cv_rpath=done | |
4116 | ||
4117 | fi | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
4119 | $as_echo "$acl_cv_rpath" >&6; } | |
4120 | wl="$acl_cv_wl" | |
4121 | acl_libext="$acl_cv_libext" | |
4122 | acl_shlibext="$acl_cv_shlibext" | |
4123 | acl_libname_spec="$acl_cv_libname_spec" | |
4124 | acl_library_names_spec="$acl_cv_library_names_spec" | |
4125 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
4126 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
4127 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
4128 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
4129 | # Check whether --enable-rpath was given. | |
4130 | if test "${enable_rpath+set}" = set; then : | |
4131 | enableval=$enable_rpath; : | |
4132 | else | |
4133 | enable_rpath=yes | |
4134 | fi | |
4135 | ||
4136 | ||
4137 | ||
4138 | acl_libdirstem=lib | |
4139 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
4140 | if test -n "$searchpath"; then | |
4141 | acl_save_IFS="${IFS= }"; IFS=":" | |
4142 | for searchdir in $searchpath; do | |
4143 | if test -d "$searchdir"; then | |
4144 | case "$searchdir" in | |
4145 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
4146 | *) searchdir=`cd "$searchdir" && pwd` | |
4147 | case "$searchdir" in | |
4148 | */lib64 ) acl_libdirstem=lib64 ;; | |
4149 | esac ;; | |
4150 | esac | |
4151 | fi | |
4152 | done | |
4153 | IFS="$acl_save_IFS" | |
4154 | fi | |
4155 | ||
4156 | ||
4157 | ||
4158 | ||
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | ||
4164 | use_additional=yes | |
4165 | ||
4166 | acl_save_prefix="$prefix" | |
4167 | prefix="$acl_final_prefix" | |
4168 | acl_save_exec_prefix="$exec_prefix" | |
4169 | exec_prefix="$acl_final_exec_prefix" | |
4170 | ||
4171 | eval additional_includedir=\"$includedir\" | |
4172 | eval additional_libdir=\"$libdir\" | |
4173 | ||
4174 | exec_prefix="$acl_save_exec_prefix" | |
4175 | prefix="$acl_save_prefix" | |
4176 | ||
4177 | ||
4178 | # Check whether --with-libiconv-prefix was given. | |
4179 | if test "${with_libiconv_prefix+set}" = set; then : | |
4180 | withval=$with_libiconv_prefix; | |
4181 | if test "X$withval" = "Xno"; then | |
4182 | use_additional=no | |
4183 | else | |
4184 | if test "X$withval" = "X"; then | |
4185 | ||
4186 | acl_save_prefix="$prefix" | |
4187 | prefix="$acl_final_prefix" | |
4188 | acl_save_exec_prefix="$exec_prefix" | |
4189 | exec_prefix="$acl_final_exec_prefix" | |
4190 | ||
4191 | eval additional_includedir=\"$includedir\" | |
4192 | eval additional_libdir=\"$libdir\" | |
4193 | ||
4194 | exec_prefix="$acl_save_exec_prefix" | |
4195 | prefix="$acl_save_prefix" | |
4196 | ||
4197 | else | |
4198 | additional_includedir="$withval/include" | |
4199 | additional_libdir="$withval/$acl_libdirstem" | |
4200 | fi | |
4201 | fi | |
4202 | ||
4203 | fi | |
dbadc56a | 4204 | |
35fa52c0 DWT |
4205 | LIBICONV= |
4206 | LTLIBICONV= | |
4207 | INCICONV= | |
4208 | LIBICONV_PREFIX= | |
4209 | rpathdirs= | |
4210 | ltrpathdirs= | |
4211 | names_already_handled= | |
4212 | names_next_round='iconv ' | |
4213 | while test -n "$names_next_round"; do | |
4214 | names_this_round="$names_next_round" | |
4215 | names_next_round= | |
4216 | for name in $names_this_round; do | |
4217 | already_handled= | |
4218 | for n in $names_already_handled; do | |
4219 | if test "$n" = "$name"; then | |
4220 | already_handled=yes | |
4221 | break | |
4222 | fi | |
4223 | done | |
4224 | if test -z "$already_handled"; then | |
4225 | names_already_handled="$names_already_handled $name" | |
4226 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
4227 | eval value=\"\$HAVE_LIB$uppername\" | |
4228 | if test -n "$value"; then | |
4229 | if test "$value" = yes; then | |
4230 | eval value=\"\$LIB$uppername\" | |
4231 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
4232 | eval value=\"\$LTLIB$uppername\" | |
4233 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
4234 | else | |
4235 | : | |
4236 | fi | |
4237 | else | |
4238 | found_dir= | |
4239 | found_la= | |
4240 | found_so= | |
4241 | found_a= | |
4242 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
4243 | if test -n "$acl_shlibext"; then | |
4244 | shrext=".$acl_shlibext" # typically: shrext=.so | |
4245 | else | |
4246 | shrext= | |
4247 | fi | |
4248 | if test $use_additional = yes; then | |
4249 | dir="$additional_libdir" | |
4250 | if test -n "$acl_shlibext"; then | |
4251 | if test -f "$dir/$libname$shrext"; then | |
4252 | found_dir="$dir" | |
4253 | found_so="$dir/$libname$shrext" | |
4254 | else | |
4255 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
4256 | ver=`(cd "$dir" && \ | |
4257 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
4258 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
4259 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
4260 | | sed 1q ) 2>/dev/null` | |
4261 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
4262 | found_dir="$dir" | |
4263 | found_so="$dir/$libname$shrext.$ver" | |
4264 | fi | |
4265 | else | |
4266 | eval library_names=\"$acl_library_names_spec\" | |
4267 | for f in $library_names; do | |
4268 | if test -f "$dir/$f"; then | |
4269 | found_dir="$dir" | |
4270 | found_so="$dir/$f" | |
4271 | break | |
4272 | fi | |
4273 | done | |
4274 | fi | |
4275 | fi | |
4276 | fi | |
4277 | if test "X$found_dir" = "X"; then | |
4278 | if test -f "$dir/$libname.$acl_libext"; then | |
4279 | found_dir="$dir" | |
4280 | found_a="$dir/$libname.$acl_libext" | |
4281 | fi | |
4282 | fi | |
4283 | if test "X$found_dir" != "X"; then | |
4284 | if test -f "$dir/$libname.la"; then | |
4285 | found_la="$dir/$libname.la" | |
4286 | fi | |
4287 | fi | |
4288 | fi | |
4289 | if test "X$found_dir" = "X"; then | |
4290 | for x in $LDFLAGS $LTLIBICONV; do | |
4291 | ||
4292 | acl_save_prefix="$prefix" | |
4293 | prefix="$acl_final_prefix" | |
4294 | acl_save_exec_prefix="$exec_prefix" | |
4295 | exec_prefix="$acl_final_exec_prefix" | |
4296 | eval x=\"$x\" | |
4297 | exec_prefix="$acl_save_exec_prefix" | |
4298 | prefix="$acl_save_prefix" | |
4299 | ||
4300 | case "$x" in | |
4301 | -L*) | |
4302 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
4303 | if test -n "$acl_shlibext"; then | |
4304 | if test -f "$dir/$libname$shrext"; then | |
4305 | found_dir="$dir" | |
4306 | found_so="$dir/$libname$shrext" | |
4307 | else | |
4308 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
4309 | ver=`(cd "$dir" && \ | |
4310 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
4311 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
4312 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
4313 | | sed 1q ) 2>/dev/null` | |
4314 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
4315 | found_dir="$dir" | |
4316 | found_so="$dir/$libname$shrext.$ver" | |
4317 | fi | |
4318 | else | |
4319 | eval library_names=\"$acl_library_names_spec\" | |
4320 | for f in $library_names; do | |
4321 | if test -f "$dir/$f"; then | |
4322 | found_dir="$dir" | |
4323 | found_so="$dir/$f" | |
4324 | break | |
4325 | fi | |
4326 | done | |
4327 | fi | |
4328 | fi | |
4329 | fi | |
4330 | if test "X$found_dir" = "X"; then | |
4331 | if test -f "$dir/$libname.$acl_libext"; then | |
4332 | found_dir="$dir" | |
4333 | found_a="$dir/$libname.$acl_libext" | |
4334 | fi | |
4335 | fi | |
4336 | if test "X$found_dir" != "X"; then | |
4337 | if test -f "$dir/$libname.la"; then | |
4338 | found_la="$dir/$libname.la" | |
4339 | fi | |
4340 | fi | |
4341 | ;; | |
4342 | esac | |
4343 | if test "X$found_dir" != "X"; then | |
4344 | break | |
4345 | fi | |
4346 | done | |
4347 | fi | |
4348 | if test "X$found_dir" != "X"; then | |
4349 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
4350 | if test "X$found_so" != "X"; then | |
4351 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
4352 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
4353 | else | |
4354 | haveit= | |
4355 | for x in $ltrpathdirs; do | |
4356 | if test "X$x" = "X$found_dir"; then | |
4357 | haveit=yes | |
4358 | break | |
4359 | fi | |
4360 | done | |
4361 | if test -z "$haveit"; then | |
4362 | ltrpathdirs="$ltrpathdirs $found_dir" | |
4363 | fi | |
4364 | if test "$acl_hardcode_direct" = yes; then | |
4365 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
4366 | else | |
4367 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
4368 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
4369 | haveit= | |
4370 | for x in $rpathdirs; do | |
4371 | if test "X$x" = "X$found_dir"; then | |
4372 | haveit=yes | |
4373 | break | |
4374 | fi | |
4375 | done | |
4376 | if test -z "$haveit"; then | |
4377 | rpathdirs="$rpathdirs $found_dir" | |
4378 | fi | |
4379 | else | |
4380 | haveit= | |
4381 | for x in $LDFLAGS $LIBICONV; do | |
4382 | ||
4383 | acl_save_prefix="$prefix" | |
4384 | prefix="$acl_final_prefix" | |
4385 | acl_save_exec_prefix="$exec_prefix" | |
4386 | exec_prefix="$acl_final_exec_prefix" | |
4387 | eval x=\"$x\" | |
4388 | exec_prefix="$acl_save_exec_prefix" | |
4389 | prefix="$acl_save_prefix" | |
4390 | ||
4391 | if test "X$x" = "X-L$found_dir"; then | |
4392 | haveit=yes | |
4393 | break | |
4394 | fi | |
4395 | done | |
4396 | if test -z "$haveit"; then | |
4397 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
4398 | fi | |
4399 | if test "$acl_hardcode_minus_L" != no; then | |
4400 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
4401 | else | |
4402 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4403 | fi | |
4404 | fi | |
4405 | fi | |
4406 | fi | |
4407 | else | |
4408 | if test "X$found_a" != "X"; then | |
4409 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
4410 | else | |
4411 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
4412 | fi | |
4413 | fi | |
4414 | additional_includedir= | |
4415 | case "$found_dir" in | |
4416 | */$acl_libdirstem | */$acl_libdirstem/) | |
4417 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
4418 | LIBICONV_PREFIX="$basedir" | |
4419 | additional_includedir="$basedir/include" | |
4420 | ;; | |
4421 | esac | |
4422 | if test "X$additional_includedir" != "X"; then | |
4423 | if test "X$additional_includedir" != "X/usr/include"; then | |
4424 | haveit= | |
4425 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
4426 | if test -n "$GCC"; then | |
4427 | case $host_os in | |
4428 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
4429 | esac | |
4430 | fi | |
4431 | fi | |
4432 | if test -z "$haveit"; then | |
4433 | for x in $CPPFLAGS $INCICONV; do | |
4434 | ||
4435 | acl_save_prefix="$prefix" | |
4436 | prefix="$acl_final_prefix" | |
4437 | acl_save_exec_prefix="$exec_prefix" | |
4438 | exec_prefix="$acl_final_exec_prefix" | |
4439 | eval x=\"$x\" | |
4440 | exec_prefix="$acl_save_exec_prefix" | |
4441 | prefix="$acl_save_prefix" | |
4442 | ||
4443 | if test "X$x" = "X-I$additional_includedir"; then | |
4444 | haveit=yes | |
4445 | break | |
4446 | fi | |
4447 | done | |
4448 | if test -z "$haveit"; then | |
4449 | if test -d "$additional_includedir"; then | |
4450 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
4451 | fi | |
4452 | fi | |
4453 | fi | |
4454 | fi | |
4455 | fi | |
4456 | if test -n "$found_la"; then | |
4457 | save_libdir="$libdir" | |
4458 | case "$found_la" in | |
4459 | */* | *\\*) . "$found_la" ;; | |
4460 | *) . "./$found_la" ;; | |
4461 | esac | |
4462 | libdir="$save_libdir" | |
4463 | for dep in $dependency_libs; do | |
4464 | case "$dep" in | |
4465 | -L*) | |
4466 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
4467 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
4468 | haveit= | |
4469 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
4470 | if test -n "$GCC"; then | |
4471 | case $host_os in | |
4472 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
4473 | esac | |
4474 | fi | |
4475 | fi | |
4476 | if test -z "$haveit"; then | |
4477 | haveit= | |
4478 | for x in $LDFLAGS $LIBICONV; do | |
4479 | ||
4480 | acl_save_prefix="$prefix" | |
4481 | prefix="$acl_final_prefix" | |
4482 | acl_save_exec_prefix="$exec_prefix" | |
4483 | exec_prefix="$acl_final_exec_prefix" | |
4484 | eval x=\"$x\" | |
4485 | exec_prefix="$acl_save_exec_prefix" | |
4486 | prefix="$acl_save_prefix" | |
4487 | ||
4488 | if test "X$x" = "X-L$additional_libdir"; then | |
4489 | haveit=yes | |
4490 | break | |
4491 | fi | |
4492 | done | |
4493 | if test -z "$haveit"; then | |
4494 | if test -d "$additional_libdir"; then | |
4495 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
4496 | fi | |
4497 | fi | |
4498 | haveit= | |
4499 | for x in $LDFLAGS $LTLIBICONV; do | |
4500 | ||
4501 | acl_save_prefix="$prefix" | |
4502 | prefix="$acl_final_prefix" | |
4503 | acl_save_exec_prefix="$exec_prefix" | |
4504 | exec_prefix="$acl_final_exec_prefix" | |
4505 | eval x=\"$x\" | |
4506 | exec_prefix="$acl_save_exec_prefix" | |
4507 | prefix="$acl_save_prefix" | |
4508 | ||
4509 | if test "X$x" = "X-L$additional_libdir"; then | |
4510 | haveit=yes | |
4511 | break | |
4512 | fi | |
4513 | done | |
4514 | if test -z "$haveit"; then | |
4515 | if test -d "$additional_libdir"; then | |
4516 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
4517 | fi | |
4518 | fi | |
4519 | fi | |
4520 | fi | |
4521 | ;; | |
4522 | -R*) | |
4523 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
4524 | if test "$enable_rpath" != no; then | |
4525 | haveit= | |
4526 | for x in $rpathdirs; do | |
4527 | if test "X$x" = "X$dir"; then | |
4528 | haveit=yes | |
4529 | break | |
4530 | fi | |
4531 | done | |
4532 | if test -z "$haveit"; then | |
4533 | rpathdirs="$rpathdirs $dir" | |
4534 | fi | |
4535 | haveit= | |
4536 | for x in $ltrpathdirs; do | |
4537 | if test "X$x" = "X$dir"; then | |
4538 | haveit=yes | |
4539 | break | |
4540 | fi | |
4541 | done | |
4542 | if test -z "$haveit"; then | |
4543 | ltrpathdirs="$ltrpathdirs $dir" | |
4544 | fi | |
4545 | fi | |
4546 | ;; | |
4547 | -l*) | |
4548 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
4549 | ;; | |
4550 | *.la) | |
4551 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
4552 | ;; | |
4553 | *) | |
4554 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
4555 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
4556 | ;; | |
4557 | esac | |
4558 | done | |
4559 | fi | |
4560 | else | |
4561 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
4562 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
4563 | fi | |
4564 | fi | |
4565 | fi | |
4566 | done | |
4567 | done | |
4568 | if test "X$rpathdirs" != "X"; then | |
4569 | if test -n "$acl_hardcode_libdir_separator"; then | |
4570 | alldirs= | |
4571 | for found_dir in $rpathdirs; do | |
4572 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
4573 | done | |
4574 | acl_save_libdir="$libdir" | |
4575 | libdir="$alldirs" | |
4576 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
4577 | libdir="$acl_save_libdir" | |
4578 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4579 | else | |
4580 | for found_dir in $rpathdirs; do | |
4581 | acl_save_libdir="$libdir" | |
4582 | libdir="$found_dir" | |
4583 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
4584 | libdir="$acl_save_libdir" | |
4585 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
4586 | done | |
4587 | fi | |
4588 | fi | |
4589 | if test "X$ltrpathdirs" != "X"; then | |
4590 | for found_dir in $ltrpathdirs; do | |
4591 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
4592 | done | |
4593 | fi | |
4594 | ||
4595 | ||
4596 | ||
4597 | ||
4598 | ||
4599 | ||
4600 | ||
4601 | am_save_CPPFLAGS="$CPPFLAGS" | |
4602 | ||
4603 | for element in $INCICONV; do | |
4604 | haveit= | |
4605 | for x in $CPPFLAGS; do | |
4606 | ||
4607 | acl_save_prefix="$prefix" | |
4608 | prefix="$acl_final_prefix" | |
4609 | acl_save_exec_prefix="$exec_prefix" | |
4610 | exec_prefix="$acl_final_exec_prefix" | |
4611 | eval x=\"$x\" | |
4612 | exec_prefix="$acl_save_exec_prefix" | |
4613 | prefix="$acl_save_prefix" | |
4614 | ||
4615 | if test "X$x" = "X$element"; then | |
4616 | haveit=yes | |
4617 | break | |
4618 | fi | |
4619 | done | |
4620 | if test -z "$haveit"; then | |
4621 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
4622 | fi | |
4623 | done | |
4624 | ||
4625 | ||
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
4627 | $as_echo_n "checking for iconv... " >&6; } | |
4628 | if test "${am_cv_func_iconv+set}" = set; then : | |
4629 | $as_echo_n "(cached) " >&6 | |
4630 | else | |
4631 | ||
4632 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
4633 | am_cv_lib_iconv=no | |
4634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4635 | /* end confdefs.h. */ | |
4636 | #include <stdlib.h> | |
4637 | #include <iconv.h> | |
4638 | int | |
4639 | main () | |
4640 | { | |
4641 | iconv_t cd = iconv_open("",""); | |
4642 | iconv(cd,NULL,NULL,NULL,NULL); | |
4643 | iconv_close(cd); | |
4644 | ; | |
4645 | return 0; | |
4646 | } | |
4647 | _ACEOF | |
4648 | if ac_fn_c_try_link "$LINENO"; then : | |
4649 | am_cv_func_iconv=yes | |
4650 | fi | |
4651 | rm -f core conftest.err conftest.$ac_objext \ | |
4652 | conftest$ac_exeext conftest.$ac_ext | |
4653 | if test "$am_cv_func_iconv" != yes; then | |
4654 | am_save_LIBS="$LIBS" | |
4655 | LIBS="$LIBS $LIBICONV" | |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4657 | /* end confdefs.h. */ | |
4658 | #include <stdlib.h> | |
4659 | #include <iconv.h> | |
4660 | int | |
4661 | main () | |
4662 | { | |
4663 | iconv_t cd = iconv_open("",""); | |
4664 | iconv(cd,NULL,NULL,NULL,NULL); | |
4665 | iconv_close(cd); | |
4666 | ; | |
4667 | return 0; | |
4668 | } | |
4669 | _ACEOF | |
4670 | if ac_fn_c_try_link "$LINENO"; then : | |
4671 | am_cv_lib_iconv=yes | |
4672 | am_cv_func_iconv=yes | |
4673 | fi | |
4674 | rm -f core conftest.err conftest.$ac_objext \ | |
4675 | conftest$ac_exeext conftest.$ac_ext | |
4676 | LIBS="$am_save_LIBS" | |
4677 | fi | |
4678 | ||
4679 | fi | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
4681 | $as_echo "$am_cv_func_iconv" >&6; } | |
4682 | if test "$am_cv_func_iconv" = yes; then | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
4684 | $as_echo_n "checking for working iconv... " >&6; } | |
4685 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
4686 | $as_echo_n "(cached) " >&6 | |
4687 | else | |
4688 | ||
4689 | am_save_LIBS="$LIBS" | |
4690 | if test $am_cv_lib_iconv = yes; then | |
4691 | LIBS="$LIBS $LIBICONV" | |
4692 | fi | |
4693 | if test "$cross_compiling" = yes; then : | |
4694 | case "$host_os" in | |
4695 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
4696 | *) am_cv_func_iconv_works="guessing yes" ;; | |
4697 | esac | |
4698 | else | |
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4700 | /* end confdefs.h. */ | |
4701 | ||
4702 | #include <iconv.h> | |
4703 | #include <string.h> | |
4704 | int main () | |
4705 | { | |
4706 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
4707 | returns. */ | |
4708 | { | |
4709 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
4710 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
4711 | { | |
4712 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
4713 | char buf[10]; | |
4714 | const char *inptr = input; | |
4715 | size_t inbytesleft = strlen (input); | |
4716 | char *outptr = buf; | |
4717 | size_t outbytesleft = sizeof (buf); | |
4718 | size_t res = iconv (cd_utf8_to_88591, | |
4719 | (char **) &inptr, &inbytesleft, | |
4720 | &outptr, &outbytesleft); | |
4721 | if (res == 0) | |
4722 | return 1; | |
4723 | } | |
4724 | } | |
4725 | #if 0 /* This bug could be worked around by the caller. */ | |
4726 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
4727 | { | |
4728 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
4729 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
4730 | { | |
4731 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
4732 | char buf[50]; | |
4733 | const char *inptr = input; | |
4734 | size_t inbytesleft = strlen (input); | |
4735 | char *outptr = buf; | |
4736 | size_t outbytesleft = sizeof (buf); | |
4737 | size_t res = iconv (cd_88591_to_utf8, | |
4738 | (char **) &inptr, &inbytesleft, | |
4739 | &outptr, &outbytesleft); | |
4740 | if ((int)res > 0) | |
4741 | return 1; | |
4742 | } | |
4743 | } | |
4744 | #endif | |
4745 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
4746 | provided. */ | |
4747 | if (/* Try standardized names. */ | |
4748 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
4749 | /* Try IRIX, OSF/1 names. */ | |
4750 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
4751 | /* Try AIX names. */ | |
4752 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
4753 | /* Try HP-UX names. */ | |
4754 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
4755 | return 1; | |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
4759 | if ac_fn_c_try_run "$LINENO"; then : | |
4760 | am_cv_func_iconv_works=yes | |
4761 | else | |
4762 | am_cv_func_iconv_works=no | |
4763 | fi | |
4764 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4765 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4766 | fi | |
4767 | ||
4768 | LIBS="$am_save_LIBS" | |
4769 | ||
4770 | fi | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
4772 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
4773 | case "$am_cv_func_iconv_works" in | |
4774 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
4775 | *) am_func_iconv=yes ;; | |
4776 | esac | |
4777 | else | |
4778 | am_func_iconv=no am_cv_lib_iconv=no | |
4779 | fi | |
4780 | if test "$am_func_iconv" = yes; then | |
4781 | ||
4782 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
4783 | ||
4784 | fi | |
4785 | if test "$am_cv_lib_iconv" = yes; then | |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
4787 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
4789 | $as_echo "$LIBICONV" >&6; } | |
4790 | else | |
4791 | CPPFLAGS="$am_save_CPPFLAGS" | |
4792 | LIBICONV= | |
4793 | LTLIBICONV= | |
4794 | fi | |
4795 | ||
4796 | ||
4797 | ||
4798 | if test "$am_cv_func_iconv" = yes; then | |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
4800 | $as_echo_n "checking for iconv declaration... " >&6; } | |
4801 | if test "${am_cv_proto_iconv+set}" = set; then : | |
4802 | $as_echo_n "(cached) " >&6 | |
4803 | else | |
4804 | ||
4805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4806 | /* end confdefs.h. */ | |
4807 | ||
4808 | #include <stdlib.h> | |
4809 | #include <iconv.h> | |
4810 | extern | |
4811 | #ifdef __cplusplus | |
4812 | "C" | |
4813 | #endif | |
4814 | #if defined(__STDC__) || defined(__cplusplus) | |
4815 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
4816 | #else | |
4817 | size_t iconv(); | |
4818 | #endif | |
4819 | ||
4820 | int | |
4821 | main () | |
4822 | { | |
4823 | ||
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | if ac_fn_c_try_compile "$LINENO"; then : | |
4829 | am_cv_proto_iconv_arg1="" | |
4830 | else | |
4831 | am_cv_proto_iconv_arg1="const" | |
4832 | fi | |
4833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4834 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
4835 | fi | |
4836 | ||
4837 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
4839 | }$am_cv_proto_iconv" >&5 | |
4840 | $as_echo "${ac_t:- | |
4841 | }$am_cv_proto_iconv" >&6; } | |
4842 | ||
4843 | cat >>confdefs.h <<_ACEOF | |
4844 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
4845 | _ACEOF | |
4846 | ||
4847 | fi | |
4848 | ||
4849 | case $am_cv_func_iconv in #( | |
4850 | yes) : | |
4851 | ;; #( | |
4852 | *) : | |
4853 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
dbadc56a | 4854 | esac |
35fa52c0 DWT |
4855 | |
4856 | ||
4857 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4858 | if test -n "$ac_tool_prefix"; then | |
4859 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4860 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4862 | $as_echo_n "checking for $ac_word... " >&6; } | |
4863 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
4864 | $as_echo_n "(cached) " >&6 | |
4865 | else | |
4866 | case $PKG_CONFIG in | |
4867 | [\\/]* | ?:[\\/]*) | |
4868 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4869 | ;; | |
4870 | *) | |
4871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4872 | for as_dir in $PATH | |
dbadc56a | 4873 | do |
35fa52c0 DWT |
4874 | IFS=$as_save_IFS |
4875 | test -z "$as_dir" && as_dir=. | |
4876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4878 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4880 | break 2 | |
4881 | fi | |
dbadc56a | 4882 | done |
35fa52c0 DWT |
4883 | done |
4884 | IFS=$as_save_IFS | |
dbadc56a | 4885 | |
35fa52c0 DWT |
4886 | ;; |
4887 | esac | |
4888 | fi | |
4889 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4890 | if test -n "$PKG_CONFIG"; then | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4892 | $as_echo "$PKG_CONFIG" >&6; } | |
dbadc56a | 4893 | else |
35fa52c0 DWT |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4895 | $as_echo "no" >&6; } | |
dbadc56a | 4896 | fi |
dbadc56a | 4897 | |
35fa52c0 | 4898 | |
dbadc56a | 4899 | fi |
35fa52c0 DWT |
4900 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
4901 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4902 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4903 | set dummy pkg-config; ac_word=$2 | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4905 | $as_echo_n "checking for $ac_word... " >&6; } | |
4906 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
4907 | $as_echo_n "(cached) " >&6 | |
4908 | else | |
4909 | case $ac_pt_PKG_CONFIG in | |
4910 | [\\/]* | ?:[\\/]*) | |
4911 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4912 | ;; | |
4913 | *) | |
4914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4915 | for as_dir in $PATH | |
4916 | do | |
4917 | IFS=$as_save_IFS | |
4918 | test -z "$as_dir" && as_dir=. | |
4919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4921 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4923 | break 2 | |
4924 | fi | |
4925 | done | |
4926 | done | |
4927 | IFS=$as_save_IFS | |
dbadc56a | 4928 | |
35fa52c0 | 4929 | ;; |
dbadc56a | 4930 | esac |
35fa52c0 DWT |
4931 | fi |
4932 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4933 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
4935 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4936 | else | |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4938 | $as_echo "no" >&6; } | |
4939 | fi | |
4940 | ||
4941 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4942 | PKG_CONFIG="" | |
dbadc56a | 4943 | else |
35fa52c0 DWT |
4944 | case $cross_compiling:$ac_tool_warned in |
4945 | yes:) | |
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4947 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4948 | ac_tool_warned=yes ;; | |
4949 | esac | |
4950 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
dbadc56a | 4951 | fi |
35fa52c0 DWT |
4952 | else |
4953 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
dbadc56a | 4954 | fi |
35fa52c0 DWT |
4955 | |
4956 | fi | |
4957 | if test -n "$PKG_CONFIG"; then | |
4958 | _pkg_min_version=0.9.0 | |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4960 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4961 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
dbadc56a | 4963 | $as_echo "yes" >&6; } |
35fa52c0 DWT |
4964 | else |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4966 | $as_echo "no" >&6; } | |
4967 | PKG_CONFIG="" | |
4968 | fi | |
dbadc56a | 4969 | |
35fa52c0 DWT |
4970 | fi |
4971 | ||
4972 | pkg_failed=no | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
4974 | $as_echo_n "checking for WEBKIT... " >&6; } | |
dbadc56a | 4975 | |
35fa52c0 DWT |
4976 | if test -n "$PKG_CONFIG"; then |
4977 | if test -n "$WEBKIT_CFLAGS"; then | |
4978 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
4979 | else | |
4980 | if test -n "$PKG_CONFIG" && \ | |
4981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
4982 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
dbadc56a DWT |
4983 | ac_status=$? |
4984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35fa52c0 DWT |
4985 | test $ac_status = 0; }; then |
4986 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
dbadc56a | 4987 | else |
35fa52c0 DWT |
4988 | pkg_failed=yes |
4989 | fi | |
4990 | fi | |
4991 | else | |
4992 | pkg_failed=untried | |
4993 | fi | |
4994 | if test -n "$PKG_CONFIG"; then | |
4995 | if test -n "$WEBKIT_LIBS"; then | |
4996 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
4997 | else | |
4998 | if test -n "$PKG_CONFIG" && \ | |
4999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
5000 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
5001 | ac_status=$? | |
5002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5003 | test $ac_status = 0; }; then | |
5004 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
5005 | else | |
5006 | pkg_failed=yes | |
5007 | fi | |
5008 | fi | |
5009 | else | |
5010 | pkg_failed=untried | |
dbadc56a | 5011 | fi |
dbadc56a | 5012 | |
35fa52c0 DWT |
5013 | |
5014 | ||
5015 | if test $pkg_failed = yes; then | |
5016 | ||
5017 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5018 | _pkg_short_errors_supported=yes | |
dbadc56a | 5019 | else |
35fa52c0 DWT |
5020 | _pkg_short_errors_supported=no |
5021 | fi | |
5022 | if test $_pkg_short_errors_supported = yes; then | |
5023 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
5024 | else | |
5025 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
5026 | fi | |
5027 | # Put the nasty error message in config.log where it belongs | |
5028 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
5029 | ||
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5031 | $as_echo "no" >&6; } | |
dbadc56a | 5032 | |
dbadc56a | 5033 | |
35fa52c0 DWT |
5034 | pkg_failed=no |
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
5036 | $as_echo_n "checking for WEBKIT... " >&6; } | |
5037 | ||
5038 | if test -n "$PKG_CONFIG"; then | |
5039 | if test -n "$WEBKIT_CFLAGS"; then | |
5040 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
5041 | else | |
5042 | if test -n "$PKG_CONFIG" && \ | |
5043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
5044 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
dbadc56a DWT |
5045 | ac_status=$? |
5046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
35fa52c0 DWT |
5047 | test $ac_status = 0; }; then |
5048 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
dbadc56a | 5049 | else |
35fa52c0 | 5050 | pkg_failed=yes |
dbadc56a | 5051 | fi |
35fa52c0 DWT |
5052 | fi |
5053 | else | |
5054 | pkg_failed=untried | |
dbadc56a | 5055 | fi |
35fa52c0 DWT |
5056 | if test -n "$PKG_CONFIG"; then |
5057 | if test -n "$WEBKIT_LIBS"; then | |
5058 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
5059 | else | |
5060 | if test -n "$PKG_CONFIG" && \ | |
5061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
5062 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
5063 | ac_status=$? | |
5064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5065 | test $ac_status = 0; }; then | |
5066 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
dbadc56a | 5067 | else |
35fa52c0 DWT |
5068 | pkg_failed=yes |
5069 | fi | |
5070 | fi | |
5071 | else | |
5072 | pkg_failed=untried | |
5073 | fi | |
dbadc56a | 5074 | |
dbadc56a | 5075 | |
35fa52c0 DWT |
5076 | |
5077 | if test $pkg_failed = yes; then | |
5078 | ||
5079 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5080 | _pkg_short_errors_supported=yes | |
dbadc56a | 5081 | else |
35fa52c0 DWT |
5082 | _pkg_short_errors_supported=no |
5083 | fi | |
5084 | if test $_pkg_short_errors_supported = yes; then | |
5085 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
5086 | else | |
5087 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
5088 | fi | |
5089 | # Put the nasty error message in config.log where it belongs | |
5090 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
5091 | ||
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5093 | $as_echo "no" >&6; } | |
5094 | WEBKIT=no | |
5095 | elif test $pkg_failed = untried; then | |
5096 | WEBKIT=no | |
5097 | else | |
5098 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
5099 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5101 | $as_echo "yes" >&6; } | |
5102 | WEBKIT=yes | |
dbadc56a | 5103 | fi |
dbadc56a | 5104 | |
35fa52c0 DWT |
5105 | elif test $pkg_failed = untried; then |
5106 | ||
5107 | ||
5108 | pkg_failed=no | |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
5110 | $as_echo_n "checking for WEBKIT... " >&6; } | |
5111 | ||
5112 | if test -n "$PKG_CONFIG"; then | |
5113 | if test -n "$WEBKIT_CFLAGS"; then | |
5114 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
5115 | else | |
5116 | if test -n "$PKG_CONFIG" && \ | |
5117 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
5118 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
5119 | ac_status=$? | |
5120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5121 | test $ac_status = 0; }; then | |
5122 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
5123 | else | |
5124 | pkg_failed=yes | |
dbadc56a | 5125 | fi |
35fa52c0 | 5126 | fi |
dbadc56a | 5127 | else |
35fa52c0 | 5128 | pkg_failed=untried |
dbadc56a | 5129 | fi |
35fa52c0 DWT |
5130 | if test -n "$PKG_CONFIG"; then |
5131 | if test -n "$WEBKIT_LIBS"; then | |
5132 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
5133 | else | |
5134 | if test -n "$PKG_CONFIG" && \ | |
5135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
5136 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
5137 | ac_status=$? | |
5138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5139 | test $ac_status = 0; }; then | |
5140 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
dbadc56a | 5141 | else |
35fa52c0 DWT |
5142 | pkg_failed=yes |
5143 | fi | |
5144 | fi | |
5145 | else | |
5146 | pkg_failed=untried | |
5147 | fi | |
dbadc56a | 5148 | |
dbadc56a | 5149 | |
dbadc56a | 5150 | |
35fa52c0 | 5151 | if test $pkg_failed = yes; then |
dbadc56a | 5152 | |
35fa52c0 DWT |
5153 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
5154 | _pkg_short_errors_supported=yes | |
5155 | else | |
5156 | _pkg_short_errors_supported=no | |
5157 | fi | |
5158 | if test $_pkg_short_errors_supported = yes; then | |
5159 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
5160 | else | |
5161 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
5162 | fi | |
5163 | # Put the nasty error message in config.log where it belongs | |
5164 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
5165 | ||
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5167 | $as_echo "no" >&6; } | |
5168 | WEBKIT=no | |
5169 | elif test $pkg_failed = untried; then | |
5170 | WEBKIT=no | |
5171 | else | |
5172 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
5173 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5175 | $as_echo "yes" >&6; } | |
5176 | WEBKIT=yes | |
5177 | fi | |
dbadc56a DWT |
5178 | |
5179 | else | |
35fa52c0 DWT |
5180 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS |
5181 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5183 | $as_echo "yes" >&6; } | |
5184 | WEBKIT=yes | |
5185 | fi | |
6b66678a DWT |
5186 | ac_ext=c |
5187 | ac_cpp='$CPP $CPPFLAGS' | |
5188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5192 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5193 | # On Suns, sometimes $CPP names a directory. | |
5194 | if test -n "$CPP" && test -d "$CPP"; then | |
5195 | CPP= | |
5196 | fi | |
5197 | if test -z "$CPP"; then | |
5198 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
5199 | $as_echo_n "(cached) " >&6 | |
5200 | else | |
5201 | # Double quotes because CPP needs to be expanded | |
5202 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5203 | do | |
5204 | ac_preproc_ok=false | |
5205 | for ac_c_preproc_warn_flag in '' yes | |
5206 | do | |
5207 | # Use a header file that comes with gcc, so configuring glibc | |
5208 | # with a fresh cross-compiler works. | |
5209 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5210 | # <limits.h> exists even on freestanding compilers. | |
5211 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5212 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5214 | /* end confdefs.h. */ | |
5215 | #ifdef __STDC__ | |
5216 | # include <limits.h> | |
5217 | #else | |
5218 | # include <assert.h> | |
5219 | #endif | |
5220 | Syntax error | |
5221 | _ACEOF | |
5222 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5223 | ||
5224 | else | |
5225 | # Broken: fails on valid input. | |
5226 | continue | |
5227 | fi | |
5228 | rm -f conftest.err conftest.$ac_ext | |
5229 | ||
5230 | # OK, works on sane cases. Now check whether nonexistent headers | |
5231 | # can be detected and how. | |
5232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5233 | /* end confdefs.h. */ | |
5234 | #include <ac_nonexistent.h> | |
5235 | _ACEOF | |
5236 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5237 | # Broken: success on invalid input. | |
5238 | continue | |
5239 | else | |
5240 | # Passes both tests. | |
5241 | ac_preproc_ok=: | |
5242 | break | |
5243 | fi | |
5244 | rm -f conftest.err conftest.$ac_ext | |
5245 | ||
5246 | done | |
5247 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5248 | rm -f conftest.err conftest.$ac_ext | |
5249 | if $ac_preproc_ok; then : | |
5250 | break | |
5251 | fi | |
5252 | ||
5253 | done | |
5254 | ac_cv_prog_CPP=$CPP | |
5255 | ||
5256 | fi | |
5257 | CPP=$ac_cv_prog_CPP | |
5258 | else | |
5259 | ac_cv_prog_CPP=$CPP | |
5260 | fi | |
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5262 | $as_echo "$CPP" >&6; } | |
5263 | ac_preproc_ok=false | |
5264 | for ac_c_preproc_warn_flag in '' yes | |
5265 | do | |
5266 | # Use a header file that comes with gcc, so configuring glibc | |
5267 | # with a fresh cross-compiler works. | |
5268 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5269 | # <limits.h> exists even on freestanding compilers. | |
5270 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5271 | # not just through cpp. "Syntax error" is here to catch this case. | |
5272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5273 | /* end confdefs.h. */ | |
5274 | #ifdef __STDC__ | |
5275 | # include <limits.h> | |
5276 | #else | |
5277 | # include <assert.h> | |
5278 | #endif | |
5279 | Syntax error | |
5280 | _ACEOF | |
5281 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5282 | ||
5283 | else | |
5284 | # Broken: fails on valid input. | |
5285 | continue | |
5286 | fi | |
5287 | rm -f conftest.err conftest.$ac_ext | |
5288 | ||
5289 | # OK, works on sane cases. Now check whether nonexistent headers | |
5290 | # can be detected and how. | |
5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5292 | /* end confdefs.h. */ | |
5293 | #include <ac_nonexistent.h> | |
5294 | _ACEOF | |
5295 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5296 | # Broken: success on invalid input. | |
5297 | continue | |
5298 | else | |
5299 | # Passes both tests. | |
5300 | ac_preproc_ok=: | |
5301 | break | |
5302 | fi | |
5303 | rm -f conftest.err conftest.$ac_ext | |
5304 | ||
5305 | done | |
5306 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5307 | rm -f conftest.err conftest.$ac_ext | |
5308 | if $ac_preproc_ok; then : | |
5309 | ||
5310 | else | |
5311 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5313 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5314 | See \`config.log' for more details." "$LINENO" 5; } | |
5315 | fi | |
5316 | ||
5317 | ac_ext=c | |
5318 | ac_cpp='$CPP $CPPFLAGS' | |
5319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5322 | ||
5323 | ||
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5325 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5326 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5327 | $as_echo_n "(cached) " >&6 | |
5328 | else | |
5329 | if test -z "$GREP"; then | |
5330 | ac_path_GREP_found=false | |
5331 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5333 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5334 | do | |
5335 | IFS=$as_save_IFS | |
5336 | test -z "$as_dir" && as_dir=. | |
5337 | for ac_prog in grep ggrep; do | |
5338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5339 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5340 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5341 | # Check for GNU ac_path_GREP and select it if it is found. | |
5342 | # Check for GNU $ac_path_GREP | |
5343 | case `"$ac_path_GREP" --version 2>&1` in | |
5344 | *GNU*) | |
5345 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5346 | *) | |
5347 | ac_count=0 | |
5348 | $as_echo_n 0123456789 >"conftest.in" | |
5349 | while : | |
5350 | do | |
5351 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5352 | mv "conftest.tmp" "conftest.in" | |
5353 | cp "conftest.in" "conftest.nl" | |
5354 | $as_echo 'GREP' >> "conftest.nl" | |
5355 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5356 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5357 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5358 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5359 | # Best one so far, save it but keep looking for a better one | |
5360 | ac_cv_path_GREP="$ac_path_GREP" | |
5361 | ac_path_GREP_max=$ac_count | |
5362 | fi | |
5363 | # 10*(2^10) chars as input seems more than enough | |
5364 | test $ac_count -gt 10 && break | |
5365 | done | |
5366 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5367 | esac | |
5368 | ||
5369 | $ac_path_GREP_found && break 3 | |
5370 | done | |
5371 | done | |
5372 | done | |
5373 | IFS=$as_save_IFS | |
5374 | if test -z "$ac_cv_path_GREP"; then | |
5375 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5376 | fi | |
5377 | else | |
5378 | ac_cv_path_GREP=$GREP | |
5379 | fi | |
5380 | ||
5381 | fi | |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5383 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5384 | GREP="$ac_cv_path_GREP" | |
5385 | ||
5386 | ||
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5388 | $as_echo_n "checking for egrep... " >&6; } | |
5389 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5390 | $as_echo_n "(cached) " >&6 | |
5391 | else | |
5392 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5393 | then ac_cv_path_EGREP="$GREP -E" | |
5394 | else | |
5395 | if test -z "$EGREP"; then | |
5396 | ac_path_EGREP_found=false | |
5397 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5399 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5400 | do | |
5401 | IFS=$as_save_IFS | |
5402 | test -z "$as_dir" && as_dir=. | |
5403 | for ac_prog in egrep; do | |
5404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5405 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5406 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5407 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5408 | # Check for GNU $ac_path_EGREP | |
5409 | case `"$ac_path_EGREP" --version 2>&1` in | |
5410 | *GNU*) | |
5411 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5412 | *) | |
5413 | ac_count=0 | |
5414 | $as_echo_n 0123456789 >"conftest.in" | |
5415 | while : | |
5416 | do | |
5417 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5418 | mv "conftest.tmp" "conftest.in" | |
5419 | cp "conftest.in" "conftest.nl" | |
5420 | $as_echo 'EGREP' >> "conftest.nl" | |
5421 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5422 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5423 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5424 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5425 | # Best one so far, save it but keep looking for a better one | |
5426 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5427 | ac_path_EGREP_max=$ac_count | |
5428 | fi | |
5429 | # 10*(2^10) chars as input seems more than enough | |
5430 | test $ac_count -gt 10 && break | |
5431 | done | |
5432 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5433 | esac | |
5434 | ||
5435 | $ac_path_EGREP_found && break 3 | |
5436 | done | |
5437 | done | |
5438 | done | |
5439 | IFS=$as_save_IFS | |
5440 | if test -z "$ac_cv_path_EGREP"; then | |
5441 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5442 | fi | |
5443 | else | |
5444 | ac_cv_path_EGREP=$EGREP | |
5445 | fi | |
5446 | ||
5447 | fi | |
5448 | fi | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5450 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5451 | EGREP="$ac_cv_path_EGREP" | |
5452 | ||
5453 | ||
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5455 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5456 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5457 | $as_echo_n "(cached) " >&6 | |
5458 | else | |
5459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5460 | /* end confdefs.h. */ | |
5461 | #include <stdlib.h> | |
5462 | #include <stdarg.h> | |
5463 | #include <string.h> | |
5464 | #include <float.h> | |
5465 | ||
5466 | int | |
5467 | main () | |
5468 | { | |
5469 | ||
5470 | ; | |
5471 | return 0; | |
5472 | } | |
5473 | _ACEOF | |
5474 | if ac_fn_c_try_compile "$LINENO"; then : | |
5475 | ac_cv_header_stdc=yes | |
5476 | else | |
5477 | ac_cv_header_stdc=no | |
5478 | fi | |
5479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5480 | ||
5481 | if test $ac_cv_header_stdc = yes; then | |
5482 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5484 | /* end confdefs.h. */ | |
5485 | #include <string.h> | |
5486 | ||
5487 | _ACEOF | |
5488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5489 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5490 | ||
5491 | else | |
5492 | ac_cv_header_stdc=no | |
5493 | fi | |
5494 | rm -f conftest* | |
5495 | ||
5496 | fi | |
5497 | ||
5498 | if test $ac_cv_header_stdc = yes; then | |
5499 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5501 | /* end confdefs.h. */ | |
5502 | #include <stdlib.h> | |
5503 | ||
5504 | _ACEOF | |
5505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5506 | $EGREP "free" >/dev/null 2>&1; then : | |
5507 | ||
5508 | else | |
5509 | ac_cv_header_stdc=no | |
5510 | fi | |
5511 | rm -f conftest* | |
5512 | ||
5513 | fi | |
5514 | ||
5515 | if test $ac_cv_header_stdc = yes; then | |
5516 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5517 | if test "$cross_compiling" = yes; then : | |
5518 | : | |
5519 | else | |
5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5521 | /* end confdefs.h. */ | |
5522 | #include <ctype.h> | |
5523 | #include <stdlib.h> | |
5524 | #if ((' ' & 0x0FF) == 0x020) | |
5525 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5526 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5527 | #else | |
5528 | # define ISLOWER(c) \ | |
5529 | (('a' <= (c) && (c) <= 'i') \ | |
5530 | || ('j' <= (c) && (c) <= 'r') \ | |
5531 | || ('s' <= (c) && (c) <= 'z')) | |
5532 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5533 | #endif | |
5534 | ||
5535 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5536 | int | |
5537 | main () | |
5538 | { | |
5539 | int i; | |
5540 | for (i = 0; i < 256; i++) | |
5541 | if (XOR (islower (i), ISLOWER (i)) | |
5542 | || toupper (i) != TOUPPER (i)) | |
5543 | return 2; | |
5544 | return 0; | |
5545 | } | |
5546 | _ACEOF | |
5547 | if ac_fn_c_try_run "$LINENO"; then : | |
5548 | ||
5549 | else | |
5550 | ac_cv_header_stdc=no | |
5551 | fi | |
5552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5553 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5554 | fi | |
5555 | ||
5556 | fi | |
5557 | fi | |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5559 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5560 | if test $ac_cv_header_stdc = yes; then | |
5561 | ||
5562 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5563 | ||
5564 | fi | |
5565 | ||
5566 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5567 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5568 | inttypes.h stdint.h unistd.h | |
5569 | do : | |
5570 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5571 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5572 | " | |
5573 | eval as_val=\$$as_ac_Header | |
5574 | if test "x$as_val" = x""yes; then : | |
5575 | cat >>confdefs.h <<_ACEOF | |
5576 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5577 | _ACEOF | |
5578 | ||
5579 | fi | |
5580 | ||
5581 | done | |
5582 | ||
5583 | ||
35fa52c0 DWT |
5584 | case $WEBKIT in #( |
5585 | yes) : | |
dbadc56a | 5586 | |
dbadc56a | 5587 | |
35fa52c0 DWT |
5588 | pkg_failed=no |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
5590 | $as_echo_n "checking for LIBFFI... " >&6; } | |
5591 | ||
5592 | if test -n "$PKG_CONFIG"; then | |
5593 | if test -n "$LIBFFI_CFLAGS"; then | |
5594 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
5595 | else | |
5596 | if test -n "$PKG_CONFIG" && \ | |
5597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
5598 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
5599 | ac_status=$? | |
5600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5601 | test $ac_status = 0; }; then | |
5602 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
5603 | else | |
5604 | pkg_failed=yes | |
dbadc56a | 5605 | fi |
35fa52c0 DWT |
5606 | fi |
5607 | else | |
5608 | pkg_failed=untried | |
dbadc56a | 5609 | fi |
35fa52c0 DWT |
5610 | if test -n "$PKG_CONFIG"; then |
5611 | if test -n "$LIBFFI_LIBS"; then | |
5612 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
5613 | else | |
5614 | if test -n "$PKG_CONFIG" && \ | |
5615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
5616 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
5617 | ac_status=$? | |
5618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5619 | test $ac_status = 0; }; then | |
5620 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
5621 | else | |
5622 | pkg_failed=yes | |
dbadc56a | 5623 | fi |
35fa52c0 DWT |
5624 | fi |
5625 | else | |
5626 | pkg_failed=untried | |
dbadc56a | 5627 | fi |
35fa52c0 DWT |
5628 | |
5629 | ||
5630 | ||
5631 | if test $pkg_failed = yes; then | |
5632 | ||
5633 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5634 | _pkg_short_errors_supported=yes | |
dbadc56a | 5635 | else |
35fa52c0 | 5636 | _pkg_short_errors_supported=no |
dbadc56a | 5637 | fi |
35fa52c0 DWT |
5638 | if test $_pkg_short_errors_supported = yes; then |
5639 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
5640 | else | |
5641 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
5642 | fi | |
5643 | # Put the nasty error message in config.log where it belongs | |
5644 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
5645 | ||
6b66678a DWT |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5647 | $as_echo "no" >&6; } | |
5648 | ||
5649 | for ac_header in ffi.h ffi/ffi.h | |
5650 | do : | |
5651 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5652 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5653 | eval as_val=\$$as_ac_Header | |
5654 | if test "x$as_val" = x""yes; then : | |
5655 | cat >>confdefs.h <<_ACEOF | |
5656 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5657 | _ACEOF | |
5658 | break | |
5659 | fi | |
5660 | ||
5661 | done | |
5662 | ||
5663 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
35fa52c0 | 5664 | |
6b66678a | 5665 | as_fn_error "You need libffi" "$LINENO" 5 |
35fa52c0 | 5666 | |
6b66678a DWT |
5667 | fi |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
5669 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
5670 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5671 | $as_echo_n "(cached) " >&6 | |
5672 | else | |
5673 | ac_func_search_save_LIBS=$LIBS | |
5674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5675 | /* end confdefs.h. */ | |
5676 | ||
5677 | /* Override any GCC internal prototype to avoid an error. | |
5678 | Use char because int might match the return type of a GCC | |
5679 | builtin and then its argument prototype would still apply. */ | |
5680 | #ifdef __cplusplus | |
5681 | extern "C" | |
5682 | #endif | |
5683 | char ffi_call (); | |
5684 | int | |
5685 | main () | |
5686 | { | |
5687 | return ffi_call (); | |
5688 | ; | |
5689 | return 0; | |
5690 | } | |
5691 | _ACEOF | |
5692 | for ac_lib in '' ffi; do | |
5693 | if test -z "$ac_lib"; then | |
5694 | ac_res="none required" | |
5695 | else | |
5696 | ac_res=-l$ac_lib | |
5697 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5698 | fi | |
5699 | if ac_fn_c_try_link "$LINENO"; then : | |
5700 | ac_cv_search_ffi_call=$ac_res | |
5701 | fi | |
5702 | rm -f core conftest.err conftest.$ac_objext \ | |
5703 | conftest$ac_exeext | |
5704 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5705 | break | |
5706 | fi | |
5707 | done | |
5708 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5709 | ||
5710 | else | |
5711 | ac_cv_search_ffi_call=no | |
5712 | fi | |
5713 | rm conftest.$ac_ext | |
5714 | LIBS=$ac_func_search_save_LIBS | |
5715 | fi | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
5717 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
5718 | ac_res=$ac_cv_search_ffi_call | |
5719 | if test "$ac_res" != no; then : | |
5720 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5721 | ||
5722 | fi | |
5723 | ||
5724 | case $ac_cv_search_ffi_call in #( | |
5725 | no) : | |
5726 | ||
5727 | as_fn_error "You need libffi" "$LINENO" 5 | |
5728 | ;; #( | |
5729 | *) : | |
5730 | ;; | |
5731 | esac | |
35fa52c0 | 5732 | |
35fa52c0 | 5733 | elif test $pkg_failed = untried; then |
35fa52c0 | 5734 | |
6b66678a DWT |
5735 | for ac_header in ffi.h ffi/ffi.h |
5736 | do : | |
5737 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5738 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5739 | eval as_val=\$$as_ac_Header | |
5740 | if test "x$as_val" = x""yes; then : | |
5741 | cat >>confdefs.h <<_ACEOF | |
5742 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5743 | _ACEOF | |
5744 | break | |
5745 | fi | |
5746 | ||
5747 | done | |
5748 | ||
5749 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
5750 | ||
5751 | as_fn_error "You need libffi" "$LINENO" 5 | |
5752 | ||
5753 | fi | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
5755 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
5756 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5757 | $as_echo_n "(cached) " >&6 | |
5758 | else | |
5759 | ac_func_search_save_LIBS=$LIBS | |
5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5761 | /* end confdefs.h. */ | |
5762 | ||
5763 | /* Override any GCC internal prototype to avoid an error. | |
5764 | Use char because int might match the return type of a GCC | |
5765 | builtin and then its argument prototype would still apply. */ | |
5766 | #ifdef __cplusplus | |
5767 | extern "C" | |
5768 | #endif | |
5769 | char ffi_call (); | |
5770 | int | |
5771 | main () | |
5772 | { | |
5773 | return ffi_call (); | |
5774 | ; | |
5775 | return 0; | |
5776 | } | |
5777 | _ACEOF | |
5778 | for ac_lib in '' ffi; do | |
5779 | if test -z "$ac_lib"; then | |
5780 | ac_res="none required" | |
5781 | else | |
5782 | ac_res=-l$ac_lib | |
5783 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5784 | fi | |
5785 | if ac_fn_c_try_link "$LINENO"; then : | |
5786 | ac_cv_search_ffi_call=$ac_res | |
5787 | fi | |
5788 | rm -f core conftest.err conftest.$ac_objext \ | |
5789 | conftest$ac_exeext | |
5790 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5791 | break | |
5792 | fi | |
5793 | done | |
5794 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
5795 | ||
5796 | else | |
5797 | ac_cv_search_ffi_call=no | |
5798 | fi | |
5799 | rm conftest.$ac_ext | |
5800 | LIBS=$ac_func_search_save_LIBS | |
5801 | fi | |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
5803 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
5804 | ac_res=$ac_cv_search_ffi_call | |
5805 | if test "$ac_res" != no; then : | |
5806 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5807 | ||
5808 | fi | |
5809 | ||
5810 | case $ac_cv_search_ffi_call in #( | |
5811 | no) : | |
5812 | ||
5813 | as_fn_error "You need libffi" "$LINENO" 5 | |
5814 | ;; #( | |
5815 | *) : | |
5816 | ;; | |
5817 | esac | |
dbadc56a | 5818 | |
35fa52c0 DWT |
5819 | else |
5820 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
5821 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5823 | $as_echo "yes" >&6; } | |
5824 | : | |
5825 | fi | |
5826 | ;; #( | |
5827 | *) : | |
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5 | |
5829 | $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;; | |
5830 | esac | |
309b0535 DWT |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
5832 | $as_echo_n "checking for GNU make... " >&6; } | |
5833 | if test "${_cv_gnu_make_command+set}" = set; then : | |
5834 | $as_echo_n "(cached) " >&6 | |
5835 | else | |
5836 | _cv_gnu_make_command='' ; | |
5837 | for a in "$MAKE" make gmake gnumake ; do | |
5838 | if test -z "$a" ; then continue ; fi ; | |
5839 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
5840 | _cv_gnu_make_command=$a ; | |
5841 | break; | |
5842 | fi | |
5843 | done ; | |
5844 | ||
5845 | fi | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
5847 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
5848 | if test "x$_cv_gnu_make_command" != "x" ; then | |
5849 | ifGNUmake='' ; | |
5850 | else | |
5851 | ifGNUmake='#' ; | |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
5853 | $as_echo "\"Not found\"" >&6; }; | |
5854 | fi | |
5855 | ||
5856 | ||
6b66678a | 5857 | if test "x$_cv_gnu_make_command" = x; then : |
309b0535 DWT |
5858 | as_fn_error "You need GNU make" "$LINENO" 5 |
5859 | fi | |
35fa52c0 | 5860 | # XXX: gnustep |
309b0535 | 5861 | #AC_PROG_OBJCXX |