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