]> git.saurik.com Git - cycript.git/blame_incremental - configure
Check the version of flex; check for libffi further after pkg-config fails us.
[cycript.git] / configure
... / ...
CommitLineData
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
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
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if 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
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
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
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
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
209fi; }
210IFS=$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+"$@"}
222fi
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
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_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.
270as_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.
280as_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.
330if (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 }'
335else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340fi # 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.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357fi # 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.
365as_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
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379else
380 as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385else
386 as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
394
395as_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.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_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
453ECHO_C= ECHO_N= ECHO_T=
454case `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';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472fi
473if (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
487else
488 as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502else
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 '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_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.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529as_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'
589
590exec 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.
595ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597#
598# Initializations.
599#
600ac_default_prefix=/usr/local
601ac_clean_files=
602ac_config_libobj_dir=.
603LIBOBJS=
604cross_compiling=no
605subdirs=
606MFLAGS=
607MAKEFLAGS=
608
609# Identity of this package.
610PACKAGE_NAME='Cycript'
611PACKAGE_TARNAME='cycript'
612PACKAGE_VERSION='0.9'
613PACKAGE_STRING='Cycript 0.9'
614PACKAGE_BUGREPORT='saurik@saurik.com'
615PACKAGE_URL='http://www.cycript.org/'
616
617ac_unique_file="Console.cpp"
618# Factoring default headers for most tests.
619ac_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
654ac_subst_vars='ifGNUmake
655EGREP
656GREP
657CPP
658LIBFFI_LIBS
659LIBFFI_CFLAGS
660WEBKIT_LIBS
661WEBKIT_CFLAGS
662PKG_CONFIG
663LTLIBICONV
664LIBICONV
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676ac_ct_CXX
677CXXFLAGS
678CXX
679APR
680FLEX
681LEXLIB
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689LEX_OUTPUT_ROOT
690LEX
691BISON
692AWK
693SED
694YFLAGS
695YACC
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737with_apr
738with_gnu_ld
739enable_rpath
740with_libiconv_prefix
741'
742 ac_precious_vars='build_alias
743host_alias
744target_alias
745YACC
746YFLAGS
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CXX
753CXXFLAGS
754CCC
755PKG_CONFIG
756WEBKIT_CFLAGS
757WEBKIT_LIBS
758LIBFFI_CFLAGS
759LIBFFI_LIBS
760CPP'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_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.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
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'
1146Try \`$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
1168done
1169
1170if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173fi
1174
1175if 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
1181fi
1182
1183# Check all directory arguments for consistency.
1184for 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
1188do
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"
1202done
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.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if 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
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
1227
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "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.
1237if 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
1267else
1268 ac_srcdir_defaulted=no
1269fi
1270if 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"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
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.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for 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}
1293done
1294
1295#
1296# Report the --help message.
1297#
1298if 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
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
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
1322Installation 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
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine 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
1358
1359System types:
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362_ACEOF
1363fi
1364
1365if 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
1371Optional 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
1377Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-apr=PATH prefix for installed APR or the full path to
1381 apr-config
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
1386Some influential environment variables:
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
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>
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
1408 CPP C preprocessor
1409
1410Use these variables to override the choices made by `configure' or to help
1411it to find libraries and programs with nonstandard names/locations.
1412
1413Report bugs to <saurik@saurik.com>.
1414Cycript home page: <http://www.cycript.org/>.
1415_ACEOF
1416ac_status=$?
1417fi
1418
1419if 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
1427case "$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 ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
1442
1443case $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 ;;
1456esac
1457ac_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
1472fi
1473
1474test -n "$ac_init_help" && exit $ac_status
1475if $ac_init_version; then
1476 cat <<\_ACEOF
1477Cycript configure 0.9
1478generated by GNU Autoconf 2.64
1479
1480Copyright (C) 2009 Free Software Foundation, Inc.
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
1484 exit
1485fi
1486
1487## ------------------------ ##
1488## Autoconf initialization. ##
1489## ------------------------ ##
1490
1491# ac_fn_c_try_compile LINENO
1492# --------------------------
1493# Try to compile conftest.$ac_ext, and return whether this succeeded.
1494ac_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"
1499case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502esac
1503eval 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
1518else
1519 $as_echo "$as_me: failed program was:" >&5
1520sed 's/^/| /' conftest.$ac_ext >&5
1521
1522 ac_retval=1
1523fi
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.
1532ac_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"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval 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
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564fi
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
1575# ac_fn_cxx_try_compile LINENO
1576# ----------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_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"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval 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
1602else
1603 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607fi
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
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.
1617ac_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"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval 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;;
1634esac
1635eval 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
1642else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=$ac_status
1648fi
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
1654
1655# ac_fn_c_try_cpp LINENO
1656# ----------------------
1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658ac_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"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval 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
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686fi
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.
1697ac_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; }
1703if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705fi
1706eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709else
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; }
1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h. */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719 ac_header_compiler=yes
1720else
1721 ac_header_compiler=no
1722fi
1723rm -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; }
1730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h. */
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_cpp "$LINENO"; then :
1735 ac_header_preproc=yes
1736else
1737 ac_header_preproc=no
1738fi
1739rm -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?
1744case $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 ;;
1769esac
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
1772if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774else
1775 eval "$3=\$ac_header_compiler"
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780fi
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.
1789ac_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; }
1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804else
1805 eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808fi
1809eval 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
1815cat >config.log <<_ACEOF
1816This file contains any messages produced by compilers while
1817running configure, to aid debugging if configure makes a mistake.
1818
1819It was created by Cycript $as_me 0.9, which was
1820generated by GNU Autoconf 2.64. Invocation command line was
1821
1822 $ $0 $@
1823
1824_ACEOF
1825exec 5>>config.log
1826{
1827cat <<_ASUNAME
1828## --------- ##
1829## Platform. ##
1830## --------- ##
1831
1832hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836uname -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
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1857 done
1858IFS=$as_save_IFS
1859
1860} >&5
1861
1862cat >&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.
1877ac_configure_args=
1878ac_configure_args0=
1879ac_configure_args1=
1880ac_must_keep_next=false
1881for ac_pass in 1 2
1882do
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
1916done
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.
1925trap '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
2020for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022done
2023ac_signal=0
2024
2025# confdefs.h avoids OS command line length limits that DEFS can exceed.
2026rm -f -r conftest* confdefs.h
2027
2028$as_echo "/* confdefs.h */" > confdefs.h
2029
2030# Predefined preprocessor variables.
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_NAME "$PACKAGE_NAME"
2034_ACEOF
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2038_ACEOF
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_VERSION "$PACKAGE_VERSION"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_STRING "$PACKAGE_STRING"
2046_ACEOF
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050_ACEOF
2051
2052cat >>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.
2059ac_site_file1=NONE
2060ac_site_file2=NONE
2061if test -n "$CONFIG_SITE"; then
2062 ac_site_file1=$CONFIG_SITE
2063elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2066else
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2069fi
2070for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071do
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
2079done
2080
2081if 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
2092else
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
2096fi
2097
2098# Check that the precious variables saved in the cache have kept the same
2099# value.
2100ac_cache_corrupted=false
2101for 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
2147done
2148if $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
2154fi
2155## -------------------- ##
2156## Main body of script. ##
2157## -------------------- ##
2158
2159ac_ext=c
2160ac_cpp='$CPP $CPPFLAGS'
2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166
2167ac_aux_dir=
2168for 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
2176done
2177if test -z "$ac_aux_dir"; then
2178 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2179fi
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.
2185ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2186ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2187ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2188
2189
2190for ac_prog in 'bison -y' byacc
2191do
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193set dummy $ac_prog; ac_word=$2
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2195$as_echo_n "checking for $ac_word... " >&6; }
2196if test "${ac_cv_prog_YACC+set}" = set; then :
2197 $as_echo_n "(cached) " >&6
2198else
2199 if test -n "$YACC"; then
2200 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2201else
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
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
2209 ac_cv_prog_YACC="$ac_prog"
2210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213done
2214 done
2215IFS=$as_save_IFS
2216
2217fi
2218fi
2219YACC=$ac_cv_prog_YACC
2220if test -n "$YACC"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
2222$as_echo "$YACC" >&6; }
2223else
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2225$as_echo "no" >&6; }
2226fi
2227
2228
2229 test -n "$YACC" && break
2230done
2231test -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; }
2235if test "${ac_cv_path_SED+set}" = set; then :
2236 $as_echo_n "(cached) " >&6
2237else
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
2248for as_dir in $PATH
2249do
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
2258case `"$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;;
2282esac
2283
2284 $ac_path_SED_found && break 3
2285 done
2286 done
2287 done
2288IFS=$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
2292else
2293 ac_cv_path_SED=$SED
2294fi
2295
2296fi
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; }
2308if test "${ax_cv_prog_bison+set}" = set; then :
2309 $as_echo_n "(cached) " >&6
2310else
2311
2312 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
2313
2314 ax_cv_prog_bison=yes
2315
2316else
2317
2318 ax_cv_prog_bison=no
2319
2320fi
2321
2322fi
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
2333else
2334
2335 :
2336 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2337
2338fi
2339
2340for ac_prog in gawk mawk nawk awk
2341do
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343set 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; }
2346if test "${ac_cv_prog_AWK+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
2348else
2349 if test -n "$AWK"; then
2350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
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
2359 ac_cv_prog_AWK="$ac_prog"
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363done
2364 done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369AWK=$ac_cv_prog_AWK
2370if test -n "$AWK"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2372$as_echo "$AWK" >&6; }
2373else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378
2379 test -n "$AWK" && break
2380done
2381
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; }
2384as_arg_v1=$BISON_VERSION
2385as_arg_v2=2.4
2386awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
2387case $? in #(
2388 1) :
2389
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
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 ;;
2402esac
2403
2404# expand $ac_aux_dir to an absolute path
2405am_aux_dir=`cd $ac_aux_dir && pwd`
2406
2407if 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
2414fi
2415# Use eval to expand $SHELL
2416if eval "$MISSING --run true"; then
2417 am_missing_run="$MISSING --run "
2418else
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;}
2422fi
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429if 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.
2431set 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; }
2434if test "${ac_cv_prog_CC+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
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
2451done
2452 done
2453IFS=$as_save_IFS
2454
2455fi
2456fi
2457CC=$ac_cv_prog_CC
2458if test -n "$CC"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2460$as_echo "$CC" >&6; }
2461else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
2464fi
2465
2466
2467fi
2468if 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.
2471set 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; }
2474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
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
2491done
2492 done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498if 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; }
2501else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506 if test "x$ac_ct_CC" = x; then
2507 CC=""
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510yes:)
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;}
2513ac_tool_warned=yes ;;
2514esac
2515 CC=$ac_ct_CC
2516 fi
2517else
2518 CC="$ac_cv_prog_CC"
2519fi
2520
2521if 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.
2524set 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; }
2527if test "${ac_cv_prog_CC+set}" = set; then :
2528 $as_echo_n "(cached) " >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
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
2544done
2545 done
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553$as_echo "$CC" >&6; }
2554else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560 fi
2561fi
2562if test -z "$CC"; then
2563 # Extract the first word of "cc", so it can be a program name with args.
2564set 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; }
2567if test "${ac_cv_prog_CC+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
2573 ac_prog_rejected=no
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
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
2589done
2590 done
2591IFS=$as_save_IFS
2592
2593if 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
2604fi
2605fi
2606fi
2607CC=$ac_cv_prog_CC
2608if test -n "$CC"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2610$as_echo "$CC" >&6; }
2611else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613$as_echo "no" >&6; }
2614fi
2615
2616
2617fi
2618if 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.
2623set 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; }
2626if test "${ac_cv_prog_CC+set}" = set; then :
2627 $as_echo_n "(cached) " >&6
2628else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
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
2643done
2644 done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652$as_echo "$CC" >&6; }
2653else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659 test -n "$CC" && break
2660 done
2661fi
2662if test -z "$CC"; then
2663 ac_ct_CC=$CC
2664 for ac_prog in cl.exe
2665do
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667set 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; }
2670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 if test -n "$ac_ct_CC"; then
2674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
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
2687done
2688 done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694if 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; }
2697else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703 test -n "$ac_ct_CC" && break
2704done
2705
2706 if test "x$ac_ct_CC" = x; then
2707 CC=""
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710yes:)
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;}
2713ac_tool_warned=yes ;;
2714esac
2715 CC=$ac_ct_CC
2716 fi
2717fi
2718
2719fi
2720
2721
2722test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error "no acceptable C compiler found in \$PATH
2725See \`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
2729set X $ac_compile
2730ac_compiler=$2
2731for ac_option in --version -v -V -qversion; do
2732 { { ac_try="$ac_compiler $ac_option >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval 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; }
2750done
2751
2752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h. */
2754#include <stdio.h>
2755int
2756main ()
2757{
2758FILE *f = fopen ("conftest.out", "w");
2759 return ferror (f) || fclose (f) != 0;
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765ac_clean_files_save=$ac_clean_files
2766ac_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; }
2772ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773
2774# The possible output files:
2775ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2776
2777ac_rmfiles=
2778for ac_file in $ac_files
2779do
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
2784done
2785rm -f $ac_rmfiles
2786
2787if { { ac_try="$ac_link_default"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval 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.
2803for ac_file in $ac_files ''
2804do
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
2827done
2828test "$ac_cv_exeext" = no && ac_cv_exeext=
2829
2830else
2831 ac_file=''
2832fi
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2834$as_echo "$ac_file" >&6; }
2835if test -z "$ac_file"; then :
2836 $as_echo "$as_me: failed program was:" >&5
2837sed '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
2842as_fn_error "C compiler cannot create executables
2843See \`config.log' for more details." "$LINENO" 5; }; }
2844fi
2845ac_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.
2852if 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;;
2857esac
2858eval 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;}
2871as_fn_error "cannot run C compiled programs.
2872If you meant to cross compile, use \`--host'.
2873See \`config.log' for more details." "$LINENO" 5; }
2874 fi
2875 fi
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878$as_echo "yes" >&6; }
2879
2880rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2881ac_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; }
2891if { { ac_try="$ac_link"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval 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'.
2906for 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
2914done
2915else
2916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918as_fn_error "cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." "$LINENO" 5; }
2920fi
2921rm -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
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_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; }
2930if test "${ac_cv_objext+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932else
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.o conftest.obj
2945if { { ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval 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
2963done
2964else
2965 $as_echo "$as_me: failed program was:" >&5
2966sed '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;}
2970as_fn_error "cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." "$LINENO" 5; }
2972fi
2973rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2976$as_echo "$ac_cv_objext" >&6; }
2977OBJEXT=$ac_cv_objext
2978ac_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; }
2981if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983else
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985/* end confdefs.h. */
2986
2987int
2988main ()
2989{
2990#ifndef __GNUC__
2991 choke me
2992#endif
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998if ac_fn_c_try_compile "$LINENO"; then :
2999 ac_compiler_gnu=yes
3000else
3001 ac_compiler_gnu=no
3002fi
3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004ac_cv_c_compiler_gnu=$ac_compiler_gnu
3005
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3008$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3009if test $ac_compiler_gnu = yes; then
3010 GCC=yes
3011else
3012 GCC=
3013fi
3014ac_test_CFLAGS=${CFLAGS+set}
3015ac_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; }
3018if test "${ac_cv_prog_cc_g+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020else
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
3028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 ac_cv_prog_cc_g=yes
3038else
3039 CFLAGS=""
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051if ac_fn_c_try_compile "$LINENO"; then :
3052
3053else
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
3059int
3060main ()
3061{
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067if ac_fn_c_try_compile "$LINENO"; then :
3068 ac_cv_prog_cc_g=yes
3069fi
3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071fi
3072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073fi
3074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_c_werror_flag=$ac_save_c_werror_flag
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3078$as_echo "$ac_cv_prog_cc_g" >&6; }
3079if test "$ac_test_CFLAGS" = set; then
3080 CFLAGS=$ac_save_CFLAGS
3081elif 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
3087else
3088 if test "$GCC" = yes; then
3089 CFLAGS="-O2"
3090 else
3091 CFLAGS=
3092 fi
3093fi
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; }
3096if test "${ac_cv_prog_cc_c89+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098else
3099 ac_cv_prog_cc_c89=no
3100ac_save_CC=$CC
3101cat 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. */
3108struct buf { int x; };
3109FILE * (*rcsopen) (struct buf *, struct stat *, int);
3110static char *e (p, i)
3111 char **p;
3112 int i;
3113{
3114 return p[i];
3115}
3116static 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. */
3133int 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'
3138int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3139
3140int test (int i, double x);
3141struct s1 {int (*f) (int a);};
3142struct s2 {int (*f) (double a);};
3143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3144int argc;
3145char **argv;
3146int
3147main ()
3148{
3149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3156do
3157 CC="$ac_save_CC $ac_arg"
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159 ac_cv_prog_cc_c89=$ac_arg
3160fi
3161rm -f core conftest.err conftest.$ac_objext
3162 test "x$ac_cv_prog_cc_c89" != "xno" && break
3163done
3164rm -f conftest.$ac_ext
3165CC=$ac_save_CC
3166
3167fi
3168# AC_CACHE_VAL
3169case "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; } ;;
3180esac
3181if test "x$ac_cv_prog_cc_c89" != xno; then :
3182
3183fi
3184
3185ac_ext=c
3186ac_cpp='$CPP $CPPFLAGS'
3187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190
3191
3192for ac_prog in flex lex
3193do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set 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; }
3198if test "${ac_cv_prog_LEX+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200else
3201 if test -n "$LEX"; then
3202 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
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
3215done
3216 done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221LEX=$ac_cv_prog_LEX
3222if test -n "$LEX"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3224$as_echo "$LEX" >&6; }
3225else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231 test -n "$LEX" && break
3232done
3233test -n "$LEX" || LEX=":"
3234
3235if test "x$LEX" != "x:"; then
3236 cat >conftest.l <<_ACEOF
3237%%
3238a { ECHO; }
3239b { REJECT; }
3240c { yymore (); }
3241d { yyless (1); }
3242e { yyless (input () != 0); }
3243f { unput (yytext[0]); }
3244. { BEGIN INITIAL; }
3245%%
3246#ifdef YYTEXT_POINTER
3247extern char *yytext;
3248#endif
3249int
3250main (void)
3251{
3252 return ! yylex () + ! yywrap ();
3253}
3254_ACEOF
3255{ { ac_try="$LEX conftest.l"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval 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; }
3268if test "${ac_cv_prog_lex_root+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270else
3271
3272if test -f lex.yy.c; then
3273 ac_cv_prog_lex_root=lex.yy
3274elif test -f lexyy.c; then
3275 ac_cv_prog_lex_root=lexyy
3276else
3277 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3278fi
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3281$as_echo "$ac_cv_prog_lex_root" >&6; }
3282LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3283
3284if 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; }
3287if test "${ac_cv_lib_lex+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289else
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
3299if ac_fn_c_try_link "$LINENO"; then :
3300 ac_cv_lib_lex=$ac_lib
3301fi
3302rm -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
3308fi
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
3312fi
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; }
3317if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319else
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.
3323ac_cv_prog_lex_yytext_pointer=no
3324ac_save_LIBS=$LIBS
3325LIBS="$LEXLIB $ac_save_LIBS"
3326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h. */
3328#define YYTEXT_POINTER 1
3329`cat $LEX_OUTPUT_ROOT.c`
3330_ACEOF
3331if ac_fn_c_try_link "$LINENO"; then :
3332 ac_cv_prog_lex_yytext_pointer=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
3336LIBS=$ac_save_LIBS
3337
3338fi
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; }
3341if test $ac_cv_prog_lex_yytext_pointer = yes; then
3342
3343$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3344
3345fi
3346rm -f conftest.l $LEX_OUTPUT_ROOT.c
3347
3348fi
3349if test "$LEX" = :; then
3350 LEX=${am_missing_run}flex
3351fi
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; }
3358if test "${ax_cv_prog_flex+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360else
3361
3362 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
3363
3364 ax_cv_prog_flex=yes
3365
3366else
3367
3368 ax_cv_prog_flex=no
3369
3370fi
3371
3372fi
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 :
3378
3379 FLEX=$LEX
3380 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \(.*\)$/\1/p;d'`
3381
3382
3383else
3384
3385 :
3386
3387 as_fn_error "You need flex 2.5.35 or greater" "$LINENO" 5
3388
3389
3390fi
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; }
3394as_arg_v1=$FLEX_VERSION
3395as_arg_v2=2.5.35
3396awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
3397case $? in #(
3398 1) :
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
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 ;;
3412esac
3413
3414
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.
3443if 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
3471else
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
3515fi
3516
3517
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
3519$as_echo "$apr_found" >&6; }
3520
3521case $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 ;;
3552esac
3553ac_ext=cpp
3554ac_cpp='$CXXCPP $CPPFLAGS'
3555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3558if 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.
3566set 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; }
3569if test "${ac_cv_prog_CXX+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 if test -n "$CXX"; then
3573 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3574else
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
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
3586done
3587 done
3588IFS=$as_save_IFS
3589
3590fi
3591fi
3592CXX=$ac_cv_prog_CXX
3593if test -n "$CXX"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3595$as_echo "$CXX" >&6; }
3596else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598$as_echo "no" >&6; }
3599fi
3600
3601
3602 test -n "$CXX" && break
3603 done
3604fi
3605if 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
3608do
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610set 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; }
3613if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615else
3616 if test -n "$ac_ct_CXX"; then
3617 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3618else
3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
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
3630done
3631 done
3632IFS=$as_save_IFS
3633
3634fi
3635fi
3636ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3637if 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; }
3640else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
3643fi
3644
3645
3646 test -n "$ac_ct_CXX" && break
3647done
3648
3649 if test "x$ac_ct_CXX" = x; then
3650 CXX="g++"
3651 else
3652 case $cross_compiling:$ac_tool_warned in
3653yes:)
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;}
3656ac_tool_warned=yes ;;
3657esac
3658 CXX=$ac_ct_CXX
3659 fi
3660fi
3661
3662 fi
3663fi
3664# Provide some information about the compiler.
3665$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3666set X $ac_compile
3667ac_compiler=$2
3668for ac_option in --version -v -V -qversion; do
3669 { { ac_try="$ac_compiler $ac_option >&5"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval 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; }
3687done
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; }
3691if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693else
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700#ifndef __GNUC__
3701 choke me
3702#endif
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708if ac_fn_cxx_try_compile "$LINENO"; then :
3709 ac_compiler_gnu=yes
3710else
3711 ac_compiler_gnu=no
3712fi
3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3715
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3718$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3719if test $ac_compiler_gnu = yes; then
3720 GXX=yes
3721else
3722 GXX=
3723fi
3724ac_test_CXXFLAGS=${CXXFLAGS+set}
3725ac_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; }
3728if test "${ac_cv_prog_cxx_g+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730else
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
3738int
3739main ()
3740{
3741
3742 ;
3743 return 0;
3744}
3745_ACEOF
3746if ac_fn_cxx_try_compile "$LINENO"; then :
3747 ac_cv_prog_cxx_g=yes
3748else
3749 CXXFLAGS=""
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752
3753int
3754main ()
3755{
3756
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761if ac_fn_cxx_try_compile "$LINENO"; then :
3762
3763else
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
3769int
3770main ()
3771{
3772
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777if ac_fn_cxx_try_compile "$LINENO"; then :
3778 ac_cv_prog_cxx_g=yes
3779fi
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3788$as_echo "$ac_cv_prog_cxx_g" >&6; }
3789if test "$ac_test_CXXFLAGS" = set; then
3790 CXXFLAGS=$ac_save_CXXFLAGS
3791elif 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
3797else
3798 if test "$GXX" = yes; then
3799 CXXFLAGS="-O2"
3800 else
3801 CXXFLAGS=
3802 fi
3803fi
3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
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; }
3826if test -z "$INSTALL"; then
3827if test "${ac_cv_path_install+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 # Account for people who put trailing slashes in PATH elements.
3836case $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 ;;
3874esac
3875
3876 done
3877IFS=$as_save_IFS
3878
3879rm -rf conftest.one conftest.two conftest.dir
3880
3881fi
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
3891fi
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.
3897test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3898
3899test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3900
3901test -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; }
3909if test "${ac_cv_build+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 ac_build_alias=$build_alias
3913test "x$ac_build_alias" = x &&
3914 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3915test "x$ac_build_alias" = x &&
3916 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3917ac_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
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3922$as_echo "$ac_cv_build" >&6; }
3923case $ac_cv_build in
3924*-*-*) ;;
3925*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3926esac
3927build=$ac_cv_build
3928ac_save_IFS=$IFS; IFS='-'
3929set x $ac_cv_build
3930shift
3931build_cpu=$1
3932build_vendor=$2
3933shift; shift
3934# Remember, the first character of IFS is used to create $*,
3935# except with old shells:
3936build_os=$*
3937IFS=$ac_save_IFS
3938case $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; }
3943if test "${ac_cv_host+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945else
3946 if test "x$host_alias" = x; then
3947 ac_cv_host=$ac_cv_build
3948else
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
3951fi
3952
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3955$as_echo "$ac_cv_host" >&6; }
3956case $ac_cv_host in
3957*-*-*) ;;
3958*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3959esac
3960host=$ac_cv_host
3961ac_save_IFS=$IFS; IFS='-'
3962set x $ac_cv_host
3963shift
3964host_cpu=$1
3965host_vendor=$2
3966shift; shift
3967# Remember, the first character of IFS is used to create $*,
3968# except with old shells:
3969host_os=$*
3970IFS=$ac_save_IFS
3971case $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.
3992if test "${with_gnu_ld+set}" = set; then :
3993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3994else
3995 with_gnu_ld=no
3996fi
3997
3998# Prepare PATH_SEPARATOR.
3999# The user is always right.
4000if 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
4010fi
4011ac_prog=ld
4012if 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` ;;
4022 esac
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
4043elif 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; }
4046else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4048$as_echo_n "checking for non-GNU ld... " >&6; }
4049fi
4050if test "${acl_cv_path_LD+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4052else
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"
4071else
4072 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4073fi
4074fi
4075
4076LD="$acl_cv_path_LD"
4077if test -n "$LD"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4079$as_echo "$LD" >&6; }
4080else
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082$as_echo "no" >&6; }
4083fi
4084test -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; }
4087if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089else
4090 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4091case `$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 ;;
4096esac
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4099$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4100with_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; }
4107if test "${acl_cv_rpath+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109else
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
4117fi
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.
4130if test "${enable_rpath+set}" = set; then :
4131 enableval=$enable_rpath; :
4132else
4133 enable_rpath=yes
4134fi
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.
4179if 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
4203fi
4204
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; }
4628if test "${am_cv_func_iconv+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630else
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>
4638int
4639main ()
4640{
4641iconv_t cd = iconv_open("","");
4642 iconv(cd,NULL,NULL,NULL,NULL);
4643 iconv_close(cd);
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_link "$LINENO"; then :
4649 am_cv_func_iconv=yes
4650fi
4651rm -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>
4660int
4661main ()
4662{
4663iconv_t cd = iconv_open("","");
4664 iconv(cd,NULL,NULL,NULL,NULL);
4665 iconv_close(cd);
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_link "$LINENO"; then :
4671 am_cv_lib_iconv=yes
4672 am_cv_func_iconv=yes
4673fi
4674rm -f core conftest.err conftest.$ac_objext \
4675 conftest$ac_exeext conftest.$ac_ext
4676 LIBS="$am_save_LIBS"
4677 fi
4678
4679fi
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; }
4685if test "${am_cv_func_iconv_works+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687else
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
4698else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701
4702#include <iconv.h>
4703#include <string.h>
4704int 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
4759if ac_fn_c_try_run "$LINENO"; then :
4760 am_cv_func_iconv_works=yes
4761else
4762 am_cv_func_iconv_works=no
4763fi
4764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4765 conftest.$ac_objext conftest.beam conftest.$ac_ext
4766fi
4767
4768 LIBS="$am_save_LIBS"
4769
4770fi
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
4803else
4804
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807
4808#include <stdlib.h>
4809#include <iconv.h>
4810extern
4811#ifdef __cplusplus
4812"C"
4813#endif
4814#if defined(__STDC__) || defined(__cplusplus)
4815size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4816#else
4817size_t iconv();
4818#endif
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_compile "$LINENO"; then :
4829 am_cv_proto_iconv_arg1=""
4830else
4831 am_cv_proto_iconv_arg1="const"
4832fi
4833rm -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);"
4835fi
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
4843cat >>confdefs.h <<_ACEOF
4844#define ICONV_CONST $am_cv_proto_iconv_arg1
4845_ACEOF
4846
4847 fi
4848
4849case $am_cv_func_iconv in #(
4850 yes) :
4851 ;; #(
4852 *) :
4853 as_fn_error "You need iconv" "$LINENO" 5 ;;
4854esac
4855
4856
4857if 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.
4860set 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; }
4863if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865else
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
4872for as_dir in $PATH
4873do
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
4882done
4883 done
4884IFS=$as_save_IFS
4885
4886 ;;
4887esac
4888fi
4889PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4890if test -n "$PKG_CONFIG"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4892$as_echo "$PKG_CONFIG" >&6; }
4893else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898
4899fi
4900if 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.
4903set 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; }
4906if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
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
4915for as_dir in $PATH
4916do
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
4925done
4926 done
4927IFS=$as_save_IFS
4928
4929 ;;
4930esac
4931fi
4932ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4933if 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; }
4936else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939fi
4940
4941 if test "x$ac_pt_PKG_CONFIG" = x; then
4942 PKG_CONFIG=""
4943 else
4944 case $cross_compiling:$ac_tool_warned in
4945yes:)
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;}
4948ac_tool_warned=yes ;;
4949esac
4950 PKG_CONFIG=$ac_pt_PKG_CONFIG
4951 fi
4952else
4953 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4954fi
4955
4956fi
4957if 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
4963$as_echo "yes" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
4967 PKG_CONFIG=""
4968 fi
4969
4970fi
4971
4972pkg_failed=no
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4974$as_echo_n "checking for WEBKIT... " >&6; }
4975
4976if 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
4983 ac_status=$?
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then
4986 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
4987else
4988 pkg_failed=yes
4989fi
4990 fi
4991else
4992 pkg_failed=untried
4993fi
4994if 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`
5005else
5006 pkg_failed=yes
5007fi
5008 fi
5009else
5010 pkg_failed=untried
5011fi
5012
5013
5014
5015if test $pkg_failed = yes; then
5016
5017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5018 _pkg_short_errors_supported=yes
5019else
5020 _pkg_short_errors_supported=no
5021fi
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; }
5032
5033
5034pkg_failed=no
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
5036$as_echo_n "checking for WEBKIT... " >&6; }
5037
5038if 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
5045 ac_status=$?
5046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }; then
5048 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
5049else
5050 pkg_failed=yes
5051fi
5052 fi
5053else
5054 pkg_failed=untried
5055fi
5056if 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`
5067else
5068 pkg_failed=yes
5069fi
5070 fi
5071else
5072 pkg_failed=untried
5073fi
5074
5075
5076
5077if test $pkg_failed = yes; then
5078
5079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5080 _pkg_short_errors_supported=yes
5081else
5082 _pkg_short_errors_supported=no
5083fi
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
5095elif test $pkg_failed = untried; then
5096 WEBKIT=no
5097else
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
5103fi
5104
5105elif test $pkg_failed = untried; then
5106
5107
5108pkg_failed=no
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
5110$as_echo_n "checking for WEBKIT... " >&6; }
5111
5112if 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`
5123else
5124 pkg_failed=yes
5125fi
5126 fi
5127else
5128 pkg_failed=untried
5129fi
5130if 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`
5141else
5142 pkg_failed=yes
5143fi
5144 fi
5145else
5146 pkg_failed=untried
5147fi
5148
5149
5150
5151if test $pkg_failed = yes; then
5152
5153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5154 _pkg_short_errors_supported=yes
5155else
5156 _pkg_short_errors_supported=no
5157fi
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
5169elif test $pkg_failed = untried; then
5170 WEBKIT=no
5171else
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
5177fi
5178
5179else
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
5185fi
5186ac_ext=c
5187ac_cpp='$CPP $CPPFLAGS'
5188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190ac_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.
5194if test -n "$CPP" && test -d "$CPP"; then
5195 CPP=
5196fi
5197if test -z "$CPP"; then
5198 if test "${ac_cv_prog_CPP+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200else
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
5205for ac_c_preproc_warn_flag in '' yes
5206do
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
5222if ac_fn_c_try_cpp "$LINENO"; then :
5223
5224else
5225 # Broken: fails on valid input.
5226continue
5227fi
5228rm -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
5236if ac_fn_c_try_cpp "$LINENO"; then :
5237 # Broken: success on invalid input.
5238continue
5239else
5240 # Passes both tests.
5241ac_preproc_ok=:
5242break
5243fi
5244rm -f conftest.err conftest.$ac_ext
5245
5246done
5247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248rm -f conftest.err conftest.$ac_ext
5249if $ac_preproc_ok; then :
5250 break
5251fi
5252
5253 done
5254 ac_cv_prog_CPP=$CPP
5255
5256fi
5257 CPP=$ac_cv_prog_CPP
5258else
5259 ac_cv_prog_CPP=$CPP
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5262$as_echo "$CPP" >&6; }
5263ac_preproc_ok=false
5264for ac_c_preproc_warn_flag in '' yes
5265do
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
5281if ac_fn_c_try_cpp "$LINENO"; then :
5282
5283else
5284 # Broken: fails on valid input.
5285continue
5286fi
5287rm -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
5295if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5297continue
5298else
5299 # Passes both tests.
5300ac_preproc_ok=:
5301break
5302fi
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then :
5309
5310else
5311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313as_fn_error "C preprocessor \"$CPP\" fails sanity check
5314See \`config.log' for more details." "$LINENO" 5; }
5315fi
5316
5317ac_ext=c
5318ac_cpp='$CPP $CPPFLAGS'
5319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321ac_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; }
5326if test "${ac_cv_path_GREP+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328else
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
5333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334do
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
5343case `"$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;;
5367esac
5368
5369 $ac_path_GREP_found && break 3
5370 done
5371 done
5372 done
5373IFS=$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
5377else
5378 ac_cv_path_GREP=$GREP
5379fi
5380
5381fi
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; }
5389if test "${ac_cv_path_EGREP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391else
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
5399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5400do
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
5409case `"$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;;
5433esac
5434
5435 $ac_path_EGREP_found && break 3
5436 done
5437 done
5438 done
5439IFS=$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
5443else
5444 ac_cv_path_EGREP=$EGREP
5445fi
5446
5447 fi
5448fi
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; }
5456if test "${ac_cv_header_stdc+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458else
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
5466int
5467main ()
5468{
5469
5470 ;
5471 return 0;
5472}
5473_ACEOF
5474if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_header_stdc=yes
5476else
5477 ac_cv_header_stdc=no
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480
5481if 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
5488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "memchr" >/dev/null 2>&1; then :
5490
5491else
5492 ac_cv_header_stdc=no
5493fi
5494rm -f conftest*
5495
5496fi
5497
5498if 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
5505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5506 $EGREP "free" >/dev/null 2>&1; then :
5507
5508else
5509 ac_cv_header_stdc=no
5510fi
5511rm -f conftest*
5512
5513fi
5514
5515if 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 :
5519else
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)))
5536int
5537main ()
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
5547if ac_fn_c_try_run "$LINENO"; then :
5548
5549else
5550 ac_cv_header_stdc=no
5551fi
5552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5553 conftest.$ac_objext conftest.beam conftest.$ac_ext
5554fi
5555
5556fi
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5559$as_echo "$ac_cv_header_stdc" >&6; }
5560if test $ac_cv_header_stdc = yes; then
5561
5562$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5563
5564fi
5565
5566# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5567for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5568 inttypes.h stdint.h unistd.h
5569do :
5570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5572"
5573eval 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
5579fi
5580
5581done
5582
5583
5584case $WEBKIT in #(
5585 yes) :
5586
5587
5588pkg_failed=no
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
5590$as_echo_n "checking for LIBFFI... " >&6; }
5591
5592if 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`
5603else
5604 pkg_failed=yes
5605fi
5606 fi
5607else
5608 pkg_failed=untried
5609fi
5610if 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`
5621else
5622 pkg_failed=yes
5623fi
5624 fi
5625else
5626 pkg_failed=untried
5627fi
5628
5629
5630
5631if test $pkg_failed = yes; then
5632
5633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5634 _pkg_short_errors_supported=yes
5635else
5636 _pkg_short_errors_supported=no
5637fi
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
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
5650do :
5651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5652ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5653eval 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
5659fi
5660
5661done
5662
5663 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
5664
5665 as_fn_error "You need libffi" "$LINENO" 5
5666
5667fi
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; }
5670if test "${ac_cv_search_ffi_call+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672else
5673 ac_func_search_save_LIBS=$LIBS
5674cat 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
5681extern "C"
5682#endif
5683char ffi_call ();
5684int
5685main ()
5686{
5687return ffi_call ();
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692for 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
5701fi
5702rm -f core conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext
5704 if test "${ac_cv_search_ffi_call+set}" = set; then :
5705 break
5706fi
5707done
5708if test "${ac_cv_search_ffi_call+set}" = set; then :
5709
5710else
5711 ac_cv_search_ffi_call=no
5712fi
5713rm conftest.$ac_ext
5714LIBS=$ac_func_search_save_LIBS
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
5717$as_echo "$ac_cv_search_ffi_call" >&6; }
5718ac_res=$ac_cv_search_ffi_call
5719if test "$ac_res" != no; then :
5720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5721
5722fi
5723
5724 case $ac_cv_search_ffi_call in #(
5725 no) :
5726
5727 as_fn_error "You need libffi" "$LINENO" 5
5728 ;; #(
5729 *) :
5730 ;;
5731esac
5732
5733elif test $pkg_failed = untried; then
5734
5735 for ac_header in ffi.h ffi/ffi.h
5736do :
5737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5739eval 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
5745fi
5746
5747done
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
5753fi
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; }
5756if test "${ac_cv_search_ffi_call+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758else
5759 ac_func_search_save_LIBS=$LIBS
5760cat 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
5767extern "C"
5768#endif
5769char ffi_call ();
5770int
5771main ()
5772{
5773return ffi_call ();
5774 ;
5775 return 0;
5776}
5777_ACEOF
5778for 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
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext
5790 if test "${ac_cv_search_ffi_call+set}" = set; then :
5791 break
5792fi
5793done
5794if test "${ac_cv_search_ffi_call+set}" = set; then :
5795
5796else
5797 ac_cv_search_ffi_call=no
5798fi
5799rm conftest.$ac_ext
5800LIBS=$ac_func_search_save_LIBS
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
5803$as_echo "$ac_cv_search_ffi_call" >&6; }
5804ac_res=$ac_cv_search_ffi_call
5805if test "$ac_res" != no; then :
5806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5807
5808fi
5809
5810 case $ac_cv_search_ffi_call in #(
5811 no) :
5812
5813 as_fn_error "You need libffi" "$LINENO" 5
5814 ;; #(
5815 *) :
5816 ;;
5817esac
5818
5819else
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 :
5825fi
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;} ;;
5830esac
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
5832$as_echo_n "checking for GNU make... " >&6; }
5833if test "${_cv_gnu_make_command+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835else
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
5845fi
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
5857if test "x$_cv_gnu_make_command" = x; then :
5858 as_fn_error "You need GNU make" "$LINENO" 5
5859fi
5860# XXX: gnustep
5861#AC_PROG_OBJCXX