"Fossies" - the Fresh Open Source Software Archive 
Member "bbkeys-0.9.1/configure" (22 Dec 2008, 254467 Bytes) of package /linux/privat/old/bbkeys-0.9.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="src/main.cpp"
602 ac_default_prefix=/usr/local
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 LIBBT_LIBS
642 LIBBT_CFLAGS
643 PKG_CONFIG
644 EGREP
645 GREP
646 X_EXTRA_LIBS
647 X_LIBS
648 X_PRE_LIBS
649 X_CFLAGS
650 XMKMF
651 PERL
652 LN_S
653 CPP
654 am__fastdepCXX_FALSE
655 am__fastdepCXX_TRUE
656 CXXDEPMODE
657 ac_ct_CXX
658 CXXFLAGS
659 CXX
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 AMDEPBACKSLASH
664 AMDEP_FALSE
665 AMDEP_TRUE
666 am__quote
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 regex_cmd
677 MAINT
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
685 AWK
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_maintainer_mode
744 enable_debug
745 enable_dependency_tracking
746 with_x
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CXX
757 CXXFLAGS
758 CCC
759 CPP
760 XMKMF
761 PKG_CONFIG
762 LIBBT_CFLAGS
763 LIBBT_LIBS'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873 { (exit 1); exit 1; }; }
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
900 { (exit 1); exit 1; }; }
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
911
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
920
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
924
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
931
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
936
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
942
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
949
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
954
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
959
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
966
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
971
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
978
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
983
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
987
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
991
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
995
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1004
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1009
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1016
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1023
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1040
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1045
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1050
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1054
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1060
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1071
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1076
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1081
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1088
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1093
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1096
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1099
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1133
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1137
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1144
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1151
1152 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154 { (exit 1); exit 1; }; }
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162 { (exit 1); exit 1; }; }
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1165
1166 *)
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 ;;
1173
1174 esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1180 { (exit 1); exit 1; }; }
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1187 { (exit 1); exit 1; }; } ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures this package to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1370
1371 cat <<\_ACEOF
1372
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378 X features:
1379 --x-includes=DIR X include files are in DIR
1380 --x-libraries=DIR X library files are in DIR
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --enable-debug create debugging code default=no
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-x use the X Window System
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1413 CPP C preprocessor
1414 XMKMF Path to xmkmf, Makefile generator for X Window System
1415 PKG_CONFIG path to pkg-config utility
1416 LIBBT_CFLAGS
1417 C compiler flags for LIBBT, overriding pkg-config
1418 LIBBT_LIBS linker flags for LIBBT, overriding pkg-config
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 configure
1486 generated by GNU Autoconf 2.63
1487
1488 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1489 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495 cat >config.log <<_ACEOF
1496 This file contains any messages produced by compilers while
1497 running configure, to aid debugging if configure makes a mistake.
1498
1499 It was created by $as_me, which was
1500 generated by GNU Autoconf 2.63. Invocation command line was
1501
1502 $ $0 $@
1503
1504 _ACEOF
1505 exec 5>>config.log
1506 {
1507 cat <<_ASUNAME
1508 ## --------- ##
1509 ## Platform. ##
1510 ## --------- ##
1511
1512 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1513 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1514 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1515 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1516 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1517
1518 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1519 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1520
1521 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1522 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1523 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1524 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1525 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1526 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1527 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1528
1529 _ASUNAME
1530
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 $as_echo "PATH: $as_dir"
1537 done
1538 IFS=$as_save_IFS
1539
1540 } >&5
1541
1542 cat >&5 <<_ACEOF
1543
1544
1545 ## ----------- ##
1546 ## Core tests. ##
1547 ## ----------- ##
1548
1549 _ACEOF
1550
1551
1552 # Keep a trace of the command line.
1553 # Strip out --no-create and --no-recursion so they do not pile up.
1554 # Strip out --silent because we don't want to record it for future runs.
1555 # Also quote any args containing shell meta-characters.
1556 # Make two passes to allow for proper duplicate-argument suppression.
1557 ac_configure_args=
1558 ac_configure_args0=
1559 ac_configure_args1=
1560 ac_must_keep_next=false
1561 for ac_pass in 1 2
1562 do
1563 for ac_arg
1564 do
1565 case $ac_arg in
1566 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1568 | -silent | --silent | --silen | --sile | --sil)
1569 continue ;;
1570 *\'*)
1571 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1572 esac
1573 case $ac_pass in
1574 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 2)
1576 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1577 if test $ac_must_keep_next = true; then
1578 ac_must_keep_next=false # Got value, back to normal.
1579 else
1580 case $ac_arg in
1581 *=* | --config-cache | -C | -disable-* | --disable-* \
1582 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1583 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1584 | -with-* | --with-* | -without-* | --without-* | --x)
1585 case "$ac_configure_args0 " in
1586 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1587 esac
1588 ;;
1589 -* ) ac_must_keep_next=true ;;
1590 esac
1591 fi
1592 ac_configure_args="$ac_configure_args '$ac_arg'"
1593 ;;
1594 esac
1595 done
1596 done
1597 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1598 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599
1600 # When interrupted or exit'd, cleanup temporary files, and complete
1601 # config.log. We remove comments because anyway the quotes in there
1602 # would cause problems or look ugly.
1603 # WARNING: Use '\'' to represent an apostrophe within the trap.
1604 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1605 trap 'exit_status=$?
1606 # Save into config.log some information that might help in debugging.
1607 {
1608 echo
1609
1610 cat <<\_ASBOX
1611 ## ---------------- ##
1612 ## Cache variables. ##
1613 ## ---------------- ##
1614 _ASBOX
1615 echo
1616 # The following way of writing the cache mishandles newlines in values,
1617 (
1618 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1619 eval ac_val=\$$ac_var
1620 case $ac_val in #(
1621 *${as_nl}*)
1622 case $ac_var in #(
1623 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1624 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1625 esac
1626 case $ac_var in #(
1627 _ | IFS | as_nl) ;; #(
1628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1629 *) $as_unset $ac_var ;;
1630 esac ;;
1631 esac
1632 done
1633 (set) 2>&1 |
1634 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1635 *${as_nl}ac_space=\ *)
1636 sed -n \
1637 "s/'\''/'\''\\\\'\'''\''/g;
1638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1639 ;; #(
1640 *)
1641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1642 ;;
1643 esac |
1644 sort
1645 )
1646 echo
1647
1648 cat <<\_ASBOX
1649 ## ----------------- ##
1650 ## Output variables. ##
1651 ## ----------------- ##
1652 _ASBOX
1653 echo
1654 for ac_var in $ac_subst_vars
1655 do
1656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 $as_echo "$ac_var='\''$ac_val'\''"
1661 done | sort
1662 echo
1663
1664 if test -n "$ac_subst_files"; then
1665 cat <<\_ASBOX
1666 ## ------------------- ##
1667 ## File substitutions. ##
1668 ## ------------------- ##
1669 _ASBOX
1670 echo
1671 for ac_var in $ac_subst_files
1672 do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in
1675 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 esac
1677 $as_echo "$ac_var='\''$ac_val'\''"
1678 done | sort
1679 echo
1680 fi
1681
1682 if test -s confdefs.h; then
1683 cat <<\_ASBOX
1684 ## ----------- ##
1685 ## confdefs.h. ##
1686 ## ----------- ##
1687 _ASBOX
1688 echo
1689 cat confdefs.h
1690 echo
1691 fi
1692 test "$ac_signal" != 0 &&
1693 $as_echo "$as_me: caught signal $ac_signal"
1694 $as_echo "$as_me: exit $exit_status"
1695 } >&5
1696 rm -f core *.core core.conftest.* &&
1697 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1698 exit $exit_status
1699 ' 0
1700 for ac_signal in 1 2 13 15; do
1701 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 done
1703 ac_signal=0
1704
1705 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1706 rm -f -r conftest* confdefs.h
1707
1708 # Predefined preprocessor variables.
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_NAME "$PACKAGE_NAME"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1722 _ACEOF
1723
1724
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_STRING "$PACKAGE_STRING"
1727 _ACEOF
1728
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732 _ACEOF
1733
1734
1735 # Let the site file select an alternate cache file if it wants to.
1736 # Prefer an explicitly selected file to automatically selected ones.
1737 ac_site_file1=NONE
1738 ac_site_file2=NONE
1739 if test -n "$CONFIG_SITE"; then
1740 ac_site_file1=$CONFIG_SITE
1741 elif test "x$prefix" != xNONE; then
1742 ac_site_file1=$prefix/share/config.site
1743 ac_site_file2=$prefix/etc/config.site
1744 else
1745 ac_site_file1=$ac_default_prefix/share/config.site
1746 ac_site_file2=$ac_default_prefix/etc/config.site
1747 fi
1748 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1749 do
1750 test "x$ac_site_file" = xNONE && continue
1751 if test -r "$ac_site_file"; then
1752 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1753 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1754 sed 's/^/| /' "$ac_site_file" >&5
1755 . "$ac_site_file"
1756 fi
1757 done
1758
1759 if test -r "$cache_file"; then
1760 # Some versions of bash will fail to source /dev/null (special
1761 # files actually), so we avoid doing that.
1762 if test -f "$cache_file"; then
1763 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1764 $as_echo "$as_me: loading cache $cache_file" >&6;}
1765 case $cache_file in
1766 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1767 *) . "./$cache_file";;
1768 esac
1769 fi
1770 else
1771 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1772 $as_echo "$as_me: creating cache $cache_file" >&6;}
1773 >$cache_file
1774 fi
1775
1776 # Check that the precious variables saved in the cache have kept the same
1777 # value.
1778 ac_cache_corrupted=false
1779 for ac_var in $ac_precious_vars; do
1780 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1781 eval ac_new_set=\$ac_env_${ac_var}_set
1782 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1783 eval ac_new_val=\$ac_env_${ac_var}_value
1784 case $ac_old_set,$ac_new_set in
1785 set,)
1786 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1787 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1788 ac_cache_corrupted=: ;;
1789 ,set)
1790 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1791 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1792 ac_cache_corrupted=: ;;
1793 ,);;
1794 *)
1795 if test "x$ac_old_val" != "x$ac_new_val"; then
1796 # differences in whitespace do not lead to failure.
1797 ac_old_val_w=`echo x $ac_old_val`
1798 ac_new_val_w=`echo x $ac_new_val`
1799 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1800 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1801 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1802 ac_cache_corrupted=:
1803 else
1804 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1805 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1806 eval $ac_var=\$ac_old_val
1807 fi
1808 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1809 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1810 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1811 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1812 fi;;
1813 esac
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1816 case $ac_new_val in
1817 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1819 esac
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 esac
1824 fi
1825 done
1826 if $ac_cache_corrupted; then
1827 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1829 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1830 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1831 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1832 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852 ac_ext=c
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1857
1858
1859 am__api_version='1.10'
1860
1861 ac_aux_dir=
1862 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1863 if test -f "$ac_dir/install-sh"; then
1864 ac_aux_dir=$ac_dir
1865 ac_install_sh="$ac_aux_dir/install-sh -c"
1866 break
1867 elif test -f "$ac_dir/install.sh"; then
1868 ac_aux_dir=$ac_dir
1869 ac_install_sh="$ac_aux_dir/install.sh -c"
1870 break
1871 elif test -f "$ac_dir/shtool"; then
1872 ac_aux_dir=$ac_dir
1873 ac_install_sh="$ac_aux_dir/shtool install -c"
1874 break
1875 fi
1876 done
1877 if test -z "$ac_aux_dir"; then
1878 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1879 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1880 { (exit 1); exit 1; }; }
1881 fi
1882
1883 # These three variables are undocumented and unsupported,
1884 # and are intended to be withdrawn in a future Autoconf release.
1885 # They can cause serious problems if a builder's source tree is in a directory
1886 # whose full name contains unusual characters.
1887 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1888 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1889 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1890
1891
1892 # Find a good install program. We prefer a C program (faster),
1893 # so one script is as good as another. But avoid the broken or
1894 # incompatible versions:
1895 # SysV /etc/install, /usr/sbin/install
1896 # SunOS /usr/etc/install
1897 # IRIX /sbin/install
1898 # AIX /bin/install
1899 # AmigaOS /C/install, which installs bootblocks on floppy discs
1900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1903 # OS/2's system install, which has a completely different semantic
1904 # ./install, which can be erroneously created by make from ./install.sh.
1905 # Reject install programs that cannot install multiple files.
1906 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1907 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1908 if test -z "$INSTALL"; then
1909 if test "${ac_cv_path_install+set}" = set; then
1910 $as_echo_n "(cached) " >&6
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 # Account for people who put trailing slashes in PATH elements.
1918 case $as_dir/ in
1919 ./ | .// | /cC/* | \
1920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1921 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1922 /usr/ucb/* ) ;;
1923 *)
1924 # OSF1 and SCO ODT 3.0 have their own names for install.
1925 # Don't use installbsd from OSF since it installs stuff as root
1926 # by default.
1927 for ac_prog in ginstall scoinst install; do
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1930 if test $ac_prog = install &&
1931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1932 # AIX install. It has an incompatible calling convention.
1933 :
1934 elif test $ac_prog = install &&
1935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1936 # program-specific install script used by HP pwplus--don't use.
1937 :
1938 else
1939 rm -rf conftest.one conftest.two conftest.dir
1940 echo one > conftest.one
1941 echo two > conftest.two
1942 mkdir conftest.dir
1943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1944 test -s conftest.one && test -s conftest.two &&
1945 test -s conftest.dir/conftest.one &&
1946 test -s conftest.dir/conftest.two
1947 then
1948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1949 break 3
1950 fi
1951 fi
1952 fi
1953 done
1954 done
1955 ;;
1956 esac
1957
1958 done
1959 IFS=$as_save_IFS
1960
1961 rm -rf conftest.one conftest.two conftest.dir
1962
1963 fi
1964 if test "${ac_cv_path_install+set}" = set; then
1965 INSTALL=$ac_cv_path_install
1966 else
1967 # As a last resort, use the slow shell script. Don't cache a
1968 # value for INSTALL within a source directory, because that will
1969 # break other packages using the cache if that directory is
1970 # removed, or if the value is a relative name.
1971 INSTALL=$ac_install_sh
1972 fi
1973 fi
1974 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1975 $as_echo "$INSTALL" >&6; }
1976
1977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1978 # It thinks the first close brace ends the variable substitution.
1979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1980
1981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1982
1983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1984
1985 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1986 $as_echo_n "checking whether build environment is sane... " >&6; }
1987 # Just in case
1988 sleep 1
1989 echo timestamp > conftest.file
1990 # Do `set' in a subshell so we don't clobber the current shell's
1991 # arguments. Must try -L first in case configure is actually a
1992 # symlink; some systems play weird games with the mod time of symlinks
1993 # (eg FreeBSD returns the mod time of the symlink's containing
1994 # directory).
1995 if (
1996 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1997 if test "$*" = "X"; then
1998 # -L didn't work.
1999 set X `ls -t $srcdir/configure conftest.file`
2000 fi
2001 rm -f conftest.file
2002 if test "$*" != "X $srcdir/configure conftest.file" \
2003 && test "$*" != "X conftest.file $srcdir/configure"; then
2004
2005 # If neither matched, then we have a broken ls. This can happen
2006 # if, for instance, CONFIG_SHELL is bash and it inherits a
2007 # broken ls alias from the environment. This has actually
2008 # happened. Such a system could not be considered "sane".
2009 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2010 alias in your environment" >&5
2011 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2012 alias in your environment" >&2;}
2013 { (exit 1); exit 1; }; }
2014 fi
2015
2016 test "$2" = conftest.file
2017 )
2018 then
2019 # Ok.
2020 :
2021 else
2022 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2023 Check your system clock" >&5
2024 $as_echo "$as_me: error: newly created file is older than distributed files!
2025 Check your system clock" >&2;}
2026 { (exit 1); exit 1; }; }
2027 fi
2028 { $as_echo "$as_me:$LINENO: result: yes" >&5
2029 $as_echo "yes" >&6; }
2030 test "$program_prefix" != NONE &&
2031 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2032 # Use a double $ so make ignores it.
2033 test "$program_suffix" != NONE &&
2034 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2035 # Double any \ or $.
2036 # By default was `s,x,x', remove it if useless.
2037 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2038 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2039
2040 # expand $ac_aux_dir to an absolute path
2041 am_aux_dir=`cd $ac_aux_dir && pwd`
2042
2043 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2044 # Use eval to expand $SHELL
2045 if eval "$MISSING --run true"; then
2046 am_missing_run="$MISSING --run "
2047 else
2048 am_missing_run=
2049 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2050 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2051 fi
2052
2053 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2055 if test -z "$MKDIR_P"; then
2056 if test "${ac_cv_path_mkdir+set}" = set; then
2057 $as_echo_n "(cached) " >&6
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_prog in mkdir gmkdir; do
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2068 'mkdir (GNU coreutils) '* | \
2069 'mkdir (coreutils) '* | \
2070 'mkdir (fileutils) '4.1*)
2071 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2072 break 3;;
2073 esac
2074 done
2075 done
2076 done
2077 IFS=$as_save_IFS
2078
2079 fi
2080
2081 if test "${ac_cv_path_mkdir+set}" = set; then
2082 MKDIR_P="$ac_cv_path_mkdir -p"
2083 else
2084 # As a last resort, use the slow shell script. Don't cache a
2085 # value for MKDIR_P within a source directory, because that will
2086 # break other packages using the cache if that directory is
2087 # removed, or if the value is a relative name.
2088 test -d ./--version && rmdir ./--version
2089 MKDIR_P="$ac_install_sh -d"
2090 fi
2091 fi
2092 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2093 $as_echo "$MKDIR_P" >&6; }
2094
2095 mkdir_p="$MKDIR_P"
2096 case $mkdir_p in
2097 [\\/$]* | ?:[\\/]*) ;;
2098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2099 esac
2100
2101 for ac_prog in gawk mawk nawk awk
2102 do
2103 # Extract the first word of "$ac_prog", so it can be a program name with args.
2104 set dummy $ac_prog; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_AWK+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$AWK"; then
2111 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
2121 $as_echo "$as_me:$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 AWK=$ac_cv_prog_AWK
2131 if test -n "$AWK"; then
2132 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2133 $as_echo "$AWK" >&6; }
2134 else
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2137 fi
2138
2139
2140 test -n "$AWK" && break
2141 done
2142
2143 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2145 set x ${MAKE-make}
2146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2147 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2148 $as_echo_n "(cached) " >&6
2149 else
2150 cat >conftest.make <<\_ACEOF
2151 SHELL = /bin/sh
2152 all:
2153 @echo '@@@%%%=$(MAKE)=@@@%%%'
2154 _ACEOF
2155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2157 *@@@%%%=?*=@@@%%%*)
2158 eval ac_cv_prog_make_${ac_make}_set=yes;;
2159 *)
2160 eval ac_cv_prog_make_${ac_make}_set=no;;
2161 esac
2162 rm -f conftest.make
2163 fi
2164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2165 { $as_echo "$as_me:$LINENO: result: yes" >&5
2166 $as_echo "yes" >&6; }
2167 SET_MAKE=
2168 else
2169 { $as_echo "$as_me:$LINENO: result: no" >&5
2170 $as_echo "no" >&6; }
2171 SET_MAKE="MAKE=${MAKE-make}"
2172 fi
2173
2174 rm -rf .tst 2>/dev/null
2175 mkdir .tst 2>/dev/null
2176 if test -d .tst; then
2177 am__leading_dot=.
2178 else
2179 am__leading_dot=_
2180 fi
2181 rmdir .tst 2>/dev/null
2182
2183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2185 # is not polluted with repeated "-I."
2186 am__isrc=' -I$(srcdir)'
2187 # test to see if srcdir already configured
2188 if test -f $srcdir/config.status; then
2189 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2190 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2191 { (exit 1); exit 1; }; }
2192 fi
2193 fi
2194
2195 # test whether we have cygpath
2196 if test -z "$CYGPATH_W"; then
2197 if (cygpath --version) >/dev/null 2>/dev/null; then
2198 CYGPATH_W='cygpath -w'
2199 else
2200 CYGPATH_W=echo
2201 fi
2202 fi
2203
2204
2205 # Define the identity of the package.
2206 PACKAGE=bbkeys
2207 VERSION=0.9.1
2208
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE "$PACKAGE"
2212 _ACEOF
2213
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define VERSION "$VERSION"
2217 _ACEOF
2218
2219 # Some tools Automake needs.
2220
2221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2222
2223
2224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2225
2226
2227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2228
2229
2230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2231
2232
2233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2234
2235 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2236
2237 # Installed binaries are usually stripped using `strip' when the user
2238 # run `make install-strip'. However `strip' might not be the right
2239 # tool to use in cross-compilation environments, therefore Automake
2240 # will honor the `STRIP' environment variable to overrule this program.
2241 if test "$cross_compiling" != no; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}strip; ac_word=$2
2245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if test "${ac_cv_prog_STRIP+set}" = set; then
2248 $as_echo_n "(cached) " >&6
2249 else
2250 if test -n "$STRIP"; then
2251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2263 fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 STRIP=$ac_cv_prog_STRIP
2271 if test -n "$STRIP"; then
2272 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2273 $as_echo "$STRIP" >&6; }
2274 else
2275 { $as_echo "$as_me:$LINENO: result: no" >&5
2276 $as_echo "no" >&6; }
2277 fi
2278
2279
2280 fi
2281 if test -z "$ac_cv_prog_STRIP"; then
2282 ac_ct_STRIP=$STRIP
2283 # Extract the first word of "strip", so it can be a program name with args.
2284 set dummy strip; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2289 else
2290 if test -n "$ac_ct_STRIP"; then
2291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_ac_ct_STRIP="strip"
2301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2311 if test -n "$ac_ct_STRIP"; then
2312 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2313 $as_echo "$ac_ct_STRIP" >&6; }
2314 else
2315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2317 fi
2318
2319 if test "x$ac_ct_STRIP" = x; then
2320 STRIP=":"
2321 else
2322 case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328 STRIP=$ac_ct_STRIP
2329 fi
2330 else
2331 STRIP="$ac_cv_prog_STRIP"
2332 fi
2333
2334 fi
2335 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2336
2337 # We need awk for the "check" target. The system "awk" is bad on
2338 # some platforms.
2339 # Always define AMTAR for backward compatibility.
2340
2341 AMTAR=${AMTAR-"${am_missing_run}tar"}
2342
2343 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2344
2345
2346
2347
2348
2349 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2350 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2351 # Check whether --enable-maintainer-mode was given.
2352 if test "${enable_maintainer_mode+set}" = set; then
2353 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2354 else
2355 USE_MAINTAINER_MODE=no
2356 fi
2357
2358 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2359 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2360 if test $USE_MAINTAINER_MODE = yes; then
2361 MAINTAINER_MODE_TRUE=
2362 MAINTAINER_MODE_FALSE='#'
2363 else
2364 MAINTAINER_MODE_TRUE='#'
2365 MAINTAINER_MODE_FALSE=
2366 fi
2367
2368 MAINT=$MAINTAINER_MODE_TRUE
2369
2370
2371
2372
2373 for ac_prog in sed
2374 do
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if test "${ac_cv_prog_regex_cmd+set}" = set; then
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$regex_cmd"; then
2383 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_regex_cmd="$ac_prog"
2393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 regex_cmd=$ac_cv_prog_regex_cmd
2403 if test -n "$regex_cmd"; then
2404 { $as_echo "$as_me:$LINENO: result: $regex_cmd" >&5
2405 $as_echo "$regex_cmd" >&6; }
2406 else
2407 { $as_echo "$as_me:$LINENO: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411
2412 test -n "$regex_cmd" && break
2413 done
2414
2415 if test x$regex_cmd = "x"; then
2416 { { $as_echo "$as_me:$LINENO: error: error. sed is required to build the default bbtoolsrc file." >&5
2417 $as_echo "$as_me: error: error. sed is required to build the default bbtoolsrc file." >&2;}
2418 { (exit 1); exit 1; }; }
2419 fi
2420
2421
2422
2423
2424
2425 # Check whether --enable-debug was given.
2426 if test "${enable_debug+set}" = set; then
2427 enableval=$enable_debug;
2428 if test $enableval = "no";
2429 then
2430 _CFLAGS="-DNDEBUG"
2431 _CXXFLAGS="-DNDEBUG"
2432 _LDFLAGS=""
2433 case $host_os in
2434 *solaris*)
2435 _CFLAGS="$_CFLAGS -O"
2436 _CXXFLAGS="$_CXXFLAGS -O"
2437 _LDFLAGS="$_LDFLAGS -z muldefs"
2438 ;;
2439 *)
2440 _CFLAGS="$_CFLAGS -O2"
2441 _CXXFLAGS="$_CXXFLAGS -O2"
2442 ;;
2443 esac
2444 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
2445 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
2446 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
2447
2448 else
2449 _CFLAGS="-g -Wall -DDEBUG"
2450 _CXXFLAGS="-g -Wall -DDEBUG"
2451 _LDFLAGS=""
2452 case $host_os in
2453 *solaris*)
2454 _LDFLAGS="$_LDFLAGS -z muldefs"
2455 ;;
2456 esac
2457 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
2458 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
2459 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
2460
2461 fi
2462
2463 else
2464
2465 _CFLAGS="-DNDEBUG"
2466 _CXXFLAGS="-DNDEBUG"
2467 _LDFLAGS=""
2468 case $host_os in
2469 *solaris*)
2470 _CFLAGS="$_CFLAGS -O"
2471 _CXXFLAGS="$_CXXFLAGS -O"
2472 _LDFLAGS="$_LDFLAGS -z muldefs"
2473 ;;
2474 *)
2475 _CFLAGS="$_CFLAGS -O2"
2476 _CXXFLAGS="$_CXXFLAGS -O2"
2477 ;;
2478 esac
2479 test "$CFLAGS" = "" && CFLAGS=$_CFLAGS
2480 test "$CXXFLAGS" = "" && CXXFLAGS=$_CXXFLAGS
2481 test "$LDFLAGS" = "" && LDFLAGS=$_LDFLAGS
2482
2483 fi
2484
2485
2486 ac_ext=c
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2522 $as_echo "$CC" >&6; }
2523 else
2524 { $as_echo "$as_me:$LINENO: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 fi
2530 if test -z "$ac_cv_prog_CC"; then
2531 ac_ct_CC=$CC
2532 # Extract the first word of "gcc", so it can be a program name with args.
2533 set dummy gcc; ac_word=$2
2534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$ac_ct_CC"; then
2540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_ac_ct_CC="gcc"
2550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560 if test -n "$ac_ct_CC"; then
2561 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2562 $as_echo "$ac_ct_CC" >&6; }
2563 else
2564 { $as_echo "$as_me:$LINENO: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568 if test "x$ac_ct_CC" = x; then
2569 CC=""
2570 else
2571 case $cross_compiling:$ac_tool_warned in
2572 yes:)
2573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577 CC=$ac_ct_CC
2578 fi
2579 else
2580 CC="$ac_cv_prog_CC"
2581 fi
2582
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586 set dummy ${ac_tool_prefix}cc; ac_word=$2
2587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC="${ac_tool_prefix}cc"
2603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2615 $as_echo "$CC" >&6; }
2616 else
2617 { $as_echo "$as_me:$LINENO: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 fi
2623 fi
2624 if test -z "$CC"; then
2625 # Extract the first word of "cc", so it can be a program name with args.
2626 set dummy cc; ac_word=$2
2627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 ac_prog_rejected=no
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644 ac_prog_rejected=yes
2645 continue
2646 fi
2647 ac_cv_prog_CC="cc"
2648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 if test $ac_prog_rejected = yes; then
2656 # We found a bogon in the path, so make sure we never use it.
2657 set dummy $ac_cv_prog_CC
2658 shift
2659 if test $# != 0; then
2660 # We chose a different compiler from the bogus one.
2661 # However, it has the same basename, so the bogon will be chosen
2662 # first if we set CC to just the basename; use the full file name.
2663 shift
2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665 fi
2666 fi
2667 fi
2668 fi
2669 CC=$ac_cv_prog_CC
2670 if test -n "$CC"; then
2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2673 else
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679 fi
2680 if test -z "$CC"; then
2681 if test -n "$ac_tool_prefix"; then
2682 for ac_prog in cl.exe
2683 do
2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2714 $as_echo "$CC" >&6; }
2715 else
2716 { $as_echo "$as_me:$LINENO: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720
2721 test -n "$CC" && break
2722 done
2723 fi
2724 if test -z "$CC"; then
2725 ac_ct_CC=$CC
2726 for ac_prog in cl.exe
2727 do
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="$ac_prog"
2746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2759 else
2760 { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765 test -n "$ac_ct_CC" && break
2766 done
2767
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 CC=$ac_ct_CC
2778 fi
2779 fi
2780
2781 fi
2782
2783
2784 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2787 See \`config.log' for more details." >&5
2788 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2789 See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }; }
2791
2792 # Provide some information about the compiler.
2793 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2794 set X $ac_compile
2795 ac_compiler=$2
2796 { (ac_try="$ac_compiler --version >&5"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_compiler --version >&5") 2>&5
2804 ac_status=$?
2805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807 { (ac_try="$ac_compiler -v >&5"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813 $as_echo "$ac_try_echo") >&5
2814 (eval "$ac_compiler -v >&5") 2>&5
2815 ac_status=$?
2816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
2818 { (ac_try="$ac_compiler -V >&5"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2824 $as_echo "$ac_try_echo") >&5
2825 (eval "$ac_compiler -V >&5") 2>&5
2826 ac_status=$?
2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836
2837 int
2838 main ()
2839 {
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 ac_clean_files_save=$ac_clean_files
2846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2847 # Try to create an executable without -o first, disregard a.out.
2848 # It will help us diagnose broken compilers, and finding out an intuition
2849 # of exeext.
2850 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2851 $as_echo_n "checking for C compiler default output file name... " >&6; }
2852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2853
2854 # The possible output files:
2855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2856
2857 ac_rmfiles=
2858 for ac_file in $ac_files
2859 do
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2862 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2863 esac
2864 done
2865 rm -f $ac_rmfiles
2866
2867 if { (ac_try="$ac_link_default"
2868 case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2873 $as_echo "$ac_try_echo") >&5
2874 (eval "$ac_link_default") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2881 # so that the user can short-circuit this test for compilers unknown to
2882 # Autoconf.
2883 for ac_file in $ac_files ''
2884 do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2888 ;;
2889 [ab].out )
2890 # We found the default executable, but exeext='' is most
2891 # certainly right.
2892 break;;
2893 *.* )
2894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895 then :; else
2896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 fi
2898 # We set ac_cv_exeext here because the later test for it is not
2899 # safe: cross compilers may not add the suffix if given an `-o'
2900 # argument, so we may need to know it at that point already.
2901 # Even if this section looks crufty: it has the advantage of
2902 # actually working.
2903 break;;
2904 * )
2905 break;;
2906 esac
2907 done
2908 test "$ac_cv_exeext" = no && ac_cv_exeext=
2909
2910 else
2911 ac_file=''
2912 fi
2913
2914 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2915 $as_echo "$ac_file" >&6; }
2916 if test -z "$ac_file"; then
2917 $as_echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2923 See \`config.log' for more details." >&5
2924 $as_echo "$as_me: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&2;}
2926 { (exit 77); exit 77; }; }; }
2927 fi
2928
2929 ac_exeext=$ac_cv_exeext
2930
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934 $as_echo_n "checking whether the C compiler works... " >&6; }
2935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936 # If not cross compiling, check that we can run a simple program.
2937 if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
2939 { (case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944 $as_echo "$ac_try_echo") >&5
2945 (eval "$ac_try") 2>&5
2946 ac_status=$?
2947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 cross_compiling=no
2950 else
2951 if test "$cross_compiling" = maybe; then
2952 cross_compiling=yes
2953 else
2954 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&5
2959 $as_echo "$as_me: error: cannot run C compiled programs.
2960 If you meant to cross compile, use \`--host'.
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }; }
2963 fi
2964 fi
2965 fi
2966 { $as_echo "$as_me:$LINENO: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968
2969 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2970 ac_clean_files=$ac_clean_files_save
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974 $as_echo_n "checking whether we are cross compiling... " >&6; }
2975 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976 $as_echo "$cross_compiling" >&6; }
2977
2978 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979 $as_echo_n "checking for suffix of executables... " >&6; }
2980 if { (ac_try="$ac_link"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986 $as_echo "$ac_try_echo") >&5
2987 (eval "$ac_link") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2993 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 # `rm'.
2995 for ac_file in conftest.exe conftest conftest.*; do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 break;;
3001 * ) break;;
3002 esac
3003 done
3004 else
3005 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3008 See \`config.log' for more details." >&5
3009 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3010 See \`config.log' for more details." >&2;}
3011 { (exit 1); exit 1; }; }; }
3012 fi
3013
3014 rm -f conftest$ac_cv_exeext
3015 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3016 $as_echo "$ac_cv_exeext" >&6; }
3017
3018 rm -f conftest.$ac_ext
3019 EXEEXT=$ac_cv_exeext
3020 ac_exeext=$EXEEXT
3021 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3022 $as_echo_n "checking for suffix of object files... " >&6; }
3023 if test "${ac_cv_objext+set}" = set; then
3024 $as_echo_n "(cached) " >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.o conftest.obj
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048 $as_echo "$ac_try_echo") >&5
3049 (eval "$ac_compile") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; then
3053 for ac_file in conftest.o conftest.obj conftest.*; do
3054 test -f "$ac_file" || continue;
3055 case $ac_file in
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058 break;;
3059 esac
3060 done
3061 else
3062 $as_echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3068 See \`config.log' for more details." >&5
3069 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3070 See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }; }
3072 fi
3073
3074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3075 fi
3076 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3077 $as_echo "$ac_cv_objext" >&6; }
3078 OBJEXT=$ac_cv_objext
3079 ac_objext=$OBJEXT
3080 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091
3092 int
3093 main ()
3094 {
3095 #ifndef __GNUC__
3096 choke me
3097 #endif
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3110 $as_echo "$ac_try_echo") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3121 ac_compiler_gnu=yes
3122 else
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 ac_compiler_gnu=no
3127 fi
3128
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3131
3132 fi
3133 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3134 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3135 if test $ac_compiler_gnu = yes; then
3136 GCC=yes
3137 else
3138 GCC=
3139 fi
3140 ac_test_CFLAGS=${CFLAGS+set}
3141 ac_save_CFLAGS=$CFLAGS
3142 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3143 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3144 if test "${ac_cv_prog_cc_g+set}" = set; then
3145 $as_echo_n "(cached) " >&6
3146 else
3147 ac_save_c_werror_flag=$ac_c_werror_flag
3148 ac_c_werror_flag=yes
3149 ac_cv_prog_cc_g=no
3150 CFLAGS="-g"
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } && {
3181 test -z "$ac_c_werror_flag" ||
3182 test ! -s conftest.err
3183 } && test -s conftest.$ac_objext; then
3184 ac_cv_prog_cc_g=yes
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 CFLAGS=""
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3212 $as_echo "$ac_try_echo") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3223 :
3224 else
3225 $as_echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229 CFLAGS="-g"
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236
3237 int
3238 main ()
3239 {
3240
3241 ;
3242 return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3263 ac_cv_prog_cc_g=yes
3264 else
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268
3269 fi
3270
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 fi
3273
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 fi
3276
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3279 fi
3280 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3281 $as_echo "$ac_cv_prog_cc_g" >&6; }
3282 if test "$ac_test_CFLAGS" = set; then
3283 CFLAGS=$ac_save_CFLAGS
3284 elif test $ac_cv_prog_cc_g = yes; then
3285 if test "$GCC" = yes; then
3286 CFLAGS="-g -O2"
3287 else
3288 CFLAGS="-g"
3289 fi
3290 else
3291 if test "$GCC" = yes; then
3292 CFLAGS="-O2"
3293 else
3294 CFLAGS=
3295 fi
3296 fi
3297 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3298 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3299 if test "${ac_cv_prog_cc_c89+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3301 else
3302 ac_cv_prog_cc_c89=no
3303 ac_save_CC=$CC
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 #include <stdarg.h>
3311 #include <stdio.h>
3312 #include <sys/types.h>
3313 #include <sys/stat.h>
3314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3315 struct buf { int x; };
3316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3317 static char *e (p, i)
3318 char **p;
3319 int i;
3320 {
3321 return p[i];
3322 }
3323 static char *f (char * (*g) (char **, int), char **p, ...)
3324 {
3325 char *s;
3326 va_list v;
3327 va_start (v,p);
3328 s = g (p, va_arg (v,int));
3329 va_end (v);
3330 return s;
3331 }
3332
3333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3334 function prototypes and stuff, but not '\xHH' hex character constants.
3335 These don't provoke an error unfortunately, instead are silently treated
3336 as 'x'. The following induces an error, until -std is added to get
3337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3338 array size at least. It's necessary to write '\x00'==0 to get something
3339 that's true only with -std. */
3340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341
3342 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3343 inside strings and character constants. */
3344 #define FOO(x) 'x'
3345 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346
3347 int test (int i, double x);
3348 struct s1 {int (*f) (int a);};
3349 struct s2 {int (*f) (double a);};
3350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 int argc;
3352 char **argv;
3353 int
3354 main ()
3355 {
3356 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 do
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
3366 if { (ac_try="$ac_compile"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest.$ac_objext; then
3383 ac_cv_prog_cc_c89=$ac_arg
3384 else
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext
3392 test "x$ac_cv_prog_cc_c89" != "xno" && break
3393 done
3394 rm -f conftest.$ac_ext
3395 CC=$ac_save_CC
3396
3397 fi
3398 # AC_CACHE_VAL
3399 case "x$ac_cv_prog_cc_c89" in
3400 x)
3401 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3402 $as_echo "none needed" >&6; } ;;
3403 xno)
3404 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3405 $as_echo "unsupported" >&6; } ;;
3406 *)
3407 CC="$CC $ac_cv_prog_cc_c89"
3408 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3410 esac
3411
3412
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 DEPDIR="${am__leading_dot}deps"
3419
3420 ac_config_commands="$ac_config_commands depfiles"
3421
3422
3423 am_make=${MAKE-make}
3424 cat > confinc << 'END'
3425 am__doit:
3426 @echo done
3427 .PHONY: am__doit
3428 END
3429 # If we don't find an include directive, just comment out the code.
3430 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3431 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3432 am__include="#"
3433 am__quote=
3434 _am_result=none
3435 # First try GNU make style include.
3436 echo "include confinc" > confmf
3437 # We grep out `Entering directory' and `Leaving directory'
3438 # messages which can occur if `w' ends up in MAKEFLAGS.
3439 # In particular we don't look at `^make:' because GNU make might
3440 # be invoked under some other name (usually "gmake"), in which
3441 # case it prints its new name instead of `make'.
3442 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3443 am__include=include
3444 am__quote=
3445 _am_result=GNU
3446 fi
3447 # Now try BSD make style include.
3448 if test "$am__include" = "#"; then
3449 echo '.include "confinc"' > confmf
3450 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3451 am__include=.include
3452 am__quote="\""
3453 _am_result=BSD
3454 fi
3455 fi
3456
3457
3458 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3459 $as_echo "$_am_result" >&6; }
3460 rm -f confinc confmf
3461
3462 # Check whether --enable-dependency-tracking was given.
3463 if test "${enable_dependency_tracking+set}" = set; then
3464 enableval=$enable_dependency_tracking;
3465 fi
3466
3467 if test "x$enable_dependency_tracking" != xno; then
3468 am_depcomp="$ac_aux_dir/depcomp"
3469 AMDEPBACKSLASH='\'
3470 fi
3471 if test "x$enable_dependency_tracking" != xno; then
3472 AMDEP_TRUE=
3473 AMDEP_FALSE='#'
3474 else
3475 AMDEP_TRUE='#'
3476 AMDEP_FALSE=
3477 fi
3478
3479
3480
3481 depcc="$CC" am_compiler_list=
3482
3483 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3484 $as_echo_n "checking dependency style of $depcc... " >&6; }
3485 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3489 # We make a subdir and do the tests there. Otherwise we can end up
3490 # making bogus files that we don't know about and never remove. For
3491 # instance it was reported that on HP-UX the gcc test will end up
3492 # making a dummy file named `D' -- because `-MD' means `put the output
3493 # in D'.
3494 mkdir conftest.dir
3495 # Copy depcomp to subdir because otherwise we won't find it if we're
3496 # using a relative directory.
3497 cp "$am_depcomp" conftest.dir
3498 cd conftest.dir
3499 # We will build objects and dependencies in a subdirectory because
3500 # it helps to detect inapplicable dependency modes. For instance
3501 # both Tru64's cc and ICC support -MD to output dependencies as a
3502 # side effect of compilation, but ICC will put the dependencies in
3503 # the current directory while Tru64 will put them in the object
3504 # directory.
3505 mkdir sub
3506
3507 am_cv_CC_dependencies_compiler_type=none
3508 if test "$am_compiler_list" = ""; then
3509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 fi
3511 for depmode in $am_compiler_list; do
3512 # Setup a source with many dependencies, because some compilers
3513 # like to wrap large dependency lists on column 80 (with \), and
3514 # we should not choose a depcomp mode which is confused by this.
3515 #
3516 # We need to recreate these files for each test, as the compiler may
3517 # overwrite some of them when testing with obscure command lines.
3518 # This happens at least with the AIX C compiler.
3519 : > sub/conftest.c
3520 for i in 1 2 3 4 5 6; do
3521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3522 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3523 # Solaris 8's {/usr,}/bin/sh.
3524 touch sub/conftst$i.h
3525 done
3526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3527
3528 case $depmode in
3529 nosideeffect)
3530 # after this tag, mechanisms are not by side-effect, so they'll
3531 # only be used when explicitly requested
3532 if test "x$enable_dependency_tracking" = xyes; then
3533 continue
3534 else
3535 break
3536 fi
3537 ;;
3538 none) break ;;
3539 esac
3540 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3541 # mode. It turns out that the SunPro C++ compiler does not properly
3542 # handle `-M -o', and we need to detect this.
3543 if depmode=$depmode \
3544 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3546 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3547 >/dev/null 2>conftest.err &&
3548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3550 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3552 # icc doesn't choke on unknown options, it will just issue warnings
3553 # or remarks (even with -Werror). So we grep stderr for any message
3554 # that says an option was ignored or not supported.
3555 # When given -MP, icc 7.0 and 7.1 complain thusly:
3556 # icc: Command line warning: ignoring option '-M'; no argument required
3557 # The diagnosis changed in icc 8.0:
3558 # icc: Command line remark: option '-MP' not supported
3559 if (grep 'ignoring option' conftest.err ||
3560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3561 am_cv_CC_dependencies_compiler_type=$depmode
3562 break
3563 fi
3564 fi
3565 done
3566
3567 cd ..
3568 rm -rf conftest.dir
3569 else
3570 am_cv_CC_dependencies_compiler_type=none
3571 fi
3572
3573 fi
3574 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3575 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3576 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3577
3578 if
3579 test "x$enable_dependency_tracking" != xno \
3580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3581 am__fastdepCC_TRUE=
3582 am__fastdepCC_FALSE='#'
3583 else
3584 am__fastdepCC_TRUE='#'
3585 am__fastdepCC_FALSE=
3586 fi
3587
3588
3589 ac_ext=cpp
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594 if test -z "$CXX"; then
3595 if test -n "$CCC"; then
3596 CXX=$CCC
3597 else
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CXX+set}" = set; then
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CXX"; then
3609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CXX=$ac_cv_prog_CXX
3629 if test -n "$CXX"; then
3630 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3631 $as_echo "$CXX" >&6; }
3632 else
3633 { $as_echo "$as_me:$LINENO: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 test -n "$CXX" && break
3639 done
3640 fi
3641 if test -z "$CXX"; then
3642 ac_ct_CXX=$CXX
3643 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3644 do
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy $ac_prog; ac_word=$2
3647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$ac_ct_CXX"; then
3653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_ac_ct_CXX="$ac_prog"
3663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3673 if test -n "$ac_ct_CXX"; then
3674 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3675 $as_echo "$ac_ct_CXX" >&6; }
3676 else
3677 { $as_echo "$as_me:$LINENO: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 test -n "$ac_ct_CXX" && break
3683 done
3684
3685 if test "x$ac_ct_CXX" = x; then
3686 CXX="g++"
3687 else
3688 case $cross_compiling:$ac_tool_warned in
3689 yes:)
3690 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692 ac_tool_warned=yes ;;
3693 esac
3694 CXX=$ac_ct_CXX
3695 fi
3696 fi
3697
3698 fi
3699 fi
3700 # Provide some information about the compiler.
3701 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3702 set X $ac_compile
3703 ac_compiler=$2
3704 { (ac_try="$ac_compiler --version >&5"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3710 $as_echo "$ac_try_echo") >&5
3711 (eval "$ac_compiler --version >&5") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }
3715 { (ac_try="$ac_compiler -v >&5"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721 $as_echo "$ac_try_echo") >&5
3722 (eval "$ac_compiler -v >&5") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }
3726 { (ac_try="$ac_compiler -V >&5"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compiler -V >&5") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }
3737
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3740 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3742 else
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754 choke me
3755 #endif
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_cxx_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3779 ac_compiler_gnu=yes
3780 else
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 ac_compiler_gnu=no
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3792 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794 GXX=yes
3795 else
3796 GXX=
3797 fi
3798 ac_test_CXXFLAGS=${CXXFLAGS+set}
3799 ac_save_CXXFLAGS=$CXXFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3801 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cxx_g+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3804 else
3805 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3806 ac_cxx_werror_flag=yes
3807 ac_cv_prog_cxx_g=no
3808 CXXFLAGS="-g"
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_cxx_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3842 ac_cv_prog_cxx_g=yes
3843 else
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 CXXFLAGS=""
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_cxx_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3881 :
3882 else
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3887 CXXFLAGS="-g"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894
3895 int
3896 main ()
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_cxx_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3921 ac_cv_prog_cxx_g=yes
3922 else
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3939 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3940 if test "$ac_test_CXXFLAGS" = set; then
3941 CXXFLAGS=$ac_save_CXXFLAGS
3942 elif test $ac_cv_prog_cxx_g = yes; then
3943 if test "$GXX" = yes; then
3944 CXXFLAGS="-g -O2"
3945 else
3946 CXXFLAGS="-g"
3947 fi
3948 else
3949 if test "$GXX" = yes; then
3950 CXXFLAGS="-O2"
3951 else
3952 CXXFLAGS=
3953 fi
3954 fi
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961 depcc="$CXX" am_compiler_list=
3962
3963 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3964 $as_echo_n "checking dependency style of $depcc... " >&6; }
3965 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969 # We make a subdir and do the tests there. Otherwise we can end up
3970 # making bogus files that we don't know about and never remove. For
3971 # instance it was reported that on HP-UX the gcc test will end up
3972 # making a dummy file named `D' -- because `-MD' means `put the output
3973 # in D'.
3974 mkdir conftest.dir
3975 # Copy depcomp to subdir because otherwise we won't find it if we're
3976 # using a relative directory.
3977 cp "$am_depcomp" conftest.dir
3978 cd conftest.dir
3979 # We will build objects and dependencies in a subdirectory because
3980 # it helps to detect inapplicable dependency modes. For instance
3981 # both Tru64's cc and ICC support -MD to output dependencies as a
3982 # side effect of compilation, but ICC will put the dependencies in
3983 # the current directory while Tru64 will put them in the object
3984 # directory.
3985 mkdir sub
3986
3987 am_cv_CXX_dependencies_compiler_type=none
3988 if test "$am_compiler_list" = ""; then
3989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990 fi
3991 for depmode in $am_compiler_list; do
3992 # Setup a source with many dependencies, because some compilers
3993 # like to wrap large dependency lists on column 80 (with \), and
3994 # we should not choose a depcomp mode which is confused by this.
3995 #
3996 # We need to recreate these files for each test, as the compiler may
3997 # overwrite some of them when testing with obscure command lines.
3998 # This happens at least with the AIX C compiler.
3999 : > sub/conftest.c
4000 for i in 1 2 3 4 5 6; do
4001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4003 # Solaris 8's {/usr,}/bin/sh.
4004 touch sub/conftst$i.h
4005 done
4006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007
4008 case $depmode in
4009 nosideeffect)
4010 # after this tag, mechanisms are not by side-effect, so they'll
4011 # only be used when explicitly requested
4012 if test "x$enable_dependency_tracking" = xyes; then
4013 continue
4014 else
4015 break
4016 fi
4017 ;;
4018 none) break ;;
4019 esac
4020 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4021 # mode. It turns out that the SunPro C++ compiler does not properly
4022 # handle `-M -o', and we need to detect this.
4023 if depmode=$depmode \
4024 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4026 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4027 >/dev/null 2>conftest.err &&
4028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4030 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4032 # icc doesn't choke on unknown options, it will just issue warnings
4033 # or remarks (even with -Werror). So we grep stderr for any message
4034 # that says an option was ignored or not supported.
4035 # When given -MP, icc 7.0 and 7.1 complain thusly:
4036 # icc: Command line warning: ignoring option '-M'; no argument required
4037 # The diagnosis changed in icc 8.0:
4038 # icc: Command line remark: option '-MP' not supported
4039 if (grep 'ignoring option' conftest.err ||
4040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4041 am_cv_CXX_dependencies_compiler_type=$depmode
4042 break
4043 fi
4044 fi
4045 done
4046
4047 cd ..
4048 rm -rf conftest.dir
4049 else
4050 am_cv_CXX_dependencies_compiler_type=none
4051 fi
4052
4053 fi
4054 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4055 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4056 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4057
4058 if
4059 test "x$enable_dependency_tracking" != xno \
4060 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4061 am__fastdepCXX_TRUE=
4062 am__fastdepCXX_FALSE='#'
4063 else
4064 am__fastdepCXX_TRUE='#'
4065 am__fastdepCXX_FALSE=
4066 fi
4067
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4076 # On Suns, sometimes $CPP names a directory.
4077 if test -n "$CPP" && test -d "$CPP"; then
4078 CPP=
4079 fi
4080 if test -z "$CPP"; then
4081 if test "${ac_cv_prog_CPP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 # Double quotes because CPP needs to be expanded
4085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 do
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4089 do
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #ifdef __STDC__
4103 # include <limits.h>
4104 #else
4105 # include <assert.h>
4106 #endif
4107 Syntax error
4108 _ACEOF
4109 if { (ac_try="$ac_cpp conftest.$ac_ext"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null && {
4123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 }; then
4126 :
4127 else
4128 $as_echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 # Broken: fails on valid input.
4132 continue
4133 fi
4134
4135 rm -f conftest.err conftest.$ac_ext
4136
4137 # OK, works on sane cases. Now check whether nonexistent headers
4138 # can be detected and how.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if { (ac_try="$ac_cpp conftest.$ac_ext"
4148 case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4153 $as_echo "$ac_try_echo") >&5
4154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null && {
4161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 }; then
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 # Passes both tests.
4171 ac_preproc_ok=:
4172 break
4173 fi
4174
4175 rm -f conftest.err conftest.$ac_ext
4176
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then
4181 break
4182 fi
4183
4184 done
4185 ac_cv_prog_CPP=$CPP
4186
4187 fi
4188 CPP=$ac_cv_prog_CPP
4189 else
4190 ac_cv_prog_CPP=$CPP
4191 fi
4192 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222 $as_echo "$ac_try_echo") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 :
4234 else
4235 $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241
4242 rm -f conftest.err conftest.$ac_ext
4243
4244 # OK, works on sane cases. Now check whether nonexistent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4253 _ACEOF
4254 if { (ac_try="$ac_cpp conftest.$ac_ext"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 }; then
4271 # Broken: success on invalid input.
4272 continue
4273 else
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 # Passes both tests.
4278 ac_preproc_ok=:
4279 break
4280 fi
4281
4282 rm -f conftest.err conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then
4288 :
4289 else
4290 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details." >&5
4294 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }; }
4297 fi
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305 for ac_prog in gawk mawk nawk awk
4306 do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_AWK+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$AWK"; then
4315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_AWK="$ac_prog"
4325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 AWK=$ac_cv_prog_AWK
4335 if test -n "$AWK"; then
4336 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4337 $as_echo "$AWK" >&6; }
4338 else
4339 { $as_echo "$as_me:$LINENO: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344 test -n "$AWK" && break
4345 done
4346
4347 # Find a good install program. We prefer a C program (faster),
4348 # so one script is as good as another. But avoid the broken or
4349 # incompatible versions:
4350 # SysV /etc/install, /usr/sbin/install
4351 # SunOS /usr/etc/install
4352 # IRIX /sbin/install
4353 # AIX /bin/install
4354 # AmigaOS /C/install, which installs bootblocks on floppy discs
4355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4358 # OS/2's system install, which has a completely different semantic
4359 # ./install, which can be erroneously created by make from ./install.sh.
4360 # Reject install programs that cannot install multiple files.
4361 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4362 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4363 if test -z "$INSTALL"; then
4364 if test "${ac_cv_path_install+set}" = set; then
4365 $as_echo_n "(cached) " >&6
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 # Account for people who put trailing slashes in PATH elements.
4373 case $as_dir/ in
4374 ./ | .// | /cC/* | \
4375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4376 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4377 /usr/ucb/* ) ;;
4378 *)
4379 # OSF1 and SCO ODT 3.0 have their own names for install.
4380 # Don't use installbsd from OSF since it installs stuff as root
4381 # by default.
4382 for ac_prog in ginstall scoinst install; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4385 if test $ac_prog = install &&
4386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4387 # AIX install. It has an incompatible calling convention.
4388 :
4389 elif test $ac_prog = install &&
4390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4391 # program-specific install script used by HP pwplus--don't use.
4392 :
4393 else
4394 rm -rf conftest.one conftest.two conftest.dir
4395 echo one > conftest.one
4396 echo two > conftest.two
4397 mkdir conftest.dir
4398 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4399 test -s conftest.one && test -s conftest.two &&
4400 test -s conftest.dir/conftest.one &&
4401 test -s conftest.dir/conftest.two
4402 then
4403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4404 break 3
4405 fi
4406 fi
4407 fi
4408 done
4409 done
4410 ;;
4411 esac
4412
4413 done
4414 IFS=$as_save_IFS
4415
4416 rm -rf conftest.one conftest.two conftest.dir
4417
4418 fi
4419 if test "${ac_cv_path_install+set}" = set; then
4420 INSTALL=$ac_cv_path_install
4421 else
4422 # As a last resort, use the slow shell script. Don't cache a
4423 # value for INSTALL within a source directory, because that will
4424 # break other packages using the cache if that directory is
4425 # removed, or if the value is a relative name.
4426 INSTALL=$ac_install_sh
4427 fi
4428 fi
4429 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4430 $as_echo "$INSTALL" >&6; }
4431
4432 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4433 # It thinks the first close brace ends the variable substitution.
4434 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4435
4436 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4437
4438 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4439
4440 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4441 $as_echo_n "checking whether ln -s works... " >&6; }
4442 LN_S=$as_ln_s
4443 if test "$LN_S" = "ln -s"; then
4444 { $as_echo "$as_me:$LINENO: result: yes" >&5
4445 $as_echo "yes" >&6; }
4446 else
4447 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4448 $as_echo "no, using $LN_S" >&6; }
4449 fi
4450
4451 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4453 set x ${MAKE-make}
4454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4456 $as_echo_n "(cached) " >&6
4457 else
4458 cat >conftest.make <<\_ACEOF
4459 SHELL = /bin/sh
4460 all:
4461 @echo '@@@%%%=$(MAKE)=@@@%%%'
4462 _ACEOF
4463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4465 *@@@%%%=?*=@@@%%%*)
4466 eval ac_cv_prog_make_${ac_make}_set=yes;;
4467 *)
4468 eval ac_cv_prog_make_${ac_make}_set=no;;
4469 esac
4470 rm -f conftest.make
4471 fi
4472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4473 { $as_echo "$as_me:$LINENO: result: yes" >&5
4474 $as_echo "yes" >&6; }
4475 SET_MAKE=
4476 else
4477 { $as_echo "$as_me:$LINENO: result: no" >&5
4478 $as_echo "no" >&6; }
4479 SET_MAKE="MAKE=${MAKE-make}"
4480 fi
4481
4482
4483 PERL_VERSION=5.004
4484 for ac_prog in $PERL perl5 perl
4485 do
4486 # Extract the first word of "$ac_prog", so it can be a program name with args.
4487 set dummy $ac_prog; ac_word=$2
4488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_path_PERL+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4492 else
4493 case $PERL in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 ;;
4514 esac
4515 fi
4516 PERL=$ac_cv_path_PERL
4517 if test -n "$PERL"; then
4518 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
4519 $as_echo "$PERL" >&6; }
4520 else
4521 { $as_echo "$as_me:$LINENO: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525
4526 test -n "$PERL" && break
4527 done
4528
4529 if test -z "$PERL" || test "$PERL" = ":"; then
4530 { { $as_echo "$as_me:$LINENO: error: perl not found in \$PATH" >&5
4531 $as_echo "$as_me: error: perl not found in \$PATH" >&2;}
4532 { (exit 1); exit 1; }; }
4533 fi
4534
4535 { $as_echo "$as_me:$LINENO: checking for minimum required perl version >= $PERL_VERSION" >&5
4536 $as_echo_n "checking for minimum required perl version >= $PERL_VERSION... " >&6; }
4537 _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
4538 _perl_res=$?
4539 { $as_echo "$as_me:$LINENO: result: $_perl_version" >&5
4540 $as_echo "$_perl_version" >&6; }
4541
4542 if test "$_perl_res" != 0; then
4543 { { $as_echo "$as_me:$LINENO: error: Perl $PERL_VERSION or higher is required." >&5
4544 $as_echo "$as_me: error: Perl $PERL_VERSION or higher is required." >&2;}
4545 { (exit 1); exit 1; }; }
4546 fi
4547
4548 { $as_echo "$as_me:$LINENO: checking for full perl installation" >&5
4549 $as_echo_n "checking for full perl installation... " >&6; }
4550 _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
4551 _perl_res=$?
4552 if test "$_perl_res" != 0; then
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4555 { { $as_echo "$as_me:$LINENO: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." >&5
4556 $as_echo "$as_me: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." >&2;}
4557 { (exit 1); exit 1; }; }
4558 else
4559 { $as_echo "$as_me:$LINENO: result: yes" >&5
4560 $as_echo "yes" >&6; }
4561 fi
4562
4563
4564 # Checks for header files.
4565
4566
4567 { $as_echo "$as_me:$LINENO: checking for X" >&5
4568 $as_echo_n "checking for X... " >&6; }
4569
4570
4571 # Check whether --with-x was given.
4572 if test "${with_x+set}" = set; then
4573 withval=$with_x;
4574 fi
4575
4576 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4577 if test "x$with_x" = xno; then
4578 # The user explicitly disabled X.
4579 have_x=disabled
4580 else
4581 case $x_includes,$x_libraries in #(
4582 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
4583 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
4584 { (exit 1); exit 1; }; };; #(
4585 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4587 else
4588 # One or both of the vars are not set, and there is no cached value.
4589 ac_x_includes=no ac_x_libraries=no
4590 rm -f -r conftest.dir
4591 if mkdir conftest.dir; then
4592 cd conftest.dir
4593 cat >Imakefile <<'_ACEOF'
4594 incroot:
4595 @echo incroot='${INCROOT}'
4596 usrlibdir:
4597 @echo usrlibdir='${USRLIBDIR}'
4598 libdir:
4599 @echo libdir='${LIBDIR}'
4600 _ACEOF
4601 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4603 for ac_var in incroot usrlibdir libdir; do
4604 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4605 done
4606 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4607 for ac_extension in a so sl dylib la dll; do
4608 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4609 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4610 ac_im_usrlibdir=$ac_im_libdir; break
4611 fi
4612 done
4613 # Screen out bogus values from the imake configuration. They are
4614 # bogus both because they are the default anyway, and because
4615 # using them would break gcc on systems where it needs fixed includes.
4616 case $ac_im_incroot in
4617 /usr/include) ac_x_includes= ;;
4618 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4619 esac
4620 case $ac_im_usrlibdir in
4621 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4622 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4623 esac
4624 fi
4625 cd ..
4626 rm -f -r conftest.dir
4627 fi
4628
4629 # Standard set of common directories for X headers.
4630 # Check X11 before X11Rn because it is often a symlink to the current release.
4631 ac_x_header_dirs='
4632 /usr/X11/include
4633 /usr/X11R6/include
4634 /usr/X11R5/include
4635 /usr/X11R4/include
4636
4637 /usr/include/X11
4638 /usr/include/X11R6
4639 /usr/include/X11R5
4640 /usr/include/X11R4
4641
4642 /usr/local/X11/include
4643 /usr/local/X11R6/include
4644 /usr/local/X11R5/include
4645 /usr/local/X11R4/include
4646
4647 /usr/local/include/X11
4648 /usr/local/include/X11R6
4649 /usr/local/include/X11R5
4650 /usr/local/include/X11R4
4651
4652 /usr/X386/include
4653 /usr/x386/include
4654 /usr/XFree86/include/X11
4655
4656 /usr/include
4657 /usr/local/include
4658 /usr/unsupported/include
4659 /usr/athena/include
4660 /usr/local/x11r5/include
4661 /usr/lpp/Xamples/include
4662
4663 /usr/openwin/include
4664 /usr/openwin/share/include'
4665
4666 if test "$ac_x_includes" = no; then
4667 # Guess where to find include files, by looking for Xlib.h.
4668 # First, try using that file with no special directory specified.
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <X11/Xlib.h>
4676 _ACEOF
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null && {
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 }; then
4694 # We can compile using X headers with no special include directory.
4695 ac_x_includes=
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 for ac_dir in $ac_x_header_dirs; do
4701 if test -r "$ac_dir/X11/Xlib.h"; then
4702 ac_x_includes=$ac_dir
4703 break
4704 fi
4705 done
4706 fi
4707
4708 rm -f conftest.err conftest.$ac_ext
4709 fi # $ac_x_includes = no
4710
4711 if test "$ac_x_libraries" = no; then
4712 # Check for the libraries.
4713 # See if we find them without any special options.
4714 # Don't add to $LIBS permanently.
4715 ac_save_LIBS=$LIBS
4716 LIBS="-lX11 $LIBS"
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 #include <X11/Xlib.h>
4724 int
4725 main ()
4726 {
4727 XrmInitialize ()
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_link") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && {
4747 test -z "$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 } && test -s conftest$ac_exeext && {
4750 test "$cross_compiling" = yes ||
4751 $as_test_x conftest$ac_exeext
4752 }; then
4753 LIBS=$ac_save_LIBS
4754 # We can link X programs with no special library path.
4755 ac_x_libraries=
4756 else
4757 $as_echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 LIBS=$ac_save_LIBS
4761 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4762 do
4763 # Don't even attempt the hair of trying to link an X program!
4764 for ac_extension in a so sl dylib la dll; do
4765 if test -r "$ac_dir/libX11.$ac_extension"; then
4766 ac_x_libraries=$ac_dir
4767 break 2
4768 fi
4769 done
4770 done
4771 fi
4772
4773 rm -rf conftest.dSYM
4774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4775 conftest$ac_exeext conftest.$ac_ext
4776 fi # $ac_x_libraries = no
4777
4778 case $ac_x_includes,$ac_x_libraries in #(
4779 no,* | *,no | *\'*)
4780 # Didn't find X, or a directory has "'" in its name.
4781 ac_cv_have_x="have_x=no";; #(
4782 *)
4783 # Record where we found X for the cache.
4784 ac_cv_have_x="have_x=yes\
4785 ac_x_includes='$ac_x_includes'\
4786 ac_x_libraries='$ac_x_libraries'"
4787 esac
4788 fi
4789 ;; #(
4790 *) have_x=yes;;
4791 esac
4792 eval "$ac_cv_have_x"
4793 fi # $with_x != no
4794
4795 if test "$have_x" != yes; then
4796 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
4797 $as_echo "$have_x" >&6; }
4798 no_x=yes
4799 else
4800 # If each of the values was on the command line, it overrides each guess.
4801 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4802 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4803 # Update the cache value to reflect the command line values.
4804 ac_cv_have_x="have_x=yes\
4805 ac_x_includes='$x_includes'\
4806 ac_x_libraries='$x_libraries'"
4807 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4808 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4809 fi
4810
4811 if test "$no_x" = yes; then
4812 # Not all programs may use this symbol, but it does not hurt to define it.
4813
4814 cat >>confdefs.h <<\_ACEOF
4815 #define X_DISPLAY_MISSING 1
4816 _ACEOF
4817
4818 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4819 else
4820 if test -n "$x_includes"; then
4821 X_CFLAGS="$X_CFLAGS -I$x_includes"
4822 fi
4823
4824 # It would also be nice to do this for all -L options, not just this one.
4825 if test -n "$x_libraries"; then
4826 X_LIBS="$X_LIBS -L$x_libraries"
4827 # For Solaris; some versions of Sun CC require a space after -R and
4828 # others require no space. Words are not sufficient . . . .
4829 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4830 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4831 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4832 ac_xsave_c_werror_flag=$ac_c_werror_flag
4833 ac_c_werror_flag=yes
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_link") 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest$ac_exeext && {
4867 test "$cross_compiling" = yes ||
4868 $as_test_x conftest$ac_exeext
4869 }; then
4870 { $as_echo "$as_me:$LINENO: result: no" >&5
4871 $as_echo "no" >&6; }
4872 X_LIBS="$X_LIBS -R$x_libraries"
4873 else
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 LIBS="$ac_xsave_LIBS -R $x_libraries"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884
4885 int
4886 main ()
4887 {
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (ac_try="$ac_link"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_link") 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest$ac_exeext && {
4911 test "$cross_compiling" = yes ||
4912 $as_test_x conftest$ac_exeext
4913 }; then
4914 { $as_echo "$as_me:$LINENO: result: yes" >&5
4915 $as_echo "yes" >&6; }
4916 X_LIBS="$X_LIBS -R $x_libraries"
4917 else
4918 $as_echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4922 $as_echo "neither works" >&6; }
4923 fi
4924
4925 rm -rf conftest.dSYM
4926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4927 conftest$ac_exeext conftest.$ac_ext
4928 fi
4929
4930 rm -rf conftest.dSYM
4931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4932 conftest$ac_exeext conftest.$ac_ext
4933 ac_c_werror_flag=$ac_xsave_c_werror_flag
4934 LIBS=$ac_xsave_LIBS
4935 fi
4936
4937 # Check for system-dependent libraries X programs must link with.
4938 # Do this before checking for the system-independent R6 libraries
4939 # (-lICE), since we may need -lsocket or whatever for X linking.
4940
4941 if test "$ISC" = yes; then
4942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4943 else
4944 # Martyn Johnson says this is needed for Ultrix, if the X
4945 # libraries were built with DECnet support. And Karl Berry says
4946 # the Alpha needs dnet_stub (dnet does not exist).
4947 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954
4955 /* Override any GCC internal prototype to avoid an error.
4956 Use char because int might match the return type of a GCC
4957 builtin and then its argument prototype would still apply. */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 char XOpenDisplay ();
4962 int
4963 main ()
4964 {
4965 return XOpenDisplay ();
4966 ;
4967 return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978 (eval "$ac_link") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext && {
4988 test "$cross_compiling" = yes ||
4989 $as_test_x conftest$ac_exeext
4990 }; then
4991 :
4992 else
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4997 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4998 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4999 $as_echo_n "(cached) " >&6
5000 else
5001 ac_check_lib_save_LIBS=$LIBS
5002 LIBS="-ldnet $LIBS"
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009
5010 /* Override any GCC internal prototype to avoid an error.
5011 Use char because int might match the return type of a GCC
5012 builtin and then its argument prototype would still apply. */
5013 #ifdef __cplusplus
5014 extern "C"
5015 #endif
5016 char dnet_ntoa ();
5017 int
5018 main ()
5019 {
5020 return dnet_ntoa ();
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (ac_try="$ac_link"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5032 $as_echo "$ac_try_echo") >&5
5033 (eval "$ac_link") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest$ac_exeext && {
5043 test "$cross_compiling" = yes ||
5044 $as_test_x conftest$ac_exeext
5045 }; then
5046 ac_cv_lib_dnet_dnet_ntoa=yes
5047 else
5048 $as_echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_cv_lib_dnet_dnet_ntoa=no
5052 fi
5053
5054 rm -rf conftest.dSYM
5055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5056 conftest$ac_exeext conftest.$ac_ext
5057 LIBS=$ac_check_lib_save_LIBS
5058 fi
5059 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5060 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5061 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
5062 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5063 fi
5064
5065 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5066 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5067 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5068 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5070 else
5071 ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-ldnet_stub $LIBS"
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079
5080 /* Override any GCC internal prototype to avoid an error.
5081 Use char because int might match the return type of a GCC
5082 builtin and then its argument prototype would still apply. */
5083 #ifdef __cplusplus
5084 extern "C"
5085 #endif
5086 char dnet_ntoa ();
5087 int
5088 main ()
5089 {
5090 return dnet_ntoa ();
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102 $as_echo "$ac_try_echo") >&5
5103 (eval "$ac_link") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest$ac_exeext && {
5113 test "$cross_compiling" = yes ||
5114 $as_test_x conftest$ac_exeext
5115 }; then
5116 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5117 else
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_cv_lib_dnet_stub_dnet_ntoa=no
5122 fi
5123
5124 rm -rf conftest.dSYM
5125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5126 conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5128 fi
5129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5130 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5131 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
5132 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5133 fi
5134
5135 fi
5136 fi
5137
5138 rm -rf conftest.dSYM
5139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5140 conftest$ac_exeext conftest.$ac_ext
5141 LIBS="$ac_xsave_LIBS"
5142
5143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5144 # to get the SysV transport functions.
5145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5146 # needs -lnsl.
5147 # The nsl library prevents programs from opening the X display
5148 # on Irix 5.2, according to T.E. Dickey.
5149 # The functions gethostbyname, getservbyname, and inet_addr are
5150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5151 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
5152 $as_echo_n "checking for gethostbyname... " >&6; }
5153 if test "${ac_cv_func_gethostbyname+set}" = set; then
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164 #define gethostbyname innocuous_gethostbyname
5165
5166 /* System header to define __stub macros and hopefully few prototypes,
5167 which can conflict with char gethostbyname (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
5170
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176
5177 #undef gethostbyname
5178
5179 /* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
5182 #ifdef __cplusplus
5183 extern "C"
5184 #endif
5185 char gethostbyname ();
5186 /* The GNU C library defines this for functions which it implements
5187 to always fail with ENOSYS. Some functions are actually named
5188 something starting with __ and the normal name is an alias. */
5189 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5190 choke me
5191 #endif
5192
5193 int
5194 main ()
5195 {
5196 return gethostbyname ();
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (ac_try="$ac_link"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_link") 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest$ac_exeext && {
5219 test "$cross_compiling" = yes ||
5220 $as_test_x conftest$ac_exeext
5221 }; then
5222 ac_cv_func_gethostbyname=yes
5223 else
5224 $as_echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_cv_func_gethostbyname=no
5228 fi
5229
5230 rm -rf conftest.dSYM
5231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5232 conftest$ac_exeext conftest.$ac_ext
5233 fi
5234 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5235 $as_echo "$ac_cv_func_gethostbyname" >&6; }
5236
5237 if test $ac_cv_func_gethostbyname = no; then
5238 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5239 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5240 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5241 $as_echo_n "(cached) " >&6
5242 else
5243 ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-lnsl $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251
5252 /* Override any GCC internal prototype to avoid an error.
5253 Use char because int might match the return type of a GCC
5254 builtin and then its argument prototype would still apply. */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 char gethostbyname ();
5259 int
5260 main ()
5261 {
5262 return gethostbyname ();
5263 ;
5264 return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (ac_try="$ac_link"
5269 case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5274 $as_echo "$ac_try_echo") >&5
5275 (eval "$ac_link") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && {
5282 test -z "$ac_c_werror_flag" ||
5283 test ! -s conftest.err
5284 } && test -s conftest$ac_exeext && {
5285 test "$cross_compiling" = yes ||
5286 $as_test_x conftest$ac_exeext
5287 }; then
5288 ac_cv_lib_nsl_gethostbyname=yes
5289 else
5290 $as_echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 ac_cv_lib_nsl_gethostbyname=no
5294 fi
5295
5296 rm -rf conftest.dSYM
5297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5298 conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5300 fi
5301 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5302 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5303 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
5304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5305 fi
5306
5307 if test $ac_cv_lib_nsl_gethostbyname = no; then
5308 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5309 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5310 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5312 else
5313 ac_check_lib_save_LIBS=$LIBS
5314 LIBS="-lbsd $LIBS"
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321
5322 /* Override any GCC internal prototype to avoid an error.
5323 Use char because int might match the return type of a GCC
5324 builtin and then its argument prototype would still apply. */
5325 #ifdef __cplusplus
5326 extern "C"
5327 #endif
<