v2_ test_lab setup
[The-Artvertiser.git] / configure
blob47c7a64520a6d9ee8ed1c6e215ca837aebefa171
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for bazar 1.3.1.
5 # Report bugs to <julien.pilet@epfl.ch>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='bazar'
576 PACKAGE_TARNAME='bazar'
577 PACKAGE_VERSION='1.3.1'
578 PACKAGE_STRING='bazar 1.3.1'
579 PACKAGE_BUGREPORT='julien.pilet@epfl.ch'
581 ac_unique_file="starter/starter.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 am__isrc
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
678 CXXFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CXX
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CXXDEPMODE
691 am__fastdepCXX_TRUE
692 am__fastdepCXX_FALSE
694 CFLAGS
695 ac_ct_CC
696 CCDEPMODE
697 am__fastdepCC_TRUE
698 am__fastdepCC_FALSE
699 RANLIB
700 XMKMF
702 build
703 build_cpu
704 build_vendor
705 build_os
706 host
707 host_cpu
708 host_vendor
709 host_os
710 acx_pthread_config
711 PTHREAD_CC
712 PTHREAD_LIBS
713 PTHREAD_CFLAGS
714 GREP
715 EGREP
716 GL_CFLAGS
717 GL_LIBS
718 GLU_CFLAGS
719 GLU_LIBS
720 X_CFLAGS
721 X_PRE_LIBS
722 X_LIBS
723 X_EXTRA_LIBS
724 GLUT_CFLAGS
725 GLUT_LIBS
726 GLEW_LIBS
727 FULLGL_TRUE
728 FULLGL_FALSE
729 PKG_CONFIG
730 OPENCV_CFLAGS
731 OPENCV_LIBS
732 LIBOBJS
733 LTLIBOBJS'
734 ac_subst_files=''
735 ac_precious_vars='build_alias
736 host_alias
737 target_alias
739 CXXFLAGS
740 LDFLAGS
741 LIBS
742 CPPFLAGS
745 CFLAGS
746 XMKMF
748 PKG_CONFIG
749 OPENCV_CFLAGS
750 OPENCV_LIBS'
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
819 ac_dashdash=yes ;;
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
838 --config-cache | -C)
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=no ;;
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
872 -enable-* | --enable-*)
873 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_$ac_feature=\$ac_optarg ;;
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1069 -with-* | --with-*)
1070 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=\$ac_optarg ;;
1078 -without-* | --without-*)
1079 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_$ac_package=no ;;
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 esac
1128 done
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val=\$$ac_var
1143 case $ac_val in
1144 [\\/$]* | ?:[\\/]* ) continue;;
1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 esac
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1149 done
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1154 build=$build_alias
1155 host=$host_alias
1156 target=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160 if test "x$build_alias" = x; then
1161 cross_compiling=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1165 cross_compiling=yes
1169 ac_tool_prefix=
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172 test "$silent" = yes && exec 6>/dev/null
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 echo X"$0" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 s//\1/
1199 /^X\(\/\/\)[^/].*/{
1200 s//\1/
1203 /^X\(\/\/\)$/{
1204 s//\1/
1207 /^X\(\/\).*/{
1208 s//\1/
1211 s/.*/./; q'`
1212 srcdir=$ac_confdir
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 srcdir=..
1216 else
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures bazar 1.3.1 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/bazar]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1308 cat <<\_ACEOF
1310 Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1315 X features:
1316 --x-includes=DIR X include files are in DIR
1317 --x-libraries=DIR X library files are in DIR
1319 System types:
1320 --build=BUILD configure for building on BUILD [guessed]
1321 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1322 _ACEOF
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive ) echo "Configuration of bazar 1.3.1:";;
1328 esac
1329 cat <<\_ACEOF
1331 Optional Features:
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-dependency-tracking speeds up one-time build
1335 --enable-dependency-tracking do not reject slow dependency extractors
1337 Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1340 --with-x use the X Window System
1341 --with-apple-opengl-framework
1342 use Apple OpenGL framework (Mac OS X only)
1344 Some influential environment variables:
1345 CXX C++ compiler command
1346 CXXFLAGS C++ compiler flags
1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1348 nonstandard directory <lib dir>
1349 LIBS libraries to pass to the linker, e.g. -l<library>
1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1351 you have headers in a nonstandard directory <include dir>
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 XMKMF Path to xmkmf, Makefile generator for X Window System
1355 CPP C preprocessor
1356 PKG_CONFIG path to pkg-config utility
1357 OPENCV_CFLAGS
1358 C compiler flags for OPENCV, overriding pkg-config
1359 OPENCV_LIBS linker flags for OPENCV, overriding pkg-config
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <julien.pilet@epfl.ch>.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 bazar configure 1.3.1
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by bazar $as_me 1.3.1, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 # Check that the precious variables saved in the cache have kept the same
1713 # value.
1714 ac_cache_corrupted=false
1715 for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in
1721 set,)
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1723 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1725 ,set)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,);;
1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1734 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1735 echo "$as_me: former value: $ac_old_val" >&2;}
1736 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1737 echo "$as_me: current value: $ac_new_val" >&2;}
1738 ac_cache_corrupted=:
1739 fi;;
1740 esac
1741 # Pass precious variables to config.status.
1742 if test "$ac_new_set" = set; then
1743 case $ac_new_val in
1744 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 *) ac_arg=$ac_var=$ac_new_val ;;
1746 esac
1747 case " $ac_configure_args " in
1748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1749 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1750 esac
1752 done
1753 if $ac_cache_corrupted; then
1754 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1755 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1756 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1757 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1758 { (exit 1); exit 1; }; }
1785 ac_ext=c
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 am__api_version='1.10'
1794 ac_aux_dir=
1795 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1796 if test -f "$ac_dir/install-sh"; then
1797 ac_aux_dir=$ac_dir
1798 ac_install_sh="$ac_aux_dir/install-sh -c"
1799 break
1800 elif test -f "$ac_dir/install.sh"; then
1801 ac_aux_dir=$ac_dir
1802 ac_install_sh="$ac_aux_dir/install.sh -c"
1803 break
1804 elif test -f "$ac_dir/shtool"; then
1805 ac_aux_dir=$ac_dir
1806 ac_install_sh="$ac_aux_dir/shtool install -c"
1807 break
1809 done
1810 if test -z "$ac_aux_dir"; then
1811 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1812 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1813 { (exit 1); exit 1; }; }
1816 # These three variables are undocumented and unsupported,
1817 # and are intended to be withdrawn in a future Autoconf release.
1818 # They can cause serious problems if a builder's source tree is in a directory
1819 # whose full name contains unusual characters.
1820 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1821 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1822 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1825 # Find a good install program. We prefer a C program (faster),
1826 # so one script is as good as another. But avoid the broken or
1827 # incompatible versions:
1828 # SysV /etc/install, /usr/sbin/install
1829 # SunOS /usr/etc/install
1830 # IRIX /sbin/install
1831 # AIX /bin/install
1832 # AmigaOS /C/install, which installs bootblocks on floppy discs
1833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1836 # OS/2's system install, which has a completely different semantic
1837 # ./install, which can be erroneously created by make from ./install.sh.
1838 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1840 if test -z "$INSTALL"; then
1841 if test "${ac_cv_path_install+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 # Account for people who put trailing slashes in PATH elements.
1850 case $as_dir/ in
1851 ./ | .// | /cC/* | \
1852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1854 /usr/ucb/* ) ;;
1856 # OSF1 and SCO ODT 3.0 have their own names for install.
1857 # Don't use installbsd from OSF since it installs stuff as root
1858 # by default.
1859 for ac_prog in ginstall scoinst install; do
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1862 if test $ac_prog = install &&
1863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1864 # AIX install. It has an incompatible calling convention.
1866 elif test $ac_prog = install &&
1867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1868 # program-specific install script used by HP pwplus--don't use.
1870 else
1871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1872 break 3
1875 done
1876 done
1878 esac
1879 done
1880 IFS=$as_save_IFS
1884 if test "${ac_cv_path_install+set}" = set; then
1885 INSTALL=$ac_cv_path_install
1886 else
1887 # As a last resort, use the slow shell script. Don't cache a
1888 # value for INSTALL within a source directory, because that will
1889 # break other packages using the cache if that directory is
1890 # removed, or if the value is a relative name.
1891 INSTALL=$ac_install_sh
1894 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1895 echo "${ECHO_T}$INSTALL" >&6; }
1897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1898 # It thinks the first close brace ends the variable substitution.
1899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1905 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1906 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1907 # Just in case
1908 sleep 1
1909 echo timestamp > conftest.file
1910 # Do `set' in a subshell so we don't clobber the current shell's
1911 # arguments. Must try -L first in case configure is actually a
1912 # symlink; some systems play weird games with the mod time of symlinks
1913 # (eg FreeBSD returns the mod time of the symlink's containing
1914 # directory).
1915 if (
1916 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1917 if test "$*" = "X"; then
1918 # -L didn't work.
1919 set X `ls -t $srcdir/configure conftest.file`
1921 rm -f conftest.file
1922 if test "$*" != "X $srcdir/configure conftest.file" \
1923 && test "$*" != "X conftest.file $srcdir/configure"; then
1925 # If neither matched, then we have a broken ls. This can happen
1926 # if, for instance, CONFIG_SHELL is bash and it inherits a
1927 # broken ls alias from the environment. This has actually
1928 # happened. Such a system could not be considered "sane".
1929 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1930 alias in your environment" >&5
1931 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1932 alias in your environment" >&2;}
1933 { (exit 1); exit 1; }; }
1936 test "$2" = conftest.file
1938 then
1939 # Ok.
1941 else
1942 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1943 Check your system clock" >&5
1944 echo "$as_me: error: newly created file is older than distributed files!
1945 Check your system clock" >&2;}
1946 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6; }
1950 test "$program_prefix" != NONE &&
1951 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1952 # Use a double $ so make ignores it.
1953 test "$program_suffix" != NONE &&
1954 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1955 # Double any \ or $. echo might interpret backslashes.
1956 # By default was `s,x,x', remove it if useless.
1957 cat <<\_ACEOF >conftest.sed
1958 s/[\\$]/&&/g;s/;s,x,x,$//
1959 _ACEOF
1960 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1961 rm -f conftest.sed
1963 # expand $ac_aux_dir to an absolute path
1964 am_aux_dir=`cd $ac_aux_dir && pwd`
1966 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1967 # Use eval to expand $SHELL
1968 if eval "$MISSING --run true"; then
1969 am_missing_run="$MISSING --run "
1970 else
1971 am_missing_run=
1972 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1973 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1976 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1977 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1978 if test -z "$MKDIR_P"; then
1979 if test "${ac_cv_path_mkdir+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_prog in mkdir gmkdir; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1991 'mkdir (GNU coreutils) '* | \
1992 'mkdir (coreutils) '* | \
1993 'mkdir (fileutils) '4.1*)
1994 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1995 break 3;;
1996 esac
1997 done
1998 done
1999 done
2000 IFS=$as_save_IFS
2004 if test "${ac_cv_path_mkdir+set}" = set; then
2005 MKDIR_P="$ac_cv_path_mkdir -p"
2006 else
2007 # As a last resort, use the slow shell script. Don't cache a
2008 # value for MKDIR_P within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the value is a relative name.
2011 test -d ./--version && rmdir ./--version
2012 MKDIR_P="$ac_install_sh -d"
2015 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2016 echo "${ECHO_T}$MKDIR_P" >&6; }
2018 mkdir_p="$MKDIR_P"
2019 case $mkdir_p in
2020 [\\/$]* | ?:[\\/]*) ;;
2021 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2022 esac
2024 for ac_prog in gawk mawk nawk awk
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_AWK+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$AWK"; then
2034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_AWK="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2049 IFS=$as_save_IFS
2053 AWK=$ac_cv_prog_AWK
2054 if test -n "$AWK"; then
2055 { echo "$as_me:$LINENO: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6; }
2057 else
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$AWK" && break
2064 done
2066 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2068 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2069 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 cat >conftest.make <<\_ACEOF
2073 SHELL = /bin/sh
2074 all:
2075 @echo '@@@%%%=$(MAKE)=@@@%%%'
2076 _ACEOF
2077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2079 *@@@%%%=?*=@@@%%%*)
2080 eval ac_cv_prog_make_${ac_make}_set=yes;;
2082 eval ac_cv_prog_make_${ac_make}_set=no;;
2083 esac
2084 rm -f conftest.make
2086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 SET_MAKE=
2090 else
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093 SET_MAKE="MAKE=${MAKE-make}"
2096 rm -rf .tst 2>/dev/null
2097 mkdir .tst 2>/dev/null
2098 if test -d .tst; then
2099 am__leading_dot=.
2100 else
2101 am__leading_dot=_
2103 rmdir .tst 2>/dev/null
2105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2107 # is not polluted with repeated "-I."
2108 am__isrc=' -I$(srcdir)'
2109 # test to see if srcdir already configured
2110 if test -f $srcdir/config.status; then
2111 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2112 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2113 { (exit 1); exit 1; }; }
2117 # test whether we have cygpath
2118 if test -z "$CYGPATH_W"; then
2119 if (cygpath --version) >/dev/null 2>/dev/null; then
2120 CYGPATH_W='cygpath -w'
2121 else
2122 CYGPATH_W=echo
2127 # Define the identity of the package.
2128 PACKAGE='bazar'
2129 VERSION='1.3.1'
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE "$PACKAGE"
2134 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define VERSION "$VERSION"
2139 _ACEOF
2141 # Some tools Automake needs.
2143 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2146 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2149 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2152 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2155 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2157 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2159 # Installed binaries are usually stripped using `strip' when the user
2160 # run `make install-strip'. However `strip' might not be the right
2161 # tool to use in cross-compilation environments, therefore Automake
2162 # will honor the `STRIP' environment variable to overrule this program.
2163 if test "$cross_compiling" != no; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}strip; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_STRIP+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$STRIP"; then
2173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2186 done
2187 done
2188 IFS=$as_save_IFS
2192 STRIP=$ac_cv_prog_STRIP
2193 if test -n "$STRIP"; then
2194 { echo "$as_me:$LINENO: result: $STRIP" >&5
2195 echo "${ECHO_T}$STRIP" >&6; }
2196 else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2203 if test -z "$ac_cv_prog_STRIP"; then
2204 ac_ct_STRIP=$STRIP
2205 # Extract the first word of "strip", so it can be a program name with args.
2206 set dummy strip; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$ac_ct_STRIP"; then
2213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_ac_ct_STRIP="strip"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2228 IFS=$as_save_IFS
2232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2233 if test -n "$ac_ct_STRIP"; then
2234 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2235 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2241 if test "x$ac_ct_STRIP" = x; then
2242 STRIP=":"
2243 else
2244 case $cross_compiling:$ac_tool_warned in
2245 yes:)
2246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 whose name does not start with the host triplet. If you think this
2251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 ac_tool_warned=yes ;;
2253 esac
2254 STRIP=$ac_ct_STRIP
2256 else
2257 STRIP="$ac_cv_prog_STRIP"
2261 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2263 # We need awk for the "check" target. The system "awk" is bad on
2264 # some platforms.
2265 # Always define AMTAR for backward compatibility.
2267 AMTAR=${AMTAR-"${am_missing_run}tar"}
2269 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2278 ac_config_headers="$ac_config_headers config.h"
2281 # Checks for programs.
2282 ac_ext=cpp
2283 ac_cpp='$CXXCPP $CPPFLAGS'
2284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2287 if test -z "$CXX"; then
2288 if test -n "$CCC"; then
2289 CXX=$CCC
2290 else
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_CXX+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$CXX"; then
2302 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2317 IFS=$as_save_IFS
2321 CXX=$ac_cv_prog_CXX
2322 if test -n "$CXX"; then
2323 { echo "$as_me:$LINENO: result: $CXX" >&5
2324 echo "${ECHO_T}$CXX" >&6; }
2325 else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2331 test -n "$CXX" && break
2332 done
2334 if test -z "$CXX"; then
2335 ac_ct_CXX=$CXX
2336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$ac_ct_CXX"; then
2346 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_ac_ct_CXX="$ac_prog"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2366 if test -n "$ac_ct_CXX"; then
2367 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2368 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2369 else
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2375 test -n "$ac_ct_CXX" && break
2376 done
2378 if test "x$ac_ct_CXX" = x; then
2379 CXX="g++"
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382 yes:)
2383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&5
2386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389 ac_tool_warned=yes ;;
2390 esac
2391 CXX=$ac_ct_CXX
2397 # Provide some information about the compiler.
2398 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2399 ac_compiler=`set X $ac_compile; echo $2`
2400 { (ac_try="$ac_compiler --version >&5"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compiler --version >&5") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2410 { (ac_try="$ac_compiler -v >&5"
2411 case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_compiler -v >&5") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (ac_try="$ac_compiler -V >&5"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler -V >&5") 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 main ()
2443 return 0;
2445 _ACEOF
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2450 # of exeext.
2451 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2452 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2453 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2455 # List of possible output files, starting from the most likely.
2456 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2457 # only as a last resort. b.out is created by i960 compilers.
2458 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2460 # The IRIX 6 linker writes into existing files which may not be
2461 # executable, retaining their permissions. Remove them first so a
2462 # subsequent execution test works.
2463 ac_rmfiles=
2464 for ac_file in $ac_files
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2468 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2469 esac
2470 done
2471 rm -f $ac_rmfiles
2473 if { (ac_try="$ac_link_default"
2474 case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_link_default") 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; then
2483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2485 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2486 # so that the user can short-circuit this test for compilers unknown to
2487 # Autoconf.
2488 for ac_file in $ac_files ''
2490 test -f "$ac_file" || continue
2491 case $ac_file in
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2494 [ab].out )
2495 # We found the default executable, but exeext='' is most
2496 # certainly right.
2497 break;;
2498 *.* )
2499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2500 then :; else
2501 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503 # We set ac_cv_exeext here because the later test for it is not
2504 # safe: cross compilers may not add the suffix if given an `-o'
2505 # argument, so we may need to know it at that point already.
2506 # Even if this section looks crufty: it has the advantage of
2507 # actually working.
2508 break;;
2510 break;;
2511 esac
2512 done
2513 test "$ac_cv_exeext" = no && ac_cv_exeext=
2515 else
2516 ac_file=''
2519 { echo "$as_me:$LINENO: result: $ac_file" >&5
2520 echo "${ECHO_T}$ac_file" >&6; }
2521 if test -z "$ac_file"; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: C++ compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529 { (exit 77); exit 77; }; }
2532 ac_exeext=$ac_cv_exeext
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2537 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541 if { ac_try='./$ac_file'
2542 { (case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_try") 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 cross_compiling=no
2552 else
2553 if test "$cross_compiling" = maybe; then
2554 cross_compiling=yes
2555 else
2556 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot run C++ compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2566 { echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6; }
2569 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2570 ac_clean_files=$ac_clean_files_save
2571 # Check that the compiler produces executables we can run. If not, either
2572 # the compiler is broken, or we cross compile.
2573 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2574 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2575 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2576 echo "${ECHO_T}$cross_compiling" >&6; }
2578 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2579 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2580 if { (ac_try="$ac_link"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_link") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 # `rm'.
2594 for ac_file in conftest.exe conftest conftest.*; do
2595 test -f "$ac_file" || continue
2596 case $ac_file in
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 break;;
2600 * ) break;;
2601 esac
2602 done
2603 else
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2611 rm -f conftest$ac_cv_exeext
2612 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2613 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2615 rm -f conftest.$ac_ext
2616 EXEEXT=$ac_cv_exeext
2617 ac_exeext=$EXEEXT
2618 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2619 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2620 if test "${ac_cv_objext+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2631 main ()
2635 return 0;
2637 _ACEOF
2638 rm -f conftest.o conftest.obj
2639 if { (ac_try="$ac_compile"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 for ac_file in conftest.o conftest.obj conftest.*; do
2650 test -f "$ac_file" || continue;
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 break;;
2655 esac
2656 done
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6; }
2672 OBJEXT=$ac_cv_objext
2673 ac_objext=$OBJEXT
2674 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 main ()
2689 #ifndef __GNUC__
2690 choke me
2691 #endif
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_cxx_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2714 ac_compiler_gnu=yes
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_compiler_gnu=no
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2726 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2728 GXX=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CXXFLAGS=${CXXFLAGS+set}
2730 ac_save_CXXFLAGS=$CXXFLAGS
2731 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2732 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_cxx_g+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2737 ac_cxx_werror_flag=yes
2738 ac_cv_prog_cxx_g=no
2739 CXXFLAGS="-g -O3 -mtune=native -msse3"
2740 cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h. */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2748 main ()
2752 return 0;
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2757 case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compile") 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } && {
2769 test -z "$ac_cxx_werror_flag" ||
2770 test ! -s conftest.err
2771 } && test -s conftest.$ac_objext; then
2772 ac_cv_prog_cxx_g=yes
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 CXXFLAGS=""
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } && {
2807 test -z "$ac_cxx_werror_flag" ||
2808 test ! -s conftest.err
2809 } && test -s conftest.$ac_objext; then
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2816 CXXFLAGS="-g -O3 -mtune=native -msse3"
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2825 main ()
2829 return 0;
2831 _ACEOF
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compile") 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } && {
2846 test -z "$ac_cxx_werror_flag" ||
2847 test ! -s conftest.err
2848 } && test -s conftest.$ac_objext; then
2849 ac_cv_prog_cxx_g=yes
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2866 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2867 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2868 if test "$ac_test_CXXFLAGS" = set; then
2869 CXXFLAGS=$ac_save_CXXFLAGS
2870 elif test $ac_cv_prog_cxx_g = yes; then
2871 if test "$GXX" = yes; then
2872 CXXFLAGS="-g -O3 -mtune=native -msse3"
2873 else
2874 CXXFLAGS="-g"
2876 else
2877 if test "$GXX" = yes; then
2878 CXXFLAGS="-O2"
2879 else
2880 CXXFLAGS=
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 DEPDIR="${am__leading_dot}deps"
2890 ac_config_commands="$ac_config_commands depfiles"
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2895 am__doit:
2896 @echo done
2897 .PHONY: am__doit
2899 # If we don't find an include directive, just comment out the code.
2900 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2901 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2902 am__include="#"
2903 am__quote=
2904 _am_result=none
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # We grep out `Entering directory' and `Leaving directory'
2908 # messages which can occur if `w' ends up in MAKEFLAGS.
2909 # In particular we don't look at `^make:' because GNU make might
2910 # be invoked under some other name (usually "gmake"), in which
2911 # case it prints its new name instead of `make'.
2912 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2913 am__include=include
2914 am__quote=
2915 _am_result=GNU
2917 # Now try BSD make style include.
2918 if test "$am__include" = "#"; then
2919 echo '.include "confinc"' > confmf
2920 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2921 am__include=.include
2922 am__quote="\""
2923 _am_result=BSD
2928 { echo "$as_me:$LINENO: result: $_am_result" >&5
2929 echo "${ECHO_T}$_am_result" >&6; }
2930 rm -f confinc confmf
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then
2934 enableval=$enable_dependency_tracking;
2937 if test "x$enable_dependency_tracking" != xno; then
2938 am_depcomp="$ac_aux_dir/depcomp"
2939 AMDEPBACKSLASH='\'
2941 if test "x$enable_dependency_tracking" != xno; then
2942 AMDEP_TRUE=
2943 AMDEP_FALSE='#'
2944 else
2945 AMDEP_TRUE='#'
2946 AMDEP_FALSE=
2951 depcc="$CXX" am_compiler_list=
2953 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2954 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2955 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959 # We make a subdir and do the tests there. Otherwise we can end up
2960 # making bogus files that we don't know about and never remove. For
2961 # instance it was reported that on HP-UX the gcc test will end up
2962 # making a dummy file named `D' -- because `-MD' means `put the output
2963 # in D'.
2964 mkdir conftest.dir
2965 # Copy depcomp to subdir because otherwise we won't find it if we're
2966 # using a relative directory.
2967 cp "$am_depcomp" conftest.dir
2968 cd conftest.dir
2969 # We will build objects and dependencies in a subdirectory because
2970 # it helps to detect inapplicable dependency modes. For instance
2971 # both Tru64's cc and ICC support -MD to output dependencies as a
2972 # side effect of compilation, but ICC will put the dependencies in
2973 # the current directory while Tru64 will put them in the object
2974 # directory.
2975 mkdir sub
2977 am_cv_CXX_dependencies_compiler_type=none
2978 if test "$am_compiler_list" = ""; then
2979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981 for depmode in $am_compiler_list; do
2982 # Setup a source with many dependencies, because some compilers
2983 # like to wrap large dependency lists on column 80 (with \), and
2984 # we should not choose a depcomp mode which is confused by this.
2986 # We need to recreate these files for each test, as the compiler may
2987 # overwrite some of them when testing with obscure command lines.
2988 # This happens at least with the AIX C compiler.
2989 : > sub/conftest.c
2990 for i in 1 2 3 4 5 6; do
2991 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2993 # Solaris 8's {/usr,}/bin/sh.
2994 touch sub/conftst$i.h
2995 done
2996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2998 case $depmode in
2999 nosideeffect)
3000 # after this tag, mechanisms are not by side-effect, so they'll
3001 # only be used when explicitly requested
3002 if test "x$enable_dependency_tracking" = xyes; then
3003 continue
3004 else
3005 break
3008 none) break ;;
3009 esac
3010 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3011 # mode. It turns out that the SunPro C++ compiler does not properly
3012 # handle `-M -o', and we need to detect this.
3013 if depmode=$depmode \
3014 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3016 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3017 >/dev/null 2>conftest.err &&
3018 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3020 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3022 # icc doesn't choke on unknown options, it will just issue warnings
3023 # or remarks (even with -Werror). So we grep stderr for any message
3024 # that says an option was ignored or not supported.
3025 # When given -MP, icc 7.0 and 7.1 complain thusly:
3026 # icc: Command line warning: ignoring option '-M'; no argument required
3027 # The diagnosis changed in icc 8.0:
3028 # icc: Command line remark: option '-MP' not supported
3029 if (grep 'ignoring option' conftest.err ||
3030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3031 am_cv_CXX_dependencies_compiler_type=$depmode
3032 break
3035 done
3037 cd ..
3038 rm -rf conftest.dir
3039 else
3040 am_cv_CXX_dependencies_compiler_type=none
3044 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3045 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3046 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3049 test "x$enable_dependency_tracking" != xno \
3050 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3051 am__fastdepCXX_TRUE=
3052 am__fastdepCXX_FALSE='#'
3053 else
3054 am__fastdepCXX_TRUE='#'
3055 am__fastdepCXX_FALSE=
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3088 IFS=$as_save_IFS
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { echo "$as_me:$LINENO: result: $CC" >&5
3095 echo "${ECHO_T}$CC" >&6; }
3096 else
3097 { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3103 if test -z "$ac_cv_prog_CC"; then
3104 ac_ct_CC=$CC
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc; ac_word=$2
3107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="gcc"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3135 echo "${ECHO_T}$ac_ct_CC" >&6; }
3136 else
3137 { echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6; }
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet. If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&5
3149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3156 else
3157 CC="$ac_cv_prog_CC"
3160 if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}cc; ac_word=$2
3164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="${ac_tool_prefix}cc"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6; }
3193 else
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3201 if test -z "$CC"; then
3202 # Extract the first word of "cc", so it can be a program name with args.
3203 set dummy cc; ac_word=$2
3204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 ac_prog_rejected=no
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3221 ac_prog_rejected=yes
3222 continue
3224 ac_cv_prog_CC="cc"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3228 done
3229 done
3230 IFS=$as_save_IFS
3232 if test $ac_prog_rejected = yes; then
3233 # We found a bogon in the path, so make sure we never use it.
3234 set dummy $ac_cv_prog_CC
3235 shift
3236 if test $# != 0; then
3237 # We chose a different compiler from the bogus one.
3238 # However, it has the same basename, so the bogon will be chosen
3239 # first if we set CC to just the basename; use the full file name.
3240 shift
3241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { echo "$as_me:$LINENO: result: $CC" >&5
3249 echo "${ECHO_T}$CC" >&6; }
3250 else
3251 { echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6; }
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 for ac_prog in cl.exe
3261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { echo "$as_me:$LINENO: result: $CC" >&5
3291 echo "${ECHO_T}$CC" >&6; }
3292 else
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3298 test -n "$CC" && break
3299 done
3301 if test -z "$CC"; then
3302 ac_ct_CC=$CC
3303 for ac_prog in cl.exe
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if test -n "$ac_ct_CC"; then
3313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_ac_ct_CC="$ac_prog"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3326 done
3327 done
3328 IFS=$as_save_IFS
3332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333 if test -n "$ac_ct_CC"; then
3334 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3335 echo "${ECHO_T}$ac_ct_CC" >&6; }
3336 else
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3342 test -n "$ac_ct_CC" && break
3343 done
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3351 whose name does not start with the host triplet. If you think this
3352 configuration is useful to you, please write to autoconf@gnu.org." >&5
3353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet. If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 CC=$ac_ct_CC
3365 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: no acceptable C compiler found in \$PATH
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3371 # Provide some information about the compiler.
3372 echo "$as_me:$LINENO: checking for C compiler version" >&5
3373 ac_compiler=`set X $ac_compile; echo $2`
3374 { (ac_try="$ac_compiler --version >&5"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compiler --version >&5") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384 { (ac_try="$ac_compiler -v >&5"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compiler -v >&5") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394 { (ac_try="$ac_compiler -V >&5"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compiler -V >&5") 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3405 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3406 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3407 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3418 main ()
3420 #ifndef __GNUC__
3421 choke me
3422 #endif
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_compiler_gnu=yes
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_compiler_gnu=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3458 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3459 GCC=`test $ac_compiler_gnu = yes && echo yes`
3460 ac_test_CFLAGS=${CFLAGS+set}
3461 ac_save_CFLAGS=$CFLAGS
3462 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3463 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_cc_g+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 ac_save_c_werror_flag=$ac_c_werror_flag
3468 ac_c_werror_flag=yes
3469 ac_cv_prog_cc_g=no
3470 CFLAGS="-g -O3 -mtune=native -msse3"
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 main ()
3483 return 0;
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest.$ac_objext; then
3503 ac_cv_prog_cc_g=yes
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 CFLAGS=""
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3517 main ()
3521 return 0;
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.$ac_objext; then
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3547 CFLAGS="-g -O3 -mtune=native -msse3"
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3580 ac_cv_prog_cc_g=yes
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O3 -mtune=native -msse3"
3604 else
3605 CFLAGS="-g"
3607 else
3608 if test "$GCC" = yes; then
3609 CFLAGS=" -O3 -mtune=native -msse3 "
3610 else
3611 CFLAGS=
3614 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3615 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_cc_c89+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3635 char **p;
3636 int i;
3638 return p[i];
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3642 char *s;
3643 va_list v;
3644 va_start (v,p);
3645 s = g (p, va_arg (v,int));
3646 va_end (v);
3647 return s;
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3661 #define FOO(x) 'x'
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 int argc;
3669 char **argv;
3671 main ()
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3675 return 0;
3677 _ACEOF
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 CC="$ac_save_CC $ac_arg"
3682 rm -f conftest.$ac_objext
3683 if { (ac_try="$ac_compile"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compile") 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } && {
3696 test -z "$ac_c_werror_flag" ||
3697 test ! -s conftest.err
3698 } && test -s conftest.$ac_objext; then
3699 ac_cv_prog_cc_c89=$ac_arg
3700 else
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3707 rm -f core conftest.err conftest.$ac_objext
3708 test "x$ac_cv_prog_cc_c89" != "xno" && break
3709 done
3710 rm -f conftest.$ac_ext
3711 CC=$ac_save_CC
3714 # AC_CACHE_VAL
3715 case "x$ac_cv_prog_cc_c89" in
3717 { echo "$as_me:$LINENO: result: none needed" >&5
3718 echo "${ECHO_T}none needed" >&6; } ;;
3719 xno)
3720 { echo "$as_me:$LINENO: result: unsupported" >&5
3721 echo "${ECHO_T}unsupported" >&6; } ;;
3723 CC="$CC $ac_cv_prog_cc_c89"
3724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3725 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3726 esac
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 depcc="$CC" am_compiler_list=
3737 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3738 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3739 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743 # We make a subdir and do the tests there. Otherwise we can end up
3744 # making bogus files that we don't know about and never remove. For
3745 # instance it was reported that on HP-UX the gcc test will end up
3746 # making a dummy file named `D' -- because `-MD' means `put the output
3747 # in D'.
3748 mkdir conftest.dir
3749 # Copy depcomp to subdir because otherwise we won't find it if we're
3750 # using a relative directory.
3751 cp "$am_depcomp" conftest.dir
3752 cd conftest.dir
3753 # We will build objects and dependencies in a subdirectory because
3754 # it helps to detect inapplicable dependency modes. For instance
3755 # both Tru64's cc and ICC support -MD to output dependencies as a
3756 # side effect of compilation, but ICC will put the dependencies in
3757 # the current directory while Tru64 will put them in the object
3758 # directory.
3759 mkdir sub
3761 am_cv_CC_dependencies_compiler_type=none
3762 if test "$am_compiler_list" = ""; then
3763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765 for depmode in $am_compiler_list; do
3766 # Setup a source with many dependencies, because some compilers
3767 # like to wrap large dependency lists on column 80 (with \), and
3768 # we should not choose a depcomp mode which is confused by this.
3770 # We need to recreate these files for each test, as the compiler may
3771 # overwrite some of them when testing with obscure command lines.
3772 # This happens at least with the AIX C compiler.
3773 : > sub/conftest.c
3774 for i in 1 2 3 4 5 6; do
3775 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3776 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3777 # Solaris 8's {/usr,}/bin/sh.
3778 touch sub/conftst$i.h
3779 done
3780 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3782 case $depmode in
3783 nosideeffect)
3784 # after this tag, mechanisms are not by side-effect, so they'll
3785 # only be used when explicitly requested
3786 if test "x$enable_dependency_tracking" = xyes; then
3787 continue
3788 else
3789 break
3792 none) break ;;
3793 esac
3794 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3795 # mode. It turns out that the SunPro C++ compiler does not properly
3796 # handle `-M -o', and we need to detect this.
3797 if depmode=$depmode \
3798 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3800 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3801 >/dev/null 2>conftest.err &&
3802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type=$depmode
3816 break
3819 done
3821 cd ..
3822 rm -rf conftest.dir
3823 else
3824 am_cv_CC_dependencies_compiler_type=none
3828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833 test "x$enable_dependency_tracking" != xno \
3834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835 am__fastdepCC_TRUE=
3836 am__fastdepCC_FALSE='#'
3837 else
3838 am__fastdepCC_TRUE='#'
3839 am__fastdepCC_FALSE=
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3848 if test "${ac_cv_prog_RANLIB+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 if test -n "$RANLIB"; then
3852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 RANLIB=$ac_cv_prog_RANLIB
3872 if test -n "$RANLIB"; then
3873 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3874 echo "${ECHO_T}$RANLIB" >&6; }
3875 else
3876 { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3882 if test -z "$ac_cv_prog_RANLIB"; then
3883 ac_ct_RANLIB=$RANLIB
3884 # Extract the first word of "ranlib", so it can be a program name with args.
3885 set dummy ranlib; ac_word=$2
3886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 if test -n "$ac_ct_RANLIB"; then
3892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_ac_ct_RANLIB="ranlib"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3905 done
3906 done
3907 IFS=$as_save_IFS
3911 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3912 if test -n "$ac_ct_RANLIB"; then
3913 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3914 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3915 else
3916 { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3920 if test "x$ac_ct_RANLIB" = x; then
3921 RANLIB=":"
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3926 whose name does not start with the host triplet. If you think this
3927 configuration is useful to you, please write to autoconf@gnu.org." >&5
3928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3929 whose name does not start with the host triplet. If you think this
3930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3931 ac_tool_warned=yes ;;
3932 esac
3933 RANLIB=$ac_ct_RANLIB
3935 else
3936 RANLIB="$ac_cv_prog_RANLIB"
3940 # Checks for libraries.
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3948 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3951 CPP=
3953 if test -z "$CPP"; then
3954 if test "${ac_cv_prog_CPP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 # Double quotes because CPP needs to be expanded
3958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3960 ac_preproc_ok=false
3961 for ac_c_preproc_warn_flag in '' yes
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980 Syntax error
3981 _ACEOF
3982 if { (ac_try="$ac_cpp conftest.$ac_ext"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null && {
3995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 }; then
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 # Broken: fails on valid input.
4004 continue
4007 rm -f conftest.err conftest.$ac_ext
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 #include <ac_nonexistent.h>
4018 _ACEOF
4019 if { (ac_try="$ac_cpp conftest.$ac_ext"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev/null && {
4032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 }; then
4035 # Broken: success on invalid input.
4036 continue
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 # Passes both tests.
4042 ac_preproc_ok=:
4043 break
4046 rm -f conftest.err conftest.$ac_ext
4048 done
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then
4052 break
4055 done
4056 ac_cv_prog_CPP=$CPP
4059 CPP=$ac_cv_prog_CPP
4060 else
4061 ac_cv_prog_CPP=$CPP
4063 { echo "$as_me:$LINENO: result: $CPP" >&5
4064 echo "${ECHO_T}$CPP" >&6; }
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 #ifdef __STDC__
4081 # include <limits.h>
4082 #else
4083 # include <assert.h>
4084 #endif
4085 Syntax error
4086 _ACEOF
4087 if { (ac_try="$ac_cpp conftest.$ac_ext"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 }; then
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4109 continue
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } >/dev/null && {
4137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 }; then
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4151 rm -f conftest.err conftest.$ac_ext
4153 done
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.$ac_ext
4156 if $ac_preproc_ok; then
4158 else
4159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4160 See \`config.log' for more details." >&5
4161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4162 See \`config.log' for more details." >&2;}
4163 { (exit 1); exit 1; }; }
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 { echo "$as_me:$LINENO: checking for X" >&5
4174 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4177 # Check whether --with-x was given.
4178 if test "${with_x+set}" = set; then
4179 withval=$with_x;
4182 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4183 if test "x$with_x" = xno; then
4184 # The user explicitly disabled X.
4185 have_x=disabled
4186 else
4187 case $x_includes,$x_libraries in #(
4188 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4189 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4190 { (exit 1); exit 1; }; };; #(
4191 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 # One or both of the vars are not set, and there is no cached value.
4195 ac_x_includes=no ac_x_libraries=no
4196 rm -f -r conftest.dir
4197 if mkdir conftest.dir; then
4198 cd conftest.dir
4199 cat >Imakefile <<'_ACEOF'
4200 incroot:
4201 @echo incroot='${INCROOT}'
4202 usrlibdir:
4203 @echo usrlibdir='${USRLIBDIR}'
4204 libdir:
4205 @echo libdir='${LIBDIR}'
4206 _ACEOF
4207 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4209 for ac_var in incroot usrlibdir libdir; do
4210 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4211 done
4212 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4213 for ac_extension in a so sl; do
4214 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4215 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4216 ac_im_usrlibdir=$ac_im_libdir; break
4218 done
4219 # Screen out bogus values from the imake configuration. They are
4220 # bogus both because they are the default anyway, and because
4221 # using them would break gcc on systems where it needs fixed includes.
4222 case $ac_im_incroot in
4223 /usr/include) ac_x_includes= ;;
4224 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4225 esac
4226 case $ac_im_usrlibdir in
4227 /usr/lib | /lib) ;;
4228 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4229 esac
4231 cd ..
4232 rm -f -r conftest.dir
4235 # Standard set of common directories for X headers.
4236 # Check X11 before X11Rn because it is often a symlink to the current release.
4237 ac_x_header_dirs='
4238 /usr/X11/include
4239 /usr/X11R6/include
4240 /usr/X11R5/include
4241 /usr/X11R4/include
4243 /usr/include/X11
4244 /usr/include/X11R6
4245 /usr/include/X11R5
4246 /usr/include/X11R4
4248 /usr/local/X11/include
4249 /usr/local/X11R6/include
4250 /usr/local/X11R5/include
4251 /usr/local/X11R4/include
4253 /usr/local/include/X11
4254 /usr/local/include/X11R6
4255 /usr/local/include/X11R5
4256 /usr/local/include/X11R4
4258 /usr/X386/include
4259 /usr/x386/include
4260 /usr/XFree86/include/X11
4262 /usr/include
4263 /usr/local/include
4264 /usr/unsupported/include
4265 /usr/athena/include
4266 /usr/local/x11r5/include
4267 /usr/lpp/Xamples/include
4269 /usr/openwin/include
4270 /usr/openwin/share/include'
4272 if test "$ac_x_includes" = no; then
4273 # Guess where to find include files, by looking for Xlib.h.
4274 # First, try using that file with no special directory specified.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <X11/Xlib.h>
4282 _ACEOF
4283 if { (ac_try="$ac_cpp conftest.$ac_ext"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } >/dev/null && {
4296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 }; then
4299 # We can compile using X headers with no special include directory.
4300 ac_x_includes=
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 for ac_dir in $ac_x_header_dirs; do
4306 if test -r "$ac_dir/X11/Xlib.h"; then
4307 ac_x_includes=$ac_dir
4308 break
4310 done
4313 rm -f conftest.err conftest.$ac_ext
4314 fi # $ac_x_includes = no
4316 if test "$ac_x_libraries" = no; then
4317 # Check for the libraries.
4318 # See if we find them without any special options.
4319 # Don't add to $LIBS permanently.
4320 ac_save_LIBS=$LIBS
4321 LIBS="-lX11 $LIBS"
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #include <X11/Xlib.h>
4330 main ()
4332 XrmInitialize ()
4334 return 0;
4336 _ACEOF
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (ac_try="$ac_link"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_link") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest$ac_exeext &&
4354 $as_test_x conftest$ac_exeext; then
4355 LIBS=$ac_save_LIBS
4356 # We can link X programs with no special library path.
4357 ac_x_libraries=
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 LIBS=$ac_save_LIBS
4363 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4365 # Don't even attempt the hair of trying to link an X program!
4366 for ac_extension in a so sl; do
4367 if test -r "$ac_dir/libX11.$ac_extension"; then
4368 ac_x_libraries=$ac_dir
4369 break 2
4371 done
4372 done
4375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4376 conftest$ac_exeext conftest.$ac_ext
4377 fi # $ac_x_libraries = no
4379 case $ac_x_includes,$ac_x_libraries in #(
4380 no,* | *,no | *\'*)
4381 # Didn't find X, or a directory has "'" in its name.
4382 ac_cv_have_x="have_x=no";; #(
4384 # Record where we found X for the cache.
4385 ac_cv_have_x="have_x=yes\
4386 ac_x_includes='$ac_x_includes'\
4387 ac_x_libraries='$ac_x_libraries'"
4388 esac
4390 ;; #(
4391 *) have_x=yes;;
4392 esac
4393 eval "$ac_cv_have_x"
4394 fi # $with_x != no
4396 if test "$have_x" != yes; then
4397 { echo "$as_me:$LINENO: result: $have_x" >&5
4398 echo "${ECHO_T}$have_x" >&6; }
4399 no_x=yes
4400 else
4401 # If each of the values was on the command line, it overrides each guess.
4402 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4403 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4404 # Update the cache value to reflect the command line values.
4405 ac_cv_have_x="have_x=yes\
4406 ac_x_includes='$x_includes'\
4407 ac_x_libraries='$x_libraries'"
4408 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4412 # Make sure we can run config.sub.
4413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4414 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4415 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4416 { (exit 1); exit 1; }; }
4418 { echo "$as_me:$LINENO: checking build system type" >&5
4419 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4420 if test "${ac_cv_build+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 ac_build_alias=$build_alias
4424 test "x$ac_build_alias" = x &&
4425 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4426 test "x$ac_build_alias" = x &&
4427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4429 { (exit 1); exit 1; }; }
4430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4433 { (exit 1); exit 1; }; }
4436 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4437 echo "${ECHO_T}$ac_cv_build" >&6; }
4438 case $ac_cv_build in
4439 *-*-*) ;;
4440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4441 echo "$as_me: error: invalid value of canonical build" >&2;}
4442 { (exit 1); exit 1; }; };;
4443 esac
4444 build=$ac_cv_build
4445 ac_save_IFS=$IFS; IFS='-'
4446 set x $ac_cv_build
4447 shift
4448 build_cpu=$1
4449 build_vendor=$2
4450 shift; shift
4451 # Remember, the first character of IFS is used to create $*,
4452 # except with old shells:
4453 build_os=$*
4454 IFS=$ac_save_IFS
4455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4458 { echo "$as_me:$LINENO: checking host system type" >&5
4459 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4460 if test "${ac_cv_host+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 if test "x$host_alias" = x; then
4464 ac_cv_host=$ac_cv_build
4465 else
4466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4467 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4468 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4469 { (exit 1); exit 1; }; }
4473 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4474 echo "${ECHO_T}$ac_cv_host" >&6; }
4475 case $ac_cv_host in
4476 *-*-*) ;;
4477 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4478 echo "$as_me: error: invalid value of canonical host" >&2;}
4479 { (exit 1); exit 1; }; };;
4480 esac
4481 host=$ac_cv_host
4482 ac_save_IFS=$IFS; IFS='-'
4483 set x $ac_cv_host
4484 shift
4485 host_cpu=$1
4486 host_vendor=$2
4487 shift; shift
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4490 host_os=$*
4491 IFS=$ac_save_IFS
4492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4498 ac_ext=c
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 acx_pthread_ok=no
4506 # We used to check for pthread.h first, but this fails if pthread.h
4507 # requires special compiler flags (e.g. on True64 or Sequent).
4508 # It gets checked for in the link test anyway.
4510 # First of all, check if the user has set any of the PTHREAD_LIBS,
4511 # etcetera environment variables, and if threads linking works using
4512 # them:
4513 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4514 save_CFLAGS="$CFLAGS"
4515 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4516 save_LIBS="$LIBS"
4517 LIBS="$PTHREAD_LIBS $LIBS"
4518 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4519 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4530 #ifdef __cplusplus
4531 extern "C"
4532 #endif
4533 char pthread_join ();
4535 main ()
4537 return pthread_join ();
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (ac_try="$ac_link"
4544 case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_link") 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && {
4556 test -z "$ac_c_werror_flag" ||
4557 test ! -s conftest.err
4558 } && test -s conftest$ac_exeext &&
4559 $as_test_x conftest$ac_exeext; then
4560 acx_pthread_ok=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4569 conftest$ac_exeext conftest.$ac_ext
4570 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4571 echo "${ECHO_T}$acx_pthread_ok" >&6; }
4572 if test x"$acx_pthread_ok" = xno; then
4573 PTHREAD_LIBS=""
4574 PTHREAD_CFLAGS=""
4576 LIBS="$save_LIBS"
4577 CFLAGS="$save_CFLAGS"
4580 # We must check for the threads library under a number of different
4581 # names; the ordering is very important because some systems
4582 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4583 # libraries is broken (non-POSIX).
4585 # Create a list of thread flags to try. Items starting with a "-" are
4586 # C compiler flags, and other items are library names, except for "none"
4587 # which indicates that we try without any flags at all, and "pthread-config"
4588 # which is a program returning the flags for the Pth emulation library.
4590 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4592 # The ordering *is* (sometimes) important. Some notes on the
4593 # individual items follow:
4595 # pthreads: AIX (must check this before -lpthread)
4596 # none: in case threads are in libc; should be tried before -Kthread and
4597 # other compiler flags to prevent continual compiler warnings
4598 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4599 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4600 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4601 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4602 # -pthreads: Solaris/gcc
4603 # -mthreads: Mingw32/gcc, Lynx/gcc
4604 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4605 # doesn't hurt to check since this sometimes defines pthreads too;
4606 # also defines -D_REENTRANT)
4607 # ... -mt is also the pthreads flag for HP/aCC
4608 # pthread: Linux, etcetera
4609 # --thread-safe: KAI C++
4610 # pthread-config: use pthread-config program (for GNU Pth library)
4612 case "${host_cpu}-${host_os}" in
4613 *solaris*)
4615 # On Solaris (at least, for some versions), libc contains stubbed
4616 # (non-functional) versions of the pthreads routines, so link-based
4617 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4618 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4619 # a function called by this macro, so we could check for that, but
4620 # who knows whether they'll stub that too in a future libc.) So,
4621 # we'll just look for -pthreads and -lpthread first:
4623 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
4625 esac
4627 if test x"$acx_pthread_ok" = xno; then
4628 for flag in $acx_pthread_flags; do
4630 case $flag in
4631 none)
4632 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4633 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
4637 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4638 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
4639 PTHREAD_CFLAGS="$flag"
4642 pthread-config)
4643 # Extract the first word of "pthread-config", so it can be a program name with args.
4644 set dummy pthread-config; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 if test -n "$acx_pthread_config"; then
4651 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_acx_pthread_config="yes"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4668 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4671 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4672 if test -n "$acx_pthread_config"; then
4673 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
4674 echo "${ECHO_T}$acx_pthread_config" >&6; }
4675 else
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 if test x"$acx_pthread_config" = xno; then continue; fi
4682 PTHREAD_CFLAGS="`pthread-config --cflags`"
4683 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4687 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4688 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
4689 PTHREAD_LIBS="-l$flag"
4691 esac
4693 save_LIBS="$LIBS"
4694 save_CFLAGS="$CFLAGS"
4695 LIBS="$PTHREAD_LIBS $LIBS"
4696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4698 # Check for various functions. We must include pthread.h,
4699 # since some functions may be macros. (On the Sequent, we
4700 # need a special flag -Kthread to make this header compile.)
4701 # We check for pthread_join because it is in -lpthread on IRIX
4702 # while pthread_create is in libc. We check for pthread_attr_init
4703 # due to DEC craziness with -lpthreads. We check for
4704 # pthread_cleanup_push because it is one of the few pthread
4705 # functions on Solaris that doesn't have a non-functional libc stub.
4706 # We try pthread_create on general principles.
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <pthread.h>
4715 main ()
4717 pthread_t th; pthread_join(th, 0);
4718 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4719 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4721 return 0;
4723 _ACEOF
4724 rm -f conftest.$ac_objext conftest$ac_exeext
4725 if { (ac_try="$ac_link"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_link") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest$ac_exeext &&
4741 $as_test_x conftest$ac_exeext; then
4742 acx_pthread_ok=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4751 conftest$ac_exeext conftest.$ac_ext
4753 LIBS="$save_LIBS"
4754 CFLAGS="$save_CFLAGS"
4756 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4757 echo "${ECHO_T}$acx_pthread_ok" >&6; }
4758 if test "x$acx_pthread_ok" = xyes; then
4759 break;
4762 PTHREAD_LIBS=""
4763 PTHREAD_CFLAGS=""
4764 done
4767 # Various other checks:
4768 if test "x$acx_pthread_ok" = xyes; then
4769 save_LIBS="$LIBS"
4770 LIBS="$PTHREAD_LIBS $LIBS"
4771 save_CFLAGS="$CFLAGS"
4772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4775 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4776 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
4777 attr_name=unknown
4778 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <pthread.h>
4787 main ()
4789 int attr=$attr; return attr;
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (ac_try="$ac_link"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_link") 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest$ac_exeext &&
4811 $as_test_x conftest$ac_exeext; then
4812 attr_name=$attr; break
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4821 conftest$ac_exeext conftest.$ac_ext
4822 done
4823 { echo "$as_me:$LINENO: result: $attr_name" >&5
4824 echo "${ECHO_T}$attr_name" >&6; }
4825 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define PTHREAD_CREATE_JOINABLE $attr_name
4829 _ACEOF
4833 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4834 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
4835 flag=no
4836 case "${host_cpu}-${host_os}" in
4837 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4838 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4839 esac
4840 { echo "$as_me:$LINENO: result: ${flag}" >&5
4841 echo "${ECHO_T}${flag}" >&6; }
4842 if test "x$flag" != xno; then
4843 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4846 LIBS="$save_LIBS"
4847 CFLAGS="$save_CFLAGS"
4849 # More AIX lossage: must compile with xlc_r or cc_r
4850 if test x"$GCC" != xyes; then
4851 for ac_prog in xlc_r cc_r
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 if test -n "$PTHREAD_CC"; then
4861 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_PTHREAD_CC="$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4881 if test -n "$PTHREAD_CC"; then
4882 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
4883 echo "${ECHO_T}$PTHREAD_CC" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 test -n "$PTHREAD_CC" && break
4891 done
4892 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
4894 else
4895 PTHREAD_CC=$CC
4897 else
4898 PTHREAD_CC="$CC"
4905 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4906 if test x"$acx_pthread_ok" = xyes; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_PTHREAD 1
4910 _ACEOF
4913 else
4914 acx_pthread_ok=no
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4925 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_GREP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 # Extract the first word of "grep ggrep" to use in msg output
4930 if test -z "$GREP"; then
4931 set dummy grep ggrep; ac_prog_name=$2
4932 if test "${ac_cv_path_GREP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 ac_path_GREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in grep ggrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4946 # Check for GNU ac_path_GREP and select it if it is found.
4947 # Check for GNU $ac_path_GREP
4948 case `"$ac_path_GREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4952 ac_count=0
4953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4954 while :
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 echo 'GREP' >> "conftest.nl"
4960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 ac_count=`expr $ac_count + 1`
4963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_GREP="$ac_path_GREP"
4966 ac_path_GREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4975 $ac_path_GREP_found && break 3
4976 done
4977 done
4979 done
4980 IFS=$as_save_IFS
4985 GREP="$ac_cv_path_GREP"
4986 if test -z "$GREP"; then
4987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4988 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4989 { (exit 1); exit 1; }; }
4992 else
4993 ac_cv_path_GREP=$GREP
4998 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4999 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5000 GREP="$ac_cv_path_GREP"
5003 { echo "$as_me:$LINENO: checking for egrep" >&5
5004 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_EGREP+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5009 then ac_cv_path_EGREP="$GREP -E"
5010 else
5011 # Extract the first word of "egrep" to use in msg output
5012 if test -z "$EGREP"; then
5013 set dummy egrep; ac_prog_name=$2
5014 if test "${ac_cv_path_EGREP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 ac_path_EGREP_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in egrep; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5028 # Check for GNU ac_path_EGREP and select it if it is found.
5029 # Check for GNU $ac_path_EGREP
5030 case `"$ac_path_EGREP" --version 2>&1` in
5031 *GNU*)
5032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034 ac_count=0
5035 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5036 while :
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 echo 'EGREP' >> "conftest.nl"
5042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 ac_count=`expr $ac_count + 1`
5045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_EGREP="$ac_path_EGREP"
5048 ac_path_EGREP_max=$ac_count
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5057 $ac_path_EGREP_found && break 3
5058 done
5059 done
5061 done
5062 IFS=$as_save_IFS
5067 EGREP="$ac_cv_path_EGREP"
5068 if test -z "$EGREP"; then
5069 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5070 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5071 { (exit 1); exit 1; }; }
5074 else
5075 ac_cv_path_EGREP=$EGREP
5081 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5082 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5083 EGREP="$ac_cv_path_EGREP"
5086 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5088 if test "${ac_cv_header_stdc+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #include <stdlib.h>
5098 #include <stdarg.h>
5099 #include <string.h>
5100 #include <float.h>
5103 main ()
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (ac_try="$ac_compile"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_compile") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest.$ac_objext; then
5127 ac_cv_header_stdc=yes
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ac_cv_header_stdc=no
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 if test $ac_cv_header_stdc = yes; then
5138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <string.h>
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149 $EGREP "memchr" >/dev/null 2>&1; then
5151 else
5152 ac_cv_header_stdc=no
5154 rm -f conftest*
5158 if test $ac_cv_header_stdc = yes; then
5159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #include <stdlib.h>
5168 _ACEOF
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 $EGREP "free" >/dev/null 2>&1; then
5172 else
5173 ac_cv_header_stdc=no
5175 rm -f conftest*
5179 if test $ac_cv_header_stdc = yes; then
5180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5181 if test "$cross_compiling" = yes; then
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ctype.h>
5191 #include <stdlib.h>
5192 #if ((' ' & 0x0FF) == 0x020)
5193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5195 #else
5196 # define ISLOWER(c) \
5197 (('a' <= (c) && (c) <= 'i') \
5198 || ('j' <= (c) && (c) <= 'r') \
5199 || ('s' <= (c) && (c) <= 'z'))
5200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5201 #endif
5203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5205 main ()
5207 int i;
5208 for (i = 0; i < 256; i++)
5209 if (XOR (islower (i), ISLOWER (i))
5210 || toupper (i) != TOUPPER (i))
5211 return 2;
5212 return 0;
5214 _ACEOF
5215 rm -f conftest$ac_exeext
5216 if { (ac_try="$ac_link"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5236 else
5237 echo "$as_me: program exited with status $ac_status" >&5
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 ( exit $ac_status )
5242 ac_cv_header_stdc=no
5244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5251 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5252 if test $ac_cv_header_stdc = yes; then
5254 cat >>confdefs.h <<\_ACEOF
5255 #define STDC_HEADERS 1
5256 _ACEOF
5260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5271 inttypes.h stdint.h unistd.h
5273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 $ac_includes_default
5287 #include <$ac_header>
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 eval "$as_ac_Header=yes"
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 eval "$as_ac_Header=no"
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 _ACEOF
5326 done
5331 # There isn't a reliable way to know we should use the Apple OpenGL framework
5332 # without a configure option. A Mac OS X user may have installed an
5333 # alternative GL implementation (e.g., Mesa), which may or may not depend on X.
5336 # Check whether --with-apple-opengl-framework was given.
5337 if test "${with_apple_opengl_framework+set}" = set; then
5338 withval=$with_apple_opengl_framework;
5341 if test "X$with_apple_opengl_framework" = "Xyes"; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_APPLE_OPENGL_FRAMEWORK 1
5345 _ACEOF
5347 GL_LIBS="-framework OpenGL"
5348 else
5349 ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
5357 echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; }
5358 if test "${ax_cv_c_compiler_ms+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5369 main ()
5371 #ifndef _MSC_VER
5372 choke me
5373 #endif
5376 return 0;
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.$ac_objext; then
5396 ax_compiler_ms=yes
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ax_compiler_ms=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ax_cv_c_compiler_ms=$ax_compiler_ms
5408 { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
5409 echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; }
5410 if test X$ax_compiler_ms = Xno; then
5411 GL_CFLAGS="${PTHREAD_CFLAGS}"
5412 GL_LIBS="${PTHREAD_LIBS} -lm"
5416 # Use x_includes and x_libraries if they have been set (presumably by
5417 # AC_PATH_X).
5419 if test "X$no_x" != "Xyes"; then
5420 if test -n "$x_includes"; then
5421 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
5423 if test -n "$x_libraries"; then
5424 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
5429 for ac_header in windows.h
5431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 ac_res=`eval echo '${'$as_ac_Header'}'`
5439 { echo "$as_me:$LINENO: result: $ac_res" >&5
5440 echo "${ECHO_T}$ac_res" >&6; }
5441 else
5442 # Is the header compilable?
5443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5452 #include <$ac_header>
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_header_compiler=yes
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_header_compiler=no
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5481 echo "${ECHO_T}$ac_header_compiler" >&6; }
5483 # Is the header present?
5484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <$ac_header>
5493 _ACEOF
5494 if { (ac_try="$ac_cpp conftest.$ac_ext"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } >/dev/null && {
5507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 }; then
5510 ac_header_preproc=yes
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_header_preproc=no
5518 rm -f conftest.err conftest.$ac_ext
5519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5520 echo "${ECHO_T}$ac_header_preproc" >&6; }
5522 # So? What about this header?
5523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5524 yes:no: )
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5529 ac_header_preproc=yes
5531 no:yes:* )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5544 ( cat <<\_ASBOX
5545 ## ----------------------------------- ##
5546 ## Report this to julien.pilet@epfl.ch ##
5547 ## ----------------------------------- ##
5548 _ASBOX
5549 ) | sed "s/^/$as_me: WARNING: /" >&2
5551 esac
5552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 eval "$as_ac_Header=\$ac_header_preproc"
5559 ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567 _ACEOF
5571 done
5574 { echo "$as_me:$LINENO: checking for OpenGL library" >&5
5575 echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; }
5576 if test "${ax_cv_check_gl_libgl+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 ax_cv_check_gl_libgl="no"
5580 ax_save_CPPFLAGS="${CPPFLAGS}"
5581 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
5582 ax_save_LIBS="${LIBS}"
5583 LIBS=""
5584 ax_check_libs="-lopengl32 -lGL"
5585 for ax_lib in ${ax_check_libs}; do
5586 if test X$ax_compiler_ms = Xyes; then
5587 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
5588 else
5589 ax_try_lib="${ax_lib}"
5591 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 # if HAVE_WINDOWS_H && defined(_WIN32)
5600 # include <windows.h>
5601 # endif
5602 # include <GL/gl.h>
5604 main ()
5606 glBegin(0)
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (ac_try="$ac_link"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_link") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest$ac_exeext &&
5628 $as_test_x conftest$ac_exeext; then
5629 ax_cv_check_gl_libgl="${ax_try_lib}"; break
5630 else
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5638 conftest$ac_exeext conftest.$ac_ext
5639 done
5640 LIBS=${ax_save_LIBS}
5641 CPPFLAGS=${ax_save_CPPFLAGS}
5643 { echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
5644 echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; }
5646 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then
5647 no_gl="yes"
5648 GL_CFLAGS=""
5649 GL_LIBS=""
5650 else
5651 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
5653 ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664 GLU_CFLAGS="${GL_CFLAGS}"
5665 if test "X${with_apple_opengl_framework}" != "Xyes"; then
5666 { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
5667 echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; }
5668 if test "${ax_cv_check_glu_libglu+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 ax_cv_check_glu_libglu="no"
5672 ax_save_CPPFLAGS="${CPPFLAGS}"
5673 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
5674 ax_save_LIBS="${LIBS}"
5675 LIBS=""
5676 ax_check_libs="-lglu32 -lGLU"
5677 for ax_lib in ${ax_check_libs}; do
5678 if test X$ax_compiler_ms = Xyes; then
5679 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
5680 else
5681 ax_try_lib="${ax_lib}"
5683 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
5685 # libGLU typically links with libstdc++ on POSIX platforms. However,
5686 # setting the language to C++ means that test program source is named
5687 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
5688 # file.
5690 ac_ext=cpp
5691 ac_cpp='$CXXCPP $CPPFLAGS'
5692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 if test X$ax_compiler_ms = Xyes; then
5697 ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5711 # if HAVE_WINDOWS_H && defined(_WIN32)
5712 # include <windows.h>
5713 # endif
5714 # include <GL/glu.h>
5716 main ()
5718 gluBeginCurve(0)
5720 return 0;
5722 _ACEOF
5723 rm -f conftest.$ac_objext conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_link") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest$ac_exeext &&
5740 $as_test_x conftest$ac_exeext; then
5741 ax_cv_check_glu_libglu="${ax_try_lib}"; break
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5751 if test X$ax_compiler_ms = Xyes; then
5752 ac_ext=cpp
5753 ac_cpp='$CXXCPP $CPPFLAGS'
5754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5759 ac_ext=c
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765 done
5766 LIBS=${ax_save_LIBS}
5767 CPPFLAGS=${ax_save_CPPFLAGS}
5769 { echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
5770 echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; }
5771 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
5772 no_glu="yes"
5773 GLU_CFLAGS=""
5774 GLU_LIBS=""
5775 else
5776 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
5782 if test "$no_x" = yes; then
5783 # Not all programs may use this symbol, but it does not hurt to define it.
5785 cat >>confdefs.h <<\_ACEOF
5786 #define X_DISPLAY_MISSING 1
5787 _ACEOF
5789 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5790 else
5791 if test -n "$x_includes"; then
5792 X_CFLAGS="$X_CFLAGS -I$x_includes"
5795 # It would also be nice to do this for all -L options, not just this one.
5796 if test -n "$x_libraries"; then
5797 X_LIBS="$X_LIBS -L$x_libraries"
5798 # For Solaris; some versions of Sun CC require a space after -R and
5799 # others require no space. Words are not sufficient . . . .
5800 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5801 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5802 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5803 ac_xsave_c_werror_flag=$ac_c_werror_flag
5804 ac_c_werror_flag=yes
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 main ()
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (ac_try="$ac_link"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_link") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest$ac_exeext &&
5837 $as_test_x conftest$ac_exeext; then
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 X_LIBS="$X_LIBS -R$x_libraries"
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 LIBS="$ac_xsave_LIBS -R $x_libraries"
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5854 main ()
5858 return 0;
5860 _ACEOF
5861 rm -f conftest.$ac_objext conftest$ac_exeext
5862 if { (ac_try="$ac_link"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_link") 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest$ac_exeext &&
5878 $as_test_x conftest$ac_exeext; then
5879 { echo "$as_me:$LINENO: result: yes" >&5
5880 echo "${ECHO_T}yes" >&6; }
5881 X_LIBS="$X_LIBS -R $x_libraries"
5882 else
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 { echo "$as_me:$LINENO: result: neither works" >&5
5887 echo "${ECHO_T}neither works" >&6; }
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891 conftest$ac_exeext conftest.$ac_ext
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895 conftest$ac_exeext conftest.$ac_ext
5896 ac_c_werror_flag=$ac_xsave_c_werror_flag
5897 LIBS=$ac_xsave_LIBS
5900 # Check for system-dependent libraries X programs must link with.
5901 # Do this before checking for the system-independent R6 libraries
5902 # (-lICE), since we may need -lsocket or whatever for X linking.
5904 if test "$ISC" = yes; then
5905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5906 else
5907 # Martyn Johnson says this is needed for Ultrix, if the X
5908 # libraries were built with DECnet support. And Karl Berry says
5909 # the Alpha needs dnet_stub (dnet does not exist).
5910 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5921 #ifdef __cplusplus
5922 extern "C"
5923 #endif
5924 char XOpenDisplay ();
5926 main ()
5928 return XOpenDisplay ();
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext &&
5950 $as_test_x conftest$ac_exeext; then
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5957 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5958 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 ac_check_lib_save_LIBS=$LIBS
5962 LIBS="-ldnet $LIBS"
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char dnet_ntoa ();
5978 main ()
5980 return dnet_ntoa ();
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (ac_try="$ac_link"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest$ac_exeext &&
6002 $as_test_x conftest$ac_exeext; then
6003 ac_cv_lib_dnet_dnet_ntoa=yes
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_lib_dnet_dnet_ntoa=no
6011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6012 conftest$ac_exeext conftest.$ac_ext
6013 LIBS=$ac_check_lib_save_LIBS
6015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6016 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6017 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6018 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6021 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6022 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6023 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6024 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-ldnet_stub $LIBS"
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6036 /* Override any GCC internal prototype to avoid an error.
6037 Use char because int might match the return type of a GCC
6038 builtin and then its argument prototype would still apply. */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 char dnet_ntoa ();
6044 main ()
6046 return dnet_ntoa ();
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (ac_try="$ac_link"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest$ac_exeext &&
6068 $as_test_x conftest$ac_exeext; then
6069 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_lib_dnet_stub_dnet_ntoa=no
6077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6082 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6083 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6084 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6091 conftest$ac_exeext conftest.$ac_ext
6092 LIBS="$ac_xsave_LIBS"
6094 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6095 # to get the SysV transport functions.
6096 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6097 # needs -lnsl.
6098 # The nsl library prevents programs from opening the X display
6099 # on Irix 5.2, according to T.E. Dickey.
6100 # The functions gethostbyname, getservbyname, and inet_addr are
6101 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6102 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6103 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6104 if test "${ac_cv_func_gethostbyname+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6115 #define gethostbyname innocuous_gethostbyname
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char gethostbyname (); below.
6119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 <limits.h> exists even on freestanding compilers. */
6122 #ifdef __STDC__
6123 # include <limits.h>
6124 #else
6125 # include <assert.h>
6126 #endif
6128 #undef gethostbyname
6130 /* Override any GCC internal prototype to avoid an error.
6131 Use char because int might match the return type of a GCC
6132 builtin and then its argument prototype would still apply. */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 char gethostbyname ();
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6141 choke me
6142 #endif
6145 main ()
6147 return gethostbyname ();
6149 return 0;
6151 _ACEOF
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_link") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest$ac_exeext &&
6169 $as_test_x conftest$ac_exeext; then
6170 ac_cv_func_gethostbyname=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_func_gethostbyname=no
6178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6179 conftest$ac_exeext conftest.$ac_ext
6181 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6182 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6184 if test $ac_cv_func_gethostbyname = no; then
6185 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6186 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6187 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 ac_check_lib_save_LIBS=$LIBS
6191 LIBS="-lnsl $LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6199 /* Override any GCC internal prototype to avoid an error.
6200 Use char because int might match the return type of a GCC
6201 builtin and then its argument prototype would still apply. */
6202 #ifdef __cplusplus
6203 extern "C"
6204 #endif
6205 char gethostbyname ();
6207 main ()
6209 return gethostbyname ();
6211 return 0;
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (ac_try="$ac_link"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_link") 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext &&
6231 $as_test_x conftest$ac_exeext; then
6232 ac_cv_lib_nsl_gethostbyname=yes
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_lib_nsl_gethostbyname=no
6240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6241 conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6250 if test $ac_cv_lib_nsl_gethostbyname = no; then
6251 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 ac_check_lib_save_LIBS=$LIBS
6257 LIBS="-lbsd $LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h. */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6265 /* Override any GCC internal prototype to avoid an error.
6266 Use char because int might match the return type of a GCC
6267 builtin and then its argument prototype would still apply. */
6268 #ifdef __cplusplus
6269 extern "C"
6270 #endif
6271 char gethostbyname ();
6273 main ()
6275 return gethostbyname ();
6277 return 0;
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_link") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest$ac_exeext &&
6297 $as_test_x conftest$ac_exeext; then
6298 ac_cv_lib_bsd_gethostbyname=yes
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_lib_bsd_gethostbyname=no
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6310 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6311 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6312 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6319 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6320 # socket/setsockopt and other routines are undefined under SCO ODT
6321 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6322 # on later versions), says Simon Leinen: it contains gethostby*
6323 # variants that don't use the name server (or something). -lsocket
6324 # must be given before -lnsl if both are needed. We assume that
6325 # if connect needs -lnsl, so does gethostbyname.
6326 { echo "$as_me:$LINENO: checking for connect" >&5
6327 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6328 if test "${ac_cv_func_connect+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6339 #define connect innocuous_connect
6341 /* System header to define __stub macros and hopefully few prototypes,
6342 which can conflict with char connect (); below.
6343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344 <limits.h> exists even on freestanding compilers. */
6346 #ifdef __STDC__
6347 # include <limits.h>
6348 #else
6349 # include <assert.h>
6350 #endif
6352 #undef connect
6354 /* Override any GCC internal prototype to avoid an error.
6355 Use char because int might match the return type of a GCC
6356 builtin and then its argument prototype would still apply. */
6357 #ifdef __cplusplus
6358 extern "C"
6359 #endif
6360 char connect ();
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined __stub_connect || defined __stub___connect
6365 choke me
6366 #endif
6369 main ()
6371 return connect ();
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6378 case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext &&
6393 $as_test_x conftest$ac_exeext; then
6394 ac_cv_func_connect=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_cv_func_connect=no
6402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6403 conftest$ac_exeext conftest.$ac_ext
6405 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6406 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6408 if test $ac_cv_func_connect = no; then
6409 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6410 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6411 if test "${ac_cv_lib_socket_connect+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 ac_check_lib_save_LIBS=$LIBS
6415 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 char connect ();
6431 main ()
6433 return connect ();
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 ac_cv_lib_socket_connect=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_cv_lib_socket_connect=no
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6466 LIBS=$ac_check_lib_save_LIBS
6468 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6469 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6470 if test $ac_cv_lib_socket_connect = yes; then
6471 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6476 # Guillermo Gomez says -lposix is necessary on A/UX.
6477 { echo "$as_me:$LINENO: checking for remove" >&5
6478 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6479 if test "${ac_cv_func_remove+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6490 #define remove innocuous_remove
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char remove (); below.
6494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6495 <limits.h> exists even on freestanding compilers. */
6497 #ifdef __STDC__
6498 # include <limits.h>
6499 #else
6500 # include <assert.h>
6501 #endif
6503 #undef remove
6505 /* Override any GCC internal prototype to avoid an error.
6506 Use char because int might match the return type of a GCC
6507 builtin and then its argument prototype would still apply. */
6508 #ifdef __cplusplus
6509 extern "C"
6510 #endif
6511 char remove ();
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined __stub_remove || defined __stub___remove
6516 choke me
6517 #endif
6520 main ()
6522 return remove ();
6524 return 0;
6526 _ACEOF
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (ac_try="$ac_link"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_link") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest$ac_exeext &&
6544 $as_test_x conftest$ac_exeext; then
6545 ac_cv_func_remove=yes
6546 else
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_cv_func_remove=no
6553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554 conftest$ac_exeext conftest.$ac_ext
6556 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6557 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6559 if test $ac_cv_func_remove = no; then
6560 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6561 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6562 if test "${ac_cv_lib_posix_remove+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-lposix $LIBS"
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6574 /* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 char remove ();
6582 main ()
6584 return remove ();
6586 return 0;
6588 _ACEOF
6589 rm -f conftest.$ac_objext conftest$ac_exeext
6590 if { (ac_try="$ac_link"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_link") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest$ac_exeext &&
6606 $as_test_x conftest$ac_exeext; then
6607 ac_cv_lib_posix_remove=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_lib_posix_remove=no
6615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6616 conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6620 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6621 if test $ac_cv_lib_posix_remove = yes; then
6622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6628 { echo "$as_me:$LINENO: checking for shmat" >&5
6629 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6630 if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6641 #define shmat innocuous_shmat
6643 /* System header to define __stub macros and hopefully few prototypes,
6644 which can conflict with char shmat (); below.
6645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6646 <limits.h> exists even on freestanding compilers. */
6648 #ifdef __STDC__
6649 # include <limits.h>
6650 #else
6651 # include <assert.h>
6652 #endif
6654 #undef shmat
6656 /* Override any GCC internal prototype to avoid an error.
6657 Use char because int might match the return type of a GCC
6658 builtin and then its argument prototype would still apply. */
6659 #ifdef __cplusplus
6660 extern "C"
6661 #endif
6662 char shmat ();
6663 /* The GNU C library defines this for functions which it implements
6664 to always fail with ENOSYS. Some functions are actually named
6665 something starting with __ and the normal name is an alias. */
6666 #if defined __stub_shmat || defined __stub___shmat
6667 choke me
6668 #endif
6671 main ()
6673 return shmat ();
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (ac_try="$ac_link"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_link") 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest$ac_exeext &&
6695 $as_test_x conftest$ac_exeext; then
6696 ac_cv_func_shmat=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_func_shmat=no
6704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6705 conftest$ac_exeext conftest.$ac_ext
6707 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6708 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6710 if test $ac_cv_func_shmat = no; then
6711 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6712 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6713 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 ac_check_lib_save_LIBS=$LIBS
6717 LIBS="-lipc $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6728 #ifdef __cplusplus
6729 extern "C"
6730 #endif
6731 char shmat ();
6733 main ()
6735 return shmat ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest$ac_exeext &&
6757 $as_test_x conftest$ac_exeext; then
6758 ac_cv_lib_ipc_shmat=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_lib_ipc_shmat=no
6766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6767 conftest$ac_exeext conftest.$ac_ext
6768 LIBS=$ac_check_lib_save_LIBS
6770 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6771 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6772 if test $ac_cv_lib_ipc_shmat = yes; then
6773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6779 # Check for libraries that X11R6 Xt/Xaw programs need.
6780 ac_save_LDFLAGS=$LDFLAGS
6781 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6782 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6783 # check for ICE first), but we must link in the order -lSM -lICE or
6784 # we get undefined symbols. So assume we have SM if we have ICE.
6785 # These have to be linked with before -lX11, unlike the other
6786 # libraries we check for below, so use a different variable.
6787 # John Interrante, Karl Berry
6788 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6789 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6790 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 ac_check_lib_save_LIBS=$LIBS
6794 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 char IceConnectionNumber ();
6810 main ()
6812 return IceConnectionNumber ();
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (ac_try="$ac_link"
6819 case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_link") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest$ac_exeext &&
6834 $as_test_x conftest$ac_exeext; then
6835 ac_cv_lib_ICE_IceConnectionNumber=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_lib_ICE_IceConnectionNumber=no
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6845 LIBS=$ac_check_lib_save_LIBS
6847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6848 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6849 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6850 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6853 LDFLAGS=$ac_save_LDFLAGS
6858 if test "X$with_apple_opengl_framework" = "Xyes"; then
6859 GLUT_CFLAGS="${GLU_CFLAGS}"
6860 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
6861 else
6862 GLUT_CFLAGS=${GLU_CFLAGS}
6863 GLUT_LIBS=${GLU_LIBS}
6866 # If X is present, assume GLUT depends on it.
6868 if test "X${no_x}" != "Xyes"; then
6869 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
6872 ac_ext=c
6873 ac_cpp='$CPP $CPPFLAGS'
6874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6879 ax_save_CPPFLAGS="${CPPFLAGS}"
6880 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
6882 { echo "$as_me:$LINENO: checking for GLUT library" >&5
6883 echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; }
6884 if test "${ax_cv_check_glut_libglut+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 ax_cv_check_glut_libglut="no"
6888 ax_save_LIBS="${LIBS}"
6889 LIBS=""
6890 ax_check_libs="-lglut32 -lglut"
6891 for ax_lib in ${ax_check_libs}; do
6892 if test X$ax_compiler_ms = Xyes; then
6893 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
6894 else
6895 ax_try_lib="${ax_lib}"
6897 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
6898 cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h. */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6905 # if HAVE_WINDOWS_H && defined(_WIN32)
6906 # include <windows.h>
6907 # endif
6908 # include <GL/glut.h>
6910 main ()
6912 glutMainLoop()
6914 return 0;
6916 _ACEOF
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (ac_try="$ac_link"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest$ac_exeext &&
6934 $as_test_x conftest$ac_exeext; then
6935 ax_cv_check_glut_libglut="${ax_try_lib}"; break
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6944 conftest$ac_exeext conftest.$ac_ext
6946 done
6947 LIBS=${ax_save_LIBS}
6950 { echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
6951 echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; }
6952 CPPFLAGS="${ax_save_CPPFLAGS}"
6953 ac_ext=c
6954 ac_cpp='$CPP $CPPFLAGS'
6955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then
6961 no_glut="yes"
6962 GLUT_CFLAGS=""
6963 GLUT_LIBS=""
6964 else
6965 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
6972 { echo "$as_me:$LINENO: checking for glewInit in -lGLEW" >&5
6973 echo $ECHO_N "checking for glewInit in -lGLEW... $ECHO_C" >&6; }
6974 if test "${ac_cv_lib_GLEW_glewInit+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 ac_check_lib_save_LIBS=$LIBS
6978 LIBS="-lGLEW $GLUT_LIBS $LIBS"
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 char glewInit ();
6994 main ()
6996 return glewInit ();
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (ac_try="$ac_link"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 ac_cv_lib_GLEW_glewInit=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_lib_GLEW_glewInit=no
7027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7029 LIBS=$ac_check_lib_save_LIBS
7031 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_glewInit" >&5
7032 echo "${ECHO_T}$ac_cv_lib_GLEW_glewInit" >&6; }
7033 if test $ac_cv_lib_GLEW_glewInit = yes; then
7034 have_glew=yes
7035 else
7036 have_glew=no
7040 # Checks for header files.
7041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7043 if test "${ac_cv_header_stdc+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <stdlib.h>
7053 #include <stdarg.h>
7054 #include <string.h>
7055 #include <float.h>
7058 main ()
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_stdc=yes
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_header_stdc=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <string.h>
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev/null 2>&1; then
7106 else
7107 ac_cv_header_stdc=no
7109 rm -f conftest*
7113 if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <stdlib.h>
7123 _ACEOF
7124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev/null 2>&1; then
7127 else
7128 ac_cv_header_stdc=no
7130 rm -f conftest*
7134 if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <ctype.h>
7146 #include <stdlib.h>
7147 #if ((' ' & 0x0FF) == 0x020)
7148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7150 #else
7151 # define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7156 #endif
7158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7160 main ()
7162 int i;
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7166 return 2;
7167 return 0;
7169 _ACEOF
7170 rm -f conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_link") 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181 { (case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7184 esac
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_try") 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7191 else
7192 echo "$as_me: program exited with status $ac_status" >&5
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ( exit $ac_status )
7197 ac_cv_header_stdc=no
7199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7207 if test $ac_cv_header_stdc = yes; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define STDC_HEADERS 1
7211 _ACEOF
7217 for ac_header in float.h stdlib.h
7219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_res=`eval echo '${'$as_ac_Header'}'`
7227 { echo "$as_me:$LINENO: result: $ac_res" >&5
7228 echo "${ECHO_T}$ac_res" >&6; }
7229 else
7230 # Is the header compilable?
7231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 #include <$ac_header>
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_header_compiler=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_header_compiler=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7269 echo "${ECHO_T}$ac_header_compiler" >&6; }
7271 # Is the header present?
7272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <$ac_header>
7281 _ACEOF
7282 if { (ac_try="$ac_cpp conftest.$ac_ext"
7283 case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } >/dev/null && {
7295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 }; then
7298 ac_header_preproc=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_header_preproc=no
7306 rm -f conftest.err conftest.$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7308 echo "${ECHO_T}$ac_header_preproc" >&6; }
7310 # So? What about this header?
7311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7312 yes:no: )
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7317 ac_header_preproc=yes
7319 no:yes:* )
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7332 ( cat <<\_ASBOX
7333 ## ----------------------------------- ##
7334 ## Report this to julien.pilet@epfl.ch ##
7335 ## ----------------------------------- ##
7336 _ASBOX
7337 ) | sed "s/^/$as_me: WARNING: /" >&2
7339 esac
7340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 eval "$as_ac_Header=\$ac_header_preproc"
7347 ac_res=`eval echo '${'$as_ac_Header'}'`
7348 { echo "$as_me:$LINENO: result: $ac_res" >&5
7349 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353 cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 _ACEOF
7359 done
7361 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7362 { echo "$as_me:$LINENO: checking for GL/glew.h" >&5
7363 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; }
7364 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
7368 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; }
7369 else
7370 # Is the header compilable?
7371 { echo "$as_me:$LINENO: checking GL/glew.h usability" >&5
7372 echo $ECHO_N "checking GL/glew.h usability... $ECHO_C" >&6; }
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7380 #include <GL/glew.h>
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7399 ac_header_compiler=yes
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_header_compiler=no
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7409 echo "${ECHO_T}$ac_header_compiler" >&6; }
7411 # Is the header present?
7412 { echo "$as_me:$LINENO: checking GL/glew.h presence" >&5
7413 echo $ECHO_N "checking GL/glew.h presence... $ECHO_C" >&6; }
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #include <GL/glew.h>
7421 _ACEOF
7422 if { (ac_try="$ac_cpp conftest.$ac_ext"
7423 case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } >/dev/null && {
7435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 }; then
7438 ac_header_preproc=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_header_preproc=no
7446 rm -f conftest.err conftest.$ac_ext
7447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7448 echo "${ECHO_T}$ac_header_preproc" >&6; }
7450 # So? What about this header?
7451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7452 yes:no: )
7453 { echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5
7454 echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5
7456 echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;}
7457 ac_header_preproc=yes
7459 no:yes:* )
7460 { echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5
7461 echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: GL/glew.h: check for missing prerequisite headers?" >&5
7463 echo "$as_me: WARNING: GL/glew.h: check for missing prerequisite headers?" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5
7465 echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&5
7467 echo "$as_me: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5
7469 echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5
7471 echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;}
7472 ( cat <<\_ASBOX
7473 ## ----------------------------------- ##
7474 ## Report this to julien.pilet@epfl.ch ##
7475 ## ----------------------------------- ##
7476 _ASBOX
7477 ) | sed "s/^/$as_me: WARNING: /" >&2
7479 esac
7480 { echo "$as_me:$LINENO: checking for GL/glew.h" >&5
7481 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; }
7482 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 ac_cv_header_GL_glew_h=$ac_header_preproc
7487 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
7488 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; }
7491 if test $ac_cv_header_GL_glew_h = yes; then
7493 else
7494 have_glew=no
7499 if test "x$have_glew" = "xyes"; then
7500 GLEW_LIBS="-lGLEW $GL_LIBS"
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_GLEW 1
7504 _ACEOF
7506 else
7507 GLEW_LIBS="$GL_LIBS"
7508 { echo "$as_me:$LINENO: WARNING: GL Extension Wrangler library not found. Get it from http://glew.sourceforge.net" >&5
7509 echo "$as_me: WARNING: GL Extension Wrangler library not found. Get it from http://glew.sourceforge.net" >&2;}
7513 if test "x$no_gl" != "xyes"; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_GL 1
7517 _ACEOF
7521 if test x$have_glew = xyes -a x$no_glut != xyes; then
7522 HAVE_FULLGL="yes"
7523 else
7524 HAVE_FULLGL="no"
7526 if test x$HAVE_FULLGL=xyes; then
7527 FULLGL_TRUE=
7528 FULLGL_FALSE='#'
7529 else
7530 FULLGL_TRUE='#'
7531 FULLGL_FALSE=
7535 # Checks for typedefs, structures, and compiler characteristics.
7536 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7537 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7538 if test "${ac_cv_header_stdbool_h+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7548 #include <stdbool.h>
7549 #ifndef bool
7550 "error: bool is not defined"
7551 #endif
7552 #ifndef false
7553 "error: false is not defined"
7554 #endif
7555 #if false
7556 "error: false is not 0"
7557 #endif
7558 #ifndef true
7559 "error: true is not defined"
7560 #endif
7561 #if true != 1
7562 "error: true is not 1"
7563 #endif
7564 #ifndef __bool_true_false_are_defined
7565 "error: __bool_true_false_are_defined is not defined"
7566 #endif
7568 struct s { _Bool s: 1; _Bool t; } s;
7570 char a[true == 1 ? 1 : -1];
7571 char b[false == 0 ? 1 : -1];
7572 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7573 char d[(bool) 0.5 == true ? 1 : -1];
7574 bool e = &s;
7575 char f[(_Bool) 0.0 == false ? 1 : -1];
7576 char g[true];
7577 char h[sizeof (_Bool)];
7578 char i[sizeof s.t];
7579 enum { j = false, k = true, l = false * true, m = true * 256 };
7580 _Bool n[m];
7581 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7582 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7583 # if defined __xlc__ || defined __GNUC__
7584 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7585 reported by James Lemley on 2005-10-05; see
7586 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7587 This test is not quite right, since xlc is allowed to
7588 reject this program, as the initializer for xlcbug is
7589 not one of the forms that C requires support for.
7590 However, doing the test right would require a runtime
7591 test, and that would make cross-compilation harder.
7592 Let us hope that IBM fixes the xlc bug, and also adds
7593 support for this kind of constant expression. In the
7594 meantime, this test will reject xlc, which is OK, since
7595 our stdbool.h substitute should suffice. We also test
7596 this with GCC, where it should work, to detect more
7597 quickly whether someone messes up the test in the
7598 future. */
7599 char digs[] = "0123456789";
7600 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7601 # endif
7602 /* Catch a bug in an HP-UX C compiler. See
7603 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7604 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7606 _Bool q = true;
7607 _Bool *pq = &q;
7610 main ()
7613 *pq |= q;
7614 *pq |= ! q;
7615 /* Refer to every declared value, to avoid compiler optimizations. */
7616 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7617 + !m + !n + !o + !p + !q + !pq);
7620 return 0;
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 ac_cv_header_stdbool_h=yes
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 ac_cv_header_stdbool_h=no
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7651 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7652 { echo "$as_me:$LINENO: checking for _Bool" >&5
7653 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
7654 if test "${ac_cv_type__Bool+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef _Bool ac__type_new_;
7666 main ()
7668 if ((ac__type_new_ *) 0)
7669 return 0;
7670 if (sizeof (ac__type_new_))
7671 return 0;
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (ac_try="$ac_compile"
7678 case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_compile") 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.$ac_objext; then
7693 ac_cv_type__Bool=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 ac_cv_type__Bool=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7704 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
7705 if test $ac_cv_type__Bool = yes; then
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE__BOOL 1
7709 _ACEOF
7714 if test $ac_cv_header_stdbool_h = yes; then
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_STDBOOL_H 1
7718 _ACEOF
7722 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7724 if test "${ac_cv_c_const+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7735 main ()
7737 /* FIXME: Include the comments suggested by Paul. */
7738 #ifndef __cplusplus
7739 /* Ultrix mips cc rejects this. */
7740 typedef int charset[2];
7741 const charset cs;
7742 /* SunOS 4.1.1 cc rejects this. */
7743 char const *const *pcpcc;
7744 char **ppc;
7745 /* NEC SVR4.0.2 mips cc rejects this. */
7746 struct point {int x, y;};
7747 static struct point const zero = {0,0};
7748 /* AIX XL C 1.02.0.0 rejects this.
7749 It does not let you subtract one const X* pointer from another in
7750 an arm of an if-expression whose if-part is not a constant
7751 expression */
7752 const char *g = "string";
7753 pcpcc = &g + (g ? g-g : 0);
7754 /* HPUX 7.0 cc rejects these. */
7755 ++pcpcc;
7756 ppc = (char**) pcpcc;
7757 pcpcc = (char const *const *) ppc;
7758 { /* SCO 3.2v4 cc rejects this. */
7759 char *t;
7760 char const *s = 0 ? (char *) 0 : (char const *) 0;
7762 *t++ = 0;
7763 if (s) return 0;
7765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7766 int x[] = {25, 17};
7767 const int *foo = &x[0];
7768 ++foo;
7770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7771 typedef const int *iptr;
7772 iptr p = 0;
7773 ++p;
7775 { /* AIX XL C 1.02.0.0 rejects this saying
7776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7777 struct s { int j; const int *ap[3]; };
7778 struct s *b; b->j = 5;
7780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7781 const int foo = 10;
7782 if (!foo) return 0;
7784 return !cs[0] && !zero.x;
7785 #endif
7788 return 0;
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_c_const=yes
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_c_const=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7819 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7820 if test $ac_cv_c_const = no; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define const
7824 _ACEOF
7828 { echo "$as_me:$LINENO: checking for inline" >&5
7829 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7830 if test "${ac_cv_c_inline+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 ac_cv_c_inline=no
7834 for ac_kw in inline __inline__ __inline; do
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #ifndef __cplusplus
7842 typedef int foo_t;
7843 static $ac_kw foo_t static_foo () {return 0; }
7844 $ac_kw foo_t foo () {return 0; }
7845 #endif
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7850 case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_c_inline=$ac_kw
7866 else
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 test "$ac_cv_c_inline" != no && break
7875 done
7878 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7879 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7882 case $ac_cv_c_inline in
7883 inline | yes) ;;
7885 case $ac_cv_c_inline in
7886 no) ac_val=;;
7887 *) ac_val=$ac_cv_c_inline;;
7888 esac
7889 cat >>confdefs.h <<_ACEOF
7890 #ifndef __cplusplus
7891 #define inline $ac_val
7892 #endif
7893 _ACEOF
7895 esac
7900 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 case $PKG_CONFIG in
7910 [\\/]* | ?:[\\/]*)
7911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7925 done
7926 done
7927 IFS=$as_save_IFS
7930 esac
7932 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7933 if test -n "$PKG_CONFIG"; then
7934 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7935 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7936 else
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7943 if test -z "$ac_cv_path_PKG_CONFIG"; then
7944 ac_pt_PKG_CONFIG=$PKG_CONFIG
7945 # Extract the first word of "pkg-config", so it can be a program name with args.
7946 set dummy pkg-config; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 case $ac_pt_PKG_CONFIG in
7953 [\\/]* | ?:[\\/]*)
7954 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7968 done
7969 done
7970 IFS=$as_save_IFS
7973 esac
7975 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7976 if test -n "$ac_pt_PKG_CONFIG"; then
7977 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7978 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
7979 else
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7984 if test "x$ac_pt_PKG_CONFIG" = x; then
7985 PKG_CONFIG=""
7986 else
7987 case $cross_compiling:$ac_tool_warned in
7988 yes:)
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet. If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet. If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997 PKG_CONFIG=$ac_pt_PKG_CONFIG
7999 else
8000 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8004 if test -n "$PKG_CONFIG"; then
8005 _pkg_min_version=0.9.0
8006 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8007 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
8008 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8009 { echo "$as_me:$LINENO: result: yes" >&5
8010 echo "${ECHO_T}yes" >&6; }
8011 else
8012 { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8014 PKG_CONFIG=""
8019 pkg_failed=no
8020 { echo "$as_me:$LINENO: checking for OPENCV" >&5
8021 echo $ECHO_N "checking for OPENCV... $ECHO_C" >&6; }
8023 if test -n "$PKG_CONFIG"; then
8024 if test -n "$OPENCV_CFLAGS"; then
8025 pkg_cv_OPENCV_CFLAGS="$OPENCV_CFLAGS"
8026 else
8027 if test -n "$PKG_CONFIG" && \
8028 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"opencv >= 0.9.6\"") >&5
8029 ($PKG_CONFIG --exists --print-errors "opencv >= 0.9.6") 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; then
8033 pkg_cv_OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv >= 0.9.6" 2>/dev/null`
8034 else
8035 pkg_failed=yes
8038 else
8039 pkg_failed=untried
8041 if test -n "$PKG_CONFIG"; then
8042 if test -n "$OPENCV_LIBS"; then
8043 pkg_cv_OPENCV_LIBS="$OPENCV_LIBS"
8044 else
8045 if test -n "$PKG_CONFIG" && \
8046 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"opencv >= 0.9.6\"") >&5
8047 ($PKG_CONFIG --exists --print-errors "opencv >= 0.9.6") 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; then
8051 pkg_cv_OPENCV_LIBS=`$PKG_CONFIG --libs "opencv >= 0.9.6" 2>/dev/null`
8052 else
8053 pkg_failed=yes
8056 else
8057 pkg_failed=untried
8062 if test $pkg_failed = yes; then
8064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8065 _pkg_short_errors_supported=yes
8066 else
8067 _pkg_short_errors_supported=no
8069 if test $_pkg_short_errors_supported = yes; then
8070 OPENCV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv >= 0.9.6"`
8071 else
8072 OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv >= 0.9.6"`
8074 # Put the nasty error message in config.log where it belongs
8075 echo "$OPENCV_PKG_ERRORS" >&5
8077 { { echo "$as_me:$LINENO: error: Package requirements (opencv >= 0.9.6) were not met:
8079 $OPENCV_PKG_ERRORS
8081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8082 installed software in a non-standard prefix.
8084 Alternatively, you may set the environment variables OPENCV_CFLAGS
8085 and OPENCV_LIBS to avoid the need to call pkg-config.
8086 See the pkg-config man page for more details.
8087 " >&5
8088 echo "$as_me: error: Package requirements (opencv >= 0.9.6) were not met:
8090 $OPENCV_PKG_ERRORS
8092 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8093 installed software in a non-standard prefix.
8095 Alternatively, you may set the environment variables OPENCV_CFLAGS
8096 and OPENCV_LIBS to avoid the need to call pkg-config.
8097 See the pkg-config man page for more details.
8098 " >&2;}
8099 { (exit 1); exit 1; }; }
8100 elif test $pkg_failed = untried; then
8101 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8102 is in your PATH or set the PKG_CONFIG environment variable to the full
8103 path to pkg-config.
8105 Alternatively, you may set the environment variables OPENCV_CFLAGS
8106 and OPENCV_LIBS to avoid the need to call pkg-config.
8107 See the pkg-config man page for more details.
8109 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8110 See \`config.log' for more details." >&5
8111 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8112 is in your PATH or set the PKG_CONFIG environment variable to the full
8113 path to pkg-config.
8115 Alternatively, you may set the environment variables OPENCV_CFLAGS
8116 and OPENCV_LIBS to avoid the need to call pkg-config.
8117 See the pkg-config man page for more details.
8119 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8120 See \`config.log' for more details." >&2;}
8121 { (exit 1); exit 1; }; }
8122 else
8123 OPENCV_CFLAGS=$pkg_cv_OPENCV_CFLAGS
8124 OPENCV_LIBS=$pkg_cv_OPENCV_LIBS
8125 { echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6; }
8132 # Checks for library functions.
8137 for ac_func in floor memset pow sqrt
8139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8153 #define $ac_func innocuous_$ac_func
8155 /* System header to define __stub macros and hopefully few prototypes,
8156 which can conflict with char $ac_func (); below.
8157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8158 <limits.h> exists even on freestanding compilers. */
8160 #ifdef __STDC__
8161 # include <limits.h>
8162 #else
8163 # include <assert.h>
8164 #endif
8166 #undef $ac_func
8168 /* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8171 #ifdef __cplusplus
8172 extern "C"
8173 #endif
8174 char $ac_func ();
8175 /* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178 #if defined __stub_$ac_func || defined __stub___$ac_func
8179 choke me
8180 #endif
8183 main ()
8185 return $ac_func ();
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_link") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest$ac_exeext &&
8207 $as_test_x conftest$ac_exeext; then
8208 eval "$as_ac_var=yes"
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 eval "$as_ac_var=no"
8216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217 conftest$ac_exeext conftest.$ac_ext
8219 ac_res=`eval echo '${'$as_ac_var'}'`
8220 { echo "$as_me:$LINENO: result: $ac_res" >&5
8221 echo "${ECHO_T}$ac_res" >&6; }
8222 if test `eval echo '${'$as_ac_var'}'` = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8225 _ACEOF
8228 done
8230 ac_config_files="$ac_config_files Makefile garfeild/Makefile garfeild/garfeild.pc starter/Makefile starter/starter.pc doc/Doxyfile doc/Makefile artvertiser/Makefile"
8232 cat >confcache <<\_ACEOF
8233 # This file is a shell script that caches the results of configure
8234 # tests run on this system so they can be shared between configure
8235 # scripts and configure runs, see configure's option --config-cache.
8236 # It is not useful on other systems. If it contains results you don't
8237 # want to keep, you may remove or edit it.
8239 # config.status only pays attention to the cache file if you give it
8240 # the --recheck option to rerun configure.
8242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8244 # following values.
8246 _ACEOF
8248 # The following way of writing the cache mishandles newlines in values,
8249 # but we know of no workaround that is simple, portable, and efficient.
8250 # So, we kill variables containing newlines.
8251 # Ultrix sh set writes to stderr and can't be redirected directly,
8252 # and sets the high bit in the cache file unless we assign to the vars.
8254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8255 eval ac_val=\$$ac_var
8256 case $ac_val in #(
8257 *${as_nl}*)
8258 case $ac_var in #(
8259 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8260 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8261 esac
8262 case $ac_var in #(
8263 _ | IFS | as_nl) ;; #(
8264 *) $as_unset $ac_var ;;
8265 esac ;;
8266 esac
8267 done
8269 (set) 2>&1 |
8270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8271 *${as_nl}ac_space=\ *)
8272 # `set' does not quote correctly, so add quotes (double-quote
8273 # substitution turns \\\\ into \\, and sed turns \\ into \).
8274 sed -n \
8275 "s/'/'\\\\''/g;
8276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8277 ;; #(
8279 # `set' quotes correctly as required by POSIX, so do not add quotes.
8280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8282 esac |
8283 sort
8285 sed '
8286 /^ac_cv_env_/b end
8287 t clear
8288 :clear
8289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8290 t end
8291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8292 :end' >>confcache
8293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8294 if test -w "$cache_file"; then
8295 test "x$cache_file" != "x/dev/null" &&
8296 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8297 echo "$as_me: updating cache $cache_file" >&6;}
8298 cat confcache >$cache_file
8299 else
8300 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8301 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8304 rm -f confcache
8306 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8307 # Let make expand exec_prefix.
8308 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8310 DEFS=-DHAVE_CONFIG_H
8312 ac_libobjs=
8313 ac_ltlibobjs=
8314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8315 # 1. Remove the extension, and $U if already installed.
8316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8317 ac_i=`echo "$ac_i" | sed "$ac_script"`
8318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8319 # will be set to the directory where LIBOBJS objects are built.
8320 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8321 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8322 done
8323 LIBOBJS=$ac_libobjs
8325 LTLIBOBJS=$ac_ltlibobjs
8328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8330 Usually this means the macro was only invoked conditionally." >&5
8331 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8332 Usually this means the macro was only invoked conditionally." >&2;}
8333 { (exit 1); exit 1; }; }
8335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8337 Usually this means the macro was only invoked conditionally." >&5
8338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8339 Usually this means the macro was only invoked conditionally." >&2;}
8340 { (exit 1); exit 1; }; }
8342 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8343 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8344 Usually this means the macro was only invoked conditionally." >&5
8345 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8346 Usually this means the macro was only invoked conditionally." >&2;}
8347 { (exit 1); exit 1; }; }
8349 if test -z "${FULLGL_TRUE}" && test -z "${FULLGL_FALSE}"; then
8350 { { echo "$as_me:$LINENO: error: conditional \"FULLGL\" was never defined.
8351 Usually this means the macro was only invoked conditionally." >&5
8352 echo "$as_me: error: conditional \"FULLGL\" was never defined.
8353 Usually this means the macro was only invoked conditionally." >&2;}
8354 { (exit 1); exit 1; }; }
8357 : ${CONFIG_STATUS=./config.status}
8358 ac_clean_files_save=$ac_clean_files
8359 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8360 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8361 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8362 cat >$CONFIG_STATUS <<_ACEOF
8363 #! $SHELL
8364 # Generated by $as_me.
8365 # Run this file to recreate the current configuration.
8366 # Compiler output produced by configure, useful for debugging
8367 # configure, is in config.log if it exists.
8369 debug=false
8370 ac_cs_recheck=false
8371 ac_cs_silent=false
8372 SHELL=\${CONFIG_SHELL-$SHELL}
8373 _ACEOF
8375 cat >>$CONFIG_STATUS <<\_ACEOF
8376 ## --------------------- ##
8377 ## M4sh Initialization. ##
8378 ## --------------------- ##
8380 # Be more Bourne compatible
8381 DUALCASE=1; export DUALCASE # for MKS sh
8382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8383 emulate sh
8384 NULLCMD=:
8385 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8386 # is contrary to our usage. Disable this feature.
8387 alias -g '${1+"$@"}'='"$@"'
8388 setopt NO_GLOB_SUBST
8389 else
8390 case `(set -o) 2>/dev/null` in
8391 *posix*) set -o posix ;;
8392 esac
8399 # PATH needs CR
8400 # Avoid depending upon Character Ranges.
8401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8404 as_cr_digits='0123456789'
8405 as_cr_alnum=$as_cr_Letters$as_cr_digits
8407 # The user is always right.
8408 if test "${PATH_SEPARATOR+set}" != set; then
8409 echo "#! /bin/sh" >conf$$.sh
8410 echo "exit 0" >>conf$$.sh
8411 chmod +x conf$$.sh
8412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8413 PATH_SEPARATOR=';'
8414 else
8415 PATH_SEPARATOR=:
8417 rm -f conf$$.sh
8420 # Support unset when possible.
8421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8422 as_unset=unset
8423 else
8424 as_unset=false
8428 # IFS
8429 # We need space, tab and new line, in precisely that order. Quoting is
8430 # there to prevent editors from complaining about space-tab.
8431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8432 # splitting by setting IFS to empty value.)
8433 as_nl='
8435 IFS=" "" $as_nl"
8437 # Find who we are. Look in the path if we contain no directory separator.
8438 case $0 in
8439 *[\\/]* ) as_myself=$0 ;;
8440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8446 done
8447 IFS=$as_save_IFS
8450 esac
8451 # We did not find ourselves, most probably we were run as `sh COMMAND'
8452 # in which case we are not to be found in the path.
8453 if test "x$as_myself" = x; then
8454 as_myself=$0
8456 if test ! -f "$as_myself"; then
8457 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8458 { (exit 1); exit 1; }
8461 # Work around bugs in pre-3.0 UWIN ksh.
8462 for as_var in ENV MAIL MAILPATH
8463 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8464 done
8465 PS1='$ '
8466 PS2='> '
8467 PS4='+ '
8469 # NLS nuisances.
8470 for as_var in \
8471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8473 LC_TELEPHONE LC_TIME
8475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8476 eval $as_var=C; export $as_var
8477 else
8478 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8480 done
8482 # Required to use basename.
8483 if expr a : '\(a\)' >/dev/null 2>&1 &&
8484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8485 as_expr=expr
8486 else
8487 as_expr=false
8490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8491 as_basename=basename
8492 else
8493 as_basename=false
8497 # Name of the executable.
8498 as_me=`$as_basename -- "$0" ||
8499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8500 X"$0" : 'X\(//\)$' \| \
8501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8502 echo X/"$0" |
8503 sed '/^.*\/\([^/][^/]*\)\/*$/{
8504 s//\1/
8507 /^X\/\(\/\/\)$/{
8508 s//\1/
8511 /^X\/\(\/\).*/{
8512 s//\1/
8515 s/.*/./; q'`
8517 # CDPATH.
8518 $as_unset CDPATH
8522 as_lineno_1=$LINENO
8523 as_lineno_2=$LINENO
8524 test "x$as_lineno_1" != "x$as_lineno_2" &&
8525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8528 # uniformly replaced by the line number. The first 'sed' inserts a
8529 # line-number line after each line using $LINENO; the second 'sed'
8530 # does the real work. The second script uses 'N' to pair each
8531 # line-number line with the line containing $LINENO, and appends
8532 # trailing '-' during substitution so that $LINENO is not a special
8533 # case at line end.
8534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8535 # scripts with optimization help from Paolo Bonzini. Blame Lee
8536 # E. McMahon (1931-1989) for sed's syntax. :-)
8537 sed -n '
8539 /[$]LINENO/=
8540 ' <$as_myself |
8541 sed '
8542 s/[$]LINENO.*/&-/
8543 t lineno
8545 :lineno
8547 :loop
8548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8549 t loop
8550 s/-\n.*//
8551 ' >$as_me.lineno &&
8552 chmod +x "$as_me.lineno" ||
8553 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8554 { (exit 1); exit 1; }; }
8556 # Don't try to exec as it changes $[0], causing all sort of problems
8557 # (the dirname of $[0] is not the place where we might find the
8558 # original and so on. Autoconf is especially sensitive to this).
8559 . "./$as_me.lineno"
8560 # Exit status is that of the last command.
8561 exit
8565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8566 as_dirname=dirname
8567 else
8568 as_dirname=false
8571 ECHO_C= ECHO_N= ECHO_T=
8572 case `echo -n x` in
8573 -n*)
8574 case `echo 'x\c'` in
8575 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8576 *) ECHO_C='\c';;
8577 esac;;
8579 ECHO_N='-n';;
8580 esac
8582 if expr a : '\(a\)' >/dev/null 2>&1 &&
8583 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8584 as_expr=expr
8585 else
8586 as_expr=false
8589 rm -f conf$$ conf$$.exe conf$$.file
8590 if test -d conf$$.dir; then
8591 rm -f conf$$.dir/conf$$.file
8592 else
8593 rm -f conf$$.dir
8594 mkdir conf$$.dir
8596 echo >conf$$.file
8597 if ln -s conf$$.file conf$$ 2>/dev/null; then
8598 as_ln_s='ln -s'
8599 # ... but there are two gotchas:
8600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8602 # In both cases, we have to default to `cp -p'.
8603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8604 as_ln_s='cp -p'
8605 elif ln conf$$.file conf$$ 2>/dev/null; then
8606 as_ln_s=ln
8607 else
8608 as_ln_s='cp -p'
8610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8611 rmdir conf$$.dir 2>/dev/null
8613 if mkdir -p . 2>/dev/null; then
8614 as_mkdir_p=:
8615 else
8616 test -d ./-p && rmdir ./-p
8617 as_mkdir_p=false
8620 if test -x / >/dev/null 2>&1; then
8621 as_test_x='test -x'
8622 else
8623 if ls -dL / >/dev/null 2>&1; then
8624 as_ls_L_option=L
8625 else
8626 as_ls_L_option=
8628 as_test_x='
8629 eval sh -c '\''
8630 if test -d "$1"; then
8631 test -d "$1/.";
8632 else
8633 case $1 in
8634 -*)set "./$1";;
8635 esac;
8636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8637 ???[sx]*):;;*)false;;esac;fi
8638 '\'' sh
8641 as_executable_p=$as_test_x
8643 # Sed expression to map a string onto a valid CPP name.
8644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8646 # Sed expression to map a string onto a valid variable name.
8647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8650 exec 6>&1
8652 # Save the log message, to keep $[0] and so on meaningful, and to
8653 # report actual input values of CONFIG_FILES etc. instead of their
8654 # values after options handling.
8655 ac_log="
8656 This file was extended by bazar $as_me 1.3.1, which was
8657 generated by GNU Autoconf 2.61. Invocation command line was
8659 CONFIG_FILES = $CONFIG_FILES
8660 CONFIG_HEADERS = $CONFIG_HEADERS
8661 CONFIG_LINKS = $CONFIG_LINKS
8662 CONFIG_COMMANDS = $CONFIG_COMMANDS
8663 $ $0 $@
8665 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8668 _ACEOF
8670 cat >>$CONFIG_STATUS <<_ACEOF
8671 # Files that config.status was made for.
8672 config_files="$ac_config_files"
8673 config_headers="$ac_config_headers"
8674 config_commands="$ac_config_commands"
8676 _ACEOF
8678 cat >>$CONFIG_STATUS <<\_ACEOF
8679 ac_cs_usage="\
8680 \`$as_me' instantiates files from templates according to the
8681 current configuration.
8683 Usage: $0 [OPTIONS] [FILE]...
8685 -h, --help print this help, then exit
8686 -V, --version print version number and configuration settings, then exit
8687 -q, --quiet do not print progress messages
8688 -d, --debug don't remove temporary files
8689 --recheck update $as_me by reconfiguring in the same conditions
8690 --file=FILE[:TEMPLATE]
8691 instantiate the configuration file FILE
8692 --header=FILE[:TEMPLATE]
8693 instantiate the configuration header FILE
8695 Configuration files:
8696 $config_files
8698 Configuration headers:
8699 $config_headers
8701 Configuration commands:
8702 $config_commands
8704 Report bugs to <bug-autoconf@gnu.org>."
8706 _ACEOF
8707 cat >>$CONFIG_STATUS <<_ACEOF
8708 ac_cs_version="\\
8709 bazar config.status 1.3.1
8710 configured by $0, generated by GNU Autoconf 2.61,
8711 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8713 Copyright (C) 2006 Free Software Foundation, Inc.
8714 This config.status script is free software; the Free Software Foundation
8715 gives unlimited permission to copy, distribute and modify it."
8717 ac_pwd='$ac_pwd'
8718 srcdir='$srcdir'
8719 INSTALL='$INSTALL'
8720 MKDIR_P='$MKDIR_P'
8721 _ACEOF
8723 cat >>$CONFIG_STATUS <<\_ACEOF
8724 # If no file are specified by the user, then we need to provide default
8725 # value. By we need to know if files were specified by the user.
8726 ac_need_defaults=:
8727 while test $# != 0
8729 case $1 in
8730 --*=*)
8731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8733 ac_shift=:
8736 ac_option=$1
8737 ac_optarg=$2
8738 ac_shift=shift
8740 esac
8742 case $ac_option in
8743 # Handling of the options.
8744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8745 ac_cs_recheck=: ;;
8746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8747 echo "$ac_cs_version"; exit ;;
8748 --debug | --debu | --deb | --de | --d | -d )
8749 debug=: ;;
8750 --file | --fil | --fi | --f )
8751 $ac_shift
8752 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8753 ac_need_defaults=false;;
8754 --header | --heade | --head | --hea )
8755 $ac_shift
8756 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8757 ac_need_defaults=false;;
8758 --he | --h)
8759 # Conflict between --help and --header
8760 { echo "$as_me: error: ambiguous option: $1
8761 Try \`$0 --help' for more information." >&2
8762 { (exit 1); exit 1; }; };;
8763 --help | --hel | -h )
8764 echo "$ac_cs_usage"; exit ;;
8765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8767 ac_cs_silent=: ;;
8769 # This is an error.
8770 -*) { echo "$as_me: error: unrecognized option: $1
8771 Try \`$0 --help' for more information." >&2
8772 { (exit 1); exit 1; }; } ;;
8774 *) ac_config_targets="$ac_config_targets $1"
8775 ac_need_defaults=false ;;
8777 esac
8778 shift
8779 done
8781 ac_configure_extra_args=
8783 if $ac_cs_silent; then
8784 exec 6>/dev/null
8785 ac_configure_extra_args="$ac_configure_extra_args --silent"
8788 _ACEOF
8789 cat >>$CONFIG_STATUS <<_ACEOF
8790 if \$ac_cs_recheck; then
8791 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8792 CONFIG_SHELL=$SHELL
8793 export CONFIG_SHELL
8794 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8797 _ACEOF
8798 cat >>$CONFIG_STATUS <<\_ACEOF
8799 exec 5>>config.log
8801 echo
8802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8803 ## Running $as_me. ##
8804 _ASBOX
8805 echo "$ac_log"
8806 } >&5
8808 _ACEOF
8809 cat >>$CONFIG_STATUS <<_ACEOF
8811 # INIT-COMMANDS
8813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8815 _ACEOF
8817 cat >>$CONFIG_STATUS <<\_ACEOF
8819 # Handling of arguments.
8820 for ac_config_target in $ac_config_targets
8822 case $ac_config_target in
8823 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8824 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8826 "garfeild/Makefile") CONFIG_FILES="$CONFIG_FILES garfeild/Makefile" ;;
8827 "garfeild/garfeild.pc") CONFIG_FILES="$CONFIG_FILES garfeild/garfeild.pc" ;;
8828 "starter/Makefile") CONFIG_FILES="$CONFIG_FILES starter/Makefile" ;;
8829 "starter/starter.pc") CONFIG_FILES="$CONFIG_FILES starter/starter.pc" ;;
8830 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
8831 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8832 "artvertiser/Makefile") CONFIG_FILES="$CONFIG_FILES artvertiser/Makefile" ;;
8834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8836 { (exit 1); exit 1; }; };;
8837 esac
8838 done
8841 # If the user did not use the arguments to specify the items to instantiate,
8842 # then the envvar interface is used. Set only those that are not.
8843 # We use the long form for the default assignment because of an extremely
8844 # bizarre bug on SunOS 4.1.3.
8845 if $ac_need_defaults; then
8846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8851 # Have a temporary directory for convenience. Make it in the build tree
8852 # simply because there is no reason against having it here, and in addition,
8853 # creating and moving files from /tmp can sometimes cause problems.
8854 # Hook for its removal unless debugging.
8855 # Note that there is a small window in which the directory will not be cleaned:
8856 # after its creation but before its name has been assigned to `$tmp'.
8857 $debug ||
8859 tmp=
8860 trap 'exit_status=$?
8861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8863 trap '{ (exit 1); exit 1; }' 1 2 13 15
8865 # Create a (secure) tmp directory for tmp files.
8868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8869 test -n "$tmp" && test -d "$tmp"
8870 } ||
8872 tmp=./conf$$-$RANDOM
8873 (umask 077 && mkdir "$tmp")
8874 } ||
8876 echo "$me: cannot create a temporary directory in ." >&2
8877 { (exit 1); exit 1; }
8881 # Set up the sed scripts for CONFIG_FILES section.
8884 # No need to generate the scripts if there are no CONFIG_FILES.
8885 # This happens for instance when ./config.status config.h
8886 if test -n "$CONFIG_FILES"; then
8888 _ACEOF
8892 ac_delim='%!_!# '
8893 for ac_last_try in false false false false false :; do
8894 cat >conf$$subs.sed <<_ACEOF
8895 SHELL!$SHELL$ac_delim
8896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8902 exec_prefix!$exec_prefix$ac_delim
8903 prefix!$prefix$ac_delim
8904 program_transform_name!$program_transform_name$ac_delim
8905 bindir!$bindir$ac_delim
8906 sbindir!$sbindir$ac_delim
8907 libexecdir!$libexecdir$ac_delim
8908 datarootdir!$datarootdir$ac_delim
8909 datadir!$datadir$ac_delim
8910 sysconfdir!$sysconfdir$ac_delim
8911 sharedstatedir!$sharedstatedir$ac_delim
8912 localstatedir!$localstatedir$ac_delim
8913 includedir!$includedir$ac_delim
8914 oldincludedir!$oldincludedir$ac_delim
8915 docdir!$docdir$ac_delim
8916 infodir!$infodir$ac_delim
8917 htmldir!$htmldir$ac_delim
8918 dvidir!$dvidir$ac_delim
8919 pdfdir!$pdfdir$ac_delim
8920 psdir!$psdir$ac_delim
8921 libdir!$libdir$ac_delim
8922 localedir!$localedir$ac_delim
8923 mandir!$mandir$ac_delim
8924 DEFS!$DEFS$ac_delim
8925 ECHO_C!$ECHO_C$ac_delim
8926 ECHO_N!$ECHO_N$ac_delim
8927 ECHO_T!$ECHO_T$ac_delim
8928 LIBS!$LIBS$ac_delim
8929 build_alias!$build_alias$ac_delim
8930 host_alias!$host_alias$ac_delim
8931 target_alias!$target_alias$ac_delim
8932 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8933 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8934 INSTALL_DATA!$INSTALL_DATA$ac_delim
8935 am__isrc!$am__isrc$ac_delim
8936 CYGPATH_W!$CYGPATH_W$ac_delim
8937 PACKAGE!$PACKAGE$ac_delim
8938 VERSION!$VERSION$ac_delim
8939 ACLOCAL!$ACLOCAL$ac_delim
8940 AUTOCONF!$AUTOCONF$ac_delim
8941 AUTOMAKE!$AUTOMAKE$ac_delim
8942 AUTOHEADER!$AUTOHEADER$ac_delim
8943 MAKEINFO!$MAKEINFO$ac_delim
8944 install_sh!$install_sh$ac_delim
8945 STRIP!$STRIP$ac_delim
8946 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8947 mkdir_p!$mkdir_p$ac_delim
8948 AWK!$AWK$ac_delim
8949 SET_MAKE!$SET_MAKE$ac_delim
8950 am__leading_dot!$am__leading_dot$ac_delim
8951 AMTAR!$AMTAR$ac_delim
8952 am__tar!$am__tar$ac_delim
8953 am__untar!$am__untar$ac_delim
8954 CXX!$CXX$ac_delim
8955 CXXFLAGS!$CXXFLAGS$ac_delim
8956 LDFLAGS!$LDFLAGS$ac_delim
8957 CPPFLAGS!$CPPFLAGS$ac_delim
8958 ac_ct_CXX!$ac_ct_CXX$ac_delim
8959 EXEEXT!$EXEEXT$ac_delim
8960 OBJEXT!$OBJEXT$ac_delim
8961 DEPDIR!$DEPDIR$ac_delim
8962 am__include!$am__include$ac_delim
8963 am__quote!$am__quote$ac_delim
8964 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8965 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8966 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8967 CXXDEPMODE!$CXXDEPMODE$ac_delim
8968 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
8969 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
8970 CC!$CC$ac_delim
8971 CFLAGS!$CFLAGS$ac_delim
8972 ac_ct_CC!$ac_ct_CC$ac_delim
8973 CCDEPMODE!$CCDEPMODE$ac_delim
8974 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8975 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8976 RANLIB!$RANLIB$ac_delim
8977 XMKMF!$XMKMF$ac_delim
8978 CPP!$CPP$ac_delim
8979 build!$build$ac_delim
8980 build_cpu!$build_cpu$ac_delim
8981 build_vendor!$build_vendor$ac_delim
8982 build_os!$build_os$ac_delim
8983 host!$host$ac_delim
8984 host_cpu!$host_cpu$ac_delim
8985 host_vendor!$host_vendor$ac_delim
8986 host_os!$host_os$ac_delim
8987 acx_pthread_config!$acx_pthread_config$ac_delim
8988 PTHREAD_CC!$PTHREAD_CC$ac_delim
8989 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
8990 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
8991 GREP!$GREP$ac_delim
8992 _ACEOF
8994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8995 break
8996 elif $ac_last_try; then
8997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8999 { (exit 1); exit 1; }; }
9000 else
9001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9003 done
9005 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9006 if test -n "$ac_eof"; then
9007 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9008 ac_eof=`expr $ac_eof + 1`
9011 cat >>$CONFIG_STATUS <<_ACEOF
9012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9014 _ACEOF
9015 sed '
9016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9017 s/^/s,@/; s/!/@,|#_!!_#|/
9020 s/'"$ac_delim"'$/,g/; t
9021 s/$/\\/; p
9022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9023 ' >>$CONFIG_STATUS <conf$$subs.sed
9024 rm -f conf$$subs.sed
9025 cat >>$CONFIG_STATUS <<_ACEOF
9026 CEOF$ac_eof
9027 _ACEOF
9030 ac_delim='%!_!# '
9031 for ac_last_try in false false false false false :; do
9032 cat >conf$$subs.sed <<_ACEOF
9033 EGREP!$EGREP$ac_delim
9034 GL_CFLAGS!$GL_CFLAGS$ac_delim
9035 GL_LIBS!$GL_LIBS$ac_delim
9036 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
9037 GLU_LIBS!$GLU_LIBS$ac_delim
9038 X_CFLAGS!$X_CFLAGS$ac_delim
9039 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
9040 X_LIBS!$X_LIBS$ac_delim
9041 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
9042 GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim
9043 GLUT_LIBS!$GLUT_LIBS$ac_delim
9044 GLEW_LIBS!$GLEW_LIBS$ac_delim
9045 FULLGL_TRUE!$FULLGL_TRUE$ac_delim
9046 FULLGL_FALSE!$FULLGL_FALSE$ac_delim
9047 PKG_CONFIG!$PKG_CONFIG$ac_delim
9048 OPENCV_CFLAGS!$OPENCV_CFLAGS$ac_delim
9049 OPENCV_LIBS!$OPENCV_LIBS$ac_delim
9050 LIBOBJS!$LIBOBJS$ac_delim
9051 LTLIBOBJS!$LTLIBOBJS$ac_delim
9052 _ACEOF
9054 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
9055 break
9056 elif $ac_last_try; then
9057 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9058 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9059 { (exit 1); exit 1; }; }
9060 else
9061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9063 done
9065 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9066 if test -n "$ac_eof"; then
9067 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9068 ac_eof=`expr $ac_eof + 1`
9071 cat >>$CONFIG_STATUS <<_ACEOF
9072 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9074 _ACEOF
9075 sed '
9076 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9077 s/^/s,@/; s/!/@,|#_!!_#|/
9080 s/'"$ac_delim"'$/,g/; t
9081 s/$/\\/; p
9082 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9083 ' >>$CONFIG_STATUS <conf$$subs.sed
9084 rm -f conf$$subs.sed
9085 cat >>$CONFIG_STATUS <<_ACEOF
9086 :end
9087 s/|#_!!_#|//g
9088 CEOF$ac_eof
9089 _ACEOF
9092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9094 # trailing colons and then remove the whole line if VPATH becomes empty
9095 # (actually we leave an empty line to preserve line numbers).
9096 if test "x$srcdir" = x.; then
9097 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9098 s/:*\$(srcdir):*/:/
9099 s/:*\${srcdir}:*/:/
9100 s/:*@srcdir@:*/:/
9101 s/^\([^=]*=[ ]*\):*/\1/
9102 s/:*$//
9103 s/^[^=]*=[ ]*$//
9107 cat >>$CONFIG_STATUS <<\_ACEOF
9108 fi # test -n "$CONFIG_FILES"
9111 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9113 case $ac_tag in
9114 :[FHLC]) ac_mode=$ac_tag; continue;;
9115 esac
9116 case $ac_mode$ac_tag in
9117 :[FHL]*:*);;
9118 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9119 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9120 { (exit 1); exit 1; }; };;
9121 :[FH]-) ac_tag=-:-;;
9122 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9123 esac
9124 ac_save_IFS=$IFS
9125 IFS=:
9126 set x $ac_tag
9127 IFS=$ac_save_IFS
9128 shift
9129 ac_file=$1
9130 shift
9132 case $ac_mode in
9133 :L) ac_source=$1;;
9134 :[FH])
9135 ac_file_inputs=
9136 for ac_f
9138 case $ac_f in
9139 -) ac_f="$tmp/stdin";;
9140 *) # Look for the file first in the build tree, then in the source tree
9141 # (if the path is not absolute). The absolute path cannot be DOS-style,
9142 # because $ac_f cannot contain `:'.
9143 test -f "$ac_f" ||
9144 case $ac_f in
9145 [\\/$]*) false;;
9146 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9147 esac ||
9148 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9149 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9150 { (exit 1); exit 1; }; };;
9151 esac
9152 ac_file_inputs="$ac_file_inputs $ac_f"
9153 done
9155 # Let's still pretend it is `configure' which instantiates (i.e., don't
9156 # use $as_me), people would be surprised to read:
9157 # /* config.h. Generated by config.status. */
9158 configure_input="Generated from "`IFS=:
9159 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9160 if test x"$ac_file" != x-; then
9161 configure_input="$ac_file. $configure_input"
9162 { echo "$as_me:$LINENO: creating $ac_file" >&5
9163 echo "$as_me: creating $ac_file" >&6;}
9166 case $ac_tag in
9167 *:-:* | *:-) cat >"$tmp/stdin";;
9168 esac
9170 esac
9172 ac_dir=`$as_dirname -- "$ac_file" ||
9173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9174 X"$ac_file" : 'X\(//\)[^/]' \| \
9175 X"$ac_file" : 'X\(//\)$' \| \
9176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9177 echo X"$ac_file" |
9178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9179 s//\1/
9182 /^X\(\/\/\)[^/].*/{
9183 s//\1/
9186 /^X\(\/\/\)$/{
9187 s//\1/
9190 /^X\(\/\).*/{
9191 s//\1/
9194 s/.*/./; q'`
9195 { as_dir="$ac_dir"
9196 case $as_dir in #(
9197 -*) as_dir=./$as_dir;;
9198 esac
9199 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9200 as_dirs=
9201 while :; do
9202 case $as_dir in #(
9203 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9204 *) as_qdir=$as_dir;;
9205 esac
9206 as_dirs="'$as_qdir' $as_dirs"
9207 as_dir=`$as_dirname -- "$as_dir" ||
9208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9209 X"$as_dir" : 'X\(//\)[^/]' \| \
9210 X"$as_dir" : 'X\(//\)$' \| \
9211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9212 echo X"$as_dir" |
9213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9214 s//\1/
9217 /^X\(\/\/\)[^/].*/{
9218 s//\1/
9221 /^X\(\/\/\)$/{
9222 s//\1/
9225 /^X\(\/\).*/{
9226 s//\1/
9229 s/.*/./; q'`
9230 test -d "$as_dir" && break
9231 done
9232 test -z "$as_dirs" || eval "mkdir $as_dirs"
9233 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9234 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9235 { (exit 1); exit 1; }; }; }
9236 ac_builddir=.
9238 case "$ac_dir" in
9239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9242 # A ".." for each directory in $ac_dir_suffix.
9243 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9244 case $ac_top_builddir_sub in
9245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9247 esac ;;
9248 esac
9249 ac_abs_top_builddir=$ac_pwd
9250 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9251 # for backward compatibility:
9252 ac_top_builddir=$ac_top_build_prefix
9254 case $srcdir in
9255 .) # We are building in place.
9256 ac_srcdir=.
9257 ac_top_srcdir=$ac_top_builddir_sub
9258 ac_abs_top_srcdir=$ac_pwd ;;
9259 [\\/]* | ?:[\\/]* ) # Absolute name.
9260 ac_srcdir=$srcdir$ac_dir_suffix;
9261 ac_top_srcdir=$srcdir
9262 ac_abs_top_srcdir=$srcdir ;;
9263 *) # Relative name.
9264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9265 ac_top_srcdir=$ac_top_build_prefix$srcdir
9266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9267 esac
9268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9271 case $ac_mode in
9274 # CONFIG_FILE
9277 case $INSTALL in
9278 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9279 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9280 esac
9281 ac_MKDIR_P=$MKDIR_P
9282 case $MKDIR_P in
9283 [\\/$]* | ?:[\\/]* ) ;;
9284 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9285 esac
9286 _ACEOF
9288 cat >>$CONFIG_STATUS <<\_ACEOF
9289 # If the template does not know about datarootdir, expand it.
9290 # FIXME: This hack should be removed a few years after 2.60.
9291 ac_datarootdir_hack=; ac_datarootdir_seen=
9293 case `sed -n '/datarootdir/ {
9297 /@datadir@/p
9298 /@docdir@/p
9299 /@infodir@/p
9300 /@localedir@/p
9301 /@mandir@/p
9302 ' $ac_file_inputs` in
9303 *datarootdir*) ac_datarootdir_seen=yes;;
9304 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9305 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9306 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9307 _ACEOF
9308 cat >>$CONFIG_STATUS <<_ACEOF
9309 ac_datarootdir_hack='
9310 s&@datadir@&$datadir&g
9311 s&@docdir@&$docdir&g
9312 s&@infodir@&$infodir&g
9313 s&@localedir@&$localedir&g
9314 s&@mandir@&$mandir&g
9315 s&\\\${datarootdir}&$datarootdir&g' ;;
9316 esac
9317 _ACEOF
9319 # Neutralize VPATH when `$srcdir' = `.'.
9320 # Shell code in configure.ac might set extrasub.
9321 # FIXME: do we really want to maintain this feature?
9322 cat >>$CONFIG_STATUS <<_ACEOF
9323 sed "$ac_vpsub
9324 $extrasub
9325 _ACEOF
9326 cat >>$CONFIG_STATUS <<\_ACEOF
9328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9329 s&@configure_input@&$configure_input&;t t
9330 s&@top_builddir@&$ac_top_builddir_sub&;t t
9331 s&@srcdir@&$ac_srcdir&;t t
9332 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9333 s&@top_srcdir@&$ac_top_srcdir&;t t
9334 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9335 s&@builddir@&$ac_builddir&;t t
9336 s&@abs_builddir@&$ac_abs_builddir&;t t
9337 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9338 s&@INSTALL@&$ac_INSTALL&;t t
9339 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9340 $ac_datarootdir_hack
9341 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9344 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9346 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9347 which seems to be undefined. Please make sure it is defined." >&5
9348 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9349 which seems to be undefined. Please make sure it is defined." >&2;}
9351 rm -f "$tmp/stdin"
9352 case $ac_file in
9353 -) cat "$tmp/out"; rm -f "$tmp/out";;
9354 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9355 esac
9359 # CONFIG_HEADER
9361 _ACEOF
9363 # Transform confdefs.h into a sed script `conftest.defines', that
9364 # substitutes the proper values into config.h.in to produce config.h.
9365 rm -f conftest.defines conftest.tail
9366 # First, append a space to every undef/define line, to ease matching.
9367 echo 's/$/ /' >conftest.defines
9368 # Then, protect against being on the right side of a sed subst, or in
9369 # an unquoted here document, in config.status. If some macros were
9370 # called several times there might be several #defines for the same
9371 # symbol, which is useless. But do not sort them, since the last
9372 # AC_DEFINE must be honored.
9373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9374 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9375 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9376 # PARAMS is the parameter list in the macro definition--in most cases, it's
9377 # just an empty string.
9378 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9379 ac_dB='\\)[ (].*,\\1define\\2'
9380 ac_dC=' '
9381 ac_dD=' ,'
9383 uniq confdefs.h |
9384 sed -n '
9385 t rset
9386 :rset
9387 s/^[ ]*#[ ]*define[ ][ ]*//
9388 t ok
9391 s/[\\&,]/\\&/g
9392 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9393 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9394 ' >>conftest.defines
9396 # Remove the space that was appended to ease matching.
9397 # Then replace #undef with comments. This is necessary, for
9398 # example, in the case of _POSIX_SOURCE, which is predefined and required
9399 # on some systems where configure will not decide to define it.
9400 # (The regexp can be short, since the line contains either #define or #undef.)
9401 echo 's/ $//
9402 s,^[ #]*u.*,/* & */,' >>conftest.defines
9404 # Break up conftest.defines:
9405 ac_max_sed_lines=50
9407 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9408 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9409 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9410 # et cetera.
9411 ac_in='$ac_file_inputs'
9412 ac_out='"$tmp/out1"'
9413 ac_nxt='"$tmp/out2"'
9415 while :
9417 # Write a here document:
9418 cat >>$CONFIG_STATUS <<_ACEOF
9419 # First, check the format of the line:
9420 cat >"\$tmp/defines.sed" <<\\CEOF
9421 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9422 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9424 :def
9425 _ACEOF
9426 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9427 echo 'CEOF
9428 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9429 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9430 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9431 grep . conftest.tail >/dev/null || break
9432 rm -f conftest.defines
9433 mv conftest.tail conftest.defines
9434 done
9435 rm -f conftest.defines conftest.tail
9437 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9438 cat >>$CONFIG_STATUS <<\_ACEOF
9439 if test x"$ac_file" != x-; then
9440 echo "/* $configure_input */" >"$tmp/config.h"
9441 cat "$ac_result" >>"$tmp/config.h"
9442 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9443 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9444 echo "$as_me: $ac_file is unchanged" >&6;}
9445 else
9446 rm -f $ac_file
9447 mv "$tmp/config.h" $ac_file
9449 else
9450 echo "/* $configure_input */"
9451 cat "$ac_result"
9453 rm -f "$tmp/out12"
9454 # Compute $ac_file's index in $config_headers.
9455 _am_arg=$ac_file
9456 _am_stamp_count=1
9457 for _am_header in $config_headers :; do
9458 case $_am_header in
9459 $_am_arg | $_am_arg:* )
9460 break ;;
9462 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9463 esac
9464 done
9465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9467 X"$_am_arg" : 'X\(//\)[^/]' \| \
9468 X"$_am_arg" : 'X\(//\)$' \| \
9469 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9470 echo X"$_am_arg" |
9471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9472 s//\1/
9475 /^X\(\/\/\)[^/].*/{
9476 s//\1/
9479 /^X\(\/\/\)$/{
9480 s//\1/
9483 /^X\(\/\).*/{
9484 s//\1/
9487 s/.*/./; q'`/stamp-h$_am_stamp_count
9490 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9491 echo "$as_me: executing $ac_file commands" >&6;}
9493 esac
9496 case $ac_file$ac_mode in
9497 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9498 # Strip MF so we end up with the name of the file.
9499 mf=`echo "$mf" | sed -e 's/:.*$//'`
9500 # Check whether this is an Automake generated Makefile or not.
9501 # We used to match only the files named `Makefile.in', but
9502 # some people rename them; so instead we look at the file content.
9503 # Grep'ing the first line is not enough: some people post-process
9504 # each Makefile.in and add a new line on top of each file to say so.
9505 # Grep'ing the whole file is not good either: AIX grep has a line
9506 # limit of 2048, but all sed's we know have understand at least 4000.
9507 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9508 dirpart=`$as_dirname -- "$mf" ||
9509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"$mf" : 'X\(//\)[^/]' \| \
9511 X"$mf" : 'X\(//\)$' \| \
9512 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9513 echo X"$mf" |
9514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9515 s//\1/
9518 /^X\(\/\/\)[^/].*/{
9519 s//\1/
9522 /^X\(\/\/\)$/{
9523 s//\1/
9526 /^X\(\/\).*/{
9527 s//\1/
9530 s/.*/./; q'`
9531 else
9532 continue
9534 # Extract the definition of DEPDIR, am__include, and am__quote
9535 # from the Makefile without running `make'.
9536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9537 test -z "$DEPDIR" && continue
9538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9539 test -z "am__include" && continue
9540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9541 # When using ansi2knr, U may be empty or an underscore; expand it
9542 U=`sed -n 's/^U = //p' < "$mf"`
9543 # Find all dependency output files, they are included files with
9544 # $(DEPDIR) in their names. We invoke sed twice because it is the
9545 # simplest approach to changing $(DEPDIR) to its actual value in the
9546 # expansion.
9547 for file in `sed -n "
9548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9550 # Make sure the directory exists.
9551 test -f "$dirpart/$file" && continue
9552 fdir=`$as_dirname -- "$file" ||
9553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9554 X"$file" : 'X\(//\)[^/]' \| \
9555 X"$file" : 'X\(//\)$' \| \
9556 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9557 echo X"$file" |
9558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9559 s//\1/
9562 /^X\(\/\/\)[^/].*/{
9563 s//\1/
9566 /^X\(\/\/\)$/{
9567 s//\1/
9570 /^X\(\/\).*/{
9571 s//\1/
9574 s/.*/./; q'`
9575 { as_dir=$dirpart/$fdir
9576 case $as_dir in #(
9577 -*) as_dir=./$as_dir;;
9578 esac
9579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9580 as_dirs=
9581 while :; do
9582 case $as_dir in #(
9583 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9584 *) as_qdir=$as_dir;;
9585 esac
9586 as_dirs="'$as_qdir' $as_dirs"
9587 as_dir=`$as_dirname -- "$as_dir" ||
9588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9589 X"$as_dir" : 'X\(//\)[^/]' \| \
9590 X"$as_dir" : 'X\(//\)$' \| \
9591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9592 echo X"$as_dir" |
9593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9594 s//\1/
9597 /^X\(\/\/\)[^/].*/{
9598 s//\1/
9601 /^X\(\/\/\)$/{
9602 s//\1/
9605 /^X\(\/\).*/{
9606 s//\1/
9609 s/.*/./; q'`
9610 test -d "$as_dir" && break
9611 done
9612 test -z "$as_dirs" || eval "mkdir $as_dirs"
9613 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9615 { (exit 1); exit 1; }; }; }
9616 # echo "creating $dirpart/$file"
9617 echo '# dummy' > "$dirpart/$file"
9618 done
9619 done
9622 esac
9623 done # for ac_tag
9626 { (exit 0); exit 0; }
9627 _ACEOF
9628 chmod +x $CONFIG_STATUS
9629 ac_clean_files=$ac_clean_files_save
9632 # configure is writing to config.log, and then calls config.status.
9633 # config.status does its own redirection, appending to config.log.
9634 # Unfortunately, on DOS this fails, as config.log is still kept open
9635 # by configure, so config.status won't be able to write to it; its
9636 # output is simply discarded. So we exec the FD to /dev/null,
9637 # effectively closing config.log, so it can be properly (re)opened and
9638 # appended to by config.status. When coming back to configure, we
9639 # need to make the FD available again.
9640 if test "$no_create" != yes; then
9641 ac_cs_success=:
9642 ac_config_status_args=
9643 test "$silent" = yes &&
9644 ac_config_status_args="$ac_config_status_args --quiet"
9645 exec 5>/dev/null
9646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9647 exec 5>>config.log
9648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9649 # would make configure fail if this is the last instruction.
9650 $ac_cs_success || { (exit 1); exit 1; }
9653 { echo "$as_me:$LINENO: Build OpenGL example: $HAVE_FULLGL" >&5
9654 echo "$as_me: Build OpenGL example: $HAVE_FULLGL" >&6;}