]> git.saurik.com Git - cycript.git/blob - configure
Check for APR and GNU make.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 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.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='Cycript'
551 PACKAGE_TARNAME='cycript'
552 PACKAGE_VERSION='0.9'
553 PACKAGE_STRING='Cycript 0.9'
554 PACKAGE_BUGREPORT='saurik@saurik.com'
555 PACKAGE_URL='http://www.cycript.org/'
556
557 ac_unique_file="Console.cpp"
558 ac_subst_vars='ifGNUmake
559 LIBFFI_LIBS
560 LIBFFI_CFLAGS
561 WEBKIT_LIBS
562 WEBKIT_CFLAGS
563 PKG_CONFIG
564 LTLIBICONV
565 LIBICONV
566 host_os
567 host_vendor
568 host_cpu
569 host
570 build_os
571 build_vendor
572 build_cpu
573 build
574 INSTALL_DATA
575 INSTALL_SCRIPT
576 INSTALL_PROGRAM
577 ac_ct_CXX
578 CXXFLAGS
579 CXX
580 APR
581 FLEX
582 LEXLIB
583 OBJEXT
584 EXEEXT
585 ac_ct_CC
586 CPPFLAGS
587 LDFLAGS
588 CFLAGS
589 CC
590 LEX_OUTPUT_ROOT
591 LEX
592 BISON
593 AWK
594 SED
595 YFLAGS
596 YACC
597 target_alias
598 host_alias
599 build_alias
600 LIBS
601 ECHO_T
602 ECHO_N
603 ECHO_C
604 DEFS
605 mandir
606 localedir
607 libdir
608 psdir
609 pdfdir
610 dvidir
611 htmldir
612 infodir
613 docdir
614 oldincludedir
615 includedir
616 localstatedir
617 sharedstatedir
618 sysconfdir
619 datadir
620 datarootdir
621 libexecdir
622 sbindir
623 bindir
624 program_transform_name
625 prefix
626 exec_prefix
627 PACKAGE_URL
628 PACKAGE_BUGREPORT
629 PACKAGE_STRING
630 PACKAGE_VERSION
631 PACKAGE_TARNAME
632 PACKAGE_NAME
633 PATH_SEPARATOR
634 SHELL'
635 ac_subst_files=''
636 ac_user_opts='
637 enable_option_checking
638 with_apr
639 with_gnu_ld
640 enable_rpath
641 with_libiconv_prefix
642 '
643 ac_precious_vars='build_alias
644 host_alias
645 target_alias
646 YACC
647 YFLAGS
648 CC
649 CFLAGS
650 LDFLAGS
651 LIBS
652 CPPFLAGS
653 CXX
654 CXXFLAGS
655 CCC
656 PKG_CONFIG
657 WEBKIT_CFLAGS
658 WEBKIT_LIBS
659 LIBFFI_CFLAGS
660 LIBFFI_LIBS'
661
662
663 # Initialize some variables set by options.
664 ac_init_help=
665 ac_init_version=false
666 ac_unrecognized_opts=
667 ac_unrecognized_sep=
668 # The variables have the same names as the options, with
669 # dashes changed to underlines.
670 cache_file=/dev/null
671 exec_prefix=NONE
672 no_create=
673 no_recursion=
674 prefix=NONE
675 program_prefix=NONE
676 program_suffix=NONE
677 program_transform_name=s,x,x,
678 silent=
679 site=
680 srcdir=
681 verbose=
682 x_includes=NONE
683 x_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.)
691 bindir='${exec_prefix}/bin'
692 sbindir='${exec_prefix}/sbin'
693 libexecdir='${exec_prefix}/libexec'
694 datarootdir='${prefix}/share'
695 datadir='${datarootdir}'
696 sysconfdir='${prefix}/etc'
697 sharedstatedir='${prefix}/com'
698 localstatedir='${prefix}/var'
699 includedir='${prefix}/include'
700 oldincludedir='/usr/include'
701 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
702 infodir='${datarootdir}/info'
703 htmldir='${docdir}'
704 dvidir='${docdir}'
705 pdfdir='${docdir}'
706 psdir='${docdir}'
707 libdir='${exec_prefix}/lib'
708 localedir='${datarootdir}/locale'
709 mandir='${datarootdir}/man'
710
711 ac_prev=
712 ac_dashdash=
713 for ac_option
714 do
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'
1046 Try \`$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
1068 done
1069
1070 if test -n "$ac_prev"; then
1071 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1072 as_fn_error "missing argument to $ac_option"
1073 fi
1074
1075 if 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
1081 fi
1082
1083 # Check all directory arguments for consistency.
1084 for 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
1088 do
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"
1102 done
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.
1107 build=$build_alias
1108 host=$host_alias
1109 target=$target_alias
1110
1111 # FIXME: To remove some day.
1112 if 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
1120 fi
1121
1122 ac_tool_prefix=
1123 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1124
1125 test "$silent" = yes && exec 6>/dev/null
1126
1127
1128 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1129 ac_ls_di=`ls -di .` &&
1130 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1131 as_fn_error "working directory cannot be determined"
1132 test "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.
1137 if 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
1167 else
1168 ac_srcdir_defaulted=no
1169 fi
1170 if 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"
1173 fi
1174 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1175 ac_abs_confdir=`(
1176 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1177 pwd)`
1178 # When building in place, set srcdir=.
1179 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 srcdir=.
1181 fi
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.
1185 case $srcdir in
1186 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 esac
1188 for 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}
1193 done
1194
1195 #
1196 # Report the --help message.
1197 #
1198 if 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
1204 Usage: $0 [OPTION]... [VAR=VALUE]...
1205
1206 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207 VAR=VALUE. See below for descriptions of some of the useful variables.
1208
1209 Defaults for the options are specified in brackets.
1210
1211 Configuration:
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
1222 Installation 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
1228 By default, \`make install' will install all the files in
1229 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231 for instance \`--prefix=\$HOME'.
1232
1233 For better control, use the options below.
1234
1235 Fine 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
1258
1259 System types:
1260 --build=BUILD configure for building on BUILD [guessed]
1261 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1262 _ACEOF
1263 fi
1264
1265 if 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
1271 Optional 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
1277 Optional Packages:
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --with-apr=PATH prefix for installed APR or the full path to
1281 apr-config
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
1286 Some influential environment variables:
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
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>
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
1308
1309 Use these variables to override the choices made by `configure' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1311
1312 Report bugs to <saurik@saurik.com>.
1313 Cycript home page: <http://www.cycript.org/>.
1314 _ACEOF
1315 ac_status=$?
1316 fi
1317
1318 if 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
1326 case "$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 ;;
1336 esac
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1341
1342 case $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 ;;
1355 esac
1356 ac_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
1371 fi
1372
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1375 cat <<\_ACEOF
1376 Cycript configure 0.9
1377 generated by GNU Autoconf 2.64
1378
1379 Copyright (C) 2009 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1382 _ACEOF
1383 exit
1384 fi
1385
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1389
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_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"
1398 case "(($ac_try" in
1399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1400 *) ac_try_echo=$ac_try;;
1401 esac
1402 eval 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
1417 else
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's/^/| /' conftest.$ac_ext >&5
1420
1421 ac_retval=1
1422 fi
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.
1431 ac_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"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval 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
1458 else
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.$ac_ext >&5
1461
1462 ac_retval=1
1463 fi
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
1474 # ac_fn_cxx_try_compile LINENO
1475 # ----------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_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"
1482 case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485 esac
1486 eval 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
1501 else
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1
1506 fi
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
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.
1516 ac_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"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval 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;;
1533 esac
1534 eval 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
1541 else
1542 $as_echo "$as_me: program exited with status $ac_status" >&5
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=$ac_status
1547 fi
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
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1556
1557 It was created by Cycript $as_me 0.9, which was
1558 generated by GNU Autoconf 2.64. Invocation command line was
1559
1560 $ $0 $@
1561
1562 _ACEOF
1563 exec 5>>config.log
1564 {
1565 cat <<_ASUNAME
1566 ## --------- ##
1567 ## Platform. ##
1568 ## --------- ##
1569
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -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
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 $as_echo "PATH: $as_dir"
1595 done
1596 IFS=$as_save_IFS
1597
1598 } >&5
1599
1600 cat >&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.
1615 ac_configure_args=
1616 ac_configure_args0=
1617 ac_configure_args1=
1618 ac_must_keep_next=false
1619 for ac_pass in 1 2
1620 do
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
1654 done
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.
1663 trap '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
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1760 done
1761 ac_signal=0
1762
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1765
1766 $as_echo "/* confdefs.h */" > confdefs.h
1767
1768 # Predefined preprocessor variables.
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 _ACEOF
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776 _ACEOF
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 _ACEOF
1789
1790 cat >>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.
1797 ac_site_file1=NONE
1798 ac_site_file2=NONE
1799 if test -n "$CONFIG_SITE"; then
1800 ac_site_file1=$CONFIG_SITE
1801 elif test "x$prefix" != xNONE; then
1802 ac_site_file1=$prefix/share/config.site
1803 ac_site_file2=$prefix/etc/config.site
1804 else
1805 ac_site_file1=$ac_default_prefix/share/config.site
1806 ac_site_file2=$ac_default_prefix/etc/config.site
1807 fi
1808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1809 do
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
1817 done
1818
1819 if 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
1830 else
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
1834 fi
1835
1836 # Check that the precious variables saved in the cache have kept the same
1837 # value.
1838 ac_cache_corrupted=false
1839 for 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
1885 done
1886 if $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
1892 fi
1893 ## -------------------- ##
1894 ## Main body of script. ##
1895 ## -------------------- ##
1896
1897 ac_ext=c
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
1905 for ac_prog in 'bison -y' byacc
1906 do
1907 # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1910 $as_echo_n "checking for $ac_word... " >&6; }
1911 if test "${ac_cv_prog_YACC+set}" = set; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 if test -n "$YACC"; then
1915 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
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
1924 ac_cv_prog_YACC="$ac_prog"
1925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1927 fi
1928 done
1929 done
1930 IFS=$as_save_IFS
1931
1932 fi
1933 fi
1934 YACC=$ac_cv_prog_YACC
1935 if test -n "$YACC"; then
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1937 $as_echo "$YACC" >&6; }
1938 else
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1940 $as_echo "no" >&6; }
1941 fi
1942
1943
1944 test -n "$YACC" && break
1945 done
1946 test -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; }
1950 if test "${ac_cv_path_SED+set}" = set; then :
1951 $as_echo_n "(cached) " >&6
1952 else
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
1963 for as_dir in $PATH
1964 do
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
1973 case `"$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;;
1997 esac
1998
1999 $ac_path_SED_found && break 3
2000 done
2001 done
2002 done
2003 IFS=$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
2007 else
2008 ac_cv_path_SED=$SED
2009 fi
2010
2011 fi
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; }
2023 if test "${ax_cv_prog_bison+set}" = set; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026
2027 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
2028
2029 ax_cv_prog_bison=yes
2030
2031 else
2032
2033 ax_cv_prog_bison=no
2034
2035 fi
2036
2037 fi
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
2048 else
2049
2050 :
2051 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2052
2053 fi
2054
2055 for ac_prog in gawk mawk nawk awk
2056 do
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set 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; }
2061 if test "${ac_cv_prog_AWK+set}" = set; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 if test -n "$AWK"; then
2065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
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
2074 ac_cv_prog_AWK="$ac_prog"
2075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078 done
2079 done
2080 IFS=$as_save_IFS
2081
2082 fi
2083 fi
2084 AWK=$ac_cv_prog_AWK
2085 if test -n "$AWK"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2087 $as_echo "$AWK" >&6; }
2088 else
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2090 $as_echo "no" >&6; }
2091 fi
2092
2093
2094 test -n "$AWK" && break
2095 done
2096
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; }
2099
2100
2101 # Used to indicate true or false condition
2102 ax_compare_version=false
2103
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.
2109
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'`
2115
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
2125 x$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
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if 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.
2147 set 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; }
2150 if test "${ac_cv_prog_CC+set}" = set; then :
2151 $as_echo_n "(cached) " >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
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
2167 done
2168 done
2169 IFS=$as_save_IFS
2170
2171 fi
2172 fi
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2176 $as_echo "$CC" >&6; }
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2179 $as_echo "no" >&6; }
2180 fi
2181
2182
2183 fi
2184 if 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.
2187 set 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; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
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
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 fi
2212 fi
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if 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; }
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2219 $as_echo "no" >&6; }
2220 fi
2221
2222 if test "x$ac_ct_CC" = x; then
2223 CC=""
2224 else
2225 case $cross_compiling:$ac_tool_warned in
2226 yes:)
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;}
2229 ac_tool_warned=yes ;;
2230 esac
2231 CC=$ac_ct_CC
2232 fi
2233 else
2234 CC="$ac_cv_prog_CC"
2235 fi
2236
2237 if 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.
2240 set 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; }
2243 if test "${ac_cv_prog_CC+set}" = set; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
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
2260 done
2261 done
2262 IFS=$as_save_IFS
2263
2264 fi
2265 fi
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2269 $as_echo "$CC" >&6; }
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2272 $as_echo "no" >&6; }
2273 fi
2274
2275
2276 fi
2277 fi
2278 if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set 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; }
2283 if test "${ac_cv_prog_CC+set}" = set; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 ac_prog_rejected=no
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
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
2305 done
2306 done
2307 IFS=$as_save_IFS
2308
2309 if 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
2320 fi
2321 fi
2322 fi
2323 CC=$ac_cv_prog_CC
2324 if test -n "$CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2326 $as_echo "$CC" >&6; }
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2330 fi
2331
2332
2333 fi
2334 if 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.
2339 set 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; }
2342 if test "${ac_cv_prog_CC+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
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
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 fi
2364 fi
2365 CC=$ac_cv_prog_CC
2366 if test -n "$CC"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2368 $as_echo "$CC" >&6; }
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371 $as_echo "no" >&6; }
2372 fi
2373
2374
2375 test -n "$CC" && break
2376 done
2377 fi
2378 if test -z "$CC"; then
2379 ac_ct_CC=$CC
2380 for ac_prog in cl.exe
2381 do
2382 # Extract the first word of "$ac_prog", so it can be a program name with args.
2383 set 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; }
2386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test -n "$ac_ct_CC"; then
2390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
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
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if 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; }
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2416 fi
2417
2418
2419 test -n "$ac_ct_CC" && break
2420 done
2421
2422 if test "x$ac_ct_CC" = x; then
2423 CC=""
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426 yes:)
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;}
2429 ac_tool_warned=yes ;;
2430 esac
2431 CC=$ac_ct_CC
2432 fi
2433 fi
2434
2435 fi
2436
2437
2438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error "no acceptable C compiler found in \$PATH
2441 See \`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
2445 set X $ac_compile
2446 ac_compiler=$2
2447 for ac_option in --version -v -V -qversion; do
2448 { { ac_try="$ac_compiler $ac_option >&5"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval 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; }
2466 done
2467
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 #include <stdio.h>
2471 int
2472 main ()
2473 {
2474 FILE *f = fopen ("conftest.out", "w");
2475 return ferror (f) || fclose (f) != 0;
2476
2477 ;
2478 return 0;
2479 }
2480 _ACEOF
2481 ac_clean_files_save=$ac_clean_files
2482 ac_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; }
2488 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2489
2490 # The possible output files:
2491 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2492
2493 ac_rmfiles=
2494 for ac_file in $ac_files
2495 do
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
2500 done
2501 rm -f $ac_rmfiles
2502
2503 if { { ac_try="$ac_link_default"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval 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.
2519 for ac_file in $ac_files ''
2520 do
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
2543 done
2544 test "$ac_cv_exeext" = no && ac_cv_exeext=
2545
2546 else
2547 ac_file=''
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2550 $as_echo "$ac_file" >&6; }
2551 if test -z "$ac_file"; then :
2552 $as_echo "$as_me: failed program was:" >&5
2553 sed '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
2558 as_fn_error "C compiler cannot create executables
2559 See \`config.log' for more details." "$LINENO" 5; }; }
2560 fi
2561 ac_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.
2568 if 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;;
2573 esac
2574 eval 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;}
2587 as_fn_error "cannot run C compiled programs.
2588 If you meant to cross compile, use \`--host'.
2589 See \`config.log' for more details." "$LINENO" 5; }
2590 fi
2591 fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2594 $as_echo "yes" >&6; }
2595
2596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2597 ac_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; }
2607 if { { ac_try="$ac_link"
2608 case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval 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'.
2622 for 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
2630 done
2631 else
2632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 as_fn_error "cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." "$LINENO" 5; }
2636 fi
2637 rm -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
2641 rm -f conftest.$ac_ext
2642 EXEEXT=$ac_cv_exeext
2643 ac_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; }
2646 if test "${ac_cv_objext+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2651
2652 int
2653 main ()
2654 {
2655
2656 ;
2657 return 0;
2658 }
2659 _ACEOF
2660 rm -f conftest.o conftest.obj
2661 if { { ac_try="$ac_compile"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval 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
2679 done
2680 else
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed '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;}
2686 as_fn_error "cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." "$LINENO" 5; }
2688 fi
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2692 $as_echo "$ac_cv_objext" >&6; }
2693 OBJEXT=$ac_cv_objext
2694 ac_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; }
2697 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702
2703 int
2704 main ()
2705 {
2706 #ifndef __GNUC__
2707 choke me
2708 #endif
2709
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_compiler_gnu=yes
2716 else
2717 ac_compiler_gnu=no
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2726 GCC=yes
2727 else
2728 GCC=
2729 fi
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_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; }
2734 if test "${ac_cv_prog_cc_g+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736 else
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
2744 int
2745 main ()
2746 {
2747
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_cv_prog_cc_g=yes
2754 else
2755 CFLAGS=""
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2758
2759 int
2760 main ()
2761 {
2762
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 if ac_fn_c_try_compile "$LINENO"; then :
2768
2769 else
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
2775 int
2776 main ()
2777 {
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_c_try_compile "$LINENO"; then :
2784 ac_cv_prog_cc_g=yes
2785 fi
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2794 $as_echo "$ac_cv_prog_cc_g" >&6; }
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif 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
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2808 fi
2809 fi
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; }
2812 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 ac_cv_prog_cc_c89=no
2816 ac_save_CC=$CC
2817 cat 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. */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2827 char **p;
2828 int i;
2829 {
2830 return p[i];
2831 }
2832 static 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. */
2849 int 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'
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2855
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2860 int argc;
2861 char **argv;
2862 int
2863 main ()
2864 {
2865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2872 do
2873 CC="$ac_save_CC $ac_arg"
2874 if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_cv_prog_cc_c89=$ac_arg
2876 fi
2877 rm -f core conftest.err conftest.$ac_objext
2878 test "x$ac_cv_prog_cc_c89" != "xno" && break
2879 done
2880 rm -f conftest.$ac_ext
2881 CC=$ac_save_CC
2882
2883 fi
2884 # AC_CACHE_VAL
2885 case "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; } ;;
2896 esac
2897 if test "x$ac_cv_prog_cc_c89" != xno; then :
2898
2899 fi
2900
2901 ac_ext=c
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906
2907
2908 for ac_prog in flex lex
2909 do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set 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; }
2914 if test "${ac_cv_prog_LEX+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$LEX"; then
2918 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
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
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 LEX=$ac_cv_prog_LEX
2938 if test -n "$LEX"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
2940 $as_echo "$LEX" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 test -n "$LEX" && break
2948 done
2949 test -n "$LEX" || LEX=":"
2950
2951 if test "x$LEX" != "x:"; then
2952 cat >conftest.l <<_ACEOF
2953 %%
2954 a { ECHO; }
2955 b { REJECT; }
2956 c { yymore (); }
2957 d { yyless (1); }
2958 e { yyless (input () != 0); }
2959 f { unput (yytext[0]); }
2960 . { BEGIN INITIAL; }
2961 %%
2962 #ifdef YYTEXT_POINTER
2963 extern char *yytext;
2964 #endif
2965 int
2966 main (void)
2967 {
2968 return ! yylex () + ! yywrap ();
2969 }
2970 _ACEOF
2971 { { ac_try="$LEX conftest.l"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval 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; }
2984 if test "${ac_cv_prog_lex_root+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987
2988 if test -f lex.yy.c; then
2989 ac_cv_prog_lex_root=lex.yy
2990 elif test -f lexyy.c; then
2991 ac_cv_prog_lex_root=lexyy
2992 else
2993 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
2997 $as_echo "$ac_cv_prog_lex_root" >&6; }
2998 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2999
3000 if 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; }
3003 if test "${ac_cv_lib_lex+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
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
3015 if ac_fn_c_try_link "$LINENO"; then :
3016 ac_cv_lib_lex=$ac_lib
3017 fi
3018 rm -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
3024 fi
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
3028 fi
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; }
3033 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
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.
3039 ac_cv_prog_lex_yytext_pointer=no
3040 ac_save_LIBS=$LIBS
3041 LIBS="$LEXLIB $ac_save_LIBS"
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3044 #define YYTEXT_POINTER 1
3045 `cat $LEX_OUTPUT_ROOT.c`
3046 _ACEOF
3047 if ac_fn_c_try_link "$LINENO"; then :
3048 ac_cv_prog_lex_yytext_pointer=yes
3049 fi
3050 rm -f core conftest.err conftest.$ac_objext \
3051 conftest$ac_exeext conftest.$ac_ext
3052 LIBS=$ac_save_LIBS
3053
3054 fi
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; }
3057 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3058
3059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3060
3061 fi
3062 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3063
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
3066 $as_echo_n "checking for flex... " >&6; }
3067 if 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
3073
3074 else
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
3080 fi
3081
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.
3110 if 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
3138 else
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
3182 fi
3183
3184
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
3186 $as_echo "$apr_found" >&6; }
3187
3188 case $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 ;;
3219 esac
3220 ac_ext=cpp
3221 ac_cpp='$CXXCPP $CPPFLAGS'
3222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3225 if 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.
3233 set 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; }
3236 if test "${ac_cv_prog_CXX+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$CXX"; then
3240 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
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
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 CXX=$ac_cv_prog_CXX
3260 if test -n "$CXX"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3262 $as_echo "$CXX" >&6; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 test -n "$CXX" && break
3270 done
3271 fi
3272 if 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
3275 do
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set 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; }
3280 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$ac_ct_CXX"; then
3284 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
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
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3304 if 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; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313 test -n "$ac_ct_CXX" && break
3314 done
3315
3316 if test "x$ac_ct_CXX" = x; then
3317 CXX="g++"
3318 else
3319 case $cross_compiling:$ac_tool_warned in
3320 yes:)
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;}
3323 ac_tool_warned=yes ;;
3324 esac
3325 CXX=$ac_ct_CXX
3326 fi
3327 fi
3328
3329 fi
3330 fi
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3333 set X $ac_compile
3334 ac_compiler=$2
3335 for ac_option in --version -v -V -qversion; do
3336 { { ac_try="$ac_compiler $ac_option >&5"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval 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; }
3354 done
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; }
3358 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367 #ifndef __GNUC__
3368 choke me
3369 #endif
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3376 ac_compiler_gnu=yes
3377 else
3378 ac_compiler_gnu=no
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3385 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3387 GXX=yes
3388 else
3389 GXX=
3390 fi
3391 ac_test_CXXFLAGS=${CXXFLAGS+set}
3392 ac_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; }
3395 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3397 else
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
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_cxx_try_compile "$LINENO"; then :
3414 ac_cv_prog_cxx_g=yes
3415 else
3416 CXXFLAGS=""
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_cxx_try_compile "$LINENO"; then :
3429
3430 else
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
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_cxx_try_compile "$LINENO"; then :
3445 ac_cv_prog_cxx_g=yes
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3455 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3456 if test "$ac_test_CXXFLAGS" = set; then
3457 CXXFLAGS=$ac_save_CXXFLAGS
3458 elif 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
3464 else
3465 if test "$GXX" = yes; then
3466 CXXFLAGS="-O2"
3467 else
3468 CXXFLAGS=
3469 fi
3470 fi
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477 ac_aux_dir=
3478 for 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
3486 done
3487 if test -z "$ac_aux_dir"; then
3488 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3489 fi
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.
3495 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3496 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3497 ac_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; }
3516 if test -z "$INSTALL"; then
3517 if test "${ac_cv_path_install+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 # Account for people who put trailing slashes in PATH elements.
3526 case $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 ;;
3564 esac
3565
3566 done
3567 IFS=$as_save_IFS
3568
3569 rm -rf conftest.one conftest.two conftest.dir
3570
3571 fi
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
3581 fi
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.
3587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3588
3589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3590
3591 test -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; }
3599 if test "${ac_cv_build+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_build_alias=$build_alias
3603 test "x$ac_build_alias" = x &&
3604 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3605 test "x$ac_build_alias" = x &&
3606 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3607 ac_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
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3612 $as_echo "$ac_cv_build" >&6; }
3613 case $ac_cv_build in
3614 *-*-*) ;;
3615 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3616 esac
3617 build=$ac_cv_build
3618 ac_save_IFS=$IFS; IFS='-'
3619 set x $ac_cv_build
3620 shift
3621 build_cpu=$1
3622 build_vendor=$2
3623 shift; shift
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3626 build_os=$*
3627 IFS=$ac_save_IFS
3628 case $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; }
3633 if test "${ac_cv_host+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test "x$host_alias" = x; then
3637 ac_cv_host=$ac_cv_build
3638 else
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
3641 fi
3642
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3645 $as_echo "$ac_cv_host" >&6; }
3646 case $ac_cv_host in
3647 *-*-*) ;;
3648 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3649 esac
3650 host=$ac_cv_host
3651 ac_save_IFS=$IFS; IFS='-'
3652 set x $ac_cv_host
3653 shift
3654 host_cpu=$1
3655 host_vendor=$2
3656 shift; shift
3657 # Remember, the first character of IFS is used to create $*,
3658 # except with old shells:
3659 host_os=$*
3660 IFS=$ac_save_IFS
3661 case $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.
3682 if test "${with_gnu_ld+set}" = set; then :
3683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3684 else
3685 with_gnu_ld=no
3686 fi
3687
3688 # Prepare PATH_SEPARATOR.
3689 # The user is always right.
3690 if 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
3700 fi
3701 ac_prog=ld
3702 if 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` ;;
3712 esac
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
3733 elif 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; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3738 $as_echo_n "checking for non-GNU ld... " >&6; }
3739 fi
3740 if test "${acl_cv_path_LD+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
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"
3761 else
3762 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3763 fi
3764 fi
3765
3766 LD="$acl_cv_path_LD"
3767 if test -n "$LD"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3769 $as_echo "$LD" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774 test -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; }
3777 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3781 case `$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 ;;
3786 esac
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3789 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3790 with_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; }
3797 if test "${acl_cv_rpath+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
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
3807 fi
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.
3820 if test "${enable_rpath+set}" = set; then :
3821 enableval=$enable_rpath; :
3822 else
3823 enable_rpath=yes
3824 fi
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.
3869 if 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
3893 fi
3894
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; }
4318 if test "${am_cv_func_iconv+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
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>
4328 int
4329 main ()
4330 {
4331 iconv_t cd = iconv_open("","");
4332 iconv(cd,NULL,NULL,NULL,NULL);
4333 iconv_close(cd);
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_link "$LINENO"; then :
4339 am_cv_func_iconv=yes
4340 fi
4341 rm -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>
4350 int
4351 main ()
4352 {
4353 iconv_t cd = iconv_open("","");
4354 iconv(cd,NULL,NULL,NULL,NULL);
4355 iconv_close(cd);
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_link "$LINENO"; then :
4361 am_cv_lib_iconv=yes
4362 am_cv_func_iconv=yes
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS="$am_save_LIBS"
4367 fi
4368
4369 fi
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; }
4375 if test "${am_cv_func_iconv_works+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
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
4388 else
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 #include <iconv.h>
4393 #include <string.h>
4394 int 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
4449 if ac_fn_c_try_run "$LINENO"; then :
4450 am_cv_func_iconv_works=yes
4451 else
4452 am_cv_func_iconv_works=no
4453 fi
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 fi
4457
4458 LIBS="$am_save_LIBS"
4459
4460 fi
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
4493 else
4494
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497
4498 #include <stdlib.h>
4499 #include <iconv.h>
4500 extern
4501 #ifdef __cplusplus
4502 "C"
4503 #endif
4504 #if defined(__STDC__) || defined(__cplusplus)
4505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4506 #else
4507 size_t iconv();
4508 #endif
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 am_cv_proto_iconv_arg1=""
4520 else
4521 am_cv_proto_iconv_arg1="const"
4522 fi
4523 rm -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);"
4525 fi
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
4533 cat >>confdefs.h <<_ACEOF
4534 #define ICONV_CONST $am_cv_proto_iconv_arg1
4535 _ACEOF
4536
4537 fi
4538
4539 case $am_cv_func_iconv in #(
4540 yes) :
4541 ;; #(
4542 *) :
4543 as_fn_error "You need iconv" "$LINENO" 5 ;;
4544 esac
4545
4546
4547 if 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.
4550 set 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; }
4553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
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
4562 for as_dir in $PATH
4563 do
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
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 ;;
4577 esac
4578 fi
4579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4580 if test -n "$PKG_CONFIG"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4582 $as_echo "$PKG_CONFIG" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588
4589 fi
4590 if 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.
4593 set 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; }
4596 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598 else
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
4605 for as_dir in $PATH
4606 do
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
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 ;;
4620 esac
4621 fi
4622 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4623 if 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; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631 if test "x$ac_pt_PKG_CONFIG" = x; then
4632 PKG_CONFIG=""
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
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;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 PKG_CONFIG=$ac_pt_PKG_CONFIG
4641 fi
4642 else
4643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4644 fi
4645
4646 fi
4647 if 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
4653 $as_echo "yes" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 PKG_CONFIG=""
4658 fi
4659
4660 fi
4661
4662 pkg_failed=no
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4664 $as_echo_n "checking for WEBKIT... " >&6; }
4665
4666 if 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
4673 ac_status=$?
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then
4676 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
4677 else
4678 pkg_failed=yes
4679 fi
4680 fi
4681 else
4682 pkg_failed=untried
4683 fi
4684 if 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`
4695 else
4696 pkg_failed=yes
4697 fi
4698 fi
4699 else
4700 pkg_failed=untried
4701 fi
4702
4703
4704
4705 if test $pkg_failed = yes; then
4706
4707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4708 _pkg_short_errors_supported=yes
4709 else
4710 _pkg_short_errors_supported=no
4711 fi
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; }
4722
4723
4724 pkg_failed=no
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4726 $as_echo_n "checking for WEBKIT... " >&6; }
4727
4728 if 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
4735 ac_status=$?
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }; then
4738 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
4739 else
4740 pkg_failed=yes
4741 fi
4742 fi
4743 else
4744 pkg_failed=untried
4745 fi
4746 if 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`
4757 else
4758 pkg_failed=yes
4759 fi
4760 fi
4761 else
4762 pkg_failed=untried
4763 fi
4764
4765
4766
4767 if test $pkg_failed = yes; then
4768
4769 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4770 _pkg_short_errors_supported=yes
4771 else
4772 _pkg_short_errors_supported=no
4773 fi
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
4785 elif test $pkg_failed = untried; then
4786 WEBKIT=no
4787 else
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
4793 fi
4794
4795 elif test $pkg_failed = untried; then
4796
4797
4798 pkg_failed=no
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4800 $as_echo_n "checking for WEBKIT... " >&6; }
4801
4802 if 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`
4813 else
4814 pkg_failed=yes
4815 fi
4816 fi
4817 else
4818 pkg_failed=untried
4819 fi
4820 if 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`
4831 else
4832 pkg_failed=yes
4833 fi
4834 fi
4835 else
4836 pkg_failed=untried
4837 fi
4838
4839
4840
4841 if test $pkg_failed = yes; then
4842
4843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4844 _pkg_short_errors_supported=yes
4845 else
4846 _pkg_short_errors_supported=no
4847 fi
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
4859 elif test $pkg_failed = untried; then
4860 WEBKIT=no
4861 else
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
4867 fi
4868
4869 else
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
4875 fi
4876 case $WEBKIT in #(
4877 yes) :
4878
4879
4880 pkg_failed=no
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
4882 $as_echo_n "checking for LIBFFI... " >&6; }
4883
4884 if 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`
4895 else
4896 pkg_failed=yes
4897 fi
4898 fi
4899 else
4900 pkg_failed=untried
4901 fi
4902 if 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`
4913 else
4914 pkg_failed=yes
4915 fi
4916 fi
4917 else
4918 pkg_failed=untried
4919 fi
4920
4921
4922
4923 if test $pkg_failed = yes; then
4924
4925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4926 _pkg_short_errors_supported=yes
4927 else
4928 _pkg_short_errors_supported=no
4929 fi
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
4942 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4943 installed software in a non-standard prefix.
4944
4945 Alternatively, you may set the environment variables LIBFFI_CFLAGS
4946 and LIBFFI_LIBS to avoid the need to call pkg-config.
4947 See the pkg-config man page for more details.
4948 " "$LINENO" 5
4949 elif 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;}
4952 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4953 is in your PATH or set the PKG_CONFIG environment variable to the full
4954 path to pkg-config.
4955
4956 Alternatively, you may set the environment variables LIBFFI_CFLAGS
4957 and LIBFFI_LIBS to avoid the need to call pkg-config.
4958 See the pkg-config man page for more details.
4959
4960 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4961 See \`config.log' for more details." "$LINENO" 5; }
4962 else
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 :
4968 fi
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;} ;;
4973 esac
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4975 $as_echo_n "checking for GNU make... " >&6; }
4976 if test "${_cv_gnu_make_command+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
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
4988 fi
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
5000 if test x$_cv_gnu_make_command = x; then :
5001 as_fn_error "You need GNU make" "$LINENO" 5
5002 fi
5003 # XXX: gnustep
5004 #AC_PROG_OBJCXX