]> git.saurik.com Git - cycript.git/blame - configure
Progress on autoconf doom!
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for Cycript 0.9.
4#
5# Report bugs to <saurik@saurik.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
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'\" &&
35fa52c0
DWT
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
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
529
530exec 7<&0 </dev/null 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='Cycript'
551PACKAGE_TARNAME='cycript'
552PACKAGE_VERSION='0.9'
553PACKAGE_STRING='Cycript 0.9'
554PACKAGE_BUGREPORT='saurik@saurik.com'
555PACKAGE_URL='http://www.cycript.org/'
556
35fa52c0
DWT
557ac_unique_file="Console.cpp"
558ac_subst_vars='LIBFFI_LIBS
559LIBFFI_CFLAGS
560WEBKIT_LIBS
561WEBKIT_CFLAGS
562PKG_CONFIG
563LTLIBICONV
564LIBICONV
565host_os
566host_vendor
567host_cpu
568host
569build_os
570build_vendor
571build_cpu
572build
573INSTALL_DATA
574INSTALL_SCRIPT
575INSTALL_PROGRAM
dbadc56a 576ac_ct_CXX
dbadc56a
DWT
577CXXFLAGS
578CXX
35fa52c0
DWT
579FLEX
580LEXLIB
581OBJEXT
582EXEEXT
583ac_ct_CC
584CPPFLAGS
585LDFLAGS
586CFLAGS
587CC
588LEX_OUTPUT_ROOT
589LEX
590BISON
591AWK
592SED
593YFLAGS
594YACC
dbadc56a 595target_alias
c7aa54aa
DWT
596host_alias
597build_alias
598LIBS
599ECHO_T
600ECHO_N
601ECHO_C
602DEFS
603mandir
604localedir
605libdir
606psdir
607pdfdir
608dvidir
609htmldir
610infodir
611docdir
612oldincludedir
613includedir
614localstatedir
615sharedstatedir
616sysconfdir
617datadir
618datarootdir
619libexecdir
620sbindir
621bindir
622program_transform_name
623prefix
624exec_prefix
625PACKAGE_URL
626PACKAGE_BUGREPORT
627PACKAGE_STRING
628PACKAGE_VERSION
629PACKAGE_TARNAME
630PACKAGE_NAME
631PATH_SEPARATOR
632SHELL'
633ac_subst_files=''
634ac_user_opts='
635enable_option_checking
35fa52c0
DWT
636with_gnu_ld
637enable_rpath
638with_libiconv_prefix
c7aa54aa
DWT
639'
640 ac_precious_vars='build_alias
641host_alias
dbadc56a 642target_alias
35fa52c0
DWT
643YACC
644YFLAGS
645CC
646CFLAGS
dbadc56a
DWT
647LDFLAGS
648LIBS
649CPPFLAGS
35fa52c0
DWT
650CXX
651CXXFLAGS
652CCC
653PKG_CONFIG
654WEBKIT_CFLAGS
655WEBKIT_LIBS
656LIBFFI_CFLAGS
657LIBFFI_LIBS'
c7aa54aa
DWT
658
659
660# Initialize some variables set by options.
661ac_init_help=
662ac_init_version=false
663ac_unrecognized_opts=
664ac_unrecognized_sep=
665# The variables have the same names as the options, with
666# dashes changed to underlines.
667cache_file=/dev/null
668exec_prefix=NONE
669no_create=
670no_recursion=
671prefix=NONE
672program_prefix=NONE
673program_suffix=NONE
674program_transform_name=s,x,x,
675silent=
676site=
677srcdir=
678verbose=
679x_includes=NONE
680x_libraries=NONE
681
682# Installation directory options.
683# These are left unexpanded so users can "make install exec_prefix=/foo"
684# and all the variables that are supposed to be based on exec_prefix
685# by default will actually change.
686# Use braces instead of parens because sh, perl, etc. also accept them.
687# (The list follows the same order as the GNU Coding Standards.)
688bindir='${exec_prefix}/bin'
689sbindir='${exec_prefix}/sbin'
690libexecdir='${exec_prefix}/libexec'
691datarootdir='${prefix}/share'
692datadir='${datarootdir}'
693sysconfdir='${prefix}/etc'
694sharedstatedir='${prefix}/com'
695localstatedir='${prefix}/var'
696includedir='${prefix}/include'
697oldincludedir='/usr/include'
698docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
699infodir='${datarootdir}/info'
700htmldir='${docdir}'
701dvidir='${docdir}'
702pdfdir='${docdir}'
703psdir='${docdir}'
704libdir='${exec_prefix}/lib'
705localedir='${datarootdir}/locale'
706mandir='${datarootdir}/man'
707
708ac_prev=
709ac_dashdash=
710for ac_option
711do
712 # If the previous option needs an argument, assign it.
713 if test -n "$ac_prev"; then
714 eval $ac_prev=\$ac_option
715 ac_prev=
716 continue
717 fi
718
719 case $ac_option in
720 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
721 *) ac_optarg=yes ;;
722 esac
723
724 # Accept the important Cygnus configure options, so we can diagnose typos.
725
726 case $ac_dashdash$ac_option in
727 --)
728 ac_dashdash=yes ;;
729
730 -bindir | --bindir | --bindi | --bind | --bin | --bi)
731 ac_prev=bindir ;;
732 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
733 bindir=$ac_optarg ;;
734
735 -build | --build | --buil | --bui | --bu)
736 ac_prev=build_alias ;;
737 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
738 build_alias=$ac_optarg ;;
739
740 -cache-file | --cache-file | --cache-fil | --cache-fi \
741 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
742 ac_prev=cache_file ;;
743 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
744 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
745 cache_file=$ac_optarg ;;
746
747 --config-cache | -C)
748 cache_file=config.cache ;;
749
750 -datadir | --datadir | --datadi | --datad)
751 ac_prev=datadir ;;
752 -datadir=* | --datadir=* | --datadi=* | --datad=*)
753 datadir=$ac_optarg ;;
754
755 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
756 | --dataroo | --dataro | --datar)
757 ac_prev=datarootdir ;;
758 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
759 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
760 datarootdir=$ac_optarg ;;
761
762 -disable-* | --disable-*)
763 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
766 as_fn_error "invalid feature name: $ac_useropt"
767 ac_useropt_orig=$ac_useropt
768 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
769 case $ac_user_opts in
770 *"
771"enable_$ac_useropt"
772"*) ;;
773 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
774 ac_unrecognized_sep=', ';;
775 esac
776 eval enable_$ac_useropt=no ;;
777
778 -docdir | --docdir | --docdi | --doc | --do)
779 ac_prev=docdir ;;
780 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
781 docdir=$ac_optarg ;;
782
783 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
784 ac_prev=dvidir ;;
785 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
786 dvidir=$ac_optarg ;;
787
788 -enable-* | --enable-*)
789 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792 as_fn_error "invalid feature name: $ac_useropt"
793 ac_useropt_orig=$ac_useropt
794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
796 *"
797"enable_$ac_useropt"
798"*) ;;
799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
800 ac_unrecognized_sep=', ';;
801 esac
802 eval enable_$ac_useropt=\$ac_optarg ;;
803
804 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
805 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
806 | --exec | --exe | --ex)
807 ac_prev=exec_prefix ;;
808 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
809 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
810 | --exec=* | --exe=* | --ex=*)
811 exec_prefix=$ac_optarg ;;
812
813 -gas | --gas | --ga | --g)
814 # Obsolete; use --with-gas.
815 with_gas=yes ;;
816
817 -help | --help | --hel | --he | -h)
818 ac_init_help=long ;;
819 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
820 ac_init_help=recursive ;;
821 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
822 ac_init_help=short ;;
823
824 -host | --host | --hos | --ho)
825 ac_prev=host_alias ;;
826 -host=* | --host=* | --hos=* | --ho=*)
827 host_alias=$ac_optarg ;;
828
829 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
830 ac_prev=htmldir ;;
831 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
832 | --ht=*)
833 htmldir=$ac_optarg ;;
834
835 -includedir | --includedir | --includedi | --included | --include \
836 | --includ | --inclu | --incl | --inc)
837 ac_prev=includedir ;;
838 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
839 | --includ=* | --inclu=* | --incl=* | --inc=*)
840 includedir=$ac_optarg ;;
841
842 -infodir | --infodir | --infodi | --infod | --info | --inf)
843 ac_prev=infodir ;;
844 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
845 infodir=$ac_optarg ;;
846
847 -libdir | --libdir | --libdi | --libd)
848 ac_prev=libdir ;;
849 -libdir=* | --libdir=* | --libdi=* | --libd=*)
850 libdir=$ac_optarg ;;
851
852 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
853 | --libexe | --libex | --libe)
854 ac_prev=libexecdir ;;
855 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
856 | --libexe=* | --libex=* | --libe=*)
857 libexecdir=$ac_optarg ;;
858
859 -localedir | --localedir | --localedi | --localed | --locale)
860 ac_prev=localedir ;;
861 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
862 localedir=$ac_optarg ;;
863
864 -localstatedir | --localstatedir | --localstatedi | --localstated \
865 | --localstate | --localstat | --localsta | --localst | --locals)
866 ac_prev=localstatedir ;;
867 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
868 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
869 localstatedir=$ac_optarg ;;
870
871 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
872 ac_prev=mandir ;;
873 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
874 mandir=$ac_optarg ;;
875
876 -nfp | --nfp | --nf)
877 # Obsolete; use --without-fp.
878 with_fp=no ;;
879
880 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
881 | --no-cr | --no-c | -n)
882 no_create=yes ;;
883
884 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
885 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
886 no_recursion=yes ;;
887
888 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
889 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
890 | --oldin | --oldi | --old | --ol | --o)
891 ac_prev=oldincludedir ;;
892 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
893 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
894 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
895 oldincludedir=$ac_optarg ;;
896
897 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
898 ac_prev=prefix ;;
899 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
900 prefix=$ac_optarg ;;
901
902 -program-prefix | --program-prefix | --program-prefi | --program-pref \
903 | --program-pre | --program-pr | --program-p)
904 ac_prev=program_prefix ;;
905 -program-prefix=* | --program-prefix=* | --program-prefi=* \
906 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
907 program_prefix=$ac_optarg ;;
908
909 -program-suffix | --program-suffix | --program-suffi | --program-suff \
910 | --program-suf | --program-su | --program-s)
911 ac_prev=program_suffix ;;
912 -program-suffix=* | --program-suffix=* | --program-suffi=* \
913 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
914 program_suffix=$ac_optarg ;;
915
916 -program-transform-name | --program-transform-name \
917 | --program-transform-nam | --program-transform-na \
918 | --program-transform-n | --program-transform- \
919 | --program-transform | --program-transfor \
920 | --program-transfo | --program-transf \
921 | --program-trans | --program-tran \
922 | --progr-tra | --program-tr | --program-t)
923 ac_prev=program_transform_name ;;
924 -program-transform-name=* | --program-transform-name=* \
925 | --program-transform-nam=* | --program-transform-na=* \
926 | --program-transform-n=* | --program-transform-=* \
927 | --program-transform=* | --program-transfor=* \
928 | --program-transfo=* | --program-transf=* \
929 | --program-trans=* | --program-tran=* \
930 | --progr-tra=* | --program-tr=* | --program-t=*)
931 program_transform_name=$ac_optarg ;;
932
933 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
934 ac_prev=pdfdir ;;
935 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
936 pdfdir=$ac_optarg ;;
937
938 -psdir | --psdir | --psdi | --psd | --ps)
939 ac_prev=psdir ;;
940 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
941 psdir=$ac_optarg ;;
942
943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
944 | -silent | --silent | --silen | --sile | --sil)
945 silent=yes ;;
946
947 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
948 ac_prev=sbindir ;;
949 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
950 | --sbi=* | --sb=*)
951 sbindir=$ac_optarg ;;
952
953 -sharedstatedir | --sharedstatedir | --sharedstatedi \
954 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
955 | --sharedst | --shareds | --shared | --share | --shar \
956 | --sha | --sh)
957 ac_prev=sharedstatedir ;;
958 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
959 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
960 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
961 | --sha=* | --sh=*)
962 sharedstatedir=$ac_optarg ;;
963
964 -site | --site | --sit)
965 ac_prev=site ;;
966 -site=* | --site=* | --sit=*)
967 site=$ac_optarg ;;
968
969 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
970 ac_prev=srcdir ;;
971 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
972 srcdir=$ac_optarg ;;
973
974 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
975 | --syscon | --sysco | --sysc | --sys | --sy)
976 ac_prev=sysconfdir ;;
977 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
978 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979 sysconfdir=$ac_optarg ;;
980
981 -target | --target | --targe | --targ | --tar | --ta | --t)
982 ac_prev=target_alias ;;
983 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
984 target_alias=$ac_optarg ;;
985
986 -v | -verbose | --verbose | --verbos | --verbo | --verb)
987 verbose=yes ;;
988
989 -version | --version | --versio | --versi | --vers | -V)
990 ac_init_version=: ;;
991
992 -with-* | --with-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error "invalid package name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"with_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval with_$ac_useropt=\$ac_optarg ;;
1007
1008 -without-* | --without-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid package name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"with_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval with_$ac_useropt=no ;;
1023
1024 --x)
1025 # Obsolete; use --with-x.
1026 with_x=yes ;;
1027
1028 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1029 | --x-incl | --x-inc | --x-in | --x-i)
1030 ac_prev=x_includes ;;
1031 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1032 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1033 x_includes=$ac_optarg ;;
1034
1035 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1036 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1037 ac_prev=x_libraries ;;
1038 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1039 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1040 x_libraries=$ac_optarg ;;
1041
1042 -*) as_fn_error "unrecognized option: \`$ac_option'
1043Try \`$0 --help' for more information."
1044 ;;
1045
1046 *=*)
1047 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1048 # Reject names that are not valid shell variable names.
1049 case $ac_envvar in #(
1050 '' | [0-9]* | *[!_$as_cr_alnum]* )
1051 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1052 esac
1053 eval $ac_envvar=\$ac_optarg
1054 export $ac_envvar ;;
1055
1056 *)
1057 # FIXME: should be removed in autoconf 3.0.
1058 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1059 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1061 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1062 ;;
1063
1064 esac
1065done
1066
1067if test -n "$ac_prev"; then
1068 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1069 as_fn_error "missing argument to $ac_option"
1070fi
1071
1072if test -n "$ac_unrecognized_opts"; then
1073 case $enable_option_checking in
1074 no) ;;
1075 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1076 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1077 esac
1078fi
1079
1080# Check all directory arguments for consistency.
1081for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1082 datadir sysconfdir sharedstatedir localstatedir includedir \
1083 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1084 libdir localedir mandir
1085do
1086 eval ac_val=\$$ac_var
1087 # Remove trailing slashes.
1088 case $ac_val in
1089 */ )
1090 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1091 eval $ac_var=\$ac_val;;
1092 esac
1093 # Be sure to have absolute directory names.
1094 case $ac_val in
1095 [\\/$]* | ?:[\\/]* ) continue;;
1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1097 esac
1098 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1099done
1100
1101# There might be people who depend on the old broken behavior: `$host'
1102# used to hold the argument of --host etc.
1103# FIXME: To remove some day.
1104build=$build_alias
1105host=$host_alias
1106target=$target_alias
1107
1108# FIXME: To remove some day.
1109if test "x$host_alias" != x; then
1110 if test "x$build_alias" = x; then
1111 cross_compiling=maybe
1112 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1113 If a cross compiler is detected then cross compile mode will be used." >&2
1114 elif test "x$build_alias" != "x$host_alias"; then
1115 cross_compiling=yes
1116 fi
1117fi
1118
1119ac_tool_prefix=
1120test -n "$host_alias" && ac_tool_prefix=$host_alias-
1121
1122test "$silent" = yes && exec 6>/dev/null
1123
1124
1125ac_pwd=`pwd` && test -n "$ac_pwd" &&
1126ac_ls_di=`ls -di .` &&
1127ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1128 as_fn_error "working directory cannot be determined"
1129test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1130 as_fn_error "pwd does not report name of working directory"
1131
1132
1133# Find the source files, if location was not specified.
1134if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$as_myself" ||
1138$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$as_myself" : 'X\(//\)[^/]' \| \
1140 X"$as_myself" : 'X\(//\)$' \| \
1141 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1142$as_echo X"$as_myself" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164else
1165 ac_srcdir_defaulted=no
1166fi
1167if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1170fi
1171ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172ac_abs_confdir=`(
1173 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1174 pwd)`
1175# When building in place, set srcdir=.
1176if test "$ac_abs_confdir" = "$ac_pwd"; then
1177 srcdir=.
1178fi
1179# Remove unnecessary trailing slashes from srcdir.
1180# Double slashes in file names in object file debugging info
1181# mess up M-x gdb in Emacs.
1182case $srcdir in
1183*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1184esac
1185for ac_var in $ac_precious_vars; do
1186 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1187 eval ac_env_${ac_var}_value=\$${ac_var}
1188 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190done
1191
1192#
1193# Report the --help message.
1194#
1195if test "$ac_init_help" = "long"; then
1196 # Omit some internal or obsolete options to make the list less imposing.
1197 # This message is too long to be a string in the A/UX 3.1 sh.
1198 cat <<_ACEOF
1199\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1200
1201Usage: $0 [OPTION]... [VAR=VALUE]...
1202
1203To assign environment variables (e.g., CC, CFLAGS...), specify them as
1204VAR=VALUE. See below for descriptions of some of the useful variables.
1205
1206Defaults for the options are specified in brackets.
1207
1208Configuration:
1209 -h, --help display this help and exit
1210 --help=short display options specific to this package
1211 --help=recursive display the short help of all the included packages
1212 -V, --version display version information and exit
1213 -q, --quiet, --silent do not print \`checking...' messages
1214 --cache-file=FILE cache test results in FILE [disabled]
1215 -C, --config-cache alias for \`--cache-file=config.cache'
1216 -n, --no-create do not create output files
1217 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1218
1219Installation directories:
1220 --prefix=PREFIX install architecture-independent files in PREFIX
1221 [$ac_default_prefix]
1222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1223 [PREFIX]
1224
1225By default, \`make install' will install all the files in
1226\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1227an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1228for instance \`--prefix=\$HOME'.
1229
1230For better control, use the options below.
1231
1232Fine tuning of the installation directories:
1233 --bindir=DIR user executables [EPREFIX/bin]
1234 --sbindir=DIR system admin executables [EPREFIX/sbin]
1235 --libexecdir=DIR program executables [EPREFIX/libexec]
1236 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1237 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1238 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1239 --libdir=DIR object code libraries [EPREFIX/lib]
1240 --includedir=DIR C header files [PREFIX/include]
1241 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1242 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1243 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1244 --infodir=DIR info documentation [DATAROOTDIR/info]
1245 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1246 --mandir=DIR man documentation [DATAROOTDIR/man]
1247 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1248 --htmldir=DIR html documentation [DOCDIR]
1249 --dvidir=DIR dvi documentation [DOCDIR]
1250 --pdfdir=DIR pdf documentation [DOCDIR]
1251 --psdir=DIR ps documentation [DOCDIR]
1252_ACEOF
1253
1254 cat <<\_ACEOF
35fa52c0
DWT
1255
1256System types:
1257 --build=BUILD configure for building on BUILD [guessed]
1258 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1259_ACEOF
1260fi
1261
1262if test -n "$ac_init_help"; then
1263 case $ac_init_help in
1264 short | recursive ) echo "Configuration of Cycript 0.9:";;
1265 esac
1266 cat <<\_ACEOF
1267
35fa52c0
DWT
1268Optional Features:
1269 --disable-option-checking ignore unrecognized --enable/--with options
1270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1272 --disable-rpath do not hardcode runtime library paths
1273
1274Optional Packages:
1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1277 --with-gnu-ld assume the C compiler uses GNU ld default=no
1278 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1279 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1280
dbadc56a 1281Some influential environment variables:
35fa52c0
DWT
1282 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1283 the first program found out of: `bison -y', `byacc', `yacc'.
1284 YFLAGS The list of arguments that will be passed by default to $YACC.
1285 This script will default YFLAGS to the empty string to avoid a
1286 default value of `-d' given by some make applications.
1287 CC C compiler command
1288 CFLAGS C compiler flags
dbadc56a
DWT
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
35fa52c0
DWT
1294 CXX C++ compiler command
1295 CXXFLAGS C++ compiler flags
1296 PKG_CONFIG path to pkg-config utility
1297 WEBKIT_CFLAGS
1298 C compiler flags for WEBKIT, overriding pkg-config
1299 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1300 LIBFFI_CFLAGS
1301 C compiler flags for LIBFFI, overriding pkg-config
1302 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
dbadc56a
DWT
1303
1304Use these variables to override the choices made by `configure' or to help
1305it to find libraries and programs with nonstandard names/locations.
1306
c7aa54aa
DWT
1307Report bugs to <saurik@saurik.com>.
1308Cycript home page: <http://www.cycript.org/>.
1309_ACEOF
1310ac_status=$?
1311fi
1312
1313if test "$ac_init_help" = "recursive"; then
1314 # If there are subdirs, report their specific --help.
1315 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1316 test -d "$ac_dir" ||
1317 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1318 continue
1319 ac_builddir=.
1320
1321case "$ac_dir" in
1322.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323*)
1324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1325 # A ".." for each directory in $ac_dir_suffix.
1326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1327 case $ac_top_builddir_sub in
1328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330 esac ;;
1331esac
1332ac_abs_top_builddir=$ac_pwd
1333ac_abs_builddir=$ac_pwd$ac_dir_suffix
1334# for backward compatibility:
1335ac_top_builddir=$ac_top_build_prefix
1336
1337case $srcdir in
1338 .) # We are building in place.
1339 ac_srcdir=.
1340 ac_top_srcdir=$ac_top_builddir_sub
1341 ac_abs_top_srcdir=$ac_pwd ;;
1342 [\\/]* | ?:[\\/]* ) # Absolute name.
1343 ac_srcdir=$srcdir$ac_dir_suffix;
1344 ac_top_srcdir=$srcdir
1345 ac_abs_top_srcdir=$srcdir ;;
1346 *) # Relative name.
1347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348 ac_top_srcdir=$ac_top_build_prefix$srcdir
1349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350esac
1351ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1352
1353 cd "$ac_dir" || { ac_status=$?; continue; }
1354 # Check for guested configure.
1355 if test -f "$ac_srcdir/configure.gnu"; then
1356 echo &&
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1361 else
1362 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363 fi || ac_status=$?
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1365 done
1366fi
1367
1368test -n "$ac_init_help" && exit $ac_status
1369if $ac_init_version; then
1370 cat <<\_ACEOF
1371Cycript configure 0.9
1372generated by GNU Autoconf 2.64
1373
1374Copyright (C) 2009 Free Software Foundation, Inc.
1375This configure script is free software; the Free Software Foundation
1376gives unlimited permission to copy, distribute and modify it.
1377_ACEOF
1378 exit
1379fi
1380
1381## ------------------------ ##
1382## Autoconf initialization. ##
1383## ------------------------ ##
dbadc56a 1384
35fa52c0
DWT
1385# ac_fn_c_try_compile LINENO
1386# --------------------------
1387# Try to compile conftest.$ac_ext, and return whether this succeeded.
1388ac_fn_c_try_compile ()
1389{
1390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1391 rm -f conftest.$ac_objext
1392 if { { ac_try="$ac_compile"
1393case "(($ac_try" in
1394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1395 *) ac_try_echo=$ac_try;;
1396esac
1397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1398$as_echo "$ac_try_echo"; } >&5
1399 (eval "$ac_compile") 2>conftest.err
1400 ac_status=$?
1401 if test -s conftest.err; then
1402 grep -v '^ *+' conftest.err >conftest.er1
1403 cat conftest.er1 >&5
1404 mv -f conftest.er1 conftest.err
1405 fi
1406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1407 test $ac_status = 0; } && {
1408 test -z "$ac_c_werror_flag" ||
1409 test ! -s conftest.err
1410 } && test -s conftest.$ac_objext; then :
1411 ac_retval=0
1412else
1413 $as_echo "$as_me: failed program was:" >&5
1414sed 's/^/| /' conftest.$ac_ext >&5
1415
1416 ac_retval=1
1417fi
1418 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1419 return $ac_retval
1420
1421} # ac_fn_c_try_compile
1422
1423# ac_fn_c_try_link LINENO
1424# -----------------------
1425# Try to link conftest.$ac_ext, and return whether this succeeded.
1426ac_fn_c_try_link ()
1427{
1428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429 rm -f conftest.$ac_objext conftest$ac_exeext
1430 if { { ac_try="$ac_link"
1431case "(($ac_try" in
1432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
1434esac
1435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436$as_echo "$ac_try_echo"; } >&5
1437 (eval "$ac_link") 2>conftest.err
1438 ac_status=$?
1439 if test -s conftest.err; then
1440 grep -v '^ *+' conftest.err >conftest.er1
1441 cat conftest.er1 >&5
1442 mv -f conftest.er1 conftest.err
1443 fi
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && {
1446 test -z "$ac_c_werror_flag" ||
1447 test ! -s conftest.err
1448 } && test -s conftest$ac_exeext && {
1449 test "$cross_compiling" = yes ||
1450 $as_test_x conftest$ac_exeext
1451 }; then :
1452 ac_retval=0
1453else
1454 $as_echo "$as_me: failed program was:" >&5
1455sed 's/^/| /' conftest.$ac_ext >&5
1456
1457 ac_retval=1
1458fi
1459 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1460 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1461 # interfere with the next link command; also delete a directory that is
1462 # left behind by Apple's compiler. We do this before executing the actions.
1463 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1465 return $ac_retval
1466
1467} # ac_fn_c_try_link
1468
dbadc56a
DWT
1469# ac_fn_cxx_try_compile LINENO
1470# ----------------------------
1471# Try to compile conftest.$ac_ext, and return whether this succeeded.
1472ac_fn_cxx_try_compile ()
1473{
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480esac
1481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482$as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_cxx_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: failed program was:" >&5
1498sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501fi
1502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1503 return $ac_retval
1504
1505} # ac_fn_cxx_try_compile
35fa52c0
DWT
1506
1507# ac_fn_c_try_run LINENO
1508# ----------------------
1509# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1510# that executables *can* be run.
1511ac_fn_c_try_run ()
1512{
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 if { { ac_try="$ac_link"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_link") 2>&5
1522 ac_status=$?
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1525 { { case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_try") 2>&5
1532 ac_status=$?
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; }; }; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: program exited with status $ac_status" >&5
1538 $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=$ac_status
1542fi
1543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1546
1547} # ac_fn_c_try_run
c7aa54aa
DWT
1548cat >config.log <<_ACEOF
1549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
1552It was created by Cycript $as_me 0.9, which was
1553generated by GNU Autoconf 2.64. Invocation command line was
1554
1555 $ $0 $@
1556
1557_ACEOF
1558exec 5>>config.log
1559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 $as_echo "PATH: $as_dir"
1590 done
1591IFS=$as_save_IFS
1592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
1607# Strip out --silent because we don't want to record it for future runs.
1608# Also quote any args containing shell meta-characters.
1609# Make two passes to allow for proper duplicate-argument suppression.
1610ac_configure_args=
1611ac_configure_args0=
1612ac_configure_args1=
1613ac_must_keep_next=false
1614for ac_pass in 1 2
1615do
1616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
1624 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 esac
1626 case $ac_pass in
1627 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1628 2)
1629 as_fn_append ac_configure_args1 " '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1644 fi
1645 as_fn_append ac_configure_args " '$ac_arg'"
1646 ;;
1647 esac
1648 done
1649done
1650{ ac_configure_args0=; unset ac_configure_args0;}
1651{ ac_configure_args1=; unset ac_configure_args1;}
1652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
1656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
1662
1663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
1676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1677$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
1681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682 *) { eval $ac_var=; unset $ac_var;} ;;
1683 esac ;;
1684 esac
1685 done
1686 (set) 2>&1 |
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1689 sed -n \
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
1693 *)
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 ;;
1696 esac |
1697 sort
1698)
1699 echo
1700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in
1711 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 esac
1713 $as_echo "$ac_var='\''$ac_val'\''"
1714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
1719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
1722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 $as_echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1733 fi
1734
1735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
1742 cat confdefs.h
1743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
1746 $as_echo "$as_me: caught signal $ac_signal"
1747 $as_echo "$as_me: exit $exit_status"
1748 } >&5
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 exit $exit_status
1752' 0
1753for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
1759rm -f -r conftest* confdefs.h
1760
1761$as_echo "/* confdefs.h */" > confdefs.h
1762
1763# Predefined preprocessor variables.
1764
1765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_NAME "$PACKAGE_NAME"
1767_ACEOF
1768
1769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771_ACEOF
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783_ACEOF
1784
1785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_URL "$PACKAGE_URL"
1787_ACEOF
1788
1789
1790# Let the site file select an alternate cache file if it wants to.
1791# Prefer an explicitly selected file to automatically selected ones.
1792ac_site_file1=NONE
1793ac_site_file2=NONE
1794if test -n "$CONFIG_SITE"; then
1795 ac_site_file1=$CONFIG_SITE
1796elif test "x$prefix" != xNONE; then
1797 ac_site_file1=$prefix/share/config.site
1798 ac_site_file2=$prefix/etc/config.site
1799else
1800 ac_site_file1=$ac_default_prefix/share/config.site
1801 ac_site_file2=$ac_default_prefix/etc/config.site
1802fi
1803for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1804do
1805 test "x$ac_site_file" = xNONE && continue
1806 if test -r "$ac_site_file"; then
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1808$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812done
1813
1814if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1819$as_echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1824 fi
1825else
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1827$as_echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
1834for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1846$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 # differences in whitespace do not lead to failure.
1852 ac_old_val_w=`echo x $ac_old_val`
1853 ac_new_val_w=`echo x $ac_new_val`
1854 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1856$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 ac_cache_corrupted=:
1858 else
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1860$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1861 eval $ac_var=\$ac_old_val
1862 fi
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1864$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1866$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
1872 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1878 esac
1879 fi
1880done
1881if $ac_cache_corrupted; then
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1885$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1887fi
1888## -------------------- ##
1889## Main body of script. ##
1890## -------------------- ##
1891
1892ac_ext=c
1893ac_cpp='$CPP $CPPFLAGS'
1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
35fa52c0
DWT
1899
1900for ac_prog in 'bison -y' byacc
1901do
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903set dummy $ac_prog; ac_word=$2
dbadc56a
DWT
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1905$as_echo_n "checking for $ac_word... " >&6; }
35fa52c0 1906if test "${ac_cv_prog_YACC+set}" = set; then :
dbadc56a
DWT
1907 $as_echo_n "(cached) " >&6
1908else
35fa52c0
DWT
1909 if test -n "$YACC"; then
1910 ac_cv_prog_YACC="$YACC" # Let the user override the test.
dbadc56a
DWT
1911else
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35fa52c0 1919 ac_cv_prog_YACC="$ac_prog"
dbadc56a
DWT
1920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923done
1924 done
1925IFS=$as_save_IFS
1926
1927fi
1928fi
35fa52c0
DWT
1929YACC=$ac_cv_prog_YACC
1930if test -n "$YACC"; then
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1932$as_echo "$YACC" >&6; }
dbadc56a
DWT
1933else
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1935$as_echo "no" >&6; }
1936fi
1937
1938
35fa52c0
DWT
1939 test -n "$YACC" && break
1940done
1941test -n "$YACC" || YACC="yacc"
1942
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1944$as_echo_n "checking for a sed that does not truncate output... " >&6; }
1945if test "${ac_cv_path_SED+set}" = set; then :
1946 $as_echo_n "(cached) " >&6
1947else
1948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1949 for ac_i in 1 2 3 4 5 6 7; do
1950 ac_script="$ac_script$as_nl$ac_script"
1951 done
1952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
1953 { ac_script=; unset ac_script;}
1954 if test -z "$SED"; then
1955 ac_path_SED_found=false
1956 # Loop through the user's path and test for each of PROGNAME-LIST
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_prog in sed gsed; do
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1965 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1966# Check for GNU ac_path_SED and select it if it is found.
1967 # Check for GNU $ac_path_SED
1968case `"$ac_path_SED" --version 2>&1` in
1969*GNU*)
1970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1971*)
1972 ac_count=0
1973 $as_echo_n 0123456789 >"conftest.in"
1974 while :
1975 do
1976 cat "conftest.in" "conftest.in" >"conftest.tmp"
1977 mv "conftest.tmp" "conftest.in"
1978 cp "conftest.in" "conftest.nl"
1979 $as_echo '' >> "conftest.nl"
1980 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1982 as_fn_arith $ac_count + 1 && ac_count=$as_val
1983 if test $ac_count -gt ${ac_path_SED_max-0}; then
1984 # Best one so far, save it but keep looking for a better one
1985 ac_cv_path_SED="$ac_path_SED"
1986 ac_path_SED_max=$ac_count
1987 fi
1988 # 10*(2^10) chars as input seems more than enough
1989 test $ac_count -gt 10 && break
1990 done
1991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1992esac
1993
1994 $ac_path_SED_found && break 3
1995 done
1996 done
dbadc56a 1997 done
35fa52c0
DWT
1998IFS=$as_save_IFS
1999 if test -z "$ac_cv_path_SED"; then
2000 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2001 fi
2002else
2003 ac_cv_path_SED=$SED
dbadc56a 2004fi
35fa52c0
DWT
2005
2006fi
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2008$as_echo "$ac_cv_path_SED" >&6; }
2009 SED="$ac_cv_path_SED"
2010 rm -f conftest.sed
2011
2012
2013
2014
2015
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
2017$as_echo_n "checking if bison is the parser generator... " >&6; }
2018if test "${ax_cv_prog_bison+set}" = set; then :
2019 $as_echo_n "(cached) " >&6
2020else
2021
2022 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
2023
2024 ax_cv_prog_bison=yes
2025
2026else
2027
2028 ax_cv_prog_bison=no
2029
2030fi
2031
2032fi
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
2034$as_echo "$ax_cv_prog_bison" >&6; }
2035 if test "$ax_cv_prog_bison" = yes; then :
2036
2037 :
2038
2039 BISON=`echo $YACC | $SED -e 's/ -y//'`
2040 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
2041
2042
2043else
2044
2045 :
2046 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2047
2048fi
2049
2050for ac_prog in gawk mawk nawk awk
dbadc56a
DWT
2051do
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053set dummy $ac_prog; ac_word=$2
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2055$as_echo_n "checking for $ac_word... " >&6; }
35fa52c0 2056if test "${ac_cv_prog_AWK+set}" = set; then :
dbadc56a
DWT
2057 $as_echo_n "(cached) " >&6
2058else
35fa52c0
DWT
2059 if test -n "$AWK"; then
2060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
dbadc56a
DWT
2061else
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35fa52c0 2069 ac_cv_prog_AWK="$ac_prog"
dbadc56a
DWT
2070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073done
2074 done
2075IFS=$as_save_IFS
2076
2077fi
2078fi
35fa52c0
DWT
2079AWK=$ac_cv_prog_AWK
2080if test -n "$AWK"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2082$as_echo "$AWK" >&6; }
dbadc56a
DWT
2083else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2085$as_echo "no" >&6; }
2086fi
2087
2088
35fa52c0 2089 test -n "$AWK" && break
dbadc56a
DWT
2090done
2091
35fa52c0
DWT
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
2093$as_echo_n "checking if bison is >= 2.4... " >&6; }
dbadc56a 2094
dbadc56a 2095
35fa52c0
DWT
2096 # Used to indicate true or false condition
2097 ax_compare_version=false
dbadc56a 2098
35fa52c0
DWT
2099 # Convert the two version strings to be compared into a format that
2100 # allows a simple string comparison. The end result is that a version
2101 # string of the form 1.12.5-r617 will be converted to the form
2102 # 0001001200050617. In other words, each number is zero padded to four
2103 # digits, and non digits are removed.
dbadc56a 2104
35fa52c0
DWT
2105 ax_compare_version_A=`echo "$BISON_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2106 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2107 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2108 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2109 -e 's/[^0-9]//g'`
dbadc56a 2110
35fa52c0
DWT
2111
2112 ax_compare_version_B=`echo "2.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2113 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2114 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2115 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2116 -e 's/[^0-9]//g'`
2117
2118
2119 ax_compare_version=`echo "x$ax_compare_version_A
2120x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
2121
2122
2123
2124 if test "$ax_compare_version" = "true" ; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2126$as_echo "yes" >&6; }
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129$as_echo "no" >&6; }
2130 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2131
2132 fi
2133
2134
2135ac_ext=c
2136ac_cpp='$CPP $CPPFLAGS'
2137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144$as_echo_n "checking for $ac_word... " >&6; }
2145if test "${ac_cv_prog_CC+set}" = set; then :
2146 $as_echo_n "(cached) " >&6
2147else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162done
2163 done
2164IFS=$as_save_IFS
2165
2166fi
2167fi
2168CC=$ac_cv_prog_CC
2169if test -n "$CC"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171$as_echo "$CC" >&6; }
2172else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174$as_echo "no" >&6; }
2175fi
2176
2177
2178fi
2179if test -z "$ac_cv_prog_CC"; then
2180 ac_ct_CC=$CC
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182set dummy gcc; ac_word=$2
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2184$as_echo_n "checking for $ac_word... " >&6; }
2185if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2186 $as_echo_n "(cached) " >&6
2187else
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202done
2203 done
2204IFS=$as_save_IFS
2205
2206fi
2207fi
2208ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209if test -n "$ac_ct_CC"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2211$as_echo "$ac_ct_CC" >&6; }
2212else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2214$as_echo "no" >&6; }
2215fi
2216
2217 if test "x$ac_ct_CC" = x; then
2218 CC=""
2219 else
2220 case $cross_compiling:$ac_tool_warned in
2221yes:)
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224ac_tool_warned=yes ;;
2225esac
2226 CC=$ac_ct_CC
2227 fi
2228else
2229 CC="$ac_cv_prog_CC"
2230fi
2231
2232if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235set dummy ${ac_tool_prefix}cc; ac_word=$2
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237$as_echo_n "checking for $ac_word... " >&6; }
2238if test "${ac_cv_prog_CC+set}" = set; then :
2239 $as_echo_n "(cached) " >&6
2240else
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2243else
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2254 fi
2255done
2256 done
2257IFS=$as_save_IFS
2258
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2264$as_echo "$CC" >&6; }
2265else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267$as_echo "no" >&6; }
2268fi
2269
2270
2271 fi
2272fi
2273if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275set dummy cc; ac_word=$2
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277$as_echo_n "checking for $ac_word... " >&6; }
2278if test "${ac_cv_prog_CC+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
2280else
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2283else
2284 ac_prog_rejected=no
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 ac_prog_rejected=yes
2294 continue
2295 fi
2296 ac_cv_prog_CC="cc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300done
2301 done
2302IFS=$as_save_IFS
2303
2304if test $ac_prog_rejected = yes; then
2305 # We found a bogon in the path, so make sure we never use it.
2306 set dummy $ac_cv_prog_CC
2307 shift
2308 if test $# != 0; then
2309 # We chose a different compiler from the bogus one.
2310 # However, it has the same basename, so the bogon will be chosen
2311 # first if we set CC to just the basename; use the full file name.
2312 shift
2313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314 fi
2315fi
2316fi
2317fi
2318CC=$ac_cv_prog_CC
2319if test -n "$CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321$as_echo "$CC" >&6; }
2322else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324$as_echo "no" >&6; }
2325fi
2326
2327
2328fi
2329if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
2331 for ac_prog in cl.exe
2332 do
2333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336$as_echo_n "checking for $ac_word... " >&6; }
2337if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342else
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354done
2355 done
2356IFS=$as_save_IFS
2357
2358fi
2359fi
2360CC=$ac_cv_prog_CC
2361if test -n "$CC"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363$as_echo "$CC" >&6; }
2364else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366$as_echo "no" >&6; }
2367fi
2368
2369
2370 test -n "$CC" && break
2371 done
2372fi
2373if test -z "$CC"; then
2374 ac_ct_CC=$CC
2375 for ac_prog in cl.exe
2376do
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378set dummy $ac_prog; ac_word=$2
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380$as_echo_n "checking for $ac_word... " >&6; }
2381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="$ac_prog"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398done
2399 done
2400IFS=$as_save_IFS
2401
2402fi
2403fi
2404ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405if test -n "$ac_ct_CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407$as_echo "$ac_ct_CC" >&6; }
2408else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410$as_echo "no" >&6; }
2411fi
2412
2413
2414 test -n "$ac_ct_CC" && break
2415done
2416
2417 if test "x$ac_ct_CC" = x; then
2418 CC=""
2419 else
2420 case $cross_compiling:$ac_tool_warned in
2421yes:)
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424ac_tool_warned=yes ;;
2425esac
2426 CC=$ac_ct_CC
2427 fi
2428fi
2429
2430fi
2431
2432
2433test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435as_fn_error "no acceptable C compiler found in \$PATH
2436See \`config.log' for more details." "$LINENO" 5; }
2437
2438# Provide some information about the compiler.
2439$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2440set X $ac_compile
2441ac_compiler=$2
2442for ac_option in --version -v -V -qversion; do
2443 { { ac_try="$ac_compiler $ac_option >&5"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449$as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2451 ac_status=$?
2452 if test -s conftest.err; then
2453 sed '10a\
2454... rest of stderr output deleted ...
2455 10q' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 rm -f conftest.er1 conftest.err
2458 fi
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; }
2461done
2462
2463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464/* end confdefs.h. */
2465#include <stdio.h>
2466int
2467main ()
2468{
2469FILE *f = fopen ("conftest.out", "w");
2470 return ferror (f) || fclose (f) != 0;
2471
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476ac_clean_files_save=$ac_clean_files
2477ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2478# Try to create an executable without -o first, disregard a.out.
2479# It will help us diagnose broken compilers, and finding out an intuition
2480# of exeext.
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2482$as_echo_n "checking for C compiler default output file name... " >&6; }
2483ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484
2485# The possible output files:
2486ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2487
2488ac_rmfiles=
2489for ac_file in $ac_files
2490do
2491 case $ac_file in
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2493 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2494 esac
2495done
2496rm -f $ac_rmfiles
2497
2498if { { ac_try="$ac_link_default"
2499case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502esac
2503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504$as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_link_default") 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; then :
2509 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2510# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2511# in a Makefile. We should not override ac_cv_exeext if it was cached,
2512# so that the user can short-circuit this test for compilers unknown to
2513# Autoconf.
2514for ac_file in $ac_files ''
2515do
2516 test -f "$ac_file" || continue
2517 case $ac_file in
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2519 ;;
2520 [ab].out )
2521 # We found the default executable, but exeext='' is most
2522 # certainly right.
2523 break;;
2524 *.* )
2525 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2526 then :; else
2527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 fi
2529 # We set ac_cv_exeext here because the later test for it is not
2530 # safe: cross compilers may not add the suffix if given an `-o'
2531 # argument, so we may need to know it at that point already.
2532 # Even if this section looks crufty: it has the advantage of
2533 # actually working.
2534 break;;
2535 * )
2536 break;;
2537 esac
2538done
2539test "$ac_cv_exeext" = no && ac_cv_exeext=
2540
2541else
2542 ac_file=''
2543fi
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2545$as_echo "$ac_file" >&6; }
2546if test -z "$ac_file"; then :
2547 $as_echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552{ as_fn_set_status 77
2553as_fn_error "C compiler cannot create executables
2554See \`config.log' for more details." "$LINENO" 5; }; }
2555fi
2556ac_exeext=$ac_cv_exeext
2557
2558# Check that the compiler produces executables we can run. If not, either
2559# the compiler is broken, or we cross compile.
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2561$as_echo_n "checking whether the C compiler works... " >&6; }
2562# If not cross compiling, check that we can run a simple program.
2563if test "$cross_compiling" != yes; then
2564 if { ac_try='./$ac_file'
2565 { { case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570$as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_try") 2>&5
2572 ac_status=$?
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }; }; then
2575 cross_compiling=no
2576 else
2577 if test "$cross_compiling" = maybe; then
2578 cross_compiling=yes
2579 else
2580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582as_fn_error "cannot run C compiled programs.
2583If you meant to cross compile, use \`--host'.
2584See \`config.log' for more details." "$LINENO" 5; }
2585 fi
2586 fi
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589$as_echo "yes" >&6; }
2590
2591rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2592ac_clean_files=$ac_clean_files_save
2593# Check that the compiler produces executables we can run. If not, either
2594# the compiler is broken, or we cross compile.
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2596$as_echo_n "checking whether we are cross compiling... " >&6; }
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2598$as_echo "$cross_compiling" >&6; }
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2601$as_echo_n "checking for suffix of executables... " >&6; }
2602if { { ac_try="$ac_link"
2603case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606esac
2607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608$as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_link") 2>&5
2610 ac_status=$?
2611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2612 test $ac_status = 0; }; then :
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615# work properly (i.e., refer to `conftest.exe'), while it won't with
2616# `rm'.
2617for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2622 break;;
2623 * ) break;;
2624 esac
2625done
2626else
2627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error "cannot compute suffix of executables: cannot compile and link
2630See \`config.log' for more details." "$LINENO" 5; }
2631fi
2632rm -f conftest$ac_cv_exeext
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2634$as_echo "$ac_cv_exeext" >&6; }
2635
2636rm -f conftest.$ac_ext
2637EXEEXT=$ac_cv_exeext
2638ac_exeext=$EXEEXT
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2640$as_echo_n "checking for suffix of object files... " >&6; }
2641if test "${ac_cv_objext+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645/* end confdefs.h. */
2646
2647int
2648main ()
2649{
2650
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655rm -f conftest.o conftest.obj
2656if { { ac_try="$ac_compile"
2657case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660esac
2661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662$as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_compile") 2>&5
2664 ac_status=$?
2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; }; then :
2667 for ac_file in conftest.o conftest.obj conftest.*; do
2668 test -f "$ac_file" || continue;
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2672 break;;
2673 esac
2674done
2675else
2676 $as_echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681as_fn_error "cannot compute suffix of object files: cannot compile
2682See \`config.log' for more details." "$LINENO" 5; }
2683fi
2684rm -f conftest.$ac_cv_objext conftest.$ac_ext
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2687$as_echo "$ac_cv_objext" >&6; }
2688OBJEXT=$ac_cv_objext
2689ac_objext=$OBJEXT
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2691$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2692if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696/* end confdefs.h. */
2697
2698int
2699main ()
2700{
2701#ifndef __GNUC__
2702 choke me
2703#endif
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709if ac_fn_c_try_compile "$LINENO"; then :
2710 ac_compiler_gnu=yes
2711else
2712 ac_compiler_gnu=no
2713fi
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715ac_cv_c_compiler_gnu=$ac_compiler_gnu
2716
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2719$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2720if test $ac_compiler_gnu = yes; then
2721 GCC=yes
2722else
2723 GCC=
2724fi
2725ac_test_CFLAGS=${CFLAGS+set}
2726ac_save_CFLAGS=$CFLAGS
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2728$as_echo_n "checking whether $CC accepts -g... " >&6; }
2729if test "${ac_cv_prog_cc_g+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 ac_save_c_werror_flag=$ac_c_werror_flag
2733 ac_c_werror_flag=yes
2734 ac_cv_prog_cc_g=no
2735 CFLAGS="-g"
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737/* end confdefs.h. */
2738
2739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747if ac_fn_c_try_compile "$LINENO"; then :
2748 ac_cv_prog_cc_g=yes
2749else
2750 CFLAGS=""
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752/* end confdefs.h. */
2753
2754int
2755main ()
2756{
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762if ac_fn_c_try_compile "$LINENO"; then :
2763
2764else
2765 ac_c_werror_flag=$ac_save_c_werror_flag
2766 CFLAGS="-g"
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778if ac_fn_c_try_compile "$LINENO"; then :
2779 ac_cv_prog_cc_g=yes
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782fi
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784fi
2785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_c_werror_flag=$ac_save_c_werror_flag
2787fi
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2789$as_echo "$ac_cv_prog_cc_g" >&6; }
2790if test "$ac_test_CFLAGS" = set; then
2791 CFLAGS=$ac_save_CFLAGS
2792elif test $ac_cv_prog_cc_g = yes; then
2793 if test "$GCC" = yes; then
2794 CFLAGS="-g -O2"
2795 else
2796 CFLAGS="-g"
2797 fi
2798else
2799 if test "$GCC" = yes; then
2800 CFLAGS="-O2"
2801 else
2802 CFLAGS=
2803 fi
2804fi
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2806$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2807if test "${ac_cv_prog_cc_c89+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809else
2810 ac_cv_prog_cc_c89=no
2811ac_save_CC=$CC
2812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813/* end confdefs.h. */
2814#include <stdarg.h>
2815#include <stdio.h>
2816#include <sys/types.h>
2817#include <sys/stat.h>
2818/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2819struct buf { int x; };
2820FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821static char *e (p, i)
2822 char **p;
2823 int i;
2824{
2825 return p[i];
2826}
2827static char *f (char * (*g) (char **, int), char **p, ...)
2828{
2829 char *s;
2830 va_list v;
2831 va_start (v,p);
2832 s = g (p, va_arg (v,int));
2833 va_end (v);
2834 return s;
2835}
2836
2837/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2838 function prototypes and stuff, but not '\xHH' hex character constants.
2839 These don't provoke an error unfortunately, instead are silently treated
2840 as 'x'. The following induces an error, until -std is added to get
2841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2842 array size at least. It's necessary to write '\x00'==0 to get something
2843 that's true only with -std. */
2844int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845
2846/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2847 inside strings and character constants. */
2848#define FOO(x) 'x'
2849int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2850
2851int test (int i, double x);
2852struct s1 {int (*f) (int a);};
2853struct s2 {int (*f) (double a);};
2854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855int argc;
2856char **argv;
2857int
2858main ()
2859{
2860return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2867do
2868 CC="$ac_save_CC $ac_arg"
2869 if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_cv_prog_cc_c89=$ac_arg
2871fi
2872rm -f core conftest.err conftest.$ac_objext
2873 test "x$ac_cv_prog_cc_c89" != "xno" && break
2874done
2875rm -f conftest.$ac_ext
2876CC=$ac_save_CC
2877
2878fi
2879# AC_CACHE_VAL
2880case "x$ac_cv_prog_cc_c89" in
2881 x)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2883$as_echo "none needed" >&6; } ;;
2884 xno)
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2886$as_echo "unsupported" >&6; } ;;
2887 *)
2888 CC="$CC $ac_cv_prog_cc_c89"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2890$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2891esac
2892if test "x$ac_cv_prog_cc_c89" != xno; then :
2893
2894fi
2895
2896ac_ext=c
2897ac_cpp='$CPP $CPPFLAGS'
2898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901
2902
2903for ac_prog in flex lex
2904do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if test "${ac_cv_prog_LEX+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test -n "$LEX"; then
2913 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_LEX="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932LEX=$ac_cv_prog_LEX
2933if test -n "$LEX"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
2935$as_echo "$LEX" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942 test -n "$LEX" && break
2943done
2944test -n "$LEX" || LEX=":"
2945
2946if test "x$LEX" != "x:"; then
2947 cat >conftest.l <<_ACEOF
2948%%
2949a { ECHO; }
2950b { REJECT; }
2951c { yymore (); }
2952d { yyless (1); }
2953e { yyless (input () != 0); }
2954f { unput (yytext[0]); }
2955. { BEGIN INITIAL; }
2956%%
2957#ifdef YYTEXT_POINTER
2958extern char *yytext;
2959#endif
2960int
2961main (void)
2962{
2963 return ! yylex () + ! yywrap ();
2964}
2965_ACEOF
2966{ { ac_try="$LEX conftest.l"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972$as_echo "$ac_try_echo"; } >&5
2973 (eval "$LEX conftest.l") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
2978$as_echo_n "checking lex output file root... " >&6; }
2979if test "${ac_cv_prog_lex_root+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981else
2982
2983if test -f lex.yy.c; then
2984 ac_cv_prog_lex_root=lex.yy
2985elif test -f lexyy.c; then
2986 ac_cv_prog_lex_root=lexyy
2987else
2988 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
2989fi
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
2992$as_echo "$ac_cv_prog_lex_root" >&6; }
2993LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2994
2995if test -z "${LEXLIB+set}"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
2997$as_echo_n "checking lex library... " >&6; }
2998if test "${ac_cv_lib_lex+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001
3002 ac_save_LIBS=$LIBS
3003 ac_cv_lib_lex='none needed'
3004 for ac_lib in '' -lfl -ll; do
3005 LIBS="$ac_lib $ac_save_LIBS"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h. */
3008`cat $LEX_OUTPUT_ROOT.c`
3009_ACEOF
3010if ac_fn_c_try_link "$LINENO"; then :
3011 ac_cv_lib_lex=$ac_lib
3012fi
3013rm -f core conftest.err conftest.$ac_objext \
3014 conftest$ac_exeext conftest.$ac_ext
3015 test "$ac_cv_lib_lex" != 'none needed' && break
3016 done
3017 LIBS=$ac_save_LIBS
3018
3019fi
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3021$as_echo "$ac_cv_lib_lex" >&6; }
3022 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3023fi
3024
3025
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3027$as_echo_n "checking whether yytext is a pointer... " >&6; }
3028if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3030else
3031 # POSIX says lex can declare yytext either as a pointer or an array; the
3032# default is implementation-dependent. Figure out which it is, since
3033# not all implementations provide the %pointer and %array declarations.
3034ac_cv_prog_lex_yytext_pointer=no
3035ac_save_LIBS=$LIBS
3036LIBS="$LEXLIB $ac_save_LIBS"
3037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039#define YYTEXT_POINTER 1
3040`cat $LEX_OUTPUT_ROOT.c`
3041_ACEOF
3042if ac_fn_c_try_link "$LINENO"; then :
3043 ac_cv_prog_lex_yytext_pointer=yes
3044fi
3045rm -f core conftest.err conftest.$ac_objext \
3046 conftest$ac_exeext conftest.$ac_ext
3047LIBS=$ac_save_LIBS
3048
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3051$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3052if test $ac_cv_prog_lex_yytext_pointer = yes; then
3053
3054$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3055
3056fi
3057rm -f conftest.l $LEX_OUTPUT_ROOT.c
3058
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
3061$as_echo_n "checking for flex... " >&6; }
3062if test "`echo \"$LEX\" | $SED 's/^.*\(flex\).*$/\1/'`" = "flex"; then :
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065$as_echo "yes" >&6; }
3066 FLEX=$LEX
3067
3068else
3069
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071$as_echo "no" >&6; }
3072 as_fn_error "You need flex" "$LINENO" 5
3073
3074fi
3075
3076ac_ext=cpp
3077ac_cpp='$CXXCPP $CPPFLAGS'
3078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3081if test -z "$CXX"; then
3082 if test -n "$CCC"; then
3083 CXX=$CCC
3084 else
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_CXX+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094else
3095 if test -n "$CXX"; then
3096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110 done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115CXX=$ac_cv_prog_CXX
3116if test -n "$CXX"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3118$as_echo "$CXX" >&6; }
3119else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124
3125 test -n "$CXX" && break
3126 done
3127fi
3128if test -z "$CXX"; then
3129 ac_ct_CXX=$CXX
3130 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3131do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133set dummy $ac_prog; ac_word=$2
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138else
3139 if test -n "$ac_ct_CXX"; then
3140 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CXX="$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153done
3154 done
3155IFS=$as_save_IFS
3156
3157fi
3158fi
3159ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3160if test -n "$ac_ct_CXX"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3162$as_echo "$ac_ct_CXX" >&6; }
3163else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166fi
3167
3168
3169 test -n "$ac_ct_CXX" && break
3170done
3171
3172 if test "x$ac_ct_CXX" = x; then
3173 CXX="g++"
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176yes:)
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179ac_tool_warned=yes ;;
3180esac
3181 CXX=$ac_ct_CXX
3182 fi
3183fi
3184
3185 fi
3186fi
3187# Provide some information about the compiler.
3188$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3189set X $ac_compile
3190ac_compiler=$2
3191for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200 ac_status=$?
3201 if test -s conftest.err; then
3202 sed '10a\
3203... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3206 rm -f conftest.er1 conftest.err
3207 fi
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210done
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3213$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3214if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216else
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223#ifndef __GNUC__
3224 choke me
3225#endif
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231if ac_fn_cxx_try_compile "$LINENO"; then :
3232 ac_compiler_gnu=yes
3233else
3234 ac_compiler_gnu=no
3235fi
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3238
3239fi
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3241$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3242if test $ac_compiler_gnu = yes; then
3243 GXX=yes
3244else
3245 GXX=
3246fi
3247ac_test_CXXFLAGS=${CXXFLAGS+set}
3248ac_save_CXXFLAGS=$CXXFLAGS
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3250$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3251if test "${ac_cv_prog_cxx_g+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253else
3254 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255 ac_cxx_werror_flag=yes
3256 ac_cv_prog_cxx_g=no
3257 CXXFLAGS="-g"
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269if ac_fn_cxx_try_compile "$LINENO"; then :
3270 ac_cv_prog_cxx_g=yes
3271else
3272 CXXFLAGS=""
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h. */
3275
3276int
3277main ()
3278{
3279
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284if ac_fn_cxx_try_compile "$LINENO"; then :
3285
3286else
3287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3288 CXXFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300if ac_fn_cxx_try_compile "$LINENO"; then :
3301 ac_cv_prog_cxx_g=yes
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304fi
3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3311$as_echo "$ac_cv_prog_cxx_g" >&6; }
3312if test "$ac_test_CXXFLAGS" = set; then
3313 CXXFLAGS=$ac_save_CXXFLAGS
3314elif test $ac_cv_prog_cxx_g = yes; then
3315 if test "$GXX" = yes; then
3316 CXXFLAGS="-g -O2"
3317 else
3318 CXXFLAGS="-g"
3319 fi
3320else
3321 if test "$GXX" = yes; then
3322 CXXFLAGS="-O2"
3323 else
3324 CXXFLAGS=
3325 fi
3326fi
3327ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333ac_aux_dir=
3334for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3335 for ac_t in install-sh install.sh shtool; do
3336 if test -f "$ac_dir/$ac_t"; then
3337 ac_aux_dir=$ac_dir
3338 ac_install_sh="$ac_aux_dir/$ac_t -c"
3339 break 2
3340 fi
3341 done
3342done
3343if test -z "$ac_aux_dir"; then
3344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3345fi
3346
3347# These three variables are undocumented and unsupported,
3348# and are intended to be withdrawn in a future Autoconf release.
3349# They can cause serious problems if a builder's source tree is in a directory
3350# whose full name contains unusual characters.
3351ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3352ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3353ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3354
3355
3356# Find a good install program. We prefer a C program (faster),
3357# so one script is as good as another. But avoid the broken or
3358# incompatible versions:
3359# SysV /etc/install, /usr/sbin/install
3360# SunOS /usr/etc/install
3361# IRIX /sbin/install
3362# AIX /bin/install
3363# AmigaOS /C/install, which installs bootblocks on floppy discs
3364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3367# OS/2's system install, which has a completely different semantic
3368# ./install, which can be erroneously created by make from ./install.sh.
3369# Reject install programs that cannot install multiple files.
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3371$as_echo_n "checking for a BSD-compatible install... " >&6; }
3372if test -z "$INSTALL"; then
3373if test "${ac_cv_path_install+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3375else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
dbadc56a 3378do
35fa52c0
DWT
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 # Account for people who put trailing slashes in PATH elements.
3382case $as_dir/ in #((
3383 ./ | .// | /[cC]/* | \
3384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3386 /usr/ucb/* ) ;;
3387 *)
3388 # OSF1 and SCO ODT 3.0 have their own names for install.
3389 # Don't use installbsd from OSF since it installs stuff as root
3390 # by default.
3391 for ac_prog in ginstall scoinst install; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3394 if test $ac_prog = install &&
3395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3396 # AIX install. It has an incompatible calling convention.
3397 :
3398 elif test $ac_prog = install &&
3399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3400 # program-specific install script used by HP pwplus--don't use.
3401 :
3402 else
3403 rm -rf conftest.one conftest.two conftest.dir
3404 echo one > conftest.one
3405 echo two > conftest.two
3406 mkdir conftest.dir
3407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3408 test -s conftest.one && test -s conftest.two &&
3409 test -s conftest.dir/conftest.one &&
3410 test -s conftest.dir/conftest.two
3411 then
3412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3413 break 3
3414 fi
3415 fi
3416 fi
3417 done
3418 done
3419 ;;
3420esac
3421
3422 done
3423IFS=$as_save_IFS
3424
3425rm -rf conftest.one conftest.two conftest.dir
3426
3427fi
3428 if test "${ac_cv_path_install+set}" = set; then
3429 INSTALL=$ac_cv_path_install
3430 else
3431 # As a last resort, use the slow shell script. Don't cache a
3432 # value for INSTALL within a source directory, because that will
3433 # break other packages using the cache if that directory is
3434 # removed, or if the value is a relative name.
3435 INSTALL=$ac_install_sh
3436 fi
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3439$as_echo "$INSTALL" >&6; }
3440
3441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3442# It thinks the first close brace ends the variable substitution.
3443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3444
3445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3446
3447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3448
3449# Make sure we can run config.sub.
3450$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3451 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3452
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3454$as_echo_n "checking build system type... " >&6; }
3455if test "${ac_cv_build+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457else
3458 ac_build_alias=$build_alias
3459test "x$ac_build_alias" = x &&
3460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3461test "x$ac_build_alias" = x &&
3462 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3463ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3464 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3465
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3468$as_echo "$ac_cv_build" >&6; }
3469case $ac_cv_build in
3470*-*-*) ;;
3471*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3472esac
3473build=$ac_cv_build
3474ac_save_IFS=$IFS; IFS='-'
3475set x $ac_cv_build
3476shift
3477build_cpu=$1
3478build_vendor=$2
3479shift; shift
3480# Remember, the first character of IFS is used to create $*,
3481# except with old shells:
3482build_os=$*
3483IFS=$ac_save_IFS
3484case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3485
3486
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3488$as_echo_n "checking host system type... " >&6; }
3489if test "${ac_cv_host+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3491else
3492 if test "x$host_alias" = x; then
3493 ac_cv_host=$ac_cv_build
3494else
3495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3496 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3497fi
3498
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3501$as_echo "$ac_cv_host" >&6; }
3502case $ac_cv_host in
3503*-*-*) ;;
3504*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3505esac
3506host=$ac_cv_host
3507ac_save_IFS=$IFS; IFS='-'
3508set x $ac_cv_host
3509shift
3510host_cpu=$1
3511host_vendor=$2
3512shift; shift
3513# Remember, the first character of IFS is used to create $*,
3514# except with old shells:
3515host_os=$*
3516IFS=$ac_save_IFS
3517case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3518
3519
3520
3521 if test "X$prefix" = "XNONE"; then
3522 acl_final_prefix="$ac_default_prefix"
3523 else
3524 acl_final_prefix="$prefix"
3525 fi
3526 if test "X$exec_prefix" = "XNONE"; then
3527 acl_final_exec_prefix='${prefix}'
3528 else
3529 acl_final_exec_prefix="$exec_prefix"
3530 fi
3531 acl_save_prefix="$prefix"
3532 prefix="$acl_final_prefix"
3533 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3534 prefix="$acl_save_prefix"
3535
3536
3537# Check whether --with-gnu-ld was given.
3538if test "${with_gnu_ld+set}" = set; then :
3539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3540else
3541 with_gnu_ld=no
3542fi
3543
3544# Prepare PATH_SEPARATOR.
3545# The user is always right.
3546if test "${PATH_SEPARATOR+set}" != set; then
3547 echo "#! /bin/sh" >conf$$.sh
3548 echo "exit 0" >>conf$$.sh
3549 chmod +x conf$$.sh
3550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3551 PATH_SEPARATOR=';'
3552 else
3553 PATH_SEPARATOR=:
3554 fi
3555 rm -f conf$$.sh
3556fi
3557ac_prog=ld
3558if test "$GCC" = yes; then
3559 # Check if gcc -print-prog-name=ld gives a path.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
3561$as_echo_n "checking for ld used by GCC... " >&6; }
3562 case $host in
3563 *-*-mingw*)
3564 # gcc leaves a trailing carriage return which upsets mingw
3565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3566 *)
3567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
dbadc56a 3568 esac
35fa52c0
DWT
3569 case $ac_prog in
3570 # Accept absolute paths.
3571 [\\/]* | [A-Za-z]:[\\/]*)
3572 re_direlt='/[^/][^/]*/\.\./'
3573 # Canonicalize the path of ld
3574 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3575 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3576 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3577 done
3578 test -z "$LD" && LD="$ac_prog"
3579 ;;
3580 "")
3581 # If it fails, then pretend we aren't using GCC.
3582 ac_prog=ld
3583 ;;
3584 *)
3585 # If it is relative, then search for the first ld in PATH.
3586 with_gnu_ld=unknown
3587 ;;
3588 esac
3589elif test "$with_gnu_ld" = yes; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3591$as_echo_n "checking for GNU ld... " >&6; }
3592else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3594$as_echo_n "checking for non-GNU ld... " >&6; }
3595fi
3596if test "${acl_cv_path_LD+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598else
3599 if test -z "$LD"; then
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3601 for ac_dir in $PATH; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3604 acl_cv_path_LD="$ac_dir/$ac_prog"
3605 # Check to see if the program is GNU ld. I'd rather use --version,
3606 # but apparently some GNU ld's only accept -v.
3607 # Break only if it was the GNU/non-GNU ld that we prefer.
3608 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3609 *GNU* | *'with BFD'*)
3610 test "$with_gnu_ld" != no && break ;;
3611 *)
3612 test "$with_gnu_ld" != yes && break ;;
3613 esac
3614 fi
3615 done
3616 IFS="$ac_save_ifs"
3617else
3618 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3619fi
3620fi
3621
3622LD="$acl_cv_path_LD"
3623if test -n "$LD"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3625$as_echo "$LD" >&6; }
3626else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3632$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3633if test "${acl_cv_prog_gnu_ld+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635else
3636 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3637case `$LD -v 2>&1 </dev/null` in
3638*GNU* | *'with BFD'*)
3639 acl_cv_prog_gnu_ld=yes ;;
3640*)
3641 acl_cv_prog_gnu_ld=no ;;
3642esac
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3645$as_echo "$acl_cv_prog_gnu_ld" >&6; }
3646with_gnu_ld=$acl_cv_prog_gnu_ld
3647
3648
3649
3650
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
3652$as_echo_n "checking for shared library run path origin... " >&6; }
3653if test "${acl_cv_rpath+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655else
3656
3657 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3658 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3659 . ./conftest.sh
3660 rm -f ./conftest.sh
3661 acl_cv_rpath=done
3662
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
3665$as_echo "$acl_cv_rpath" >&6; }
3666 wl="$acl_cv_wl"
3667 acl_libext="$acl_cv_libext"
3668 acl_shlibext="$acl_cv_shlibext"
3669 acl_libname_spec="$acl_cv_libname_spec"
3670 acl_library_names_spec="$acl_cv_library_names_spec"
3671 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3672 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3673 acl_hardcode_direct="$acl_cv_hardcode_direct"
3674 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3675 # Check whether --enable-rpath was given.
3676if test "${enable_rpath+set}" = set; then :
3677 enableval=$enable_rpath; :
3678else
3679 enable_rpath=yes
3680fi
3681
3682
3683
3684 acl_libdirstem=lib
3685 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3686 if test -n "$searchpath"; then
3687 acl_save_IFS="${IFS= }"; IFS=":"
3688 for searchdir in $searchpath; do
3689 if test -d "$searchdir"; then
3690 case "$searchdir" in
3691 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3692 *) searchdir=`cd "$searchdir" && pwd`
3693 case "$searchdir" in
3694 */lib64 ) acl_libdirstem=lib64 ;;
3695 esac ;;
3696 esac
3697 fi
3698 done
3699 IFS="$acl_save_IFS"
3700 fi
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 use_additional=yes
3711
3712 acl_save_prefix="$prefix"
3713 prefix="$acl_final_prefix"
3714 acl_save_exec_prefix="$exec_prefix"
3715 exec_prefix="$acl_final_exec_prefix"
3716
3717 eval additional_includedir=\"$includedir\"
3718 eval additional_libdir=\"$libdir\"
3719
3720 exec_prefix="$acl_save_exec_prefix"
3721 prefix="$acl_save_prefix"
3722
3723
3724# Check whether --with-libiconv-prefix was given.
3725if test "${with_libiconv_prefix+set}" = set; then :
3726 withval=$with_libiconv_prefix;
3727 if test "X$withval" = "Xno"; then
3728 use_additional=no
3729 else
3730 if test "X$withval" = "X"; then
3731
3732 acl_save_prefix="$prefix"
3733 prefix="$acl_final_prefix"
3734 acl_save_exec_prefix="$exec_prefix"
3735 exec_prefix="$acl_final_exec_prefix"
3736
3737 eval additional_includedir=\"$includedir\"
3738 eval additional_libdir=\"$libdir\"
3739
3740 exec_prefix="$acl_save_exec_prefix"
3741 prefix="$acl_save_prefix"
3742
3743 else
3744 additional_includedir="$withval/include"
3745 additional_libdir="$withval/$acl_libdirstem"
3746 fi
3747 fi
3748
3749fi
dbadc56a 3750
35fa52c0
DWT
3751 LIBICONV=
3752 LTLIBICONV=
3753 INCICONV=
3754 LIBICONV_PREFIX=
3755 rpathdirs=
3756 ltrpathdirs=
3757 names_already_handled=
3758 names_next_round='iconv '
3759 while test -n "$names_next_round"; do
3760 names_this_round="$names_next_round"
3761 names_next_round=
3762 for name in $names_this_round; do
3763 already_handled=
3764 for n in $names_already_handled; do
3765 if test "$n" = "$name"; then
3766 already_handled=yes
3767 break
3768 fi
3769 done
3770 if test -z "$already_handled"; then
3771 names_already_handled="$names_already_handled $name"
3772 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3773 eval value=\"\$HAVE_LIB$uppername\"
3774 if test -n "$value"; then
3775 if test "$value" = yes; then
3776 eval value=\"\$LIB$uppername\"
3777 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3778 eval value=\"\$LTLIB$uppername\"
3779 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3780 else
3781 :
3782 fi
3783 else
3784 found_dir=
3785 found_la=
3786 found_so=
3787 found_a=
3788 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3789 if test -n "$acl_shlibext"; then
3790 shrext=".$acl_shlibext" # typically: shrext=.so
3791 else
3792 shrext=
3793 fi
3794 if test $use_additional = yes; then
3795 dir="$additional_libdir"
3796 if test -n "$acl_shlibext"; then
3797 if test -f "$dir/$libname$shrext"; then
3798 found_dir="$dir"
3799 found_so="$dir/$libname$shrext"
3800 else
3801 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3802 ver=`(cd "$dir" && \
3803 for f in "$libname$shrext".*; do echo "$f"; done \
3804 | sed -e "s,^$libname$shrext\\\\.,," \
3805 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3806 | sed 1q ) 2>/dev/null`
3807 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3808 found_dir="$dir"
3809 found_so="$dir/$libname$shrext.$ver"
3810 fi
3811 else
3812 eval library_names=\"$acl_library_names_spec\"
3813 for f in $library_names; do
3814 if test -f "$dir/$f"; then
3815 found_dir="$dir"
3816 found_so="$dir/$f"
3817 break
3818 fi
3819 done
3820 fi
3821 fi
3822 fi
3823 if test "X$found_dir" = "X"; then
3824 if test -f "$dir/$libname.$acl_libext"; then
3825 found_dir="$dir"
3826 found_a="$dir/$libname.$acl_libext"
3827 fi
3828 fi
3829 if test "X$found_dir" != "X"; then
3830 if test -f "$dir/$libname.la"; then
3831 found_la="$dir/$libname.la"
3832 fi
3833 fi
3834 fi
3835 if test "X$found_dir" = "X"; then
3836 for x in $LDFLAGS $LTLIBICONV; do
3837
3838 acl_save_prefix="$prefix"
3839 prefix="$acl_final_prefix"
3840 acl_save_exec_prefix="$exec_prefix"
3841 exec_prefix="$acl_final_exec_prefix"
3842 eval x=\"$x\"
3843 exec_prefix="$acl_save_exec_prefix"
3844 prefix="$acl_save_prefix"
3845
3846 case "$x" in
3847 -L*)
3848 dir=`echo "X$x" | sed -e 's/^X-L//'`
3849 if test -n "$acl_shlibext"; then
3850 if test -f "$dir/$libname$shrext"; then
3851 found_dir="$dir"
3852 found_so="$dir/$libname$shrext"
3853 else
3854 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3855 ver=`(cd "$dir" && \
3856 for f in "$libname$shrext".*; do echo "$f"; done \
3857 | sed -e "s,^$libname$shrext\\\\.,," \
3858 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3859 | sed 1q ) 2>/dev/null`
3860 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3861 found_dir="$dir"
3862 found_so="$dir/$libname$shrext.$ver"
3863 fi
3864 else
3865 eval library_names=\"$acl_library_names_spec\"
3866 for f in $library_names; do
3867 if test -f "$dir/$f"; then
3868 found_dir="$dir"
3869 found_so="$dir/$f"
3870 break
3871 fi
3872 done
3873 fi
3874 fi
3875 fi
3876 if test "X$found_dir" = "X"; then
3877 if test -f "$dir/$libname.$acl_libext"; then
3878 found_dir="$dir"
3879 found_a="$dir/$libname.$acl_libext"
3880 fi
3881 fi
3882 if test "X$found_dir" != "X"; then
3883 if test -f "$dir/$libname.la"; then
3884 found_la="$dir/$libname.la"
3885 fi
3886 fi
3887 ;;
3888 esac
3889 if test "X$found_dir" != "X"; then
3890 break
3891 fi
3892 done
3893 fi
3894 if test "X$found_dir" != "X"; then
3895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3896 if test "X$found_so" != "X"; then
3897 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
3898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3899 else
3900 haveit=
3901 for x in $ltrpathdirs; do
3902 if test "X$x" = "X$found_dir"; then
3903 haveit=yes
3904 break
3905 fi
3906 done
3907 if test -z "$haveit"; then
3908 ltrpathdirs="$ltrpathdirs $found_dir"
3909 fi
3910 if test "$acl_hardcode_direct" = yes; then
3911 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3912 else
3913 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
3914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3915 haveit=
3916 for x in $rpathdirs; do
3917 if test "X$x" = "X$found_dir"; then
3918 haveit=yes
3919 break
3920 fi
3921 done
3922 if test -z "$haveit"; then
3923 rpathdirs="$rpathdirs $found_dir"
3924 fi
3925 else
3926 haveit=
3927 for x in $LDFLAGS $LIBICONV; do
3928
3929 acl_save_prefix="$prefix"
3930 prefix="$acl_final_prefix"
3931 acl_save_exec_prefix="$exec_prefix"
3932 exec_prefix="$acl_final_exec_prefix"
3933 eval x=\"$x\"
3934 exec_prefix="$acl_save_exec_prefix"
3935 prefix="$acl_save_prefix"
3936
3937 if test "X$x" = "X-L$found_dir"; then
3938 haveit=yes
3939 break
3940 fi
3941 done
3942 if test -z "$haveit"; then
3943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3944 fi
3945 if test "$acl_hardcode_minus_L" != no; then
3946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3947 else
3948 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3949 fi
3950 fi
3951 fi
3952 fi
3953 else
3954 if test "X$found_a" != "X"; then
3955 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3956 else
3957 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3958 fi
3959 fi
3960 additional_includedir=
3961 case "$found_dir" in
3962 */$acl_libdirstem | */$acl_libdirstem/)
3963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
3964 LIBICONV_PREFIX="$basedir"
3965 additional_includedir="$basedir/include"
3966 ;;
3967 esac
3968 if test "X$additional_includedir" != "X"; then
3969 if test "X$additional_includedir" != "X/usr/include"; then
3970 haveit=
3971 if test "X$additional_includedir" = "X/usr/local/include"; then
3972 if test -n "$GCC"; then
3973 case $host_os in
3974 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3975 esac
3976 fi
3977 fi
3978 if test -z "$haveit"; then
3979 for x in $CPPFLAGS $INCICONV; do
3980
3981 acl_save_prefix="$prefix"
3982 prefix="$acl_final_prefix"
3983 acl_save_exec_prefix="$exec_prefix"
3984 exec_prefix="$acl_final_exec_prefix"
3985 eval x=\"$x\"
3986 exec_prefix="$acl_save_exec_prefix"
3987 prefix="$acl_save_prefix"
3988
3989 if test "X$x" = "X-I$additional_includedir"; then
3990 haveit=yes
3991 break
3992 fi
3993 done
3994 if test -z "$haveit"; then
3995 if test -d "$additional_includedir"; then
3996 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3997 fi
3998 fi
3999 fi
4000 fi
4001 fi
4002 if test -n "$found_la"; then
4003 save_libdir="$libdir"
4004 case "$found_la" in
4005 */* | *\\*) . "$found_la" ;;
4006 *) . "./$found_la" ;;
4007 esac
4008 libdir="$save_libdir"
4009 for dep in $dependency_libs; do
4010 case "$dep" in
4011 -L*)
4012 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4013 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4014 haveit=
4015 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4016 if test -n "$GCC"; then
4017 case $host_os in
4018 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4019 esac
4020 fi
4021 fi
4022 if test -z "$haveit"; then
4023 haveit=
4024 for x in $LDFLAGS $LIBICONV; do
4025
4026 acl_save_prefix="$prefix"
4027 prefix="$acl_final_prefix"
4028 acl_save_exec_prefix="$exec_prefix"
4029 exec_prefix="$acl_final_exec_prefix"
4030 eval x=\"$x\"
4031 exec_prefix="$acl_save_exec_prefix"
4032 prefix="$acl_save_prefix"
4033
4034 if test "X$x" = "X-L$additional_libdir"; then
4035 haveit=yes
4036 break
4037 fi
4038 done
4039 if test -z "$haveit"; then
4040 if test -d "$additional_libdir"; then
4041 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4042 fi
4043 fi
4044 haveit=
4045 for x in $LDFLAGS $LTLIBICONV; do
4046
4047 acl_save_prefix="$prefix"
4048 prefix="$acl_final_prefix"
4049 acl_save_exec_prefix="$exec_prefix"
4050 exec_prefix="$acl_final_exec_prefix"
4051 eval x=\"$x\"
4052 exec_prefix="$acl_save_exec_prefix"
4053 prefix="$acl_save_prefix"
4054
4055 if test "X$x" = "X-L$additional_libdir"; then
4056 haveit=yes
4057 break
4058 fi
4059 done
4060 if test -z "$haveit"; then
4061 if test -d "$additional_libdir"; then
4062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4063 fi
4064 fi
4065 fi
4066 fi
4067 ;;
4068 -R*)
4069 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4070 if test "$enable_rpath" != no; then
4071 haveit=
4072 for x in $rpathdirs; do
4073 if test "X$x" = "X$dir"; then
4074 haveit=yes
4075 break
4076 fi
4077 done
4078 if test -z "$haveit"; then
4079 rpathdirs="$rpathdirs $dir"
4080 fi
4081 haveit=
4082 for x in $ltrpathdirs; do
4083 if test "X$x" = "X$dir"; then
4084 haveit=yes
4085 break
4086 fi
4087 done
4088 if test -z "$haveit"; then
4089 ltrpathdirs="$ltrpathdirs $dir"
4090 fi
4091 fi
4092 ;;
4093 -l*)
4094 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4095 ;;
4096 *.la)
4097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4098 ;;
4099 *)
4100 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4102 ;;
4103 esac
4104 done
4105 fi
4106 else
4107 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4109 fi
4110 fi
4111 fi
4112 done
4113 done
4114 if test "X$rpathdirs" != "X"; then
4115 if test -n "$acl_hardcode_libdir_separator"; then
4116 alldirs=
4117 for found_dir in $rpathdirs; do
4118 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4119 done
4120 acl_save_libdir="$libdir"
4121 libdir="$alldirs"
4122 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4123 libdir="$acl_save_libdir"
4124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4125 else
4126 for found_dir in $rpathdirs; do
4127 acl_save_libdir="$libdir"
4128 libdir="$found_dir"
4129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4130 libdir="$acl_save_libdir"
4131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4132 done
4133 fi
4134 fi
4135 if test "X$ltrpathdirs" != "X"; then
4136 for found_dir in $ltrpathdirs; do
4137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4138 done
4139 fi
4140
4141
4142
4143
4144
4145
4146
4147 am_save_CPPFLAGS="$CPPFLAGS"
4148
4149 for element in $INCICONV; do
4150 haveit=
4151 for x in $CPPFLAGS; do
4152
4153 acl_save_prefix="$prefix"
4154 prefix="$acl_final_prefix"
4155 acl_save_exec_prefix="$exec_prefix"
4156 exec_prefix="$acl_final_exec_prefix"
4157 eval x=\"$x\"
4158 exec_prefix="$acl_save_exec_prefix"
4159 prefix="$acl_save_prefix"
4160
4161 if test "X$x" = "X$element"; then
4162 haveit=yes
4163 break
4164 fi
4165 done
4166 if test -z "$haveit"; then
4167 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4168 fi
4169 done
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4173$as_echo_n "checking for iconv... " >&6; }
4174if test "${am_cv_func_iconv+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176else
4177
4178 am_cv_func_iconv="no, consider installing GNU libiconv"
4179 am_cv_lib_iconv=no
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182#include <stdlib.h>
4183#include <iconv.h>
4184int
4185main ()
4186{
4187iconv_t cd = iconv_open("","");
4188 iconv(cd,NULL,NULL,NULL,NULL);
4189 iconv_close(cd);
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_link "$LINENO"; then :
4195 am_cv_func_iconv=yes
4196fi
4197rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 if test "$am_cv_func_iconv" != yes; then
4200 am_save_LIBS="$LIBS"
4201 LIBS="$LIBS $LIBICONV"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
4204#include <stdlib.h>
4205#include <iconv.h>
4206int
4207main ()
4208{
4209iconv_t cd = iconv_open("","");
4210 iconv(cd,NULL,NULL,NULL,NULL);
4211 iconv_close(cd);
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216if ac_fn_c_try_link "$LINENO"; then :
4217 am_cv_lib_iconv=yes
4218 am_cv_func_iconv=yes
4219fi
4220rm -f core conftest.err conftest.$ac_objext \
4221 conftest$ac_exeext conftest.$ac_ext
4222 LIBS="$am_save_LIBS"
4223 fi
4224
4225fi
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4227$as_echo "$am_cv_func_iconv" >&6; }
4228 if test "$am_cv_func_iconv" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
4230$as_echo_n "checking for working iconv... " >&6; }
4231if test "${am_cv_func_iconv_works+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233else
4234
4235 am_save_LIBS="$LIBS"
4236 if test $am_cv_lib_iconv = yes; then
4237 LIBS="$LIBS $LIBICONV"
4238 fi
4239 if test "$cross_compiling" = yes; then :
4240 case "$host_os" in
4241 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4242 *) am_cv_func_iconv_works="guessing yes" ;;
4243 esac
4244else
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h. */
4247
4248#include <iconv.h>
4249#include <string.h>
4250int main ()
4251{
4252 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4253 returns. */
4254 {
4255 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4256 if (cd_utf8_to_88591 != (iconv_t)(-1))
4257 {
4258 static const char input[] = "\342\202\254"; /* EURO SIGN */
4259 char buf[10];
4260 const char *inptr = input;
4261 size_t inbytesleft = strlen (input);
4262 char *outptr = buf;
4263 size_t outbytesleft = sizeof (buf);
4264 size_t res = iconv (cd_utf8_to_88591,
4265 (char **) &inptr, &inbytesleft,
4266 &outptr, &outbytesleft);
4267 if (res == 0)
4268 return 1;
4269 }
4270 }
4271#if 0 /* This bug could be worked around by the caller. */
4272 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4273 {
4274 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4275 if (cd_88591_to_utf8 != (iconv_t)(-1))
4276 {
4277 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4278 char buf[50];
4279 const char *inptr = input;
4280 size_t inbytesleft = strlen (input);
4281 char *outptr = buf;
4282 size_t outbytesleft = sizeof (buf);
4283 size_t res = iconv (cd_88591_to_utf8,
4284 (char **) &inptr, &inbytesleft,
4285 &outptr, &outbytesleft);
4286 if ((int)res > 0)
4287 return 1;
4288 }
4289 }
4290#endif
4291 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4292 provided. */
4293 if (/* Try standardized names. */
4294 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4295 /* Try IRIX, OSF/1 names. */
4296 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4297 /* Try AIX names. */
4298 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4299 /* Try HP-UX names. */
4300 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4301 return 1;
4302 return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_run "$LINENO"; then :
4306 am_cv_func_iconv_works=yes
4307else
4308 am_cv_func_iconv_works=no
4309fi
4310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4311 conftest.$ac_objext conftest.beam conftest.$ac_ext
4312fi
4313
4314 LIBS="$am_save_LIBS"
4315
4316fi
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
4318$as_echo "$am_cv_func_iconv_works" >&6; }
4319 case "$am_cv_func_iconv_works" in
4320 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4321 *) am_func_iconv=yes ;;
4322 esac
4323 else
4324 am_func_iconv=no am_cv_lib_iconv=no
4325 fi
4326 if test "$am_func_iconv" = yes; then
4327
4328$as_echo "#define HAVE_ICONV 1" >>confdefs.h
4329
4330 fi
4331 if test "$am_cv_lib_iconv" = yes; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4333$as_echo_n "checking how to link with libiconv... " >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4335$as_echo "$LIBICONV" >&6; }
4336 else
4337 CPPFLAGS="$am_save_CPPFLAGS"
4338 LIBICONV=
4339 LTLIBICONV=
4340 fi
4341
4342
4343
4344 if test "$am_cv_func_iconv" = yes; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
4346$as_echo_n "checking for iconv declaration... " >&6; }
4347 if test "${am_cv_proto_iconv+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h. */
4353
4354#include <stdlib.h>
4355#include <iconv.h>
4356extern
4357#ifdef __cplusplus
4358"C"
4359#endif
4360#if defined(__STDC__) || defined(__cplusplus)
4361size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4362#else
4363size_t iconv();
4364#endif
4365
4366int
4367main ()
4368{
4369
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375 am_cv_proto_iconv_arg1=""
4376else
4377 am_cv_proto_iconv_arg1="const"
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 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);"
4381fi
4382
4383 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
4385 }$am_cv_proto_iconv" >&5
4386$as_echo "${ac_t:-
4387 }$am_cv_proto_iconv" >&6; }
4388
4389cat >>confdefs.h <<_ACEOF
4390#define ICONV_CONST $am_cv_proto_iconv_arg1
4391_ACEOF
4392
4393 fi
4394
4395case $am_cv_func_iconv in #(
4396 yes) :
4397 ;; #(
4398 *) :
4399 as_fn_error "You need iconv" "$LINENO" 5 ;;
dbadc56a 4400esac
35fa52c0
DWT
4401
4402
4403if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4406set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 case $PKG_CONFIG in
4413 [\\/]* | ?:[\\/]*)
4414 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4415 ;;
4416 *)
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
dbadc56a 4419do
35fa52c0
DWT
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
dbadc56a 4428done
35fa52c0
DWT
4429 done
4430IFS=$as_save_IFS
dbadc56a 4431
35fa52c0
DWT
4432 ;;
4433esac
4434fi
4435PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4436if test -n "$PKG_CONFIG"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4438$as_echo "$PKG_CONFIG" >&6; }
dbadc56a 4439else
35fa52c0
DWT
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
dbadc56a 4442fi
dbadc56a 4443
35fa52c0 4444
dbadc56a 4445fi
35fa52c0
DWT
4446if test -z "$ac_cv_path_PKG_CONFIG"; then
4447 ac_pt_PKG_CONFIG=$PKG_CONFIG
4448 # Extract the first word of "pkg-config", so it can be a program name with args.
4449set dummy pkg-config; ac_word=$2
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451$as_echo_n "checking for $ac_word... " >&6; }
4452if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454else
4455 case $ac_pt_PKG_CONFIG in
4456 [\\/]* | ?:[\\/]*)
4457 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4458 ;;
4459 *)
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471done
4472 done
4473IFS=$as_save_IFS
dbadc56a 4474
35fa52c0 4475 ;;
dbadc56a 4476esac
35fa52c0
DWT
4477fi
4478ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4479if test -n "$ac_pt_PKG_CONFIG"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4481$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487 if test "x$ac_pt_PKG_CONFIG" = x; then
4488 PKG_CONFIG=""
dbadc56a 4489 else
35fa52c0
DWT
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494ac_tool_warned=yes ;;
4495esac
4496 PKG_CONFIG=$ac_pt_PKG_CONFIG
dbadc56a 4497 fi
35fa52c0
DWT
4498else
4499 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
dbadc56a 4500fi
35fa52c0
DWT
4501
4502fi
4503if test -n "$PKG_CONFIG"; then
4504 _pkg_min_version=0.9.0
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4506$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4507 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
dbadc56a 4509$as_echo "yes" >&6; }
35fa52c0
DWT
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
4513 PKG_CONFIG=""
4514 fi
dbadc56a 4515
35fa52c0
DWT
4516fi
4517
4518pkg_failed=no
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4520$as_echo_n "checking for WEBKIT... " >&6; }
dbadc56a 4521
35fa52c0
DWT
4522if test -n "$PKG_CONFIG"; then
4523 if test -n "$WEBKIT_CFLAGS"; then
4524 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4525 else
4526 if test -n "$PKG_CONFIG" && \
4527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4528 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
dbadc56a
DWT
4529 ac_status=$?
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35fa52c0
DWT
4531 test $ac_status = 0; }; then
4532 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
dbadc56a 4533else
35fa52c0
DWT
4534 pkg_failed=yes
4535fi
4536 fi
4537else
4538 pkg_failed=untried
4539fi
4540if test -n "$PKG_CONFIG"; then
4541 if test -n "$WEBKIT_LIBS"; then
4542 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4543 else
4544 if test -n "$PKG_CONFIG" && \
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4546 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then
4550 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
4551else
4552 pkg_failed=yes
4553fi
4554 fi
4555else
4556 pkg_failed=untried
dbadc56a 4557fi
dbadc56a 4558
35fa52c0
DWT
4559
4560
4561if test $pkg_failed = yes; then
4562
4563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4564 _pkg_short_errors_supported=yes
dbadc56a 4565else
35fa52c0
DWT
4566 _pkg_short_errors_supported=no
4567fi
4568 if test $_pkg_short_errors_supported = yes; then
4569 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
4570 else
4571 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
4572 fi
4573 # Put the nasty error message in config.log where it belongs
4574 echo "$WEBKIT_PKG_ERRORS" >&5
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
dbadc56a 4578
dbadc56a 4579
35fa52c0
DWT
4580pkg_failed=no
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4582$as_echo_n "checking for WEBKIT... " >&6; }
4583
4584if test -n "$PKG_CONFIG"; then
4585 if test -n "$WEBKIT_CFLAGS"; then
4586 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4587 else
4588 if test -n "$PKG_CONFIG" && \
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4590 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
dbadc56a
DWT
4591 ac_status=$?
4592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35fa52c0
DWT
4593 test $ac_status = 0; }; then
4594 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
dbadc56a 4595else
35fa52c0 4596 pkg_failed=yes
dbadc56a 4597fi
35fa52c0
DWT
4598 fi
4599else
4600 pkg_failed=untried
dbadc56a 4601fi
35fa52c0
DWT
4602if test -n "$PKG_CONFIG"; then
4603 if test -n "$WEBKIT_LIBS"; then
4604 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4605 else
4606 if test -n "$PKG_CONFIG" && \
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4608 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }; then
4612 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
dbadc56a 4613else
35fa52c0
DWT
4614 pkg_failed=yes
4615fi
4616 fi
4617else
4618 pkg_failed=untried
4619fi
dbadc56a 4620
dbadc56a 4621
35fa52c0
DWT
4622
4623if test $pkg_failed = yes; then
4624
4625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4626 _pkg_short_errors_supported=yes
dbadc56a 4627else
35fa52c0
DWT
4628 _pkg_short_errors_supported=no
4629fi
4630 if test $_pkg_short_errors_supported = yes; then
4631 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4632 else
4633 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4634 fi
4635 # Put the nasty error message in config.log where it belongs
4636 echo "$WEBKIT_PKG_ERRORS" >&5
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640 WEBKIT=no
4641elif test $pkg_failed = untried; then
4642 WEBKIT=no
4643else
4644 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4645 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647$as_echo "yes" >&6; }
4648 WEBKIT=yes
dbadc56a 4649fi
dbadc56a 4650
35fa52c0
DWT
4651elif test $pkg_failed = untried; then
4652
4653
4654pkg_failed=no
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4656$as_echo_n "checking for WEBKIT... " >&6; }
4657
4658if test -n "$PKG_CONFIG"; then
4659 if test -n "$WEBKIT_CFLAGS"; then
4660 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4661 else
4662 if test -n "$PKG_CONFIG" && \
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4664 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4665 ac_status=$?
4666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; }; then
4668 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
4669else
4670 pkg_failed=yes
dbadc56a 4671fi
35fa52c0 4672 fi
dbadc56a 4673else
35fa52c0 4674 pkg_failed=untried
dbadc56a 4675fi
35fa52c0
DWT
4676if test -n "$PKG_CONFIG"; then
4677 if test -n "$WEBKIT_LIBS"; then
4678 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4679 else
4680 if test -n "$PKG_CONFIG" && \
4681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4682 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }; then
4686 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
dbadc56a 4687else
35fa52c0
DWT
4688 pkg_failed=yes
4689fi
4690 fi
4691else
4692 pkg_failed=untried
4693fi
dbadc56a 4694
dbadc56a 4695
dbadc56a 4696
35fa52c0 4697if test $pkg_failed = yes; then
dbadc56a 4698
35fa52c0
DWT
4699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4700 _pkg_short_errors_supported=yes
4701else
4702 _pkg_short_errors_supported=no
4703fi
4704 if test $_pkg_short_errors_supported = yes; then
4705 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4706 else
4707 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4708 fi
4709 # Put the nasty error message in config.log where it belongs
4710 echo "$WEBKIT_PKG_ERRORS" >&5
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714 WEBKIT=no
4715elif test $pkg_failed = untried; then
4716 WEBKIT=no
4717else
4718 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4719 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721$as_echo "yes" >&6; }
4722 WEBKIT=yes
4723fi
dbadc56a
DWT
4724
4725else
35fa52c0
DWT
4726 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4727 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4729$as_echo "yes" >&6; }
4730 WEBKIT=yes
4731fi
4732case $WEBKIT in #(
4733 yes) :
dbadc56a 4734
dbadc56a 4735
35fa52c0
DWT
4736pkg_failed=no
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
4738$as_echo_n "checking for LIBFFI... " >&6; }
4739
4740if test -n "$PKG_CONFIG"; then
4741 if test -n "$LIBFFI_CFLAGS"; then
4742 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
4743 else
4744 if test -n "$PKG_CONFIG" && \
4745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4746 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then
4750 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
4751else
4752 pkg_failed=yes
dbadc56a 4753fi
35fa52c0
DWT
4754 fi
4755else
4756 pkg_failed=untried
dbadc56a 4757fi
35fa52c0
DWT
4758if test -n "$PKG_CONFIG"; then
4759 if test -n "$LIBFFI_LIBS"; then
4760 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
4761 else
4762 if test -n "$PKG_CONFIG" && \
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4764 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4765 ac_status=$?
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }; then
4768 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
4769else
4770 pkg_failed=yes
dbadc56a 4771fi
35fa52c0
DWT
4772 fi
4773else
4774 pkg_failed=untried
dbadc56a 4775fi
35fa52c0
DWT
4776
4777
4778
4779if test $pkg_failed = yes; then
4780
4781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4782 _pkg_short_errors_supported=yes
dbadc56a 4783else
35fa52c0 4784 _pkg_short_errors_supported=no
dbadc56a 4785fi
35fa52c0
DWT
4786 if test $_pkg_short_errors_supported = yes; then
4787 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
4788 else
4789 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
4790 fi
4791 # Put the nasty error message in config.log where it belongs
4792 echo "$LIBFFI_PKG_ERRORS" >&5
4793
4794 as_fn_error "Package requirements (libffi) were not met:
4795
4796$LIBFFI_PKG_ERRORS
4797
4798Consider adjusting the PKG_CONFIG_PATH environment variable if you
4799installed software in a non-standard prefix.
4800
4801Alternatively, you may set the environment variables LIBFFI_CFLAGS
4802and LIBFFI_LIBS to avoid the need to call pkg-config.
4803See the pkg-config man page for more details.
4804" "$LINENO" 5
4805elif test $pkg_failed = untried; then
4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4808as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4809is in your PATH or set the PKG_CONFIG environment variable to the full
4810path to pkg-config.
4811
4812Alternatively, you may set the environment variables LIBFFI_CFLAGS
4813and LIBFFI_LIBS to avoid the need to call pkg-config.
4814See the pkg-config man page for more details.
dbadc56a 4815
35fa52c0
DWT
4816To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4817See \`config.log' for more details." "$LINENO" 5; }
4818else
4819 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
4820 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822$as_echo "yes" >&6; }
4823 :
4824fi
4825 ;; #(
4826 *) :
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
4828$as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;;
4829esac
4830# XXX: gnustep
4831#AC_PROG_OBJCXX()