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