2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for Mesa 7.3.0.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
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
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+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
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
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
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
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
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 () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
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
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
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
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`
564
ac_default_prefix=/usr/local
566
ac_config_libobj_dir=.
572
SHELL=${CONFIG_SHELL-/bin/sh}
574
# Identity of this package.
576
PACKAGE_TARNAME='mesa'
577
PACKAGE_VERSION='7.3.0'
578
PACKAGE_STRING='Mesa 7.3.0'
579
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa'
581
# Factoring default headers for most tests.
582
ac_includes_default="\
584
#ifdef HAVE_SYS_TYPES_H
585
# include <sys/types.h>
587
#ifdef HAVE_SYS_STAT_H
588
# include <sys/stat.h>
594
# ifdef HAVE_STDLIB_H
599
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604
#ifdef HAVE_STRINGS_H
605
# include <strings.h>
607
#ifdef HAVE_INTTYPES_H
608
# include <inttypes.h>
626
program_transform_name
721
DRI_DRIVER_INSTALL_DIR
759
ac_precious_vars='build_alias
795
# Initialize some variables set by options.
797
ac_init_version=false
798
# The variables have the same names as the options, with
799
# dashes changed to underlines.
807
program_transform_name=s,x,x,
815
# Installation directory options.
816
# These are left unexpanded so users can "make install exec_prefix=/foo"
817
# and all the variables that are supposed to be based on exec_prefix
818
# by default will actually change.
819
# Use braces instead of parens because sh, perl, etc. also accept them.
820
# (The list follows the same order as the GNU Coding Standards.)
821
bindir='${exec_prefix}/bin'
822
sbindir='${exec_prefix}/sbin'
823
libexecdir='${exec_prefix}/libexec'
824
datarootdir='${prefix}/share'
825
datadir='${datarootdir}'
826
sysconfdir='${prefix}/etc'
827
sharedstatedir='${prefix}/com'
828
localstatedir='${prefix}/var'
829
includedir='${prefix}/include'
830
oldincludedir='/usr/include'
831
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832
infodir='${datarootdir}/info'
837
libdir='${exec_prefix}/lib'
838
localedir='${datarootdir}/locale'
839
mandir='${datarootdir}/man'
845
# If the previous option needs an argument, assign it.
846
if test -n "$ac_prev"; then
847
eval $ac_prev=\$ac_option
853
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857
# Accept the important Cygnus configure options, so we can diagnose typos.
859
case $ac_dashdash$ac_option in
863
-bindir | --bindir | --bindi | --bind | --bin | --bi)
865
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868
-build | --build | --buil | --bui | --bu)
869
ac_prev=build_alias ;;
870
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
871
build_alias=$ac_optarg ;;
873
-cache-file | --cache-file | --cache-fil | --cache-fi \
874
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875
ac_prev=cache_file ;;
876
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878
cache_file=$ac_optarg ;;
881
cache_file=config.cache ;;
883
-datadir | --datadir | --datadi | --datad)
885
-datadir=* | --datadir=* | --datadi=* | --datad=*)
886
datadir=$ac_optarg ;;
888
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889
| --dataroo | --dataro | --datar)
890
ac_prev=datarootdir ;;
891
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893
datarootdir=$ac_optarg ;;
895
-disable-* | --disable-*)
896
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897
# Reject names that are not valid shell variable names.
898
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
900
{ (exit 1); exit 1; }; }
901
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902
eval enable_$ac_feature=no ;;
904
-docdir | --docdir | --docdi | --doc | --do)
906
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914
-enable-* | --enable-*)
915
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916
# Reject names that are not valid shell variable names.
917
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
919
{ (exit 1); exit 1; }; }
920
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921
eval enable_$ac_feature=\$ac_optarg ;;
923
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925
| --exec | --exe | --ex)
926
ac_prev=exec_prefix ;;
927
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929
| --exec=* | --exe=* | --ex=*)
930
exec_prefix=$ac_optarg ;;
932
-gas | --gas | --ga | --g)
933
# Obsolete; use --with-gas.
936
-help | --help | --hel | --he | -h)
938
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939
ac_init_help=recursive ;;
940
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941
ac_init_help=short ;;
943
-host | --host | --hos | --ho)
944
ac_prev=host_alias ;;
945
-host=* | --host=* | --hos=* | --ho=*)
946
host_alias=$ac_optarg ;;
948
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952
htmldir=$ac_optarg ;;
954
-includedir | --includedir | --includedi | --included | --include \
955
| --includ | --inclu | --incl | --inc)
956
ac_prev=includedir ;;
957
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958
| --includ=* | --inclu=* | --incl=* | --inc=*)
959
includedir=$ac_optarg ;;
961
-infodir | --infodir | --infodi | --infod | --info | --inf)
963
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964
infodir=$ac_optarg ;;
966
-libdir | --libdir | --libdi | --libd)
968
-libdir=* | --libdir=* | --libdi=* | --libd=*)
971
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972
| --libexe | --libex | --libe)
973
ac_prev=libexecdir ;;
974
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975
| --libexe=* | --libex=* | --libe=*)
976
libexecdir=$ac_optarg ;;
978
-localedir | --localedir | --localedi | --localed | --locale)
980
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981
localedir=$ac_optarg ;;
983
-localstatedir | --localstatedir | --localstatedi | --localstated \
984
| --localstate | --localstat | --localsta | --localst | --locals)
985
ac_prev=localstatedir ;;
986
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988
localstatedir=$ac_optarg ;;
990
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996
# Obsolete; use --without-fp.
999
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000
| --no-cr | --no-c | -n)
1003
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009
| --oldin | --oldi | --old | --ol | --o)
1010
ac_prev=oldincludedir ;;
1011
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014
oldincludedir=$ac_optarg ;;
1016
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019
prefix=$ac_optarg ;;
1021
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1022
| --program-pre | --program-pr | --program-p)
1023
ac_prev=program_prefix ;;
1024
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1025
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026
program_prefix=$ac_optarg ;;
1028
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1029
| --program-suf | --program-su | --program-s)
1030
ac_prev=program_suffix ;;
1031
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1032
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033
program_suffix=$ac_optarg ;;
1035
-program-transform-name | --program-transform-name \
1036
| --program-transform-nam | --program-transform-na \
1037
| --program-transform-n | --program-transform- \
1038
| --program-transform | --program-transfor \
1039
| --program-transfo | --program-transf \
1040
| --program-trans | --program-tran \
1041
| --progr-tra | --program-tr | --program-t)
1042
ac_prev=program_transform_name ;;
1043
-program-transform-name=* | --program-transform-name=* \
1044
| --program-transform-nam=* | --program-transform-na=* \
1045
| --program-transform-n=* | --program-transform-=* \
1046
| --program-transform=* | --program-transfor=* \
1047
| --program-transfo=* | --program-transf=* \
1048
| --program-trans=* | --program-tran=* \
1049
| --progr-tra=* | --program-tr=* | --program-t=*)
1050
program_transform_name=$ac_optarg ;;
1052
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055
pdfdir=$ac_optarg ;;
1057
-psdir | --psdir | --psdi | --psd | --ps)
1059
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063
| -silent | --silent | --silen | --sile | --sil)
1066
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070
sbindir=$ac_optarg ;;
1072
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1073
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074
| --sharedst | --shareds | --shared | --share | --shar \
1076
ac_prev=sharedstatedir ;;
1077
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081
sharedstatedir=$ac_optarg ;;
1083
-site | --site | --sit)
1085
-site=* | --site=* | --sit=*)
1088
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091
srcdir=$ac_optarg ;;
1093
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094
| --syscon | --sysco | --sysc | --sys | --sy)
1095
ac_prev=sysconfdir ;;
1096
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098
sysconfdir=$ac_optarg ;;
1100
-target | --target | --targe | --targ | --tar | --ta | --t)
1101
ac_prev=target_alias ;;
1102
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103
target_alias=$ac_optarg ;;
1105
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1108
-version | --version | --versio | --versi | --vers | -V)
1109
ac_init_version=: ;;
1112
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113
# Reject names that are not valid shell variable names.
1114
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1116
{ (exit 1); exit 1; }; }
1117
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118
eval with_$ac_package=\$ac_optarg ;;
1120
-without-* | --without-*)
1121
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122
# Reject names that are not valid shell variable names.
1123
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1125
{ (exit 1); exit 1; }; }
1126
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127
eval with_$ac_package=no ;;
1130
# Obsolete; use --with-x.
1133
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134
| --x-incl | --x-inc | --x-in | --x-i)
1135
ac_prev=x_includes ;;
1136
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138
x_includes=$ac_optarg ;;
1140
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1141
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142
ac_prev=x_libraries ;;
1143
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145
x_libraries=$ac_optarg ;;
1147
-*) { echo "$as_me: error: unrecognized option: $ac_option
1148
Try \`$0 --help' for more information." >&2
1149
{ (exit 1); exit 1; }; }
1153
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154
# Reject names that are not valid shell variable names.
1155
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157
{ (exit 1); exit 1; }; }
1158
eval $ac_envvar=\$ac_optarg
1159
export $ac_envvar ;;
1162
# FIXME: should be removed in autoconf 3.0.
1163
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172
if test -n "$ac_prev"; then
1173
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174
{ echo "$as_me: error: missing argument to $ac_option" >&2
1175
{ (exit 1); exit 1; }; }
1178
# Be sure to have absolute directory names.
1179
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180
datadir sysconfdir sharedstatedir localstatedir includedir \
1181
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182
libdir localedir mandir
1184
eval ac_val=\$$ac_var
1186
[\\/$]* | ?:[\\/]* ) continue;;
1187
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190
{ (exit 1); exit 1; }; }
1193
# There might be people who depend on the old broken behavior: `$host'
1194
# used to hold the argument of --host etc.
1195
# FIXME: To remove some day.
1198
target=$target_alias
1200
# FIXME: To remove some day.
1201
if test "x$host_alias" != x; then
1202
if test "x$build_alias" = x; then
1203
cross_compiling=maybe
1204
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205
If a cross compiler is detected then cross compile mode will be used." >&2
1206
elif test "x$build_alias" != "x$host_alias"; then
1212
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
test "$silent" = yes && exec 6>/dev/null
1217
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218
ac_ls_di=`ls -di .` &&
1219
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220
{ echo "$as_me: error: Working directory cannot be determined" >&2
1221
{ (exit 1); exit 1; }; }
1222
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1224
{ (exit 1); exit 1; }; }
1227
# Find the source files, if location was not specified.
1228
if test -z "$srcdir"; then
1229
ac_srcdir_defaulted=yes
1230
# Try the directory containing this script, then the parent directory.
1231
ac_confdir=`$as_dirname -- "$0" ||
1232
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233
X"$0" : 'X\(//\)[^/]' \| \
1234
X"$0" : 'X\(//\)$' \| \
1235
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255
if test ! -r "$srcdir/$ac_unique_file"; then
1259
ac_srcdir_defaulted=no
1261
if test ! -r "$srcdir/$ac_unique_file"; then
1262
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264
{ (exit 1); exit 1; }; }
1266
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269
{ (exit 1); exit 1; }; }
1271
# When building in place, set srcdir=.
1272
if test "$ac_abs_confdir" = "$ac_pwd"; then
1275
# Remove unnecessary trailing slashes from srcdir.
1276
# Double slashes in file names in object file debugging info
1277
# mess up M-x gdb in Emacs.
1279
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281
for ac_var in $ac_precious_vars; do
1282
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283
eval ac_env_${ac_var}_value=\$${ac_var}
1284
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289
# Report the --help message.
1291
if test "$ac_init_help" = "long"; then
1292
# Omit some internal or obsolete options to make the list less imposing.
1293
# This message is too long to be a string in the A/UX 3.1 sh.
1295
\`configure' configures Mesa 7.3.0 to adapt to many kinds of systems.
1297
Usage: $0 [OPTION]... [VAR=VALUE]...
1299
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300
VAR=VALUE. See below for descriptions of some of the useful variables.
1302
Defaults for the options are specified in brackets.
1305
-h, --help display this help and exit
1306
--help=short display options specific to this package
1307
--help=recursive display the short help of all the included packages
1308
-V, --version display version information and exit
1309
-q, --quiet, --silent do not print \`checking...' messages
1310
--cache-file=FILE cache test results in FILE [disabled]
1311
-C, --config-cache alias for \`--cache-file=config.cache'
1312
-n, --no-create do not create output files
1313
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1315
Installation directories:
1316
--prefix=PREFIX install architecture-independent files in PREFIX
1317
[$ac_default_prefix]
1318
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321
By default, \`make install' will install all the files in
1322
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324
for instance \`--prefix=\$HOME'.
1326
For better control, use the options below.
1328
Fine tuning of the installation directories:
1329
--bindir=DIR user executables [EPREFIX/bin]
1330
--sbindir=DIR system admin executables [EPREFIX/sbin]
1331
--libexecdir=DIR program executables [EPREFIX/libexec]
1332
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335
--libdir=DIR object code libraries [EPREFIX/lib]
1336
--includedir=DIR C header files [PREFIX/include]
1337
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1338
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340
--infodir=DIR info documentation [DATAROOTDIR/info]
1341
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342
--mandir=DIR man documentation [DATAROOTDIR/man]
1343
--docdir=DIR documentation root [DATAROOTDIR/doc/mesa]
1344
--htmldir=DIR html documentation [DOCDIR]
1345
--dvidir=DIR dvi documentation [DOCDIR]
1346
--pdfdir=DIR pdf documentation [DOCDIR]
1347
--psdir=DIR ps documentation [DOCDIR]
1353
--x-includes=DIR X include files are in DIR
1354
--x-libraries=DIR X library files are in DIR
1355
These options are only used when the X libraries cannot be found by the
1359
--build=BUILD configure for building on BUILD [guessed]
1360
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1364
if test -n "$ac_init_help"; then
1365
case $ac_init_help in
1366
short | recursive ) echo "Configuration of Mesa 7.3.0:";;
1371
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373
--enable-32-bit build 32-bit libraries [default=auto]
1374
--enable-64-bit build 64-bit libraries [default=auto]
1375
--enable-static build static libraries [default=disabled]
1376
--disable-shared build shared libraries [default=enabled]
1377
--enable-debug use debug compiler flags and macros
1379
--disable-asm disable assembly usage [default=enabled on supported
1381
--disable-pic compile PIC objects [default=enabled for shared
1382
builds on supported platforms]
1383
--enable-selinux Build SELinux-aware Mesa [default=disabled]
1384
--enable-xcb use XCB for GLX [default=disabled]
1385
--enable-glx-tls enable TLS support in GLX [default=disabled]
1386
--disable-driglx-direct enable direct rendering in GLX for DRI
1388
--enable-gl-osmesa enable OSMesa on libGL [default=enabled for xlib
1390
--disable-glu enable OpenGL Utility library [default=enabled]
1391
--disable-glw enable Xt/Motif widget library [default=enabled]
1392
--enable-motif use Motif widgets in GLw [default=disabled]
1393
--disable-glut enable GLUT library [default=enabled if source
1397
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399
--with-driver=DRIVER driver for Mesa: xlib,dri,osmesa [default=dri when
1401
--with-demos[=DIRS...] optional comma delimited demo directories to build
1402
[default=auto if source available]
1403
--with-x use the X Window System
1404
--with-dri-driverdir=DIR
1405
directory for the DRI drivers [${libdir}/dri]
1406
--with-dri-drivers[=DIRS...]
1407
comma delimited DRI drivers list, e.g.
1408
"swrast,i965,radeon,nouveau" [default=auto]
1409
--with-expat=DIR expat install directory
1410
--with-osmesa-bits=BITS OSMesa channel bits and library name: 8, 16, 32
1413
Some influential environment variables:
1414
CC C compiler command
1415
CFLAGS C compiler flags
1416
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417
nonstandard directory <lib dir>
1418
LIBS libraries to pass to the linker, e.g. -l<library>
1419
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1420
you have headers in a nonstandard directory <include dir>
1422
CXX C++ compiler command
1423
CXXFLAGS C++ compiler flags
1424
PKG_CONFIG path to pkg-config utility
1426
Extra -L paths for the linker
1428
Extra -I paths for X11 headers
1429
OPT_FLAGS Additional optimization flags for the compiler. Default is to
1431
ARCH_FLAGS Additional architecture specific flags for the compiler. Default
1434
Options for the Mesa library script, mklib
1435
PIC_FLAGS compiler flags for PIC code
1436
XMKMF Path to xmkmf, Makefile generator for X Window System
1438
C compiler flags for XLIBGL, overriding pkg-config
1439
XLIBGL_LIBS linker flags for XLIBGL, overriding pkg-config
1441
C compiler flags for LIBDRM, overriding pkg-config
1442
LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1444
C compiler flags for DRI2PROTO, overriding pkg-config
1446
linker flags for DRI2PROTO, overriding pkg-config
1448
C compiler flags for DRIGL, overriding pkg-config
1449
DRIGL_LIBS linker flags for DRIGL, overriding pkg-config
1450
XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
1451
XCB_LIBS linker flags for XCB, overriding pkg-config
1452
GLW_CFLAGS C compiler flags for GLW, overriding pkg-config
1453
GLW_LIBS linker flags for GLW, overriding pkg-config
1454
GLUT_CFLAGS C compiler flags for GLUT, overriding pkg-config
1455
GLUT_LIBS linker flags for GLUT, overriding pkg-config
1457
Use these variables to override the choices made by `configure' or to help
1458
it to find libraries and programs with nonstandard names/locations.
1460
See docs/autoconf.html for more details on the options for Mesa.
1462
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
1467
if test "$ac_init_help" = "recursive"; then
1468
# If there are subdirs, report their specific --help.
1469
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470
test -d "$ac_dir" || continue
1474
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477
# A ".." for each directory in $ac_dir_suffix.
1478
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479
case $ac_top_builddir_sub in
1480
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484
ac_abs_top_builddir=$ac_pwd
1485
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486
# for backward compatibility:
1487
ac_top_builddir=$ac_top_build_prefix
1490
.) # We are building in place.
1492
ac_top_srcdir=$ac_top_builddir_sub
1493
ac_abs_top_srcdir=$ac_pwd ;;
1494
[\\/]* | ?:[\\/]* ) # Absolute name.
1495
ac_srcdir=$srcdir$ac_dir_suffix;
1496
ac_top_srcdir=$srcdir
1497
ac_abs_top_srcdir=$srcdir ;;
1499
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500
ac_top_srcdir=$ac_top_build_prefix$srcdir
1501
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
cd "$ac_dir" || { ac_status=$?; continue; }
1506
# Check for guested configure.
1507
if test -f "$ac_srcdir/configure.gnu"; then
1509
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510
elif test -f "$ac_srcdir/configure"; then
1512
$SHELL "$ac_srcdir/configure" --help=recursive
1514
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516
cd "$ac_pwd" || { ac_status=$?; break; }
1520
test -n "$ac_init_help" && exit $ac_status
1521
if $ac_init_version; then
1523
Mesa configure 7.3.0
1524
generated by GNU Autoconf 2.61
1526
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1527
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1528
This configure script is free software; the Free Software Foundation
1529
gives unlimited permission to copy, distribute and modify it.
1533
cat >config.log <<_ACEOF
1534
This file contains any messages produced by compilers while
1535
running configure, to aid debugging if configure makes a mistake.
1537
It was created by Mesa $as_me 7.3.0, which was
1538
generated by GNU Autoconf 2.61. Invocation command line was
1550
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1551
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1552
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1553
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1554
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1556
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1557
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1559
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1560
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1561
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1562
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1563
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1564
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1565
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573
test -z "$as_dir" && as_dir=.
1574
echo "PATH: $as_dir"
1590
# Keep a trace of the command line.
1591
# Strip out --no-create and --no-recursion so they do not pile up.
1592
# Strip out --silent because we don't want to record it for future runs.
1593
# Also quote any args containing shell meta-characters.
1594
# Make two passes to allow for proper duplicate-argument suppression.
1598
ac_must_keep_next=false
1604
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1605
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1606
| -silent | --silent | --silen | --sile | --sil)
1609
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1612
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1614
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1615
if test $ac_must_keep_next = true; then
1616
ac_must_keep_next=false # Got value, back to normal.
1619
*=* | --config-cache | -C | -disable-* | --disable-* \
1620
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1621
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1622
| -with-* | --with-* | -without-* | --without-* | --x)
1623
case "$ac_configure_args0 " in
1624
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1627
-* ) ac_must_keep_next=true ;;
1630
ac_configure_args="$ac_configure_args '$ac_arg'"
1635
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1636
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1638
# When interrupted or exit'd, cleanup temporary files, and complete
1639
# config.log. We remove comments because anyway the quotes in there
1640
# would cause problems or look ugly.
1641
# WARNING: Use '\'' to represent an apostrophe within the trap.
1642
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1643
trap 'exit_status=$?
1644
# Save into config.log some information that might help in debugging.
1649
## ---------------- ##
1650
## Cache variables. ##
1651
## ---------------- ##
1654
# The following way of writing the cache mishandles newlines in values,
1656
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1657
eval ac_val=\$$ac_var
1661
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1662
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1665
_ | IFS | as_nl) ;; #(
1666
*) $as_unset $ac_var ;;
1671
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672
*${as_nl}ac_space=\ *)
1674
"s/'\''/'\''\\\\'\'''\''/g;
1675
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1678
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1686
## ----------------- ##
1687
## Output variables. ##
1688
## ----------------- ##
1691
for ac_var in $ac_subst_vars
1693
eval ac_val=\$$ac_var
1695
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697
echo "$ac_var='\''$ac_val'\''"
1701
if test -n "$ac_subst_files"; then
1703
## ------------------- ##
1704
## File substitutions. ##
1705
## ------------------- ##
1708
for ac_var in $ac_subst_files
1710
eval ac_val=\$$ac_var
1712
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714
echo "$ac_var='\''$ac_val'\''"
1719
if test -s confdefs.h; then
1729
test "$ac_signal" != 0 &&
1730
echo "$as_me: caught signal $ac_signal"
1731
echo "$as_me: exit $exit_status"
1733
rm -f core *.core core.conftest.* &&
1734
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1737
for ac_signal in 1 2 13 15; do
1738
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1742
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1743
rm -f -r conftest* confdefs.h
1745
# Predefined preprocessor variables.
1747
cat >>confdefs.h <<_ACEOF
1748
#define PACKAGE_NAME "$PACKAGE_NAME"
1752
cat >>confdefs.h <<_ACEOF
1753
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1757
cat >>confdefs.h <<_ACEOF
1758
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1762
cat >>confdefs.h <<_ACEOF
1763
#define PACKAGE_STRING "$PACKAGE_STRING"
1767
cat >>confdefs.h <<_ACEOF
1768
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1772
# Let the site file select an alternate cache file if it wants to.
1773
# Prefer explicitly selected file to automatically selected ones.
1774
if test -n "$CONFIG_SITE"; then
1775
set x "$CONFIG_SITE"
1776
elif test "x$prefix" != xNONE; then
1777
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1779
set x "$ac_default_prefix/share/config.site" \
1780
"$ac_default_prefix/etc/config.site"
1785
if test -r "$ac_site_file"; then
1786
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1787
echo "$as_me: loading site script $ac_site_file" >&6;}
1788
sed 's/^/| /' "$ac_site_file" >&5
1793
if test -r "$cache_file"; then
1794
# Some versions of bash will fail to source /dev/null (special
1795
# files actually), so we avoid doing that.
1796
if test -f "$cache_file"; then
1797
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1798
echo "$as_me: loading cache $cache_file" >&6;}
1800
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1801
*) . "./$cache_file";;
1805
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1806
echo "$as_me: creating cache $cache_file" >&6;}
1810
# Check that the precious variables saved in the cache have kept the same
1812
ac_cache_corrupted=false
1813
for ac_var in $ac_precious_vars; do
1814
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1815
eval ac_new_set=\$ac_env_${ac_var}_set
1816
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1817
eval ac_new_val=\$ac_env_${ac_var}_value
1818
case $ac_old_set,$ac_new_set in
1820
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1821
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1822
ac_cache_corrupted=: ;;
1824
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1825
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1826
ac_cache_corrupted=: ;;
1829
if test "x$ac_old_val" != "x$ac_new_val"; then
1830
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1831
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1832
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1833
echo "$as_me: former value: $ac_old_val" >&2;}
1834
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1835
echo "$as_me: current value: $ac_new_val" >&2;}
1836
ac_cache_corrupted=:
1839
# Pass precious variables to config.status.
1840
if test "$ac_new_set" = set; then
1842
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1843
*) ac_arg=$ac_var=$ac_new_val ;;
1845
case " $ac_configure_args " in
1846
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1847
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1851
if $ac_cache_corrupted; then
1852
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1856
{ (exit 1); exit 1; }; }
1884
ac_cpp='$CPP $CPPFLAGS'
1885
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891
for ac_dir in bin "$srcdir"/bin; do
1892
if test -f "$ac_dir/install-sh"; then
1894
ac_install_sh="$ac_aux_dir/install-sh -c"
1896
elif test -f "$ac_dir/install.sh"; then
1898
ac_install_sh="$ac_aux_dir/install.sh -c"
1900
elif test -f "$ac_dir/shtool"; then
1902
ac_install_sh="$ac_aux_dir/shtool install -c"
1906
if test -z "$ac_aux_dir"; then
1907
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&5
1908
echo "$as_me: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&2;}
1909
{ (exit 1); exit 1; }; }
1912
# These three variables are undocumented and unsupported,
1913
# and are intended to be withdrawn in a future Autoconf release.
1914
# They can cause serious problems if a builder's source tree is in a directory
1915
# whose full name contains unusual characters.
1916
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1917
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1918
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1921
# Make sure we can run config.sub.
1922
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1923
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1924
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1925
{ (exit 1); exit 1; }; }
1927
{ echo "$as_me:$LINENO: checking build system type" >&5
1928
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1929
if test "${ac_cv_build+set}" = set; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
ac_build_alias=$build_alias
1933
test "x$ac_build_alias" = x &&
1934
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1935
test "x$ac_build_alias" = x &&
1936
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1937
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1938
{ (exit 1); exit 1; }; }
1939
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1940
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1941
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1942
{ (exit 1); exit 1; }; }
1945
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1946
echo "${ECHO_T}$ac_cv_build" >&6; }
1947
case $ac_cv_build in
1949
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1950
echo "$as_me: error: invalid value of canonical build" >&2;}
1951
{ (exit 1); exit 1; }; };;
1954
ac_save_IFS=$IFS; IFS='-'
1960
# Remember, the first character of IFS is used to create $*,
1961
# except with old shells:
1964
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1967
{ echo "$as_me:$LINENO: checking host system type" >&5
1968
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1969
if test "${ac_cv_host+set}" = set; then
1970
echo $ECHO_N "(cached) $ECHO_C" >&6
1972
if test "x$host_alias" = x; then
1973
ac_cv_host=$ac_cv_build
1975
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1976
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1977
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1978
{ (exit 1); exit 1; }; }
1982
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1983
echo "${ECHO_T}$ac_cv_host" >&6; }
1986
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1987
echo "$as_me: error: invalid value of canonical host" >&2;}
1988
{ (exit 1); exit 1; }; };;
1991
ac_save_IFS=$IFS; IFS='-'
1997
# Remember, the first character of IFS is used to create $*,
1998
# except with old shells:
2001
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2005
LIBDRM_REQUIRED=2.4.3
2006
DRI2PROTO_REQUIRED=1.99.3
2009
ac_cpp='$CPP $CPPFLAGS'
2010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
if test -n "$ac_tool_prefix"; then
2014
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018
if test "${ac_cv_prog_CC+set}" = set; then
2019
echo $ECHO_N "(cached) $ECHO_C" >&6
2021
if test -n "$CC"; then
2022
ac_cv_prog_CC="$CC" # Let the user override the test.
2024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028
test -z "$as_dir" && as_dir=.
2029
for ac_exec_ext in '' $ac_executable_extensions; do
2030
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042
if test -n "$CC"; then
2043
{ echo "$as_me:$LINENO: result: $CC" >&5
2044
echo "${ECHO_T}$CC" >&6; }
2046
{ echo "$as_me:$LINENO: result: no" >&5
2047
echo "${ECHO_T}no" >&6; }
2052
if test -z "$ac_cv_prog_CC"; then
2054
# Extract the first word of "gcc", so it can be a program name with args.
2055
set dummy gcc; ac_word=$2
2056
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059
echo $ECHO_N "(cached) $ECHO_C" >&6
2061
if test -n "$ac_ct_CC"; then
2062
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068
test -z "$as_dir" && as_dir=.
2069
for ac_exec_ext in '' $ac_executable_extensions; do
2070
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071
ac_cv_prog_ac_ct_CC="gcc"
2072
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082
if test -n "$ac_ct_CC"; then
2083
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084
echo "${ECHO_T}$ac_ct_CC" >&6; }
2086
{ echo "$as_me:$LINENO: result: no" >&5
2087
echo "${ECHO_T}no" >&6; }
2090
if test "x$ac_ct_CC" = x; then
2093
case $cross_compiling:$ac_tool_warned in
2095
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096
whose name does not start with the host triplet. If you think this
2097
configuration is useful to you, please write to autoconf@gnu.org." >&5
2098
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099
whose name does not start with the host triplet. If you think this
2100
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101
ac_tool_warned=yes ;;
2109
if test -z "$CC"; then
2110
if test -n "$ac_tool_prefix"; then
2111
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2112
set dummy ${ac_tool_prefix}cc; ac_word=$2
2113
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2114
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115
if test "${ac_cv_prog_CC+set}" = set; then
2116
echo $ECHO_N "(cached) $ECHO_C" >&6
2118
if test -n "$CC"; then
2119
ac_cv_prog_CC="$CC" # Let the user override the test.
2121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125
test -z "$as_dir" && as_dir=.
2126
for ac_exec_ext in '' $ac_executable_extensions; do
2127
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128
ac_cv_prog_CC="${ac_tool_prefix}cc"
2129
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139
if test -n "$CC"; then
2140
{ echo "$as_me:$LINENO: result: $CC" >&5
2141
echo "${ECHO_T}$CC" >&6; }
2143
{ echo "$as_me:$LINENO: result: no" >&5
2144
echo "${ECHO_T}no" >&6; }
2150
if test -z "$CC"; then
2151
# Extract the first word of "cc", so it can be a program name with args.
2152
set dummy cc; ac_word=$2
2153
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155
if test "${ac_cv_prog_CC+set}" = set; then
2156
echo $ECHO_N "(cached) $ECHO_C" >&6
2158
if test -n "$CC"; then
2159
ac_cv_prog_CC="$CC" # Let the user override the test.
2162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166
test -z "$as_dir" && as_dir=.
2167
for ac_exec_ext in '' $ac_executable_extensions; do
2168
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170
ac_prog_rejected=yes
2174
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181
if test $ac_prog_rejected = yes; then
2182
# We found a bogon in the path, so make sure we never use it.
2183
set dummy $ac_cv_prog_CC
2185
if test $# != 0; then
2186
# We chose a different compiler from the bogus one.
2187
# However, it has the same basename, so the bogon will be chosen
2188
# first if we set CC to just the basename; use the full file name.
2190
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2196
if test -n "$CC"; then
2197
{ echo "$as_me:$LINENO: result: $CC" >&5
2198
echo "${ECHO_T}$CC" >&6; }
2200
{ echo "$as_me:$LINENO: result: no" >&5
2201
echo "${ECHO_T}no" >&6; }
2206
if test -z "$CC"; then
2207
if test -n "$ac_tool_prefix"; then
2208
for ac_prog in cl.exe
2210
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214
if test "${ac_cv_prog_CC+set}" = set; then
2215
echo $ECHO_N "(cached) $ECHO_C" >&6
2217
if test -n "$CC"; then
2218
ac_cv_prog_CC="$CC" # Let the user override the test.
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
test -z "$as_dir" && as_dir=.
2225
for ac_exec_ext in '' $ac_executable_extensions; do
2226
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238
if test -n "$CC"; then
2239
{ echo "$as_me:$LINENO: result: $CC" >&5
2240
echo "${ECHO_T}$CC" >&6; }
2242
{ echo "$as_me:$LINENO: result: no" >&5
2243
echo "${ECHO_T}no" >&6; }
2247
test -n "$CC" && break
2250
if test -z "$CC"; then
2252
for ac_prog in cl.exe
2254
# Extract the first word of "$ac_prog", so it can be a program name with args.
2255
set dummy $ac_prog; ac_word=$2
2256
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259
echo $ECHO_N "(cached) $ECHO_C" >&6
2261
if test -n "$ac_ct_CC"; then
2262
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
test -z "$as_dir" && as_dir=.
2269
for ac_exec_ext in '' $ac_executable_extensions; do
2270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271
ac_cv_prog_ac_ct_CC="$ac_prog"
2272
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282
if test -n "$ac_ct_CC"; then
2283
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284
echo "${ECHO_T}$ac_ct_CC" >&6; }
2286
{ echo "$as_me:$LINENO: result: no" >&5
2287
echo "${ECHO_T}no" >&6; }
2291
test -n "$ac_ct_CC" && break
2294
if test "x$ac_ct_CC" = x; then
2297
case $cross_compiling:$ac_tool_warned in
2299
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300
whose name does not start with the host triplet. If you think this
2301
configuration is useful to you, please write to autoconf@gnu.org." >&5
2302
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303
whose name does not start with the host triplet. If you think this
2304
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305
ac_tool_warned=yes ;;
2314
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315
See \`config.log' for more details." >&5
2316
echo "$as_me: error: no acceptable C compiler found in \$PATH
2317
See \`config.log' for more details." >&2;}
2318
{ (exit 1); exit 1; }; }
2320
# Provide some information about the compiler.
2321
echo "$as_me:$LINENO: checking for C compiler version" >&5
2322
ac_compiler=`set X $ac_compile; echo $2`
2323
{ (ac_try="$ac_compiler --version >&5"
2325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326
*) ac_try_echo=$ac_try;;
2328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329
(eval "$ac_compiler --version >&5") 2>&5
2331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332
(exit $ac_status); }
2333
{ (ac_try="$ac_compiler -v >&5"
2335
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336
*) ac_try_echo=$ac_try;;
2338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339
(eval "$ac_compiler -v >&5") 2>&5
2341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342
(exit $ac_status); }
2343
{ (ac_try="$ac_compiler -V >&5"
2345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346
*) ac_try_echo=$ac_try;;
2348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349
(eval "$ac_compiler -V >&5") 2>&5
2351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
(exit $ac_status); }
2354
cat >conftest.$ac_ext <<_ACEOF
2357
cat confdefs.h >>conftest.$ac_ext
2358
cat >>conftest.$ac_ext <<_ACEOF
2359
/* end confdefs.h. */
2369
ac_clean_files_save=$ac_clean_files
2370
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371
# Try to create an executable without -o first, disregard a.out.
2372
# It will help us diagnose broken compilers, and finding out an intuition
2374
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2376
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378
# List of possible output files, starting from the most likely.
2379
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2380
# only as a last resort. b.out is created by i960 compilers.
2381
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2383
# The IRIX 6 linker writes into existing files which may not be
2384
# executable, retaining their permissions. Remove them first so a
2385
# subsequent execution test works.
2387
for ac_file in $ac_files
2390
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2391
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2396
if { (ac_try="$ac_link_default"
2398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399
*) ac_try_echo=$ac_try;;
2401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402
(eval "$ac_link_default") 2>&5
2404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405
(exit $ac_status); }; then
2406
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2409
# so that the user can short-circuit this test for compilers unknown to
2411
for ac_file in $ac_files ''
2413
test -f "$ac_file" || continue
2415
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2418
# We found the default executable, but exeext='' is most
2422
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2424
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426
# We set ac_cv_exeext here because the later test for it is not
2427
# safe: cross compilers may not add the suffix if given an `-o'
2428
# argument, so we may need to know it at that point already.
2429
# Even if this section looks crufty: it has the advantage of
2436
test "$ac_cv_exeext" = no && ac_cv_exeext=
2442
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2443
echo "${ECHO_T}$ac_file" >&6; }
2444
if test -z "$ac_file"; then
2445
echo "$as_me: failed program was:" >&5
2446
sed 's/^/| /' conftest.$ac_ext >&5
2448
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2449
See \`config.log' for more details." >&5
2450
echo "$as_me: error: C compiler cannot create executables
2451
See \`config.log' for more details." >&2;}
2452
{ (exit 77); exit 77; }; }
2455
ac_exeext=$ac_cv_exeext
2457
# Check that the compiler produces executables we can run. If not, either
2458
# the compiler is broken, or we cross compile.
2459
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2461
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462
# If not cross compiling, check that we can run a simple program.
2463
if test "$cross_compiling" != yes; then
2464
if { ac_try='./$ac_file'
2465
{ (case "(($ac_try" in
2466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467
*) ac_try_echo=$ac_try;;
2469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470
(eval "$ac_try") 2>&5
2472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473
(exit $ac_status); }; }; then
2476
if test "$cross_compiling" = maybe; then
2479
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480
If you meant to cross compile, use \`--host'.
2481
See \`config.log' for more details." >&5
2482
echo "$as_me: error: cannot run C compiled programs.
2483
If you meant to cross compile, use \`--host'.
2484
See \`config.log' for more details." >&2;}
2485
{ (exit 1); exit 1; }; }
2489
{ echo "$as_me:$LINENO: result: yes" >&5
2490
echo "${ECHO_T}yes" >&6; }
2492
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2493
ac_clean_files=$ac_clean_files_save
2494
# Check that the compiler produces executables we can run. If not, either
2495
# the compiler is broken, or we cross compile.
2496
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2498
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499
echo "${ECHO_T}$cross_compiling" >&6; }
2501
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2503
if { (ac_try="$ac_link"
2505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506
*) ac_try_echo=$ac_try;;
2508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509
(eval "$ac_link") 2>&5
2511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512
(exit $ac_status); }; then
2513
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2514
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515
# work properly (i.e., refer to `conftest.exe'), while it won't with
2517
for ac_file in conftest.exe conftest conftest.*; do
2518
test -f "$ac_file" || continue
2520
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528
See \`config.log' for more details." >&5
2529
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530
See \`config.log' for more details." >&2;}
2531
{ (exit 1); exit 1; }; }
2534
rm -f conftest$ac_cv_exeext
2535
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2538
rm -f conftest.$ac_ext
2539
EXEEXT=$ac_cv_exeext
2541
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2543
if test "${ac_cv_objext+set}" = set; then
2544
echo $ECHO_N "(cached) $ECHO_C" >&6
2546
cat >conftest.$ac_ext <<_ACEOF
2549
cat confdefs.h >>conftest.$ac_ext
2550
cat >>conftest.$ac_ext <<_ACEOF
2551
/* end confdefs.h. */
2561
rm -f conftest.o conftest.obj
2562
if { (ac_try="$ac_compile"
2564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565
*) ac_try_echo=$ac_try;;
2567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568
(eval "$ac_compile") 2>&5
2570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571
(exit $ac_status); }; then
2572
for ac_file in conftest.o conftest.obj conftest.*; do
2573
test -f "$ac_file" || continue;
2575
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2576
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2581
echo "$as_me: failed program was:" >&5
2582
sed 's/^/| /' conftest.$ac_ext >&5
2584
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2585
See \`config.log' for more details." >&5
2586
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2587
See \`config.log' for more details." >&2;}
2588
{ (exit 1); exit 1; }; }
2591
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2594
echo "${ECHO_T}$ac_cv_objext" >&6; }
2595
OBJEXT=$ac_cv_objext
2597
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2599
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600
echo $ECHO_N "(cached) $ECHO_C" >&6
2602
cat >conftest.$ac_ext <<_ACEOF
2605
cat confdefs.h >>conftest.$ac_ext
2606
cat >>conftest.$ac_ext <<_ACEOF
2607
/* end confdefs.h. */
2620
rm -f conftest.$ac_objext
2621
if { (ac_try="$ac_compile"
2623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624
*) ac_try_echo=$ac_try;;
2626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627
(eval "$ac_compile") 2>conftest.er1
2629
grep -v '^ *+' conftest.er1 >conftest.err
2631
cat conftest.err >&5
2632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
(exit $ac_status); } && {
2634
test -z "$ac_c_werror_flag" ||
2635
test ! -s conftest.err
2636
} && test -s conftest.$ac_objext; then
2639
echo "$as_me: failed program was:" >&5
2640
sed 's/^/| /' conftest.$ac_ext >&5
2645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2650
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2651
GCC=`test $ac_compiler_gnu = yes && echo yes`
2652
ac_test_CFLAGS=${CFLAGS+set}
2653
ac_save_CFLAGS=$CFLAGS
2654
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2656
if test "${ac_cv_prog_cc_g+set}" = set; then
2657
echo $ECHO_N "(cached) $ECHO_C" >&6
2659
ac_save_c_werror_flag=$ac_c_werror_flag
2660
ac_c_werror_flag=yes
2663
cat >conftest.$ac_ext <<_ACEOF
2666
cat confdefs.h >>conftest.$ac_ext
2667
cat >>conftest.$ac_ext <<_ACEOF
2668
/* end confdefs.h. */
2678
rm -f conftest.$ac_objext
2679
if { (ac_try="$ac_compile"
2681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682
*) ac_try_echo=$ac_try;;
2684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685
(eval "$ac_compile") 2>conftest.er1
2687
grep -v '^ *+' conftest.er1 >conftest.err
2689
cat conftest.err >&5
2690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
(exit $ac_status); } && {
2692
test -z "$ac_c_werror_flag" ||
2693
test ! -s conftest.err
2694
} && test -s conftest.$ac_objext; then
2697
echo "$as_me: failed program was:" >&5
2698
sed 's/^/| /' conftest.$ac_ext >&5
2701
cat >conftest.$ac_ext <<_ACEOF
2704
cat confdefs.h >>conftest.$ac_ext
2705
cat >>conftest.$ac_ext <<_ACEOF
2706
/* end confdefs.h. */
2716
rm -f conftest.$ac_objext
2717
if { (ac_try="$ac_compile"
2719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720
*) ac_try_echo=$ac_try;;
2722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723
(eval "$ac_compile") 2>conftest.er1
2725
grep -v '^ *+' conftest.er1 >conftest.err
2727
cat conftest.err >&5
2728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729
(exit $ac_status); } && {
2730
test -z "$ac_c_werror_flag" ||
2731
test ! -s conftest.err
2732
} && test -s conftest.$ac_objext; then
2735
echo "$as_me: failed program was:" >&5
2736
sed 's/^/| /' conftest.$ac_ext >&5
2738
ac_c_werror_flag=$ac_save_c_werror_flag
2740
cat >conftest.$ac_ext <<_ACEOF
2743
cat confdefs.h >>conftest.$ac_ext
2744
cat >>conftest.$ac_ext <<_ACEOF
2745
/* end confdefs.h. */
2755
rm -f conftest.$ac_objext
2756
if { (ac_try="$ac_compile"
2758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759
*) ac_try_echo=$ac_try;;
2761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762
(eval "$ac_compile") 2>conftest.er1
2764
grep -v '^ *+' conftest.er1 >conftest.err
2766
cat conftest.err >&5
2767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768
(exit $ac_status); } && {
2769
test -z "$ac_c_werror_flag" ||
2770
test ! -s conftest.err
2771
} && test -s conftest.$ac_objext; then
2774
echo "$as_me: failed program was:" >&5
2775
sed 's/^/| /' conftest.$ac_ext >&5
2780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787
ac_c_werror_flag=$ac_save_c_werror_flag
2789
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2791
if test "$ac_test_CFLAGS" = set; then
2792
CFLAGS=$ac_save_CFLAGS
2793
elif test $ac_cv_prog_cc_g = yes; then
2794
if test "$GCC" = yes; then
2800
if test "$GCC" = yes; then
2806
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2808
if test "${ac_cv_prog_cc_c89+set}" = set; then
2809
echo $ECHO_N "(cached) $ECHO_C" >&6
2811
ac_cv_prog_cc_c89=no
2813
cat >conftest.$ac_ext <<_ACEOF
2816
cat confdefs.h >>conftest.$ac_ext
2817
cat >>conftest.$ac_ext <<_ACEOF
2818
/* end confdefs.h. */
2821
#include <sys/types.h>
2822
#include <sys/stat.h>
2823
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2824
struct buf { int x; };
2825
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826
static char *e (p, i)
2832
static char *f (char * (*g) (char **, int), char **p, ...)
2837
s = g (p, va_arg (v,int));
2842
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2843
function prototypes and stuff, but not '\xHH' hex character constants.
2844
These don't provoke an error unfortunately, instead are silently treated
2845
as 'x'. The following induces an error, until -std is added to get
2846
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2847
array size at least. It's necessary to write '\x00'==0 to get something
2848
that's true only with -std. */
2849
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2851
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852
inside strings and character constants. */
2854
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2856
int test (int i, double x);
2857
struct s1 {int (*f) (int a);};
2858
struct s2 {int (*f) (double a);};
2859
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873
CC="$ac_save_CC $ac_arg"
2874
rm -f conftest.$ac_objext
2875
if { (ac_try="$ac_compile"
2877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878
*) ac_try_echo=$ac_try;;
2880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881
(eval "$ac_compile") 2>conftest.er1
2883
grep -v '^ *+' conftest.er1 >conftest.err
2885
cat conftest.err >&5
2886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
(exit $ac_status); } && {
2888
test -z "$ac_c_werror_flag" ||
2889
test ! -s conftest.err
2890
} && test -s conftest.$ac_objext; then
2891
ac_cv_prog_cc_c89=$ac_arg
2893
echo "$as_me: failed program was:" >&5
2894
sed 's/^/| /' conftest.$ac_ext >&5
2899
rm -f core conftest.err conftest.$ac_objext
2900
test "x$ac_cv_prog_cc_c89" != "xno" && break
2902
rm -f conftest.$ac_ext
2907
case "x$ac_cv_prog_cc_c89" in
2909
{ echo "$as_me:$LINENO: result: none needed" >&5
2910
echo "${ECHO_T}none needed" >&6; } ;;
2912
{ echo "$as_me:$LINENO: result: unsupported" >&5
2913
echo "${ECHO_T}unsupported" >&6; } ;;
2915
CC="$CC $ac_cv_prog_cc_c89"
2916
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2922
ac_cpp='$CPP $CPPFLAGS'
2923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
ac_cpp='$CPP $CPPFLAGS'
2929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2933
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2934
# On Suns, sometimes $CPP names a directory.
2935
if test -n "$CPP" && test -d "$CPP"; then
2938
if test -z "$CPP"; then
2939
if test "${ac_cv_prog_CPP+set}" = set; then
2940
echo $ECHO_N "(cached) $ECHO_C" >&6
2942
# Double quotes because CPP needs to be expanded
2943
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2946
for ac_c_preproc_warn_flag in '' yes
2948
# Use a header file that comes with gcc, so configuring glibc
2949
# with a fresh cross-compiler works.
2950
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951
# <limits.h> exists even on freestanding compilers.
2952
# On the NeXT, cc -E runs the code through the compiler's parser,
2953
# not just through cpp. "Syntax error" is here to catch this case.
2954
cat >conftest.$ac_ext <<_ACEOF
2957
cat confdefs.h >>conftest.$ac_ext
2958
cat >>conftest.$ac_ext <<_ACEOF
2959
/* end confdefs.h. */
2961
# include <limits.h>
2963
# include <assert.h>
2967
if { (ac_try="$ac_cpp conftest.$ac_ext"
2969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970
*) ac_try_echo=$ac_try;;
2972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2975
grep -v '^ *+' conftest.er1 >conftest.err
2977
cat conftest.err >&5
2978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979
(exit $ac_status); } >/dev/null && {
2980
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981
test ! -s conftest.err
2985
echo "$as_me: failed program was:" >&5
2986
sed 's/^/| /' conftest.$ac_ext >&5
2988
# Broken: fails on valid input.
2992
rm -f conftest.err conftest.$ac_ext
2994
# OK, works on sane cases. Now check whether nonexistent headers
2995
# can be detected and how.
2996
cat >conftest.$ac_ext <<_ACEOF
2999
cat confdefs.h >>conftest.$ac_ext
3000
cat >>conftest.$ac_ext <<_ACEOF
3001
/* end confdefs.h. */
3002
#include <ac_nonexistent.h>
3004
if { (ac_try="$ac_cpp conftest.$ac_ext"
3006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007
*) ac_try_echo=$ac_try;;
3009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3012
grep -v '^ *+' conftest.er1 >conftest.err
3014
cat conftest.err >&5
3015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016
(exit $ac_status); } >/dev/null && {
3017
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3018
test ! -s conftest.err
3020
# Broken: success on invalid input.
3023
echo "$as_me: failed program was:" >&5
3024
sed 's/^/| /' conftest.$ac_ext >&5
3026
# Passes both tests.
3031
rm -f conftest.err conftest.$ac_ext
3034
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035
rm -f conftest.err conftest.$ac_ext
3036
if $ac_preproc_ok; then
3048
{ echo "$as_me:$LINENO: result: $CPP" >&5
3049
echo "${ECHO_T}$CPP" >&6; }
3051
for ac_c_preproc_warn_flag in '' yes
3053
# Use a header file that comes with gcc, so configuring glibc
3054
# with a fresh cross-compiler works.
3055
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056
# <limits.h> exists even on freestanding compilers.
3057
# On the NeXT, cc -E runs the code through the compiler's parser,
3058
# not just through cpp. "Syntax error" is here to catch this case.
3059
cat >conftest.$ac_ext <<_ACEOF
3062
cat confdefs.h >>conftest.$ac_ext
3063
cat >>conftest.$ac_ext <<_ACEOF
3064
/* end confdefs.h. */
3066
# include <limits.h>
3068
# include <assert.h>
3072
if { (ac_try="$ac_cpp conftest.$ac_ext"
3074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075
*) ac_try_echo=$ac_try;;
3077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3080
grep -v '^ *+' conftest.er1 >conftest.err
3082
cat conftest.err >&5
3083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084
(exit $ac_status); } >/dev/null && {
3085
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3086
test ! -s conftest.err
3090
echo "$as_me: failed program was:" >&5
3091
sed 's/^/| /' conftest.$ac_ext >&5
3093
# Broken: fails on valid input.
3097
rm -f conftest.err conftest.$ac_ext
3099
# OK, works on sane cases. Now check whether nonexistent headers
3100
# can be detected and how.
3101
cat >conftest.$ac_ext <<_ACEOF
3104
cat confdefs.h >>conftest.$ac_ext
3105
cat >>conftest.$ac_ext <<_ACEOF
3106
/* end confdefs.h. */
3107
#include <ac_nonexistent.h>
3109
if { (ac_try="$ac_cpp conftest.$ac_ext"
3111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112
*) ac_try_echo=$ac_try;;
3114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3117
grep -v '^ *+' conftest.er1 >conftest.err
3119
cat conftest.err >&5
3120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121
(exit $ac_status); } >/dev/null && {
3122
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3123
test ! -s conftest.err
3125
# Broken: success on invalid input.
3128
echo "$as_me: failed program was:" >&5
3129
sed 's/^/| /' conftest.$ac_ext >&5
3131
# Passes both tests.
3136
rm -f conftest.err conftest.$ac_ext
3139
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140
rm -f conftest.err conftest.$ac_ext
3141
if $ac_preproc_ok; then
3144
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145
See \`config.log' for more details." >&5
3146
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147
See \`config.log' for more details." >&2;}
3148
{ (exit 1); exit 1; }; }
3152
ac_cpp='$CPP $CPPFLAGS'
3153
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
ac_cpp='$CPP $CPPFLAGS'
3159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162
if test -n "$ac_tool_prefix"; then
3163
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3167
if test "${ac_cv_prog_CC+set}" = set; then
3168
echo $ECHO_N "(cached) $ECHO_C" >&6
3170
if test -n "$CC"; then
3171
ac_cv_prog_CC="$CC" # Let the user override the test.
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177
test -z "$as_dir" && as_dir=.
3178
for ac_exec_ext in '' $ac_executable_extensions; do
3179
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191
if test -n "$CC"; then
3192
{ echo "$as_me:$LINENO: result: $CC" >&5
3193
echo "${ECHO_T}$CC" >&6; }
3195
{ echo "$as_me:$LINENO: result: no" >&5
3196
echo "${ECHO_T}no" >&6; }
3201
if test -z "$ac_cv_prog_CC"; then
3203
# Extract the first word of "gcc", so it can be a program name with args.
3204
set dummy gcc; ac_word=$2
3205
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3207
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3208
echo $ECHO_N "(cached) $ECHO_C" >&6
3210
if test -n "$ac_ct_CC"; then
3211
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
ac_cv_prog_ac_ct_CC="gcc"
3221
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231
if test -n "$ac_ct_CC"; then
3232
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3233
echo "${ECHO_T}$ac_ct_CC" >&6; }
3235
{ echo "$as_me:$LINENO: result: no" >&5
3236
echo "${ECHO_T}no" >&6; }
3239
if test "x$ac_ct_CC" = x; then
3242
case $cross_compiling:$ac_tool_warned in
3244
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3245
whose name does not start with the host triplet. If you think this
3246
configuration is useful to you, please write to autoconf@gnu.org." >&5
3247
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3248
whose name does not start with the host triplet. If you think this
3249
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3250
ac_tool_warned=yes ;;
3258
if test -z "$CC"; then
3259
if test -n "$ac_tool_prefix"; then
3260
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3261
set dummy ${ac_tool_prefix}cc; ac_word=$2
3262
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3264
if test "${ac_cv_prog_CC+set}" = set; then
3265
echo $ECHO_N "(cached) $ECHO_C" >&6
3267
if test -n "$CC"; then
3268
ac_cv_prog_CC="$CC" # Let the user override the test.
3270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274
test -z "$as_dir" && as_dir=.
3275
for ac_exec_ext in '' $ac_executable_extensions; do
3276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277
ac_cv_prog_CC="${ac_tool_prefix}cc"
3278
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288
if test -n "$CC"; then
3289
{ echo "$as_me:$LINENO: result: $CC" >&5
3290
echo "${ECHO_T}$CC" >&6; }
3292
{ echo "$as_me:$LINENO: result: no" >&5
3293
echo "${ECHO_T}no" >&6; }
3299
if test -z "$CC"; then
3300
# Extract the first word of "cc", so it can be a program name with args.
3301
set dummy cc; ac_word=$2
3302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3304
if test "${ac_cv_prog_CC+set}" = set; then
3305
echo $ECHO_N "(cached) $ECHO_C" >&6
3307
if test -n "$CC"; then
3308
ac_cv_prog_CC="$CC" # Let the user override the test.
3311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315
test -z "$as_dir" && as_dir=.
3316
for ac_exec_ext in '' $ac_executable_extensions; do
3317
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3319
ac_prog_rejected=yes
3323
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330
if test $ac_prog_rejected = yes; then
3331
# We found a bogon in the path, so make sure we never use it.
3332
set dummy $ac_cv_prog_CC
3334
if test $# != 0; then
3335
# We chose a different compiler from the bogus one.
3336
# However, it has the same basename, so the bogon will be chosen
3337
# first if we set CC to just the basename; use the full file name.
3339
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3345
if test -n "$CC"; then
3346
{ echo "$as_me:$LINENO: result: $CC" >&5
3347
echo "${ECHO_T}$CC" >&6; }
3349
{ echo "$as_me:$LINENO: result: no" >&5
3350
echo "${ECHO_T}no" >&6; }
3355
if test -z "$CC"; then
3356
if test -n "$ac_tool_prefix"; then
3357
for ac_prog in cl.exe
3359
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3360
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3361
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3362
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3363
if test "${ac_cv_prog_CC+set}" = set; then
3364
echo $ECHO_N "(cached) $ECHO_C" >&6
3366
if test -n "$CC"; then
3367
ac_cv_prog_CC="$CC" # Let the user override the test.
3369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373
test -z "$as_dir" && as_dir=.
3374
for ac_exec_ext in '' $ac_executable_extensions; do
3375
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3377
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387
if test -n "$CC"; then
3388
{ echo "$as_me:$LINENO: result: $CC" >&5
3389
echo "${ECHO_T}$CC" >&6; }
3391
{ echo "$as_me:$LINENO: result: no" >&5
3392
echo "${ECHO_T}no" >&6; }
3396
test -n "$CC" && break
3399
if test -z "$CC"; then
3401
for ac_prog in cl.exe
3403
# Extract the first word of "$ac_prog", so it can be a program name with args.
3404
set dummy $ac_prog; ac_word=$2
3405
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3406
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3407
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3408
echo $ECHO_N "(cached) $ECHO_C" >&6
3410
if test -n "$ac_ct_CC"; then
3411
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
test -z "$as_dir" && as_dir=.
3418
for ac_exec_ext in '' $ac_executable_extensions; do
3419
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420
ac_cv_prog_ac_ct_CC="$ac_prog"
3421
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431
if test -n "$ac_ct_CC"; then
3432
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3433
echo "${ECHO_T}$ac_ct_CC" >&6; }
3435
{ echo "$as_me:$LINENO: result: no" >&5
3436
echo "${ECHO_T}no" >&6; }
3440
test -n "$ac_ct_CC" && break
3443
if test "x$ac_ct_CC" = x; then
3446
case $cross_compiling:$ac_tool_warned in
3448
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3449
whose name does not start with the host triplet. If you think this
3450
configuration is useful to you, please write to autoconf@gnu.org." >&5
3451
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3452
whose name does not start with the host triplet. If you think this
3453
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3454
ac_tool_warned=yes ;;
3463
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3464
See \`config.log' for more details." >&5
3465
echo "$as_me: error: no acceptable C compiler found in \$PATH
3466
See \`config.log' for more details." >&2;}
3467
{ (exit 1); exit 1; }; }
3469
# Provide some information about the compiler.
3470
echo "$as_me:$LINENO: checking for C compiler version" >&5
3471
ac_compiler=`set X $ac_compile; echo $2`
3472
{ (ac_try="$ac_compiler --version >&5"
3474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475
*) ac_try_echo=$ac_try;;
3477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478
(eval "$ac_compiler --version >&5") 2>&5
3480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481
(exit $ac_status); }
3482
{ (ac_try="$ac_compiler -v >&5"
3484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485
*) ac_try_echo=$ac_try;;
3487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488
(eval "$ac_compiler -v >&5") 2>&5
3490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491
(exit $ac_status); }
3492
{ (ac_try="$ac_compiler -V >&5"
3494
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495
*) ac_try_echo=$ac_try;;
3497
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498
(eval "$ac_compiler -V >&5") 2>&5
3500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501
(exit $ac_status); }
3503
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3504
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3505
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3506
echo $ECHO_N "(cached) $ECHO_C" >&6
3508
cat >conftest.$ac_ext <<_ACEOF
3511
cat confdefs.h >>conftest.$ac_ext
3512
cat >>conftest.$ac_ext <<_ACEOF
3513
/* end confdefs.h. */
3526
rm -f conftest.$ac_objext
3527
if { (ac_try="$ac_compile"
3529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530
*) ac_try_echo=$ac_try;;
3532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533
(eval "$ac_compile") 2>conftest.er1
3535
grep -v '^ *+' conftest.er1 >conftest.err
3537
cat conftest.err >&5
3538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539
(exit $ac_status); } && {
3540
test -z "$ac_c_werror_flag" ||
3541
test ! -s conftest.err
3542
} && test -s conftest.$ac_objext; then
3545
echo "$as_me: failed program was:" >&5
3546
sed 's/^/| /' conftest.$ac_ext >&5
3551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3556
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3557
GCC=`test $ac_compiler_gnu = yes && echo yes`
3558
ac_test_CFLAGS=${CFLAGS+set}
3559
ac_save_CFLAGS=$CFLAGS
3560
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3561
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3562
if test "${ac_cv_prog_cc_g+set}" = set; then
3563
echo $ECHO_N "(cached) $ECHO_C" >&6
3565
ac_save_c_werror_flag=$ac_c_werror_flag
3566
ac_c_werror_flag=yes
3569
cat >conftest.$ac_ext <<_ACEOF
3572
cat confdefs.h >>conftest.$ac_ext
3573
cat >>conftest.$ac_ext <<_ACEOF
3574
/* end confdefs.h. */
3584
rm -f conftest.$ac_objext
3585
if { (ac_try="$ac_compile"
3587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588
*) ac_try_echo=$ac_try;;
3590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591
(eval "$ac_compile") 2>conftest.er1
3593
grep -v '^ *+' conftest.er1 >conftest.err
3595
cat conftest.err >&5
3596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597
(exit $ac_status); } && {
3598
test -z "$ac_c_werror_flag" ||
3599
test ! -s conftest.err
3600
} && test -s conftest.$ac_objext; then
3603
echo "$as_me: failed program was:" >&5
3604
sed 's/^/| /' conftest.$ac_ext >&5
3607
cat >conftest.$ac_ext <<_ACEOF
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h. */
3622
rm -f conftest.$ac_objext
3623
if { (ac_try="$ac_compile"
3625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626
*) ac_try_echo=$ac_try;;
3628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629
(eval "$ac_compile") 2>conftest.er1
3631
grep -v '^ *+' conftest.er1 >conftest.err
3633
cat conftest.err >&5
3634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635
(exit $ac_status); } && {
3636
test -z "$ac_c_werror_flag" ||
3637
test ! -s conftest.err
3638
} && test -s conftest.$ac_objext; then
3641
echo "$as_me: failed program was:" >&5
3642
sed 's/^/| /' conftest.$ac_ext >&5
3644
ac_c_werror_flag=$ac_save_c_werror_flag
3646
cat >conftest.$ac_ext <<_ACEOF
3649
cat confdefs.h >>conftest.$ac_ext
3650
cat >>conftest.$ac_ext <<_ACEOF
3651
/* end confdefs.h. */
3661
rm -f conftest.$ac_objext
3662
if { (ac_try="$ac_compile"
3664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665
*) ac_try_echo=$ac_try;;
3667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668
(eval "$ac_compile") 2>conftest.er1
3670
grep -v '^ *+' conftest.er1 >conftest.err
3672
cat conftest.err >&5
3673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674
(exit $ac_status); } && {
3675
test -z "$ac_c_werror_flag" ||
3676
test ! -s conftest.err
3677
} && test -s conftest.$ac_objext; then
3680
echo "$as_me: failed program was:" >&5
3681
sed 's/^/| /' conftest.$ac_ext >&5
3686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693
ac_c_werror_flag=$ac_save_c_werror_flag
3695
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3696
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3697
if test "$ac_test_CFLAGS" = set; then
3698
CFLAGS=$ac_save_CFLAGS
3699
elif test $ac_cv_prog_cc_g = yes; then
3700
if test "$GCC" = yes; then
3706
if test "$GCC" = yes; then
3712
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3713
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3714
if test "${ac_cv_prog_cc_c89+set}" = set; then
3715
echo $ECHO_N "(cached) $ECHO_C" >&6
3717
ac_cv_prog_cc_c89=no
3719
cat >conftest.$ac_ext <<_ACEOF
3722
cat confdefs.h >>conftest.$ac_ext
3723
cat >>conftest.$ac_ext <<_ACEOF
3724
/* end confdefs.h. */
3727
#include <sys/types.h>
3728
#include <sys/stat.h>
3729
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730
struct buf { int x; };
3731
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732
static char *e (p, i)
3738
static char *f (char * (*g) (char **, int), char **p, ...)
3743
s = g (p, va_arg (v,int));
3748
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749
function prototypes and stuff, but not '\xHH' hex character constants.
3750
These don't provoke an error unfortunately, instead are silently treated
3751
as 'x'. The following induces an error, until -std is added to get
3752
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753
array size at least. It's necessary to write '\x00'==0 to get something
3754
that's true only with -std. */
3755
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758
inside strings and character constants. */
3760
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762
int test (int i, double x);
3763
struct s1 {int (*f) (int a);};
3764
struct s2 {int (*f) (double a);};
3765
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3776
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779
CC="$ac_save_CC $ac_arg"
3780
rm -f conftest.$ac_objext
3781
if { (ac_try="$ac_compile"
3783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784
*) ac_try_echo=$ac_try;;
3786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787
(eval "$ac_compile") 2>conftest.er1
3789
grep -v '^ *+' conftest.er1 >conftest.err
3791
cat conftest.err >&5
3792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793
(exit $ac_status); } && {
3794
test -z "$ac_c_werror_flag" ||
3795
test ! -s conftest.err
3796
} && test -s conftest.$ac_objext; then
3797
ac_cv_prog_cc_c89=$ac_arg
3799
echo "$as_me: failed program was:" >&5
3800
sed 's/^/| /' conftest.$ac_ext >&5
3805
rm -f core conftest.err conftest.$ac_objext
3806
test "x$ac_cv_prog_cc_c89" != "xno" && break
3808
rm -f conftest.$ac_ext
3813
case "x$ac_cv_prog_cc_c89" in
3815
{ echo "$as_me:$LINENO: result: none needed" >&5
3816
echo "${ECHO_T}none needed" >&6; } ;;
3818
{ echo "$as_me:$LINENO: result: unsupported" >&5
3819
echo "${ECHO_T}unsupported" >&6; } ;;
3821
CC="$CC $ac_cv_prog_cc_c89"
3822
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3823
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3828
ac_cpp='$CPP $CPPFLAGS'
3829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
ac_cpp='$CXXCPP $CPPFLAGS'
3835
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3838
if test -z "$CXX"; then
3839
if test -n "$CCC"; then
3842
if test -n "$ac_tool_prefix"; then
3843
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3845
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3846
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3847
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3849
if test "${ac_cv_prog_CXX+set}" = set; then
3850
echo $ECHO_N "(cached) $ECHO_C" >&6
3852
if test -n "$CXX"; then
3853
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859
test -z "$as_dir" && as_dir=.
3860
for ac_exec_ext in '' $ac_executable_extensions; do
3861
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3863
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873
if test -n "$CXX"; then
3874
{ echo "$as_me:$LINENO: result: $CXX" >&5
3875
echo "${ECHO_T}$CXX" >&6; }
3877
{ echo "$as_me:$LINENO: result: no" >&5
3878
echo "${ECHO_T}no" >&6; }
3882
test -n "$CXX" && break
3885
if test -z "$CXX"; then
3887
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3889
# Extract the first word of "$ac_prog", so it can be a program name with args.
3890
set dummy $ac_prog; ac_word=$2
3891
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3894
echo $ECHO_N "(cached) $ECHO_C" >&6
3896
if test -n "$ac_ct_CXX"; then
3897
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903
test -z "$as_dir" && as_dir=.
3904
for ac_exec_ext in '' $ac_executable_extensions; do
3905
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906
ac_cv_prog_ac_ct_CXX="$ac_prog"
3907
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3917
if test -n "$ac_ct_CXX"; then
3918
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3919
echo "${ECHO_T}$ac_ct_CXX" >&6; }
3921
{ echo "$as_me:$LINENO: result: no" >&5
3922
echo "${ECHO_T}no" >&6; }
3926
test -n "$ac_ct_CXX" && break
3929
if test "x$ac_ct_CXX" = x; then
3932
case $cross_compiling:$ac_tool_warned in
3934
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3935
whose name does not start with the host triplet. If you think this
3936
configuration is useful to you, please write to autoconf@gnu.org." >&5
3937
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3938
whose name does not start with the host triplet. If you think this
3939
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3940
ac_tool_warned=yes ;;
3948
# Provide some information about the compiler.
3949
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3950
ac_compiler=`set X $ac_compile; echo $2`
3951
{ (ac_try="$ac_compiler --version >&5"
3953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954
*) ac_try_echo=$ac_try;;
3956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957
(eval "$ac_compiler --version >&5") 2>&5
3959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960
(exit $ac_status); }
3961
{ (ac_try="$ac_compiler -v >&5"
3963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964
*) ac_try_echo=$ac_try;;
3966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967
(eval "$ac_compiler -v >&5") 2>&5
3969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
(exit $ac_status); }
3971
{ (ac_try="$ac_compiler -V >&5"
3973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974
*) ac_try_echo=$ac_try;;
3976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977
(eval "$ac_compiler -V >&5") 2>&5
3979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
(exit $ac_status); }
3982
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3983
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3984
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3985
echo $ECHO_N "(cached) $ECHO_C" >&6
3987
cat >conftest.$ac_ext <<_ACEOF
3990
cat confdefs.h >>conftest.$ac_ext
3991
cat >>conftest.$ac_ext <<_ACEOF
3992
/* end confdefs.h. */
4005
rm -f conftest.$ac_objext
4006
if { (ac_try="$ac_compile"
4008
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009
*) ac_try_echo=$ac_try;;
4011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012
(eval "$ac_compile") 2>conftest.er1
4014
grep -v '^ *+' conftest.er1 >conftest.err
4016
cat conftest.err >&5
4017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018
(exit $ac_status); } && {
4019
test -z "$ac_cxx_werror_flag" ||
4020
test ! -s conftest.err
4021
} && test -s conftest.$ac_objext; then
4024
echo "$as_me: failed program was:" >&5
4025
sed 's/^/| /' conftest.$ac_ext >&5
4030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4034
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4035
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4036
GXX=`test $ac_compiler_gnu = yes && echo yes`
4037
ac_test_CXXFLAGS=${CXXFLAGS+set}
4038
ac_save_CXXFLAGS=$CXXFLAGS
4039
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4040
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4041
if test "${ac_cv_prog_cxx_g+set}" = set; then
4042
echo $ECHO_N "(cached) $ECHO_C" >&6
4044
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4045
ac_cxx_werror_flag=yes
4048
cat >conftest.$ac_ext <<_ACEOF
4051
cat confdefs.h >>conftest.$ac_ext
4052
cat >>conftest.$ac_ext <<_ACEOF
4053
/* end confdefs.h. */
4063
rm -f conftest.$ac_objext
4064
if { (ac_try="$ac_compile"
4066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067
*) ac_try_echo=$ac_try;;
4069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070
(eval "$ac_compile") 2>conftest.er1
4072
grep -v '^ *+' conftest.er1 >conftest.err
4074
cat conftest.err >&5
4075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
(exit $ac_status); } && {
4077
test -z "$ac_cxx_werror_flag" ||
4078
test ! -s conftest.err
4079
} && test -s conftest.$ac_objext; then
4080
ac_cv_prog_cxx_g=yes
4082
echo "$as_me: failed program was:" >&5
4083
sed 's/^/| /' conftest.$ac_ext >&5
4086
cat >conftest.$ac_ext <<_ACEOF
4089
cat confdefs.h >>conftest.$ac_ext
4090
cat >>conftest.$ac_ext <<_ACEOF
4091
/* end confdefs.h. */
4101
rm -f conftest.$ac_objext
4102
if { (ac_try="$ac_compile"
4104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105
*) ac_try_echo=$ac_try;;
4107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108
(eval "$ac_compile") 2>conftest.er1
4110
grep -v '^ *+' conftest.er1 >conftest.err
4112
cat conftest.err >&5
4113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
(exit $ac_status); } && {
4115
test -z "$ac_cxx_werror_flag" ||
4116
test ! -s conftest.err
4117
} && test -s conftest.$ac_objext; then
4120
echo "$as_me: failed program was:" >&5
4121
sed 's/^/| /' conftest.$ac_ext >&5
4123
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4125
cat >conftest.$ac_ext <<_ACEOF
4128
cat confdefs.h >>conftest.$ac_ext
4129
cat >>conftest.$ac_ext <<_ACEOF
4130
/* end confdefs.h. */
4140
rm -f conftest.$ac_objext
4141
if { (ac_try="$ac_compile"
4143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144
*) ac_try_echo=$ac_try;;
4146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147
(eval "$ac_compile") 2>conftest.er1
4149
grep -v '^ *+' conftest.er1 >conftest.err
4151
cat conftest.err >&5
4152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153
(exit $ac_status); } && {
4154
test -z "$ac_cxx_werror_flag" ||
4155
test ! -s conftest.err
4156
} && test -s conftest.$ac_objext; then
4157
ac_cv_prog_cxx_g=yes
4159
echo "$as_me: failed program was:" >&5
4160
sed 's/^/| /' conftest.$ac_ext >&5
4165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4174
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4175
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4176
if test "$ac_test_CXXFLAGS" = set; then
4177
CXXFLAGS=$ac_save_CXXFLAGS
4178
elif test $ac_cv_prog_cxx_g = yes; then
4179
if test "$GXX" = yes; then
4185
if test "$GXX" = yes; then
4192
ac_cpp='$CPP $CPPFLAGS'
4193
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
for ac_prog in gmake make
4199
# Extract the first word of "$ac_prog", so it can be a program name with args.
4200
set dummy $ac_prog; ac_word=$2
4201
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203
if test "${ac_cv_prog_MAKE+set}" = set; then
4204
echo $ECHO_N "(cached) $ECHO_C" >&6
4206
if test -n "$MAKE"; then
4207
ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213
test -z "$as_dir" && as_dir=.
4214
for ac_exec_ext in '' $ac_executable_extensions; do
4215
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216
ac_cv_prog_MAKE="$ac_prog"
4217
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226
MAKE=$ac_cv_prog_MAKE
4227
if test -n "$MAKE"; then
4228
{ echo "$as_me:$LINENO: result: $MAKE" >&5
4229
echo "${ECHO_T}$MAKE" >&6; }
4231
{ echo "$as_me:$LINENO: result: no" >&5
4232
echo "${ECHO_T}no" >&6; }
4236
test -n "$MAKE" && break
4239
# Extract the first word of "makedepend", so it can be a program name with args.
4240
set dummy makedepend; ac_word=$2
4241
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4242
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243
if test "${ac_cv_path_MKDEP+set}" = set; then
4244
echo $ECHO_N "(cached) $ECHO_C" >&6
4248
ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255
test -z "$as_dir" && as_dir=.
4256
for ac_exec_ext in '' $ac_executable_extensions; do
4257
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258
ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4259
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269
MKDEP=$ac_cv_path_MKDEP
4270
if test -n "$MKDEP"; then
4271
{ echo "$as_me:$LINENO: result: $MKDEP" >&5
4272
echo "${ECHO_T}$MKDEP" >&6; }
4274
{ echo "$as_me:$LINENO: result: no" >&5
4275
echo "${ECHO_T}no" >&6; }
4279
# Extract the first word of "sed", so it can be a program name with args.
4280
set dummy sed; ac_word=$2
4281
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4282
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283
if test "${ac_cv_path_SED+set}" = set; then
4284
echo $ECHO_N "(cached) $ECHO_C" >&6
4288
ac_cv_path_SED="$SED" # Let the user override the test with a path.
4291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295
test -z "$as_dir" && as_dir=.
4296
for ac_exec_ext in '' $ac_executable_extensions; do
4297
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4299
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310
if test -n "$SED"; then
4311
{ echo "$as_me:$LINENO: result: $SED" >&5
4312
echo "${ECHO_T}$SED" >&6; }
4314
{ echo "$as_me:$LINENO: result: no" >&5
4315
echo "${ECHO_T}no" >&6; }
4322
# Solaris /bin/sh is too old/non-POSIX compliant
4323
for ac_prog in ksh93 ksh sh
4325
# Extract the first word of "$ac_prog", so it can be a program name with args.
4326
set dummy $ac_prog; ac_word=$2
4327
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329
if test "${ac_cv_path_POSIX_SHELL+set}" = set; then
4330
echo $ECHO_N "(cached) $ECHO_C" >&6
4332
case $POSIX_SHELL in
4334
ac_cv_path_POSIX_SHELL="$POSIX_SHELL" # Let the user override the test with a path.
4337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341
test -z "$as_dir" && as_dir=.
4342
for ac_exec_ext in '' $ac_executable_extensions; do
4343
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344
ac_cv_path_POSIX_SHELL="$as_dir/$ac_word$ac_exec_ext"
4345
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355
POSIX_SHELL=$ac_cv_path_POSIX_SHELL
4356
if test -n "$POSIX_SHELL"; then
4357
{ echo "$as_me:$LINENO: result: $POSIX_SHELL" >&5
4358
echo "${ECHO_T}$POSIX_SHELL" >&6; }
4360
{ echo "$as_me:$LINENO: result: no" >&5
4361
echo "${ECHO_T}no" >&6; }
4365
test -n "$POSIX_SHELL" && break
4368
SHELL="$POSIX_SHELL"
4372
MKDEP_OPTIONS=-fdepend
4373
if test "x$GCC" = xyes; then
4374
GCC_INCLUDES=`$CC -print-file-name=include`
4375
if test "x$GCC_INCLUDES" != x; then
4376
MKDEP_OPTIONS="$MKDEP_OPTIONS -I$GCC_INCLUDES"
4384
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4385
if test -n "$ac_tool_prefix"; then
4386
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4387
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4388
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4389
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4391
echo $ECHO_N "(cached) $ECHO_C" >&6
4395
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402
test -z "$as_dir" && as_dir=.
4403
for ac_exec_ext in '' $ac_executable_extensions; do
4404
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4406
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4417
if test -n "$PKG_CONFIG"; then
4418
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4419
echo "${ECHO_T}$PKG_CONFIG" >&6; }
4421
{ echo "$as_me:$LINENO: result: no" >&5
4422
echo "${ECHO_T}no" >&6; }
4427
if test -z "$ac_cv_path_PKG_CONFIG"; then
4428
ac_pt_PKG_CONFIG=$PKG_CONFIG
4429
# Extract the first word of "pkg-config", so it can be a program name with args.
4430
set dummy pkg-config; ac_word=$2
4431
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4432
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4434
echo $ECHO_N "(cached) $ECHO_C" >&6
4436
case $ac_pt_PKG_CONFIG in
4438
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445
test -z "$as_dir" && as_dir=.
4446
for ac_exec_ext in '' $ac_executable_extensions; do
4447
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4449
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4460
if test -n "$ac_pt_PKG_CONFIG"; then
4461
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4462
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4464
{ echo "$as_me:$LINENO: result: no" >&5
4465
echo "${ECHO_T}no" >&6; }
4468
if test "x$ac_pt_PKG_CONFIG" = x; then
4471
case $cross_compiling:$ac_tool_warned in
4473
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4474
whose name does not start with the host triplet. If you think this
4475
configuration is useful to you, please write to autoconf@gnu.org." >&5
4476
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4477
whose name does not start with the host triplet. If you think this
4478
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4479
ac_tool_warned=yes ;;
4481
PKG_CONFIG=$ac_pt_PKG_CONFIG
4484
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4488
if test -n "$PKG_CONFIG"; then
4489
_pkg_min_version=0.9.0
4490
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4491
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4492
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493
{ echo "$as_me:$LINENO: result: yes" >&5
4494
echo "${ECHO_T}yes" >&6; }
4496
{ echo "$as_me:$LINENO: result: no" >&5
4497
echo "${ECHO_T}no" >&6; }
4503
LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
4506
_SAVE_LDFLAGS="$LDFLAGS"
4510
_SAVE_CPPFLAGS="$CPPFLAGS"
4518
DEFINES="$DEFINES -D_GNU_SOURCE -DPTHREADS"
4521
DEFINES="$DEFINES -DPTHREADS -DSVR4"
4525
if test "x$GCC" = xyes; then
4526
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
4528
# Work around aliasing bugs - developers should comment this out
4529
CFLAGS="$CFLAGS -fno-strict-aliasing"
4531
if test "x$GXX" = xyes; then
4532
CXXFLAGS="$CXXFLAGS -Wall"
4534
# Work around aliasing bugs - developers should comment this out
4535
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
4543
# Check whether --enable-32-bit was given.
4544
if test "${enable_32_bit+set}" = set; then
4545
enableval=$enable_32_bit; enable_32bit="$enableval"
4551
if test "x$enable_32bit" = xyes; then
4552
if test "x$GCC" = xyes; then
4553
CFLAGS="$CFLAGS -m32"
4555
if test "x$GXX" = xyes; then
4556
CXXFLAGS="$CXXFLAGS -m32"
4559
# Check whether --enable-64-bit was given.
4560
if test "${enable_64_bit+set}" = set; then
4561
enableval=$enable_64_bit; enable_64bit="$enableval"
4567
if test "x$enable_64bit" = xyes; then
4568
if test "x$GCC" = xyes; then
4569
CFLAGS="$CFLAGS -m64"
4571
if test "x$GXX" = xyes; then
4572
CXXFLAGS="$CXXFLAGS -m64"
4576
# Check whether --enable-static was given.
4577
if test "${enable_static+set}" = set; then
4578
enableval=$enable_static; enable_static="$enableval"
4584
case "x$enable_static" in
4586
x ) enable_static=no ;;
4588
{ { echo "$as_me:$LINENO: error: Static library option '$enable_static' is not a valid" >&5
4589
echo "$as_me: error: Static library option '$enable_static' is not a valid" >&2;}
4590
{ (exit 1); exit 1; }; }
4593
# Check whether --enable-shared was given.
4594
if test "${enable_shared+set}" = set; then
4595
enableval=$enable_shared; enable_shared="$enableval"
4601
case "x$enable_shared" in
4603
x ) enable_shared=yes ;;
4605
{ { echo "$as_me:$LINENO: error: Shared library option '$enable_shared' is not a valid" >&5
4606
echo "$as_me: error: Shared library option '$enable_shared' is not a valid" >&2;}
4607
{ (exit 1); exit 1; }; }
4611
case "x$enable_static$enable_shared" in
4613
{ echo "$as_me:$LINENO: WARNING: Can't build static and shared libraries, disabling shared" >&5
4614
echo "$as_me: WARNING: Can't build static and shared libraries, disabling shared" >&2;}
4618
{ echo "$as_me:$LINENO: WARNING: Can't disable both static and shared libraries, enabling static" >&5
4619
echo "$as_me: WARNING: Can't disable both static and shared libraries, enabling static" >&2;}
4625
if test "$enable_static" = yes; then
4626
MKLIB_OPTIONS="$MKLIB_OPTIONS -static"
4630
# Check whether --enable-debug was given.
4631
if test "${enable_debug+set}" = set; then
4632
enableval=$enable_debug; enable_debug="$enableval"
4638
if test "x$enable_debug" = xyes; then
4639
DEFINES="$DEFINES -DDEBUG"
4640
if test "x$GCC" = xyes; then
4643
if test "x$GXX" = xyes; then
4644
CXXFLAGS="$CXXFLAGS -g"
4648
if test "$enable_static" = yes; then
4649
GL_LIB_NAME='lib$(GL_LIB).a'
4650
GLU_LIB_NAME='lib$(GLU_LIB).a'
4651
GLUT_LIB_NAME='lib$(GLUT_LIB).a'
4652
GLW_LIB_NAME='lib$(GLW_LIB).a'
4653
OSMESA_LIB_NAME='lib$(OSMESA_LIB).a'
4655
GL_LIB_NAME='lib$(GL_LIB).so'
4656
GLU_LIB_NAME='lib$(GLU_LIB).so'
4657
GLUT_LIB_NAME='lib$(GLUT_LIB).so'
4658
GLW_LIB_NAME='lib$(GLW_LIB).so'
4659
OSMESA_LIB_NAME='lib$(OSMESA_LIB).so'
4667
# Check whether --enable-asm was given.
4668
if test "${enable_asm+set}" = set; then
4669
enableval=$enable_asm; enable_asm="$enableval"
4679
{ echo "$as_me:$LINENO: checking whether to enable assembly" >&5
4680
echo $ECHO_N "checking whether to enable assembly... $ECHO_C" >&6; }
4681
test "x$enable_asm" = xno && { echo "$as_me:$LINENO: result: no" >&5
4682
echo "${ECHO_T}no" >&6; }
4683
# disable if cross compiling on x86/x86_64 since we must run gen_matypes
4684
if test "x$enable_asm" = xyes && test "x$cross_compiling" = xyes; then
4688
{ echo "$as_me:$LINENO: result: no, cross compiling" >&5
4689
echo "${ECHO_T}no, cross compiling" >&6; }
4693
# check for supported arches
4694
if test "x$enable_asm" = xyes; then
4698
linux* | *freebsd* | dragonfly*)
4699
test "x$enable_64bit" = xyes && asm_arch=x86_64 || asm_arch=x86
4705
linux* | *freebsd* | dragonfly*)
4706
test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64
4721
ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
4722
ASM_SOURCES='$(X86_SOURCES)'
4723
ASM_API='$(X86_API)'
4724
{ echo "$as_me:$LINENO: result: yes, x86" >&5
4725
echo "${ECHO_T}yes, x86" >&6; }
4728
ASM_FLAGS="-DUSE_X86_64_ASM"
4729
ASM_SOURCES='$(X86-64_SOURCES)'
4730
ASM_API='$(X86-64_API)'
4731
{ echo "$as_me:$LINENO: result: yes, x86_64" >&5
4732
echo "${ECHO_T}yes, x86_64" >&6; }
4735
ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM"
4736
ASM_SOURCES='$(PPC_SOURCES)'
4737
{ echo "$as_me:$LINENO: result: yes, ppc" >&5
4738
echo "${ECHO_T}yes, ppc" >&6; }
4741
{ echo "$as_me:$LINENO: result: no, platform not supported" >&5
4742
echo "${ECHO_T}no, platform not supported" >&6; }
4751
# Check whether --enable-pic was given.
4752
if test "${enable_pic+set}" = set; then
4753
enableval=$enable_pic; enable_pic="$enableval"
4754
test "x$enable_pic" = x && enable_pic=auto
4759
# disable PIC by default for static builds
4760
if test "$enable_pic" = auto && test "$enable_static" = yes; then
4763
# if PIC hasn't been explicitly disabled, try to figure out the flags
4764
if test "$enable_pic" != no; then
4765
{ echo "$as_me:$LINENO: checking for $CC option to produce PIC" >&5
4766
echo $ECHO_N "checking for $CC option to produce PIC... $ECHO_C" >&6; }
4767
# allow the user's flags to override
4768
if test "x$PIC_FLAGS" = x; then
4769
# see if we're using GCC
4770
if test "x$GCC" = xyes; then
4772
aix*|beos*|cygwin*|irix5*|irix6*|osf3*|osf4*|osf5*)
4773
# PIC is the default for these OSes.
4776
# This hack is so that the source file can tell whether
4777
# it is being built for inclusion in a dll (and should
4778
# export symbols for example).
4779
PIC_FLAGS="-DDLL_EXPORT"
4782
# PIC is the default on this platform
4783
# Common symbols not allowed in MH_DYLIB files
4784
PIC_FLAGS="-fno-common"
4787
# PIC is the default for IA64 HP-UX and 64-bit HP-UX,
4788
# but not for PA HP-UX.
4798
# Everyone else on GCC uses -fPIC
4804
hpux9*|hpux10*|hpux11*)
4805
# PIC is the default for IA64 HP-UX and 64-bit HP-UX,
4806
# but not for PA HP-UX.
4817
case `basename "$CC"` in
4821
pgcc*|pgf77*|pgf90*|pgf95*)
4822
# Portland Group compilers (*not* the Pentium gcc
4823
# compiler, which looks to be a dead project)
4827
# All Alpha code is PIC.
4830
# IBM XL C 8.0/Fortran 10.1 on PPC
4834
case `$CC -V 2>&1 | sed 5q` in
4836
# Sun C 5.9 or Sun Fortran
4851
{ echo "$as_me:$LINENO: result: $PIC_FLAGS" >&5
4852
echo "${ECHO_T}$PIC_FLAGS" >&6; }
4858
{ echo "$as_me:$LINENO: checking for dlopen" >&5
4859
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
4860
if test "${ac_cv_func_dlopen+set}" = set; then
4861
echo $ECHO_N "(cached) $ECHO_C" >&6
4863
cat >conftest.$ac_ext <<_ACEOF
4866
cat confdefs.h >>conftest.$ac_ext
4867
cat >>conftest.$ac_ext <<_ACEOF
4868
/* end confdefs.h. */
4869
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
4870
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4871
#define dlopen innocuous_dlopen
4873
/* System header to define __stub macros and hopefully few prototypes,
4874
which can conflict with char dlopen (); below.
4875
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4876
<limits.h> exists even on freestanding compilers. */
4879
# include <limits.h>
4881
# include <assert.h>
4886
/* Override any GCC internal prototype to avoid an error.
4887
Use char because int might match the return type of a GCC
4888
builtin and then its argument prototype would still apply. */
4893
/* The GNU C library defines this for functions which it implements
4894
to always fail with ENOSYS. Some functions are actually named
4895
something starting with __ and the normal name is an alias. */
4896
#if defined __stub_dlopen || defined __stub___dlopen
4908
rm -f conftest.$ac_objext conftest$ac_exeext
4909
if { (ac_try="$ac_link"
4911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912
*) ac_try_echo=$ac_try;;
4914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915
(eval "$ac_link") 2>conftest.er1
4917
grep -v '^ *+' conftest.er1 >conftest.err
4919
cat conftest.err >&5
4920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921
(exit $ac_status); } && {
4922
test -z "$ac_c_werror_flag" ||
4923
test ! -s conftest.err
4924
} && test -s conftest$ac_exeext &&
4925
$as_test_x conftest$ac_exeext; then
4926
ac_cv_func_dlopen=yes
4928
echo "$as_me: failed program was:" >&5
4929
sed 's/^/| /' conftest.$ac_ext >&5
4931
ac_cv_func_dlopen=no
4934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4935
conftest$ac_exeext conftest.$ac_ext
4937
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
4938
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
4939
if test $ac_cv_func_dlopen = yes; then
4942
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4943
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4944
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4945
echo $ECHO_N "(cached) $ECHO_C" >&6
4947
ac_check_lib_save_LIBS=$LIBS
4949
cat >conftest.$ac_ext <<_ACEOF
4952
cat confdefs.h >>conftest.$ac_ext
4953
cat >>conftest.$ac_ext <<_ACEOF
4954
/* end confdefs.h. */
4956
/* Override any GCC internal prototype to avoid an error.
4957
Use char because int might match the return type of a GCC
4958
builtin and then its argument prototype would still apply. */
4971
rm -f conftest.$ac_objext conftest$ac_exeext
4972
if { (ac_try="$ac_link"
4974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975
*) ac_try_echo=$ac_try;;
4977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978
(eval "$ac_link") 2>conftest.er1
4980
grep -v '^ *+' conftest.er1 >conftest.err
4982
cat conftest.err >&5
4983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984
(exit $ac_status); } && {
4985
test -z "$ac_c_werror_flag" ||
4986
test ! -s conftest.err
4987
} && test -s conftest$ac_exeext &&
4988
$as_test_x conftest$ac_exeext; then
4989
ac_cv_lib_dl_dlopen=yes
4991
echo "$as_me: failed program was:" >&5
4992
sed 's/^/| /' conftest.$ac_ext >&5
4994
ac_cv_lib_dl_dlopen=no
4997
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4998
conftest$ac_exeext conftest.$ac_ext
4999
LIBS=$ac_check_lib_save_LIBS
5001
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5002
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5003
if test $ac_cv_lib_dl_dlopen = yes; then
5010
{ echo "$as_me:$LINENO: checking for posix_memalign" >&5
5011
echo $ECHO_N "checking for posix_memalign... $ECHO_C" >&6; }
5012
if test "${ac_cv_func_posix_memalign+set}" = set; then
5013
echo $ECHO_N "(cached) $ECHO_C" >&6
5015
cat >conftest.$ac_ext <<_ACEOF
5018
cat confdefs.h >>conftest.$ac_ext
5019
cat >>conftest.$ac_ext <<_ACEOF
5020
/* end confdefs.h. */
5021
/* Define posix_memalign to an innocuous variant, in case <limits.h> declares posix_memalign.
5022
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5023
#define posix_memalign innocuous_posix_memalign
5025
/* System header to define __stub macros and hopefully few prototypes,
5026
which can conflict with char posix_memalign (); below.
5027
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028
<limits.h> exists even on freestanding compilers. */
5031
# include <limits.h>
5033
# include <assert.h>
5036
#undef posix_memalign
5038
/* Override any GCC internal prototype to avoid an error.
5039
Use char because int might match the return type of a GCC
5040
builtin and then its argument prototype would still apply. */
5044
char posix_memalign ();
5045
/* The GNU C library defines this for functions which it implements
5046
to always fail with ENOSYS. Some functions are actually named
5047
something starting with __ and the normal name is an alias. */
5048
#if defined __stub_posix_memalign || defined __stub___posix_memalign
5055
return posix_memalign ();
5060
rm -f conftest.$ac_objext conftest$ac_exeext
5061
if { (ac_try="$ac_link"
5063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064
*) ac_try_echo=$ac_try;;
5066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067
(eval "$ac_link") 2>conftest.er1
5069
grep -v '^ *+' conftest.er1 >conftest.err
5071
cat conftest.err >&5
5072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073
(exit $ac_status); } && {
5074
test -z "$ac_c_werror_flag" ||
5075
test ! -s conftest.err
5076
} && test -s conftest$ac_exeext &&
5077
$as_test_x conftest$ac_exeext; then
5078
ac_cv_func_posix_memalign=yes
5080
echo "$as_me: failed program was:" >&5
5081
sed 's/^/| /' conftest.$ac_ext >&5
5083
ac_cv_func_posix_memalign=no
5086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5087
conftest$ac_exeext conftest.$ac_ext
5089
{ echo "$as_me:$LINENO: result: $ac_cv_func_posix_memalign" >&5
5090
echo "${ECHO_T}$ac_cv_func_posix_memalign" >&6; }
5091
if test $ac_cv_func_posix_memalign = yes; then
5092
DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"
5096
# Check whether --enable-selinux was given.
5097
if test "${enable_selinux+set}" = set; then
5098
enableval=$enable_selinux; MESA_SELINUX="$enableval"
5103
if test "x$enable_selinux" = "xyes"; then
5105
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5106
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5107
if test "${ac_cv_path_GREP+set}" = set; then
5108
echo $ECHO_N "(cached) $ECHO_C" >&6
5110
# Extract the first word of "grep ggrep" to use in msg output
5111
if test -z "$GREP"; then
5112
set dummy grep ggrep; ac_prog_name=$2
5113
if test "${ac_cv_path_GREP+set}" = set; then
5114
echo $ECHO_N "(cached) $ECHO_C" >&6
5116
ac_path_GREP_found=false
5117
# Loop through the user's path and test for each of PROGNAME-LIST
5118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122
test -z "$as_dir" && as_dir=.
5123
for ac_prog in grep ggrep; do
5124
for ac_exec_ext in '' $ac_executable_extensions; do
5125
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5126
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5127
# Check for GNU ac_path_GREP and select it if it is found.
5128
# Check for GNU $ac_path_GREP
5129
case `"$ac_path_GREP" --version 2>&1` in
5131
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5134
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5137
cat "conftest.in" "conftest.in" >"conftest.tmp"
5138
mv "conftest.tmp" "conftest.in"
5139
cp "conftest.in" "conftest.nl"
5140
echo 'GREP' >> "conftest.nl"
5141
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143
ac_count=`expr $ac_count + 1`
5144
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145
# Best one so far, save it but keep looking for a better one
5146
ac_cv_path_GREP="$ac_path_GREP"
5147
ac_path_GREP_max=$ac_count
5149
# 10*(2^10) chars as input seems more than enough
5150
test $ac_count -gt 10 && break
5152
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156
$ac_path_GREP_found && break 3
5166
GREP="$ac_cv_path_GREP"
5167
if test -z "$GREP"; then
5168
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5169
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5170
{ (exit 1); exit 1; }; }
5174
ac_cv_path_GREP=$GREP
5179
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5180
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5181
GREP="$ac_cv_path_GREP"
5184
{ echo "$as_me:$LINENO: checking for egrep" >&5
5185
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5186
if test "${ac_cv_path_EGREP+set}" = set; then
5187
echo $ECHO_N "(cached) $ECHO_C" >&6
5189
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5190
then ac_cv_path_EGREP="$GREP -E"
5192
# Extract the first word of "egrep" to use in msg output
5193
if test -z "$EGREP"; then
5194
set dummy egrep; ac_prog_name=$2
5195
if test "${ac_cv_path_EGREP+set}" = set; then
5196
echo $ECHO_N "(cached) $ECHO_C" >&6
5198
ac_path_EGREP_found=false
5199
# Loop through the user's path and test for each of PROGNAME-LIST
5200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5204
test -z "$as_dir" && as_dir=.
5205
for ac_prog in egrep; do
5206
for ac_exec_ext in '' $ac_executable_extensions; do
5207
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5208
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5209
# Check for GNU ac_path_EGREP and select it if it is found.
5210
# Check for GNU $ac_path_EGREP
5211
case `"$ac_path_EGREP" --version 2>&1` in
5213
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5216
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5219
cat "conftest.in" "conftest.in" >"conftest.tmp"
5220
mv "conftest.tmp" "conftest.in"
5221
cp "conftest.in" "conftest.nl"
5222
echo 'EGREP' >> "conftest.nl"
5223
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225
ac_count=`expr $ac_count + 1`
5226
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5227
# Best one so far, save it but keep looking for a better one
5228
ac_cv_path_EGREP="$ac_path_EGREP"
5229
ac_path_EGREP_max=$ac_count
5231
# 10*(2^10) chars as input seems more than enough
5232
test $ac_count -gt 10 && break
5234
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238
$ac_path_EGREP_found && break 3
5248
EGREP="$ac_cv_path_EGREP"
5249
if test -z "$EGREP"; then
5250
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5251
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5252
{ (exit 1); exit 1; }; }
5256
ac_cv_path_EGREP=$EGREP
5262
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5263
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5264
EGREP="$ac_cv_path_EGREP"
5267
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5268
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5269
if test "${ac_cv_header_stdc+set}" = set; then
5270
echo $ECHO_N "(cached) $ECHO_C" >&6
5272
cat >conftest.$ac_ext <<_ACEOF
5275
cat confdefs.h >>conftest.$ac_ext
5276
cat >>conftest.$ac_ext <<_ACEOF
5277
/* end confdefs.h. */
5291
rm -f conftest.$ac_objext
5292
if { (ac_try="$ac_compile"
5294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295
*) ac_try_echo=$ac_try;;
5297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298
(eval "$ac_compile") 2>conftest.er1
5300
grep -v '^ *+' conftest.er1 >conftest.err
5302
cat conftest.err >&5
5303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
(exit $ac_status); } && {
5305
test -z "$ac_c_werror_flag" ||
5306
test ! -s conftest.err
5307
} && test -s conftest.$ac_objext; then
5308
ac_cv_header_stdc=yes
5310
echo "$as_me: failed program was:" >&5
5311
sed 's/^/| /' conftest.$ac_ext >&5
5313
ac_cv_header_stdc=no
5316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318
if test $ac_cv_header_stdc = yes; then
5319
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5320
cat >conftest.$ac_ext <<_ACEOF
5323
cat confdefs.h >>conftest.$ac_ext
5324
cat >>conftest.$ac_ext <<_ACEOF
5325
/* end confdefs.h. */
5329
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330
$EGREP "memchr" >/dev/null 2>&1; then
5333
ac_cv_header_stdc=no
5339
if test $ac_cv_header_stdc = yes; then
5340
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5341
cat >conftest.$ac_ext <<_ACEOF
5344
cat confdefs.h >>conftest.$ac_ext
5345
cat >>conftest.$ac_ext <<_ACEOF
5346
/* end confdefs.h. */
5350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351
$EGREP "free" >/dev/null 2>&1; then
5354
ac_cv_header_stdc=no
5360
if test $ac_cv_header_stdc = yes; then
5361
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5362
if test "$cross_compiling" = yes; then
5365
cat >conftest.$ac_ext <<_ACEOF
5368
cat confdefs.h >>conftest.$ac_ext
5369
cat >>conftest.$ac_ext <<_ACEOF
5370
/* end confdefs.h. */
5373
#if ((' ' & 0x0FF) == 0x020)
5374
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5375
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5377
# define ISLOWER(c) \
5378
(('a' <= (c) && (c) <= 'i') \
5379
|| ('j' <= (c) && (c) <= 'r') \
5380
|| ('s' <= (c) && (c) <= 'z'))
5381
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5384
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5389
for (i = 0; i < 256; i++)
5390
if (XOR (islower (i), ISLOWER (i))
5391
|| toupper (i) != TOUPPER (i))
5396
rm -f conftest$ac_exeext
5397
if { (ac_try="$ac_link"
5399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400
*) ac_try_echo=$ac_try;;
5402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403
(eval "$ac_link") 2>&5
5405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5407
{ (case "(($ac_try" in
5408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409
*) ac_try_echo=$ac_try;;
5411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412
(eval "$ac_try") 2>&5
5414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415
(exit $ac_status); }; }; then
5418
echo "$as_me: program exited with status $ac_status" >&5
5419
echo "$as_me: failed program was:" >&5
5420
sed 's/^/| /' conftest.$ac_ext >&5
5423
ac_cv_header_stdc=no
5425
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5432
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5433
if test $ac_cv_header_stdc = yes; then
5435
cat >>confdefs.h <<\_ACEOF
5436
#define STDC_HEADERS 1
5441
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5451
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5452
inttypes.h stdint.h unistd.h
5454
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5455
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5456
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5457
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5458
echo $ECHO_N "(cached) $ECHO_C" >&6
5460
cat >conftest.$ac_ext <<_ACEOF
5463
cat confdefs.h >>conftest.$ac_ext
5464
cat >>conftest.$ac_ext <<_ACEOF
5465
/* end confdefs.h. */
5466
$ac_includes_default
5468
#include <$ac_header>
5470
rm -f conftest.$ac_objext
5471
if { (ac_try="$ac_compile"
5473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474
*) ac_try_echo=$ac_try;;
5476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477
(eval "$ac_compile") 2>conftest.er1
5479
grep -v '^ *+' conftest.er1 >conftest.err
5481
cat conftest.err >&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); } && {
5484
test -z "$ac_c_werror_flag" ||
5485
test ! -s conftest.err
5486
} && test -s conftest.$ac_objext; then
5487
eval "$as_ac_Header=yes"
5489
echo "$as_me: failed program was:" >&5
5490
sed 's/^/| /' conftest.$ac_ext >&5
5492
eval "$as_ac_Header=no"
5495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497
ac_res=`eval echo '${'$as_ac_Header'}'`
5498
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5499
echo "${ECHO_T}$ac_res" >&6; }
5500
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501
cat >>confdefs.h <<_ACEOF
5502
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
5511
{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
5512
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
5513
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
5514
echo $ECHO_N "(cached) $ECHO_C" >&6
5516
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
5517
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
5519
# Is the header compilable?
5520
{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
5521
echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
5522
cat >conftest.$ac_ext <<_ACEOF
5525
cat confdefs.h >>conftest.$ac_ext
5526
cat >>conftest.$ac_ext <<_ACEOF
5527
/* end confdefs.h. */
5528
$ac_includes_default
5529
#include <selinux/selinux.h>
5531
rm -f conftest.$ac_objext
5532
if { (ac_try="$ac_compile"
5534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535
*) ac_try_echo=$ac_try;;
5537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538
(eval "$ac_compile") 2>conftest.er1
5540
grep -v '^ *+' conftest.er1 >conftest.err
5542
cat conftest.err >&5
5543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544
(exit $ac_status); } && {
5545
test -z "$ac_c_werror_flag" ||
5546
test ! -s conftest.err
5547
} && test -s conftest.$ac_objext; then
5548
ac_header_compiler=yes
5550
echo "$as_me: failed program was:" >&5
5551
sed 's/^/| /' conftest.$ac_ext >&5
5553
ac_header_compiler=no
5556
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5558
echo "${ECHO_T}$ac_header_compiler" >&6; }
5560
# Is the header present?
5561
{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
5562
echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
5563
cat >conftest.$ac_ext <<_ACEOF
5566
cat confdefs.h >>conftest.$ac_ext
5567
cat >>conftest.$ac_ext <<_ACEOF
5568
/* end confdefs.h. */
5569
#include <selinux/selinux.h>
5571
if { (ac_try="$ac_cpp conftest.$ac_ext"
5573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574
*) ac_try_echo=$ac_try;;
5576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5579
grep -v '^ *+' conftest.er1 >conftest.err
5581
cat conftest.err >&5
5582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
(exit $ac_status); } >/dev/null && {
5584
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5585
test ! -s conftest.err
5587
ac_header_preproc=yes
5589
echo "$as_me: failed program was:" >&5
5590
sed 's/^/| /' conftest.$ac_ext >&5
5592
ac_header_preproc=no
5595
rm -f conftest.err conftest.$ac_ext
5596
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5597
echo "${ECHO_T}$ac_header_preproc" >&6; }
5599
# So? What about this header?
5600
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5602
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
5603
echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5604
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
5605
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
5606
ac_header_preproc=yes
5609
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
5610
echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
5611
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
5612
echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
5613
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
5614
echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
5615
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
5616
echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
5617
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
5618
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
5619
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
5620
echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
5622
## ---------------------------------------------------------------------- ##
5623
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
5624
## ---------------------------------------------------------------------- ##
5626
) | sed "s/^/$as_me: WARNING: /" >&2
5629
{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
5630
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
5631
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
5632
echo $ECHO_N "(cached) $ECHO_C" >&6
5634
ac_cv_header_selinux_selinux_h=$ac_header_preproc
5636
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
5637
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
5640
if test $ac_cv_header_selinux_selinux_h = yes; then
5643
{ { echo "$as_me:$LINENO: error: SELinux headers not found" >&5
5644
echo "$as_me: error: SELinux headers not found" >&2;}
5645
{ (exit 1); exit 1; }; }
5650
{ echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
5651
echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
5652
if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
5653
echo $ECHO_N "(cached) $ECHO_C" >&6
5655
ac_check_lib_save_LIBS=$LIBS
5656
LIBS="-lselinux $LIBS"
5657
cat >conftest.$ac_ext <<_ACEOF
5660
cat confdefs.h >>conftest.$ac_ext
5661
cat >>conftest.$ac_ext <<_ACEOF
5662
/* end confdefs.h. */
5664
/* Override any GCC internal prototype to avoid an error.
5665
Use char because int might match the return type of a GCC
5666
builtin and then its argument prototype would still apply. */
5670
char is_selinux_enabled ();
5674
return is_selinux_enabled ();
5679
rm -f conftest.$ac_objext conftest$ac_exeext
5680
if { (ac_try="$ac_link"
5682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683
*) ac_try_echo=$ac_try;;
5685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686
(eval "$ac_link") 2>conftest.er1
5688
grep -v '^ *+' conftest.er1 >conftest.err
5690
cat conftest.err >&5
5691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692
(exit $ac_status); } && {
5693
test -z "$ac_c_werror_flag" ||
5694
test ! -s conftest.err
5695
} && test -s conftest$ac_exeext &&
5696
$as_test_x conftest$ac_exeext; then
5697
ac_cv_lib_selinux_is_selinux_enabled=yes
5699
echo "$as_me: failed program was:" >&5
5700
sed 's/^/| /' conftest.$ac_ext >&5
5702
ac_cv_lib_selinux_is_selinux_enabled=no
5705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5706
conftest$ac_exeext conftest.$ac_ext
5707
LIBS=$ac_check_lib_save_LIBS
5709
{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5710
echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5711
if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
5712
cat >>confdefs.h <<_ACEOF
5713
#define HAVE_LIBSELINUX 1
5716
LIBS="-lselinux $LIBS"
5719
{ { echo "$as_me:$LINENO: error: SELinux library not found" >&5
5720
echo "$as_me: error: SELinux library not found" >&2;}
5721
{ (exit 1); exit 1; }; }
5724
SELINUX_LIBS="-lselinux"
5725
DEFINES="$DEFINES -DMESA_SELINUX"
5732
if test "x$GXX" != xyes; then
5733
OS_CPLUSPLUS_LIBS="-lCrun $OS_LIBS"
5738
default_driver="xlib"
5743
i*86|x86_64|powerpc*) default_driver="dri";;
5746
*freebsd* | dragonfly*)
5748
i*86|x86_64) default_driver="dri";;
5754
# Check whether --with-driver was given.
5755
if test "${with_driver+set}" = set; then
5756
withval=$with_driver; mesa_driver="$withval"
5758
mesa_driver="$default_driver"
5761
case "x$mesa_driver" in
5765
{ { echo "$as_me:$LINENO: error: Driver '$mesa_driver' is not a valid option" >&5
5766
echo "$as_me: error: Driver '$mesa_driver' is not a valid option" >&2;}
5767
{ (exit 1); exit 1; }; }
5774
case "$mesa_driver" in
5779
SRC_DIRS="glx/x11 $SRC_DIRS"
5784
DRIVER_DIRS="osmesa"
5792
if test -d "$srcdir/progs/demos"; then
5798
# Check whether --with-demos was given.
5799
if test "${with_demos+set}" = set; then
5800
withval=$with_demos; with_demos="$withval"
5802
with_demos="$default_demos"
5805
if test "x$with_demos" = x; then
5810
case "$with_demos" in
5813
# If the driver isn't osmesa, we have libGL and can build xdemos
5814
if test "$mesa_driver" != osmesa; then
5815
PROGRAM_DIRS="xdemos"
5819
# verify the requested demos directories exist
5820
demos=`IFS=,; echo $with_demos`
5821
for demo in $demos; do
5822
test -d "$srcdir/progs/$demo" || \
5823
{ { echo "$as_me:$LINENO: error: Program directory '$demo' doesn't exist" >&5
5824
echo "$as_me: error: Program directory '$demo' doesn't exist" >&2;}
5825
{ (exit 1); exit 1; }; }
5827
PROGRAM_DIRS="$demos"
5831
if test -n "$PKG_CONFIG"; then
5832
{ echo "$as_me:$LINENO: checking pkg-config files for X11 are available" >&5
5833
echo $ECHO_N "checking pkg-config files for X11 are available... $ECHO_C" >&6; }
5834
if test -n "$PKG_CONFIG" && \
5835
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5836
($PKG_CONFIG --exists --print-errors "x11") 2>&5
5838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839
(exit $ac_status); }; then
5849
{ echo "$as_me:$LINENO: result: $x11_pkgconfig" >&5
5850
echo "${ECHO_T}$x11_pkgconfig" >&6; }
5854
if test "$x11_pkgconfig" = no; then
5855
{ echo "$as_me:$LINENO: checking for X" >&5
5856
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5859
# Check whether --with-x was given.
5860
if test "${with_x+set}" = set; then
5864
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5865
if test "x$with_x" = xno; then
5866
# The user explicitly disabled X.
5869
case $x_includes,$x_libraries in #(
5870
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5871
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5872
{ (exit 1); exit 1; }; };; #(
5873
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5874
echo $ECHO_N "(cached) $ECHO_C" >&6
5876
# One or both of the vars are not set, and there is no cached value.
5877
ac_x_includes=no ac_x_libraries=no
5878
rm -f -r conftest.dir
5879
if mkdir conftest.dir; then
5881
cat >Imakefile <<'_ACEOF'
5883
@echo incroot='${INCROOT}'
5885
@echo usrlibdir='${USRLIBDIR}'
5887
@echo libdir='${LIBDIR}'
5889
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5890
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5891
for ac_var in incroot usrlibdir libdir; do
5892
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5894
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5895
for ac_extension in a so sl; do
5896
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5897
test -f "$ac_im_libdir/libX11.$ac_extension"; then
5898
ac_im_usrlibdir=$ac_im_libdir; break
5901
# Screen out bogus values from the imake configuration. They are
5902
# bogus both because they are the default anyway, and because
5903
# using them would break gcc on systems where it needs fixed includes.
5904
case $ac_im_incroot in
5905
/usr/include) ac_x_includes= ;;
5906
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5908
case $ac_im_usrlibdir in
5910
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5914
rm -f -r conftest.dir
5917
# Standard set of common directories for X headers.
5918
# Check X11 before X11Rn because it is often a symlink to the current release.
5930
/usr/local/X11/include
5931
/usr/local/X11R6/include
5932
/usr/local/X11R5/include
5933
/usr/local/X11R4/include
5935
/usr/local/include/X11
5936
/usr/local/include/X11R6
5937
/usr/local/include/X11R5
5938
/usr/local/include/X11R4
5942
/usr/XFree86/include/X11
5946
/usr/unsupported/include
5948
/usr/local/x11r5/include
5949
/usr/lpp/Xamples/include
5951
/usr/openwin/include
5952
/usr/openwin/share/include'
5954
if test "$ac_x_includes" = no; then
5955
# Guess where to find include files, by looking for Xlib.h.
5956
# First, try using that file with no special directory specified.
5957
cat >conftest.$ac_ext <<_ACEOF
5960
cat confdefs.h >>conftest.$ac_ext
5961
cat >>conftest.$ac_ext <<_ACEOF
5962
/* end confdefs.h. */
5963
#include <X11/Xlib.h>
5965
if { (ac_try="$ac_cpp conftest.$ac_ext"
5967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968
*) ac_try_echo=$ac_try;;
5970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973
grep -v '^ *+' conftest.er1 >conftest.err
5975
cat conftest.err >&5
5976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977
(exit $ac_status); } >/dev/null && {
5978
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5979
test ! -s conftest.err
5981
# We can compile using X headers with no special include directory.
5984
echo "$as_me: failed program was:" >&5
5985
sed 's/^/| /' conftest.$ac_ext >&5
5987
for ac_dir in $ac_x_header_dirs; do
5988
if test -r "$ac_dir/X11/Xlib.h"; then
5989
ac_x_includes=$ac_dir
5995
rm -f conftest.err conftest.$ac_ext
5996
fi # $ac_x_includes = no
5998
if test "$ac_x_libraries" = no; then
5999
# Check for the libraries.
6000
# See if we find them without any special options.
6001
# Don't add to $LIBS permanently.
6004
cat >conftest.$ac_ext <<_ACEOF
6007
cat confdefs.h >>conftest.$ac_ext
6008
cat >>conftest.$ac_ext <<_ACEOF
6009
/* end confdefs.h. */
6010
#include <X11/Xlib.h>
6019
rm -f conftest.$ac_objext conftest$ac_exeext
6020
if { (ac_try="$ac_link"
6022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023
*) ac_try_echo=$ac_try;;
6025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026
(eval "$ac_link") 2>conftest.er1
6028
grep -v '^ *+' conftest.er1 >conftest.err
6030
cat conftest.err >&5
6031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032
(exit $ac_status); } && {
6033
test -z "$ac_c_werror_flag" ||
6034
test ! -s conftest.err
6035
} && test -s conftest$ac_exeext &&
6036
$as_test_x conftest$ac_exeext; then
6038
# We can link X programs with no special library path.
6041
echo "$as_me: failed program was:" >&5
6042
sed 's/^/| /' conftest.$ac_ext >&5
6045
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6047
# Don't even attempt the hair of trying to link an X program!
6048
for ac_extension in a so sl; do
6049
if test -r "$ac_dir/libX11.$ac_extension"; then
6050
ac_x_libraries=$ac_dir
6057
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6058
conftest$ac_exeext conftest.$ac_ext
6059
fi # $ac_x_libraries = no
6061
case $ac_x_includes,$ac_x_libraries in #(
6063
# Didn't find X, or a directory has "'" in its name.
6064
ac_cv_have_x="have_x=no";; #(
6066
# Record where we found X for the cache.
6067
ac_cv_have_x="have_x=yes\
6068
ac_x_includes='$ac_x_includes'\
6069
ac_x_libraries='$ac_x_libraries'"
6075
eval "$ac_cv_have_x"
6078
if test "$have_x" != yes; then
6079
{ echo "$as_me:$LINENO: result: $have_x" >&5
6080
echo "${ECHO_T}$have_x" >&6; }
6083
# If each of the values was on the command line, it overrides each guess.
6084
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6085
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6086
# Update the cache value to reflect the command line values.
6087
ac_cv_have_x="have_x=yes\
6088
ac_x_includes='$x_includes'\
6089
ac_x_libraries='$x_libraries'"
6090
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6091
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6094
if test "$no_x" = yes; then
6095
# Not all programs may use this symbol, but it does not hurt to define it.
6097
cat >>confdefs.h <<\_ACEOF
6098
#define X_DISPLAY_MISSING 1
6101
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6103
if test -n "$x_includes"; then
6104
X_CFLAGS="$X_CFLAGS -I$x_includes"
6107
# It would also be nice to do this for all -L options, not just this one.
6108
if test -n "$x_libraries"; then
6109
X_LIBS="$X_LIBS -L$x_libraries"
6110
# For Solaris; some versions of Sun CC require a space after -R and
6111
# others require no space. Words are not sufficient . . . .
6112
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6113
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6114
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6115
ac_xsave_c_werror_flag=$ac_c_werror_flag
6116
ac_c_werror_flag=yes
6117
cat >conftest.$ac_ext <<_ACEOF
6120
cat confdefs.h >>conftest.$ac_ext
6121
cat >>conftest.$ac_ext <<_ACEOF
6122
/* end confdefs.h. */
6132
rm -f conftest.$ac_objext conftest$ac_exeext
6133
if { (ac_try="$ac_link"
6135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136
*) ac_try_echo=$ac_try;;
6138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139
(eval "$ac_link") 2>conftest.er1
6141
grep -v '^ *+' conftest.er1 >conftest.err
6143
cat conftest.err >&5
6144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145
(exit $ac_status); } && {
6146
test -z "$ac_c_werror_flag" ||
6147
test ! -s conftest.err
6148
} && test -s conftest$ac_exeext &&
6149
$as_test_x conftest$ac_exeext; then
6150
{ echo "$as_me:$LINENO: result: no" >&5
6151
echo "${ECHO_T}no" >&6; }
6152
X_LIBS="$X_LIBS -R$x_libraries"
6154
echo "$as_me: failed program was:" >&5
6155
sed 's/^/| /' conftest.$ac_ext >&5
6157
LIBS="$ac_xsave_LIBS -R $x_libraries"
6158
cat >conftest.$ac_ext <<_ACEOF
6161
cat confdefs.h >>conftest.$ac_ext
6162
cat >>conftest.$ac_ext <<_ACEOF
6163
/* end confdefs.h. */
6173
rm -f conftest.$ac_objext conftest$ac_exeext
6174
if { (ac_try="$ac_link"
6176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177
*) ac_try_echo=$ac_try;;
6179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180
(eval "$ac_link") 2>conftest.er1
6182
grep -v '^ *+' conftest.er1 >conftest.err
6184
cat conftest.err >&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); } && {
6187
test -z "$ac_c_werror_flag" ||
6188
test ! -s conftest.err
6189
} && test -s conftest$ac_exeext &&
6190
$as_test_x conftest$ac_exeext; then
6191
{ echo "$as_me:$LINENO: result: yes" >&5
6192
echo "${ECHO_T}yes" >&6; }
6193
X_LIBS="$X_LIBS -R $x_libraries"
6195
echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6198
{ echo "$as_me:$LINENO: result: neither works" >&5
6199
echo "${ECHO_T}neither works" >&6; }
6202
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203
conftest$ac_exeext conftest.$ac_ext
6206
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6207
conftest$ac_exeext conftest.$ac_ext
6208
ac_c_werror_flag=$ac_xsave_c_werror_flag
6212
# Check for system-dependent libraries X programs must link with.
6213
# Do this before checking for the system-independent R6 libraries
6214
# (-lICE), since we may need -lsocket or whatever for X linking.
6216
if test "$ISC" = yes; then
6217
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6219
# Martyn Johnson says this is needed for Ultrix, if the X
6220
# libraries were built with DECnet support. And Karl Berry says
6221
# the Alpha needs dnet_stub (dnet does not exist).
6222
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6223
cat >conftest.$ac_ext <<_ACEOF
6226
cat confdefs.h >>conftest.$ac_ext
6227
cat >>conftest.$ac_ext <<_ACEOF
6228
/* end confdefs.h. */
6230
/* Override any GCC internal prototype to avoid an error.
6231
Use char because int might match the return type of a GCC
6232
builtin and then its argument prototype would still apply. */
6236
char XOpenDisplay ();
6240
return XOpenDisplay ();
6245
rm -f conftest.$ac_objext conftest$ac_exeext
6246
if { (ac_try="$ac_link"
6248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249
*) ac_try_echo=$ac_try;;
6251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252
(eval "$ac_link") 2>conftest.er1
6254
grep -v '^ *+' conftest.er1 >conftest.err
6256
cat conftest.err >&5
6257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258
(exit $ac_status); } && {
6259
test -z "$ac_c_werror_flag" ||
6260
test ! -s conftest.err
6261
} && test -s conftest$ac_exeext &&
6262
$as_test_x conftest$ac_exeext; then
6265
echo "$as_me: failed program was:" >&5
6266
sed 's/^/| /' conftest.$ac_ext >&5
6268
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6269
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6270
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6271
echo $ECHO_N "(cached) $ECHO_C" >&6
6273
ac_check_lib_save_LIBS=$LIBS
6275
cat >conftest.$ac_ext <<_ACEOF
6278
cat confdefs.h >>conftest.$ac_ext
6279
cat >>conftest.$ac_ext <<_ACEOF
6280
/* end confdefs.h. */
6282
/* Override any GCC internal prototype to avoid an error.
6283
Use char because int might match the return type of a GCC
6284
builtin and then its argument prototype would still apply. */
6292
return dnet_ntoa ();
6297
rm -f conftest.$ac_objext conftest$ac_exeext
6298
if { (ac_try="$ac_link"
6300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301
*) ac_try_echo=$ac_try;;
6303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304
(eval "$ac_link") 2>conftest.er1
6306
grep -v '^ *+' conftest.er1 >conftest.err
6308
cat conftest.err >&5
6309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310
(exit $ac_status); } && {
6311
test -z "$ac_c_werror_flag" ||
6312
test ! -s conftest.err
6313
} && test -s conftest$ac_exeext &&
6314
$as_test_x conftest$ac_exeext; then
6315
ac_cv_lib_dnet_dnet_ntoa=yes
6317
echo "$as_me: failed program was:" >&5
6318
sed 's/^/| /' conftest.$ac_ext >&5
6320
ac_cv_lib_dnet_dnet_ntoa=no
6323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6324
conftest$ac_exeext conftest.$ac_ext
6325
LIBS=$ac_check_lib_save_LIBS
6327
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6328
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6329
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6330
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6333
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6334
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6335
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6336
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6337
echo $ECHO_N "(cached) $ECHO_C" >&6
6339
ac_check_lib_save_LIBS=$LIBS
6340
LIBS="-ldnet_stub $LIBS"
6341
cat >conftest.$ac_ext <<_ACEOF
6344
cat confdefs.h >>conftest.$ac_ext
6345
cat >>conftest.$ac_ext <<_ACEOF
6346
/* end confdefs.h. */
6348
/* Override any GCC internal prototype to avoid an error.
6349
Use char because int might match the return type of a GCC
6350
builtin and then its argument prototype would still apply. */
6358
return dnet_ntoa ();
6363
rm -f conftest.$ac_objext conftest$ac_exeext
6364
if { (ac_try="$ac_link"
6366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367
*) ac_try_echo=$ac_try;;
6369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370
(eval "$ac_link") 2>conftest.er1
6372
grep -v '^ *+' conftest.er1 >conftest.err
6374
cat conftest.err >&5
6375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
(exit $ac_status); } && {
6377
test -z "$ac_c_werror_flag" ||
6378
test ! -s conftest.err
6379
} && test -s conftest$ac_exeext &&
6380
$as_test_x conftest$ac_exeext; then
6381
ac_cv_lib_dnet_stub_dnet_ntoa=yes
6383
echo "$as_me: failed program was:" >&5
6384
sed 's/^/| /' conftest.$ac_ext >&5
6386
ac_cv_lib_dnet_stub_dnet_ntoa=no
6389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6390
conftest$ac_exeext conftest.$ac_ext
6391
LIBS=$ac_check_lib_save_LIBS
6393
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6394
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6395
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6396
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6402
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6403
conftest$ac_exeext conftest.$ac_ext
6404
LIBS="$ac_xsave_LIBS"
6406
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6407
# to get the SysV transport functions.
6408
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6410
# The nsl library prevents programs from opening the X display
6411
# on Irix 5.2, according to T.E. Dickey.
6412
# The functions gethostbyname, getservbyname, and inet_addr are
6413
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6414
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
6415
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6416
if test "${ac_cv_func_gethostbyname+set}" = set; then
6417
echo $ECHO_N "(cached) $ECHO_C" >&6
6419
cat >conftest.$ac_ext <<_ACEOF
6422
cat confdefs.h >>conftest.$ac_ext
6423
cat >>conftest.$ac_ext <<_ACEOF
6424
/* end confdefs.h. */
6425
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6426
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6427
#define gethostbyname innocuous_gethostbyname
6429
/* System header to define __stub macros and hopefully few prototypes,
6430
which can conflict with char gethostbyname (); below.
6431
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6432
<limits.h> exists even on freestanding compilers. */
6435
# include <limits.h>
6437
# include <assert.h>
6440
#undef gethostbyname
6442
/* Override any GCC internal prototype to avoid an error.
6443
Use char because int might match the return type of a GCC
6444
builtin and then its argument prototype would still apply. */
6448
char gethostbyname ();
6449
/* The GNU C library defines this for functions which it implements
6450
to always fail with ENOSYS. Some functions are actually named
6451
something starting with __ and the normal name is an alias. */
6452
#if defined __stub_gethostbyname || defined __stub___gethostbyname
6459
return gethostbyname ();
6464
rm -f conftest.$ac_objext conftest$ac_exeext
6465
if { (ac_try="$ac_link"
6467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468
*) ac_try_echo=$ac_try;;
6470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471
(eval "$ac_link") 2>conftest.er1
6473
grep -v '^ *+' conftest.er1 >conftest.err
6475
cat conftest.err >&5
6476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
(exit $ac_status); } && {
6478
test -z "$ac_c_werror_flag" ||
6479
test ! -s conftest.err
6480
} && test -s conftest$ac_exeext &&
6481
$as_test_x conftest$ac_exeext; then
6482
ac_cv_func_gethostbyname=yes
6484
echo "$as_me: failed program was:" >&5
6485
sed 's/^/| /' conftest.$ac_ext >&5
6487
ac_cv_func_gethostbyname=no
6490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491
conftest$ac_exeext conftest.$ac_ext
6493
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6494
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6496
if test $ac_cv_func_gethostbyname = no; then
6497
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6498
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6499
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6500
echo $ECHO_N "(cached) $ECHO_C" >&6
6502
ac_check_lib_save_LIBS=$LIBS
6504
cat >conftest.$ac_ext <<_ACEOF
6507
cat confdefs.h >>conftest.$ac_ext
6508
cat >>conftest.$ac_ext <<_ACEOF
6509
/* end confdefs.h. */
6511
/* Override any GCC internal prototype to avoid an error.
6512
Use char because int might match the return type of a GCC
6513
builtin and then its argument prototype would still apply. */
6517
char gethostbyname ();
6521
return gethostbyname ();
6526
rm -f conftest.$ac_objext conftest$ac_exeext
6527
if { (ac_try="$ac_link"
6529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530
*) ac_try_echo=$ac_try;;
6532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533
(eval "$ac_link") 2>conftest.er1
6535
grep -v '^ *+' conftest.er1 >conftest.err
6537
cat conftest.err >&5
6538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
(exit $ac_status); } && {
6540
test -z "$ac_c_werror_flag" ||
6541
test ! -s conftest.err
6542
} && test -s conftest$ac_exeext &&
6543
$as_test_x conftest$ac_exeext; then
6544
ac_cv_lib_nsl_gethostbyname=yes
6546
echo "$as_me: failed program was:" >&5
6547
sed 's/^/| /' conftest.$ac_ext >&5
6549
ac_cv_lib_nsl_gethostbyname=no
6552
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6553
conftest$ac_exeext conftest.$ac_ext
6554
LIBS=$ac_check_lib_save_LIBS
6556
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6557
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6558
if test $ac_cv_lib_nsl_gethostbyname = yes; then
6559
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6562
if test $ac_cv_lib_nsl_gethostbyname = no; then
6563
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6564
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6565
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6566
echo $ECHO_N "(cached) $ECHO_C" >&6
6568
ac_check_lib_save_LIBS=$LIBS
6570
cat >conftest.$ac_ext <<_ACEOF
6573
cat confdefs.h >>conftest.$ac_ext
6574
cat >>conftest.$ac_ext <<_ACEOF
6575
/* end confdefs.h. */
6577
/* Override any GCC internal prototype to avoid an error.
6578
Use char because int might match the return type of a GCC
6579
builtin and then its argument prototype would still apply. */
6583
char gethostbyname ();
6587
return gethostbyname ();
6592
rm -f conftest.$ac_objext conftest$ac_exeext
6593
if { (ac_try="$ac_link"
6595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596
*) ac_try_echo=$ac_try;;
6598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599
(eval "$ac_link") 2>conftest.er1
6601
grep -v '^ *+' conftest.er1 >conftest.err
6603
cat conftest.err >&5
6604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605
(exit $ac_status); } && {
6606
test -z "$ac_c_werror_flag" ||
6607
test ! -s conftest.err
6608
} && test -s conftest$ac_exeext &&
6609
$as_test_x conftest$ac_exeext; then
6610
ac_cv_lib_bsd_gethostbyname=yes
6612
echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6615
ac_cv_lib_bsd_gethostbyname=no
6618
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6619
conftest$ac_exeext conftest.$ac_ext
6620
LIBS=$ac_check_lib_save_LIBS
6622
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6623
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6624
if test $ac_cv_lib_bsd_gethostbyname = yes; then
6625
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6631
# lieder@skyler.mavd.honeywell.com says without -lsocket,
6632
# socket/setsockopt and other routines are undefined under SCO ODT
6633
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6634
# on later versions), says Simon Leinen: it contains gethostby*
6635
# variants that don't use the name server (or something). -lsocket
6636
# must be given before -lnsl if both are needed. We assume that
6637
# if connect needs -lnsl, so does gethostbyname.
6638
{ echo "$as_me:$LINENO: checking for connect" >&5
6639
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6640
if test "${ac_cv_func_connect+set}" = set; then
6641
echo $ECHO_N "(cached) $ECHO_C" >&6
6643
cat >conftest.$ac_ext <<_ACEOF
6646
cat confdefs.h >>conftest.$ac_ext
6647
cat >>conftest.$ac_ext <<_ACEOF
6648
/* end confdefs.h. */
6649
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6650
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6651
#define connect innocuous_connect
6653
/* System header to define __stub macros and hopefully few prototypes,
6654
which can conflict with char connect (); below.
6655
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656
<limits.h> exists even on freestanding compilers. */
6659
# include <limits.h>
6661
# include <assert.h>
6666
/* Override any GCC internal prototype to avoid an error.
6667
Use char because int might match the return type of a GCC
6668
builtin and then its argument prototype would still apply. */
6673
/* The GNU C library defines this for functions which it implements
6674
to always fail with ENOSYS. Some functions are actually named
6675
something starting with __ and the normal name is an alias. */
6676
#if defined __stub_connect || defined __stub___connect
6688
rm -f conftest.$ac_objext conftest$ac_exeext
6689
if { (ac_try="$ac_link"
6691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692
*) ac_try_echo=$ac_try;;
6694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695
(eval "$ac_link") 2>conftest.er1
6697
grep -v '^ *+' conftest.er1 >conftest.err
6699
cat conftest.err >&5
6700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
(exit $ac_status); } && {
6702
test -z "$ac_c_werror_flag" ||
6703
test ! -s conftest.err
6704
} && test -s conftest$ac_exeext &&
6705
$as_test_x conftest$ac_exeext; then
6706
ac_cv_func_connect=yes
6708
echo "$as_me: failed program was:" >&5
6709
sed 's/^/| /' conftest.$ac_ext >&5
6711
ac_cv_func_connect=no
6714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715
conftest$ac_exeext conftest.$ac_ext
6717
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6718
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6720
if test $ac_cv_func_connect = no; then
6721
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6722
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6723
if test "${ac_cv_lib_socket_connect+set}" = set; then
6724
echo $ECHO_N "(cached) $ECHO_C" >&6
6726
ac_check_lib_save_LIBS=$LIBS
6727
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6728
cat >conftest.$ac_ext <<_ACEOF
6731
cat confdefs.h >>conftest.$ac_ext
6732
cat >>conftest.$ac_ext <<_ACEOF
6733
/* end confdefs.h. */
6735
/* Override any GCC internal prototype to avoid an error.
6736
Use char because int might match the return type of a GCC
6737
builtin and then its argument prototype would still apply. */
6750
rm -f conftest.$ac_objext conftest$ac_exeext
6751
if { (ac_try="$ac_link"
6753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754
*) ac_try_echo=$ac_try;;
6756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757
(eval "$ac_link") 2>conftest.er1
6759
grep -v '^ *+' conftest.er1 >conftest.err
6761
cat conftest.err >&5
6762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763
(exit $ac_status); } && {
6764
test -z "$ac_c_werror_flag" ||
6765
test ! -s conftest.err
6766
} && test -s conftest$ac_exeext &&
6767
$as_test_x conftest$ac_exeext; then
6768
ac_cv_lib_socket_connect=yes
6770
echo "$as_me: failed program was:" >&5
6771
sed 's/^/| /' conftest.$ac_ext >&5
6773
ac_cv_lib_socket_connect=no
6776
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777
conftest$ac_exeext conftest.$ac_ext
6778
LIBS=$ac_check_lib_save_LIBS
6780
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6781
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6782
if test $ac_cv_lib_socket_connect = yes; then
6783
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6788
# Guillermo Gomez says -lposix is necessary on A/UX.
6789
{ echo "$as_me:$LINENO: checking for remove" >&5
6790
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6791
if test "${ac_cv_func_remove+set}" = set; then
6792
echo $ECHO_N "(cached) $ECHO_C" >&6
6794
cat >conftest.$ac_ext <<_ACEOF
6797
cat confdefs.h >>conftest.$ac_ext
6798
cat >>conftest.$ac_ext <<_ACEOF
6799
/* end confdefs.h. */
6800
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6801
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6802
#define remove innocuous_remove
6804
/* System header to define __stub macros and hopefully few prototypes,
6805
which can conflict with char remove (); below.
6806
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807
<limits.h> exists even on freestanding compilers. */
6810
# include <limits.h>
6812
# include <assert.h>
6817
/* Override any GCC internal prototype to avoid an error.
6818
Use char because int might match the return type of a GCC
6819
builtin and then its argument prototype would still apply. */
6824
/* The GNU C library defines this for functions which it implements
6825
to always fail with ENOSYS. Some functions are actually named
6826
something starting with __ and the normal name is an alias. */
6827
#if defined __stub_remove || defined __stub___remove
6839
rm -f conftest.$ac_objext conftest$ac_exeext
6840
if { (ac_try="$ac_link"
6842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843
*) ac_try_echo=$ac_try;;
6845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846
(eval "$ac_link") 2>conftest.er1
6848
grep -v '^ *+' conftest.er1 >conftest.err
6850
cat conftest.err >&5
6851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852
(exit $ac_status); } && {
6853
test -z "$ac_c_werror_flag" ||
6854
test ! -s conftest.err
6855
} && test -s conftest$ac_exeext &&
6856
$as_test_x conftest$ac_exeext; then
6857
ac_cv_func_remove=yes
6859
echo "$as_me: failed program was:" >&5
6860
sed 's/^/| /' conftest.$ac_ext >&5
6862
ac_cv_func_remove=no
6865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6866
conftest$ac_exeext conftest.$ac_ext
6868
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6869
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6871
if test $ac_cv_func_remove = no; then
6872
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6873
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6874
if test "${ac_cv_lib_posix_remove+set}" = set; then
6875
echo $ECHO_N "(cached) $ECHO_C" >&6
6877
ac_check_lib_save_LIBS=$LIBS
6878
LIBS="-lposix $LIBS"
6879
cat >conftest.$ac_ext <<_ACEOF
6882
cat confdefs.h >>conftest.$ac_ext
6883
cat >>conftest.$ac_ext <<_ACEOF
6884
/* end confdefs.h. */
6886
/* Override any GCC internal prototype to avoid an error.
6887
Use char because int might match the return type of a GCC
6888
builtin and then its argument prototype would still apply. */
6901
rm -f conftest.$ac_objext conftest$ac_exeext
6902
if { (ac_try="$ac_link"
6904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905
*) ac_try_echo=$ac_try;;
6907
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908
(eval "$ac_link") 2>conftest.er1
6910
grep -v '^ *+' conftest.er1 >conftest.err
6912
cat conftest.err >&5
6913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914
(exit $ac_status); } && {
6915
test -z "$ac_c_werror_flag" ||
6916
test ! -s conftest.err
6917
} && test -s conftest$ac_exeext &&
6918
$as_test_x conftest$ac_exeext; then
6919
ac_cv_lib_posix_remove=yes
6921
echo "$as_me: failed program was:" >&5
6922
sed 's/^/| /' conftest.$ac_ext >&5
6924
ac_cv_lib_posix_remove=no
6927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928
conftest$ac_exeext conftest.$ac_ext
6929
LIBS=$ac_check_lib_save_LIBS
6931
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6932
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6933
if test $ac_cv_lib_posix_remove = yes; then
6934
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6939
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6940
{ echo "$as_me:$LINENO: checking for shmat" >&5
6941
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6942
if test "${ac_cv_func_shmat+set}" = set; then
6943
echo $ECHO_N "(cached) $ECHO_C" >&6
6945
cat >conftest.$ac_ext <<_ACEOF
6948
cat confdefs.h >>conftest.$ac_ext
6949
cat >>conftest.$ac_ext <<_ACEOF
6950
/* end confdefs.h. */
6951
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6952
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6953
#define shmat innocuous_shmat
6955
/* System header to define __stub macros and hopefully few prototypes,
6956
which can conflict with char shmat (); below.
6957
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6958
<limits.h> exists even on freestanding compilers. */
6961
# include <limits.h>
6963
# include <assert.h>
6968
/* Override any GCC internal prototype to avoid an error.
6969
Use char because int might match the return type of a GCC
6970
builtin and then its argument prototype would still apply. */
6975
/* The GNU C library defines this for functions which it implements
6976
to always fail with ENOSYS. Some functions are actually named
6977
something starting with __ and the normal name is an alias. */
6978
#if defined __stub_shmat || defined __stub___shmat
6990
rm -f conftest.$ac_objext conftest$ac_exeext
6991
if { (ac_try="$ac_link"
6993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994
*) ac_try_echo=$ac_try;;
6996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997
(eval "$ac_link") 2>conftest.er1
6999
grep -v '^ *+' conftest.er1 >conftest.err
7001
cat conftest.err >&5
7002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003
(exit $ac_status); } && {
7004
test -z "$ac_c_werror_flag" ||
7005
test ! -s conftest.err
7006
} && test -s conftest$ac_exeext &&
7007
$as_test_x conftest$ac_exeext; then
7008
ac_cv_func_shmat=yes
7010
echo "$as_me: failed program was:" >&5
7011
sed 's/^/| /' conftest.$ac_ext >&5
7016
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7017
conftest$ac_exeext conftest.$ac_ext
7019
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7020
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7022
if test $ac_cv_func_shmat = no; then
7023
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7024
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7025
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7026
echo $ECHO_N "(cached) $ECHO_C" >&6
7028
ac_check_lib_save_LIBS=$LIBS
7030
cat >conftest.$ac_ext <<_ACEOF
7033
cat confdefs.h >>conftest.$ac_ext
7034
cat >>conftest.$ac_ext <<_ACEOF
7035
/* end confdefs.h. */
7037
/* Override any GCC internal prototype to avoid an error.
7038
Use char because int might match the return type of a GCC
7039
builtin and then its argument prototype would still apply. */
7052
rm -f conftest.$ac_objext conftest$ac_exeext
7053
if { (ac_try="$ac_link"
7055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056
*) ac_try_echo=$ac_try;;
7058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059
(eval "$ac_link") 2>conftest.er1
7061
grep -v '^ *+' conftest.er1 >conftest.err
7063
cat conftest.err >&5
7064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065
(exit $ac_status); } && {
7066
test -z "$ac_c_werror_flag" ||
7067
test ! -s conftest.err
7068
} && test -s conftest$ac_exeext &&
7069
$as_test_x conftest$ac_exeext; then
7070
ac_cv_lib_ipc_shmat=yes
7072
echo "$as_me: failed program was:" >&5
7073
sed 's/^/| /' conftest.$ac_ext >&5
7075
ac_cv_lib_ipc_shmat=no
7078
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7079
conftest$ac_exeext conftest.$ac_ext
7080
LIBS=$ac_check_lib_save_LIBS
7082
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7083
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7084
if test $ac_cv_lib_ipc_shmat = yes; then
7085
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7091
# Check for libraries that X11R6 Xt/Xaw programs need.
7092
ac_save_LDFLAGS=$LDFLAGS
7093
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7094
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7095
# check for ICE first), but we must link in the order -lSM -lICE or
7096
# we get undefined symbols. So assume we have SM if we have ICE.
7097
# These have to be linked with before -lX11, unlike the other
7098
# libraries we check for below, so use a different variable.
7099
# John Interrante, Karl Berry
7100
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7101
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7102
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7103
echo $ECHO_N "(cached) $ECHO_C" >&6
7105
ac_check_lib_save_LIBS=$LIBS
7106
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7107
cat >conftest.$ac_ext <<_ACEOF
7110
cat confdefs.h >>conftest.$ac_ext
7111
cat >>conftest.$ac_ext <<_ACEOF
7112
/* end confdefs.h. */
7114
/* Override any GCC internal prototype to avoid an error.
7115
Use char because int might match the return type of a GCC
7116
builtin and then its argument prototype would still apply. */
7120
char IceConnectionNumber ();
7124
return IceConnectionNumber ();
7129
rm -f conftest.$ac_objext conftest$ac_exeext
7130
if { (ac_try="$ac_link"
7132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133
*) ac_try_echo=$ac_try;;
7135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136
(eval "$ac_link") 2>conftest.er1
7138
grep -v '^ *+' conftest.er1 >conftest.err
7140
cat conftest.err >&5
7141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
(exit $ac_status); } && {
7143
test -z "$ac_c_werror_flag" ||
7144
test ! -s conftest.err
7145
} && test -s conftest$ac_exeext &&
7146
$as_test_x conftest$ac_exeext; then
7147
ac_cv_lib_ICE_IceConnectionNumber=yes
7149
echo "$as_me: failed program was:" >&5
7150
sed 's/^/| /' conftest.$ac_ext >&5
7152
ac_cv_lib_ICE_IceConnectionNumber=no
7155
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7156
conftest$ac_exeext conftest.$ac_ext
7157
LIBS=$ac_check_lib_save_LIBS
7159
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7160
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7161
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7162
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7165
LDFLAGS=$ac_save_LDFLAGS
7173
case "$mesa_driver" in
7175
if test "$no_x" = yes; then
7176
{ { echo "$as_me:$LINENO: error: X11 development libraries needed for $mesa_driver driver" >&5
7177
echo "$as_me: error: X11 development libraries needed for $mesa_driver driver" >&2;}
7178
{ (exit 1); exit 1; }; }
7183
# Check whether --enable-xcb was given.
7184
if test "${enable_xcb+set}" = set; then
7185
enableval=$enable_xcb; enable_xcb="$enableval"
7190
if test "x$enable_xcb" = xyes; then
7191
DEFINES="$DEFINES -DUSE_XCB"
7196
case "$mesa_driver" in
7198
if test "$x11_pkgconfig" = yes; then
7201
{ echo "$as_me:$LINENO: checking for XLIBGL" >&5
7202
echo $ECHO_N "checking for XLIBGL... $ECHO_C" >&6; }
7204
if test -n "$PKG_CONFIG"; then
7205
if test -n "$XLIBGL_CFLAGS"; then
7206
pkg_cv_XLIBGL_CFLAGS="$XLIBGL_CFLAGS"
7208
if test -n "$PKG_CONFIG" && \
7209
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext\"") >&5
7210
($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
7212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213
(exit $ac_status); }; then
7214
pkg_cv_XLIBGL_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
7222
if test -n "$PKG_CONFIG"; then
7223
if test -n "$XLIBGL_LIBS"; then
7224
pkg_cv_XLIBGL_LIBS="$XLIBGL_LIBS"
7226
if test -n "$PKG_CONFIG" && \
7227
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext\"") >&5
7228
($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
7230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231
(exit $ac_status); }; then
7232
pkg_cv_XLIBGL_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
7243
if test $pkg_failed = yes; then
7245
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7246
_pkg_short_errors_supported=yes
7248
_pkg_short_errors_supported=no
7250
if test $_pkg_short_errors_supported = yes; then
7251
XLIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xext"`
7253
XLIBGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext"`
7255
# Put the nasty error message in config.log where it belongs
7256
echo "$XLIBGL_PKG_ERRORS" >&5
7258
{ { echo "$as_me:$LINENO: error: Package requirements (x11 xext) were not met:
7262
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7263
installed software in a non-standard prefix.
7265
Alternatively, you may set the environment variables XLIBGL_CFLAGS
7266
and XLIBGL_LIBS to avoid the need to call pkg-config.
7267
See the pkg-config man page for more details.
7269
echo "$as_me: error: Package requirements (x11 xext) were not met:
7273
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7274
installed software in a non-standard prefix.
7276
Alternatively, you may set the environment variables XLIBGL_CFLAGS
7277
and XLIBGL_LIBS to avoid the need to call pkg-config.
7278
See the pkg-config man page for more details.
7280
{ (exit 1); exit 1; }; }
7281
elif test $pkg_failed = untried; then
7282
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7283
is in your PATH or set the PKG_CONFIG environment variable to the full
7286
Alternatively, you may set the environment variables XLIBGL_CFLAGS
7287
and XLIBGL_LIBS to avoid the need to call pkg-config.
7288
See the pkg-config man page for more details.
7290
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7291
See \`config.log' for more details." >&5
7292
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7293
is in your PATH or set the PKG_CONFIG environment variable to the full
7296
Alternatively, you may set the environment variables XLIBGL_CFLAGS
7297
and XLIBGL_LIBS to avoid the need to call pkg-config.
7298
See the pkg-config man page for more details.
7300
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7301
See \`config.log' for more details." >&2;}
7302
{ (exit 1); exit 1; }; }
7304
XLIBGL_CFLAGS=$pkg_cv_XLIBGL_CFLAGS
7305
XLIBGL_LIBS=$pkg_cv_XLIBGL_LIBS
7306
{ echo "$as_me:$LINENO: result: yes" >&5
7307
echo "${ECHO_T}yes" >&6; }
7310
GL_PC_REQ_PRIV="x11 xext"
7311
X11_INCLUDES="$X11_INCLUDES $XLIBGL_CFLAGS"
7312
GL_LIB_DEPS="$XLIBGL_LIBS"
7314
# should check these...
7315
X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
7316
GL_LIB_DEPS="$X_LIBS -lX11 -lXext"
7317
GL_PC_LIB_PRIV="$GL_LIB_DEPS"
7318
GL_PC_CFLAGS="$X11_INCLUDES"
7320
GL_LIB_DEPS="$GL_LIB_DEPS $SELINUX_LIBS -lm -lpthread $OS_LIBS"
7321
GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $SELINUX_LIBS -lm -lpthread $OS_LIBS"
7323
# if static, move the external libraries to the programs
7324
# and empty the libraries for libGL
7325
if test "$enable_static" = yes; then
7326
APP_LIB_DEPS="$APP_LIB_DEPS $GL_LIB_DEPS"
7331
# DRI must be shared, I think
7332
if test "$enable_static" = yes; then
7333
{ { echo "$as_me:$LINENO: error: Can't use static libraries for DRI drivers" >&5
7334
echo "$as_me: error: Can't use static libraries for DRI drivers" >&2;}
7335
{ (exit 1); exit 1; }; }
7341
{ echo "$as_me:$LINENO: checking for LIBDRM" >&5
7342
echo $ECHO_N "checking for LIBDRM... $ECHO_C" >&6; }
7344
if test -n "$PKG_CONFIG"; then
7345
if test -n "$LIBDRM_CFLAGS"; then
7346
pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
7348
if test -n "$PKG_CONFIG" && \
7349
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\"") >&5
7350
($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
7352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
(exit $ac_status); }; then
7354
pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
7362
if test -n "$PKG_CONFIG"; then
7363
if test -n "$LIBDRM_LIBS"; then
7364
pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
7366
if test -n "$PKG_CONFIG" && \
7367
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\"") >&5
7368
($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
7370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371
(exit $ac_status); }; then
7372
pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
7383
if test $pkg_failed = yes; then
7385
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7386
_pkg_short_errors_supported=yes
7388
_pkg_short_errors_supported=no
7390
if test $_pkg_short_errors_supported = yes; then
7391
LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= $LIBDRM_REQUIRED"`
7393
LIBDRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= $LIBDRM_REQUIRED"`
7395
# Put the nasty error message in config.log where it belongs
7396
echo "$LIBDRM_PKG_ERRORS" >&5
7398
{ { echo "$as_me:$LINENO: error: Package requirements (libdrm >= $LIBDRM_REQUIRED) were not met:
7402
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7403
installed software in a non-standard prefix.
7405
Alternatively, you may set the environment variables LIBDRM_CFLAGS
7406
and LIBDRM_LIBS to avoid the need to call pkg-config.
7407
See the pkg-config man page for more details.
7409
echo "$as_me: error: Package requirements (libdrm >= $LIBDRM_REQUIRED) were not met:
7413
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7414
installed software in a non-standard prefix.
7416
Alternatively, you may set the environment variables LIBDRM_CFLAGS
7417
and LIBDRM_LIBS to avoid the need to call pkg-config.
7418
See the pkg-config man page for more details.
7420
{ (exit 1); exit 1; }; }
7421
elif test $pkg_failed = untried; then
7422
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7423
is in your PATH or set the PKG_CONFIG environment variable to the full
7426
Alternatively, you may set the environment variables LIBDRM_CFLAGS
7427
and LIBDRM_LIBS to avoid the need to call pkg-config.
7428
See the pkg-config man page for more details.
7430
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7431
See \`config.log' for more details." >&5
7432
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7433
is in your PATH or set the PKG_CONFIG environment variable to the full
7436
Alternatively, you may set the environment variables LIBDRM_CFLAGS
7437
and LIBDRM_LIBS to avoid the need to call pkg-config.
7438
See the pkg-config man page for more details.
7440
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7441
See \`config.log' for more details." >&2;}
7442
{ (exit 1); exit 1; }; }
7444
LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
7445
LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
7446
{ echo "$as_me:$LINENO: result: yes" >&5
7447
echo "${ECHO_T}yes" >&6; }
7452
{ echo "$as_me:$LINENO: checking for DRI2PROTO" >&5
7453
echo $ECHO_N "checking for DRI2PROTO... $ECHO_C" >&6; }
7455
if test -n "$PKG_CONFIG"; then
7456
if test -n "$DRI2PROTO_CFLAGS"; then
7457
pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
7459
if test -n "$PKG_CONFIG" && \
7460
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\"") >&5
7461
($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
7463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464
(exit $ac_status); }; then
7465
pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
7473
if test -n "$PKG_CONFIG"; then
7474
if test -n "$DRI2PROTO_LIBS"; then
7475
pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
7477
if test -n "$PKG_CONFIG" && \
7478
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\"") >&5
7479
($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
7481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482
(exit $ac_status); }; then
7483
pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
7494
if test $pkg_failed = yes; then
7496
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7497
_pkg_short_errors_supported=yes
7499
_pkg_short_errors_supported=no
7501
if test $_pkg_short_errors_supported = yes; then
7502
DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dri2proto >= $DRI2PROTO_REQUIRED"`
7504
DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dri2proto >= $DRI2PROTO_REQUIRED"`
7506
# Put the nasty error message in config.log where it belongs
7507
echo "$DRI2PROTO_PKG_ERRORS" >&5
7509
{ { echo "$as_me:$LINENO: error: Package requirements (dri2proto >= $DRI2PROTO_REQUIRED) were not met:
7511
$DRI2PROTO_PKG_ERRORS
7513
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7514
installed software in a non-standard prefix.
7516
Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
7517
and DRI2PROTO_LIBS to avoid the need to call pkg-config.
7518
See the pkg-config man page for more details.
7520
echo "$as_me: error: Package requirements (dri2proto >= $DRI2PROTO_REQUIRED) were not met:
7522
$DRI2PROTO_PKG_ERRORS
7524
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7525
installed software in a non-standard prefix.
7527
Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
7528
and DRI2PROTO_LIBS to avoid the need to call pkg-config.
7529
See the pkg-config man page for more details.
7531
{ (exit 1); exit 1; }; }
7532
elif test $pkg_failed = untried; then
7533
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7534
is in your PATH or set the PKG_CONFIG environment variable to the full
7537
Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
7538
and DRI2PROTO_LIBS to avoid the need to call pkg-config.
7539
See the pkg-config man page for more details.
7541
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7542
See \`config.log' for more details." >&5
7543
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7544
is in your PATH or set the PKG_CONFIG environment variable to the full
7547
Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
7548
and DRI2PROTO_LIBS to avoid the need to call pkg-config.
7549
See the pkg-config man page for more details.
7551
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7552
See \`config.log' for more details." >&2;}
7553
{ (exit 1); exit 1; }; }
7555
DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
7556
DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
7557
{ echo "$as_me:$LINENO: result: yes" >&5
7558
echo "${ECHO_T}yes" >&6; }
7561
GL_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED dri2proto >= $DRI2PROTO_REQUIRED"
7562
DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
7564
# find the DRI deps for libGL
7565
if test "$x11_pkgconfig" = yes; then
7566
# add xcb modules if necessary
7567
dri_modules="x11 xext xxf86vm xdamage xfixes"
7568
if test "$enable_xcb" = yes; then
7569
dri_modules="$dri_modules x11-xcb xcb-glx"
7574
{ echo "$as_me:$LINENO: checking for DRIGL" >&5
7575
echo $ECHO_N "checking for DRIGL... $ECHO_C" >&6; }
7577
if test -n "$PKG_CONFIG"; then
7578
if test -n "$DRIGL_CFLAGS"; then
7579
pkg_cv_DRIGL_CFLAGS="$DRIGL_CFLAGS"
7581
if test -n "$PKG_CONFIG" && \
7582
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\"") >&5
7583
($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
7585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586
(exit $ac_status); }; then
7587
pkg_cv_DRIGL_CFLAGS=`$PKG_CONFIG --cflags "$dri_modules" 2>/dev/null`
7595
if test -n "$PKG_CONFIG"; then
7596
if test -n "$DRIGL_LIBS"; then
7597
pkg_cv_DRIGL_LIBS="$DRIGL_LIBS"
7599
if test -n "$PKG_CONFIG" && \
7600
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\"") >&5
7601
($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
7603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604
(exit $ac_status); }; then
7605
pkg_cv_DRIGL_LIBS=`$PKG_CONFIG --libs "$dri_modules" 2>/dev/null`
7616
if test $pkg_failed = yes; then
7618
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7619
_pkg_short_errors_supported=yes
7621
_pkg_short_errors_supported=no
7623
if test $_pkg_short_errors_supported = yes; then
7624
DRIGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$dri_modules"`
7626
DRIGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$dri_modules"`
7628
# Put the nasty error message in config.log where it belongs
7629
echo "$DRIGL_PKG_ERRORS" >&5
7631
{ { echo "$as_me:$LINENO: error: Package requirements ($dri_modules) were not met:
7635
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7636
installed software in a non-standard prefix.
7638
Alternatively, you may set the environment variables DRIGL_CFLAGS
7639
and DRIGL_LIBS to avoid the need to call pkg-config.
7640
See the pkg-config man page for more details.
7642
echo "$as_me: error: Package requirements ($dri_modules) were not met:
7646
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7647
installed software in a non-standard prefix.
7649
Alternatively, you may set the environment variables DRIGL_CFLAGS
7650
and DRIGL_LIBS to avoid the need to call pkg-config.
7651
See the pkg-config man page for more details.
7653
{ (exit 1); exit 1; }; }
7654
elif test $pkg_failed = untried; then
7655
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7656
is in your PATH or set the PKG_CONFIG environment variable to the full
7659
Alternatively, you may set the environment variables DRIGL_CFLAGS
7660
and DRIGL_LIBS to avoid the need to call pkg-config.
7661
See the pkg-config man page for more details.
7663
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7664
See \`config.log' for more details." >&5
7665
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7666
is in your PATH or set the PKG_CONFIG environment variable to the full
7669
Alternatively, you may set the environment variables DRIGL_CFLAGS
7670
and DRIGL_LIBS to avoid the need to call pkg-config.
7671
See the pkg-config man page for more details.
7673
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7674
See \`config.log' for more details." >&2;}
7675
{ (exit 1); exit 1; }; }
7677
DRIGL_CFLAGS=$pkg_cv_DRIGL_CFLAGS
7678
DRIGL_LIBS=$pkg_cv_DRIGL_LIBS
7679
{ echo "$as_me:$LINENO: result: yes" >&5
7680
echo "${ECHO_T}yes" >&6; }
7683
GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV $dri_modules"
7684
X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS"
7685
GL_LIB_DEPS="$DRIGL_LIBS"
7687
# should check these...
7688
X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
7689
GL_LIB_DEPS="$X_LIBS -lX11 -lXext -lXxf86vm -lXdamage -lXfixes"
7690
GL_PC_LIB_PRIV="$GL_LIB_DEPS"
7691
GL_PC_CFLAGS="$X11_INCLUDES"
7693
# XCB can only be used from pkg-config
7694
if test "$enable_xcb" = yes; then
7697
{ echo "$as_me:$LINENO: checking for XCB" >&5
7698
echo $ECHO_N "checking for XCB... $ECHO_C" >&6; }
7700
if test -n "$PKG_CONFIG"; then
7701
if test -n "$XCB_CFLAGS"; then
7702
pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
7704
if test -n "$PKG_CONFIG" && \
7705
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-glx\"") >&5
7706
($PKG_CONFIG --exists --print-errors "x11-xcb xcb-glx") 2>&5
7708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709
(exit $ac_status); }; then
7710
pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-glx" 2>/dev/null`
7718
if test -n "$PKG_CONFIG"; then
7719
if test -n "$XCB_LIBS"; then
7720
pkg_cv_XCB_LIBS="$XCB_LIBS"
7722
if test -n "$PKG_CONFIG" && \
7723
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-glx\"") >&5
7724
($PKG_CONFIG --exists --print-errors "x11-xcb xcb-glx") 2>&5
7726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727
(exit $ac_status); }; then
7728
pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-glx" 2>/dev/null`
7739
if test $pkg_failed = yes; then
7741
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7742
_pkg_short_errors_supported=yes
7744
_pkg_short_errors_supported=no
7746
if test $_pkg_short_errors_supported = yes; then
7747
XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11-xcb xcb-glx"`
7749
XCB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11-xcb xcb-glx"`
7751
# Put the nasty error message in config.log where it belongs
7752
echo "$XCB_PKG_ERRORS" >&5
7754
{ { echo "$as_me:$LINENO: error: Package requirements (x11-xcb xcb-glx) were not met:
7758
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7759
installed software in a non-standard prefix.
7761
Alternatively, you may set the environment variables XCB_CFLAGS
7762
and XCB_LIBS to avoid the need to call pkg-config.
7763
See the pkg-config man page for more details.
7765
echo "$as_me: error: Package requirements (x11-xcb xcb-glx) were not met:
7769
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7770
installed software in a non-standard prefix.
7772
Alternatively, you may set the environment variables XCB_CFLAGS
7773
and XCB_LIBS to avoid the need to call pkg-config.
7774
See the pkg-config man page for more details.
7776
{ (exit 1); exit 1; }; }
7777
elif test $pkg_failed = untried; then
7778
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7779
is in your PATH or set the PKG_CONFIG environment variable to the full
7782
Alternatively, you may set the environment variables XCB_CFLAGS
7783
and XCB_LIBS to avoid the need to call pkg-config.
7784
See the pkg-config man page for more details.
7786
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7787
See \`config.log' for more details." >&5
7788
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7789
is in your PATH or set the PKG_CONFIG environment variable to the full
7792
Alternatively, you may set the environment variables XCB_CFLAGS
7793
and XCB_LIBS to avoid the need to call pkg-config.
7794
See the pkg-config man page for more details.
7796
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7797
See \`config.log' for more details." >&2;}
7798
{ (exit 1); exit 1; }; }
7800
XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
7801
XCB_LIBS=$pkg_cv_XCB_LIBS
7802
{ echo "$as_me:$LINENO: result: yes" >&5
7803
echo "${ECHO_T}yes" >&6; }
7806
GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV x11-xcb xcb-glx"
7807
X11_INCLUDES="$X11_INCLUDES $XCB_CFLAGS"
7808
GL_LIB_DEPS="$GL_LIB_DEPS $XCB_LIBS"
7812
# need DRM libs, -lpthread, etc.
7813
GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread $DLOPEN_LIBS $OS_LIBS"
7814
GL_PC_LIB_PRIV="-lm -lpthread $DLOPEN_LIBS $OS_LIBS"
7817
# No libGL for osmesa
7818
GL_LIB_DEPS="$OS_LIBS"
7827
if test "$mesa_driver" = xlib; then
7828
DEFINES="$DEFINES -DUSE_XSHM"
7831
# Check whether --enable-glx-tls was given.
7832
if test "${enable_glx_tls+set}" = set; then
7833
enableval=$enable_glx_tls; GLX_USE_TLS="$enableval"
7839
# Check whether --with-dri-driverdir was given.
7840
if test "${with_dri_driverdir+set}" = set; then
7841
withval=$with_dri_driverdir; DRI_DRIVER_INSTALL_DIR="$withval"
7843
DRI_DRIVER_INSTALL_DIR='${libdir}/dri'
7847
# Check whether --enable-driglx-direct was given.
7848
if test "${enable_driglx_direct+set}" = set; then
7849
enableval=$enable_driglx_direct; driglx_direct="$enableval"
7855
# Check whether --with-dri-drivers was given.
7856
if test "${with_dri_drivers+set}" = set; then
7857
withval=$with_dri_drivers; with_dri_drivers="$withval"
7859
with_dri_drivers=yes
7862
if test "x$with_dri_drivers" = x; then
7867
case "$with_dri_drivers" in
7873
# verify the requested driver directories exist
7874
dri_drivers=`IFS=', '; echo $with_dri_drivers`
7875
for driver in $dri_drivers; do
7876
test -d "$srcdir/src/mesa/drivers/dri/$driver" || \
7877
{ { echo "$as_me:$LINENO: error: DRI driver directory '$driver' doesn't exist" >&5
7878
echo "$as_me: error: DRI driver directory '$driver' doesn't exist" >&2;}
7879
{ (exit 1); exit 1; }; }
7881
DRI_DIRS="$dri_drivers"
7888
if test "$mesa_driver" = dri; then
7890
if test "x$GLX_USE_TLS" = xyes; then
7891
DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS"
7894
if test "x$USING_EGL" = x1; then
7898
# Platform specific settings and drivers to build
7901
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
7902
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
7903
if test "x$driglx_direct" = xyes; then
7904
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
7909
# ffb, gamma, and sis are missing because they have not be
7910
# converted to use the new interface. i810 are missing
7911
# because there is no x86-64 system where they could *ever*
7913
if test "x$DRI_DIRS" = "xyes"; then
7914
DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \
7915
savage tdfx unichrome swrast"
7919
# Build only the drivers for cards that exist on PowerPC.
7920
# At some point MGA will be added, but not yet.
7921
if test "x$DRI_DIRS" = "xyes"; then
7922
DRI_DIRS="mach64 r128 r200 r300 radeon tdfx swrast"
7926
# Build only the drivers for cards that exist on sparc`
7927
if test "x$DRI_DIRS" = "xyes"; then
7928
DRI_DIRS="mach64 r128 r200 r300 radeon ffb swrast"
7933
freebsd* | dragonfly*)
7934
DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1"
7935
DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS"
7936
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
7937
if test "x$driglx_direct" = xyes; then
7938
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
7940
if test "x$GXX" = xyes; then
7941
CXXFLAGS="$CXXFLAGS -ansi -pedantic"
7944
# ffb and gamma are missing because they have not been converted
7945
# to use the new interface.
7946
if test "x$DRI_DIRS" = "xyes"; then
7947
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
7948
unichrome savage sis swrast"
7952
DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
7953
DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
7954
if test "x$driglx_direct" = xyes; then
7955
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
7961
if test "x$DRI_DIRS" = "xyes"; then
7962
DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
7963
savage sis tdfx trident unichrome ffb swrast"
7966
DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'`
7972
# Check whether --with-expat was given.
7973
if test "${with_expat+set}" = set; then
7974
withval=$with_expat;
7975
EXPAT_INCLUDES="-I$withval/include"
7976
CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
7977
LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR"
7978
EXPAT_LIB="-L$withval/$LIB_DIR -lexpat"
7982
if test "${ac_cv_header_expat_h+set}" = set; then
7983
{ echo "$as_me:$LINENO: checking for expat.h" >&5
7984
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
7985
if test "${ac_cv_header_expat_h+set}" = set; then
7986
echo $ECHO_N "(cached) $ECHO_C" >&6
7988
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
7989
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
7991
# Is the header compilable?
7992
{ echo "$as_me:$LINENO: checking expat.h usability" >&5
7993
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
7994
cat >conftest.$ac_ext <<_ACEOF
7997
cat confdefs.h >>conftest.$ac_ext
7998
cat >>conftest.$ac_ext <<_ACEOF
7999
/* end confdefs.h. */
8000
$ac_includes_default
8003
rm -f conftest.$ac_objext
8004
if { (ac_try="$ac_compile"
8006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007
*) ac_try_echo=$ac_try;;
8009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010
(eval "$ac_compile") 2>conftest.er1
8012
grep -v '^ *+' conftest.er1 >conftest.err
8014
cat conftest.err >&5
8015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016
(exit $ac_status); } && {
8017
test -z "$ac_c_werror_flag" ||
8018
test ! -s conftest.err
8019
} && test -s conftest.$ac_objext; then
8020
ac_header_compiler=yes
8022
echo "$as_me: failed program was:" >&5
8023
sed 's/^/| /' conftest.$ac_ext >&5
8025
ac_header_compiler=no
8028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8030
echo "${ECHO_T}$ac_header_compiler" >&6; }
8032
# Is the header present?
8033
{ echo "$as_me:$LINENO: checking expat.h presence" >&5
8034
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
8035
cat >conftest.$ac_ext <<_ACEOF
8038
cat confdefs.h >>conftest.$ac_ext
8039
cat >>conftest.$ac_ext <<_ACEOF
8040
/* end confdefs.h. */
8043
if { (ac_try="$ac_cpp conftest.$ac_ext"
8045
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046
*) ac_try_echo=$ac_try;;
8048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8051
grep -v '^ *+' conftest.er1 >conftest.err
8053
cat conftest.err >&5
8054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055
(exit $ac_status); } >/dev/null && {
8056
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8057
test ! -s conftest.err
8059
ac_header_preproc=yes
8061
echo "$as_me: failed program was:" >&5
8062
sed 's/^/| /' conftest.$ac_ext >&5
8064
ac_header_preproc=no
8067
rm -f conftest.err conftest.$ac_ext
8068
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069
echo "${ECHO_T}$ac_header_preproc" >&6; }
8071
# So? What about this header?
8072
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8074
{ echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
8075
echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076
{ echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
8077
echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
8078
ac_header_preproc=yes
8081
{ echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
8082
echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
8083
{ echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
8084
echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
8085
{ echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
8086
echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
8087
{ echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
8088
echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
8089
{ echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
8090
echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
8091
{ echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
8092
echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
8094
## ---------------------------------------------------------------------- ##
8095
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
8096
## ---------------------------------------------------------------------- ##
8098
) | sed "s/^/$as_me: WARNING: /" >&2
8101
{ echo "$as_me:$LINENO: checking for expat.h" >&5
8102
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
8103
if test "${ac_cv_header_expat_h+set}" = set; then
8104
echo $ECHO_N "(cached) $ECHO_C" >&6
8106
ac_cv_header_expat_h=$ac_header_preproc
8108
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
8109
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
8112
if test $ac_cv_header_expat_h = yes; then
8115
{ { echo "$as_me:$LINENO: error: Expat required for DRI." >&5
8116
echo "$as_me: error: Expat required for DRI." >&2;}
8117
{ (exit 1); exit 1; }; }
8122
{ echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
8123
echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
8124
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
8125
echo $ECHO_N "(cached) $ECHO_C" >&6
8127
ac_check_lib_save_LIBS=$LIBS
8128
LIBS="-lexpat $LIBS"
8129
cat >conftest.$ac_ext <<_ACEOF
8132
cat confdefs.h >>conftest.$ac_ext
8133
cat >>conftest.$ac_ext <<_ACEOF
8134
/* end confdefs.h. */
8136
/* Override any GCC internal prototype to avoid an error.
8137
Use char because int might match the return type of a GCC
8138
builtin and then its argument prototype would still apply. */
8142
char XML_ParserCreate ();
8146
return XML_ParserCreate ();
8151
rm -f conftest.$ac_objext conftest$ac_exeext
8152
if { (ac_try="$ac_link"
8154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155
*) ac_try_echo=$ac_try;;
8157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158
(eval "$ac_link") 2>conftest.er1
8160
grep -v '^ *+' conftest.er1 >conftest.err
8162
cat conftest.err >&5
8163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164
(exit $ac_status); } && {
8165
test -z "$ac_c_werror_flag" ||
8166
test ! -s conftest.err
8167
} && test -s conftest$ac_exeext &&
8168
$as_test_x conftest$ac_exeext; then
8169
ac_cv_lib_expat_XML_ParserCreate=yes
8171
echo "$as_me: failed program was:" >&5
8172
sed 's/^/| /' conftest.$ac_ext >&5
8174
ac_cv_lib_expat_XML_ParserCreate=no
8177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8178
conftest$ac_exeext conftest.$ac_ext
8179
LIBS=$ac_check_lib_save_LIBS
8181
{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
8182
echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
8183
if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
8184
cat >>confdefs.h <<_ACEOF
8185
#define HAVE_LIBEXPAT 1
8188
LIBS="-lexpat $LIBS"
8191
{ { echo "$as_me:$LINENO: error: Expat required for DRI." >&5
8192
echo "$as_me: error: Expat required for DRI." >&2;}
8193
{ (exit 1); exit 1; }; }
8197
# put all the necessary libs together
8198
DRI_LIB_DEPS="$SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm -lpthread $DLOPEN_LIBS"
8204
if test "$mesa_driver" = xlib; then
8205
default_gl_osmesa=yes
8207
default_gl_osmesa=no
8209
# Check whether --enable-gl-osmesa was given.
8210
if test "${enable_gl_osmesa+set}" = set; then
8211
enableval=$enable_gl_osmesa; gl_osmesa="$enableval"
8213
gl_osmesa="$default_gl_osmesa"
8216
if test "x$gl_osmesa" = xyes; then
8217
if test "$mesa_driver" = osmesa; then
8218
{ { echo "$as_me:$LINENO: error: libGL is not available for OSMesa driver" >&5
8219
echo "$as_me: error: libGL is not available for OSMesa driver" >&2;}
8220
{ (exit 1); exit 1; }; }
8222
DRIVER_DIRS="$DRIVER_DIRS osmesa"
8227
# Check whether --with-osmesa-bits was given.
8228
if test "${with_osmesa_bits+set}" = set; then
8229
withval=$with_osmesa_bits; osmesa_bits="$withval"
8234
if test "$mesa_driver" != osmesa && test "x$osmesa_bits" != x8; then
8235
{ echo "$as_me:$LINENO: WARNING: Ignoring OSMesa channel bits for non-OSMesa driver" >&5
8236
echo "$as_me: WARNING: Ignoring OSMesa channel bits for non-OSMesa driver" >&2;}
8239
case "x$osmesa_bits" in
8244
OSMESA_LIB="OSMesa$osmesa_bits"
8245
DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31"
8248
{ { echo "$as_me:$LINENO: error: OSMesa bits '$osmesa_bits' is not a valid option" >&5
8249
echo "$as_me: error: OSMesa bits '$osmesa_bits' is not a valid option" >&2;}
8250
{ (exit 1); exit 1; }; }
8255
case "$mesa_driver" in
8257
# only link libraries with osmesa if shared
8258
if test "$enable_static" = no; then
8259
OSMESA_LIB_DEPS="-lm -lpthread $SELINUX_LIBS"
8264
OSMESA_PC_LIB_PRIV="-lm -lpthread $SELINUX_LIBS"
8267
# Link OSMesa to libGL otherwise
8269
# only link libraries with osmesa if shared
8270
if test "$enable_static" = no; then
8271
OSMESA_MESA_DEPS='-l$(GL_LIB)'
8278
if test "$enable_static" = no; then
8279
OSMESA_LIB_DEPS="$OSMESA_LIB_DEPS $OS_LIBS"
8281
OSMESA_PC_LIB_PRIV="$OSMESA_PC_LIB_PRIV $OS_LIBS"
8287
# Check whether --enable-glu was given.
8288
if test "${enable_glu+set}" = set; then
8289
enableval=$enable_glu; enable_glu="$enableval"
8294
if test "x$enable_glu" = xyes; then
8295
SRC_DIRS="$SRC_DIRS glu"
8297
case "$mesa_driver" in
8299
# If GLU is available and we have libOSMesa (not 16 or 32),
8300
# we can build the osdemos
8301
if test "$with_demos" = yes && test "$osmesa_bits" = 8; then
8302
PROGRAM_DIRS="$PROGRAM_DIRS osdemos"
8305
# Link libGLU to libOSMesa instead of libGL
8308
if test "$enable_static" = no; then
8309
GLU_MESA_DEPS='-l$(OSMESA_LIB)'
8315
# If static, empty GLU_LIB_DEPS and add libs for programs to link
8317
GLU_PC_LIB_PRIV="-lm"
8318
if test "$enable_static" = no; then
8320
GLU_MESA_DEPS='-l$(GL_LIB)'
8324
APP_LIB_DEPS="$APP_LIB_DEPS -lstdc++"
8329
if test "$enable_static" = no; then
8330
GLU_LIB_DEPS="$GLU_LIB_DEPS $OS_CPLUSPLUS_LIBS"
8332
GLU_PC_LIB_PRIV="$GLU_PC_LIB_PRIV $OS_CPLUSPLUS_LIBS"
8340
# Check whether --enable-glw was given.
8341
if test "${enable_glw+set}" = set; then
8342
enableval=$enable_glw; enable_glw="$enableval"
8347
if test "x$enable_glw" = xyes && test "$mesa_driver" = osmesa; then
8348
{ echo "$as_me:$LINENO: WARNING: Disabling GLw since the driver is OSMesa" >&5
8349
echo "$as_me: WARNING: Disabling GLw since the driver is OSMesa" >&2;}
8352
# Check whether --enable-motif was given.
8353
if test "${enable_motif+set}" = set; then
8354
enableval=$enable_motif; enable_motif="$enableval"
8360
if test "x$enable_glw" = xyes; then
8361
SRC_DIRS="$SRC_DIRS glw"
8362
if test "$x11_pkgconfig" = yes; then
8365
{ echo "$as_me:$LINENO: checking for GLW" >&5
8366
echo $ECHO_N "checking for GLW... $ECHO_C" >&6; }
8368
if test -n "$PKG_CONFIG"; then
8369
if test -n "$GLW_CFLAGS"; then
8370
pkg_cv_GLW_CFLAGS="$GLW_CFLAGS"
8372
if test -n "$PKG_CONFIG" && \
8373
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt\"") >&5
8374
($PKG_CONFIG --exists --print-errors "x11 xt") 2>&5
8376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
(exit $ac_status); }; then
8378
pkg_cv_GLW_CFLAGS=`$PKG_CONFIG --cflags "x11 xt" 2>/dev/null`
8386
if test -n "$PKG_CONFIG"; then
8387
if test -n "$GLW_LIBS"; then
8388
pkg_cv_GLW_LIBS="$GLW_LIBS"
8390
if test -n "$PKG_CONFIG" && \
8391
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt\"") >&5
8392
($PKG_CONFIG --exists --print-errors "x11 xt") 2>&5
8394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395
(exit $ac_status); }; then
8396
pkg_cv_GLW_LIBS=`$PKG_CONFIG --libs "x11 xt" 2>/dev/null`
8407
if test $pkg_failed = yes; then
8409
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8410
_pkg_short_errors_supported=yes
8412
_pkg_short_errors_supported=no
8414
if test $_pkg_short_errors_supported = yes; then
8415
GLW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xt"`
8417
GLW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xt"`
8419
# Put the nasty error message in config.log where it belongs
8420
echo "$GLW_PKG_ERRORS" >&5
8422
{ { echo "$as_me:$LINENO: error: Package requirements (x11 xt) were not met:
8426
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8427
installed software in a non-standard prefix.
8429
Alternatively, you may set the environment variables GLW_CFLAGS
8430
and GLW_LIBS to avoid the need to call pkg-config.
8431
See the pkg-config man page for more details.
8433
echo "$as_me: error: Package requirements (x11 xt) were not met:
8437
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8438
installed software in a non-standard prefix.
8440
Alternatively, you may set the environment variables GLW_CFLAGS
8441
and GLW_LIBS to avoid the need to call pkg-config.
8442
See the pkg-config man page for more details.
8444
{ (exit 1); exit 1; }; }
8445
elif test $pkg_failed = untried; then
8446
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8447
is in your PATH or set the PKG_CONFIG environment variable to the full
8450
Alternatively, you may set the environment variables GLW_CFLAGS
8451
and GLW_LIBS to avoid the need to call pkg-config.
8452
See the pkg-config man page for more details.
8454
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8455
See \`config.log' for more details." >&5
8456
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8457
is in your PATH or set the PKG_CONFIG environment variable to the full
8460
Alternatively, you may set the environment variables GLW_CFLAGS
8461
and GLW_LIBS to avoid the need to call pkg-config.
8462
See the pkg-config man page for more details.
8464
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8465
See \`config.log' for more details." >&2;}
8466
{ (exit 1); exit 1; }; }
8468
GLW_CFLAGS=$pkg_cv_GLW_CFLAGS
8469
GLW_LIBS=$pkg_cv_GLW_LIBS
8470
{ echo "$as_me:$LINENO: result: yes" >&5
8471
echo "${ECHO_T}yes" >&6; }
8474
GLW_PC_REQ_PRIV="x11 xt"
8475
GLW_LIB_DEPS="$GLW_LIBS"
8477
# should check these...
8478
GLW_LIB_DEPS="$X_LIBS -lXt -lX11"
8479
GLW_PC_LIB_PRIV="$GLW_LIB_DEPS"
8480
GLW_PC_CFLAGS="$X11_INCLUDES"
8483
GLW_SOURCES="GLwDrawA.c"
8485
if test "x$enable_motif" = xyes; then
8486
GLW_SOURCES="$GLW_SOURCES GLwMDrawA.c"
8487
# Extract the first word of "motif-config", so it can be a program name with args.
8488
set dummy motif-config; ac_word=$2
8489
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8491
if test "${ac_cv_path_MOTIF_CONFIG+set}" = set; then
8492
echo $ECHO_N "(cached) $ECHO_C" >&6
8494
case $MOTIF_CONFIG in
8496
ac_cv_path_MOTIF_CONFIG="$MOTIF_CONFIG" # Let the user override the test with a path.
8499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503
test -z "$as_dir" && as_dir=.
8504
for ac_exec_ext in '' $ac_executable_extensions; do
8505
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506
ac_cv_path_MOTIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8507
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514
test -z "$ac_cv_path_MOTIF_CONFIG" && ac_cv_path_MOTIF_CONFIG="no"
8518
MOTIF_CONFIG=$ac_cv_path_MOTIF_CONFIG
8519
if test -n "$MOTIF_CONFIG"; then
8520
{ echo "$as_me:$LINENO: result: $MOTIF_CONFIG" >&5
8521
echo "${ECHO_T}$MOTIF_CONFIG" >&6; }
8523
{ echo "$as_me:$LINENO: result: no" >&5
8524
echo "${ECHO_T}no" >&6; }
8528
if test "x$MOTIF_CONFIG" != xno; then
8529
MOTIF_CFLAGS=`$MOTIF_CONFIG --cflags`
8530
MOTIF_LIBS=`$MOTIF_CONFIG --libs`
8532
if test "${ac_cv_header_Xm_PrimitiveP_h+set}" = set; then
8533
{ echo "$as_me:$LINENO: checking for Xm/PrimitiveP.h" >&5
8534
echo $ECHO_N "checking for Xm/PrimitiveP.h... $ECHO_C" >&6; }
8535
if test "${ac_cv_header_Xm_PrimitiveP_h+set}" = set; then
8536
echo $ECHO_N "(cached) $ECHO_C" >&6
8538
{ echo "$as_me:$LINENO: result: $ac_cv_header_Xm_PrimitiveP_h" >&5
8539
echo "${ECHO_T}$ac_cv_header_Xm_PrimitiveP_h" >&6; }
8541
# Is the header compilable?
8542
{ echo "$as_me:$LINENO: checking Xm/PrimitiveP.h usability" >&5
8543
echo $ECHO_N "checking Xm/PrimitiveP.h usability... $ECHO_C" >&6; }
8544
cat >conftest.$ac_ext <<_ACEOF
8547
cat confdefs.h >>conftest.$ac_ext
8548
cat >>conftest.$ac_ext <<_ACEOF
8549
/* end confdefs.h. */
8550
$ac_includes_default
8551
#include <Xm/PrimitiveP.h>
8553
rm -f conftest.$ac_objext
8554
if { (ac_try="$ac_compile"
8556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557
*) ac_try_echo=$ac_try;;
8559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560
(eval "$ac_compile") 2>conftest.er1
8562
grep -v '^ *+' conftest.er1 >conftest.err
8564
cat conftest.err >&5
8565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566
(exit $ac_status); } && {
8567
test -z "$ac_c_werror_flag" ||
8568
test ! -s conftest.err
8569
} && test -s conftest.$ac_objext; then
8570
ac_header_compiler=yes
8572
echo "$as_me: failed program was:" >&5
8573
sed 's/^/| /' conftest.$ac_ext >&5
8575
ac_header_compiler=no
8578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8580
echo "${ECHO_T}$ac_header_compiler" >&6; }
8582
# Is the header present?
8583
{ echo "$as_me:$LINENO: checking Xm/PrimitiveP.h presence" >&5
8584
echo $ECHO_N "checking Xm/PrimitiveP.h presence... $ECHO_C" >&6; }
8585
cat >conftest.$ac_ext <<_ACEOF
8588
cat confdefs.h >>conftest.$ac_ext
8589
cat >>conftest.$ac_ext <<_ACEOF
8590
/* end confdefs.h. */
8591
#include <Xm/PrimitiveP.h>
8593
if { (ac_try="$ac_cpp conftest.$ac_ext"
8595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596
*) ac_try_echo=$ac_try;;
8598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8601
grep -v '^ *+' conftest.er1 >conftest.err
8603
cat conftest.err >&5
8604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
(exit $ac_status); } >/dev/null && {
8606
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8607
test ! -s conftest.err
8609
ac_header_preproc=yes
8611
echo "$as_me: failed program was:" >&5
8612
sed 's/^/| /' conftest.$ac_ext >&5
8614
ac_header_preproc=no
8617
rm -f conftest.err conftest.$ac_ext
8618
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8619
echo "${ECHO_T}$ac_header_preproc" >&6; }
8621
# So? What about this header?
8622
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8624
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: accepted by the compiler, rejected by the preprocessor!" >&5
8625
echo "$as_me: WARNING: Xm/PrimitiveP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8626
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: proceeding with the compiler's result" >&5
8627
echo "$as_me: WARNING: Xm/PrimitiveP.h: proceeding with the compiler's result" >&2;}
8628
ac_header_preproc=yes
8631
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: present but cannot be compiled" >&5
8632
echo "$as_me: WARNING: Xm/PrimitiveP.h: present but cannot be compiled" >&2;}
8633
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: check for missing prerequisite headers?" >&5
8634
echo "$as_me: WARNING: Xm/PrimitiveP.h: check for missing prerequisite headers?" >&2;}
8635
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: see the Autoconf documentation" >&5
8636
echo "$as_me: WARNING: Xm/PrimitiveP.h: see the Autoconf documentation" >&2;}
8637
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: section \"Present But Cannot Be Compiled\"" >&5
8638
echo "$as_me: WARNING: Xm/PrimitiveP.h: section \"Present But Cannot Be Compiled\"" >&2;}
8639
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: proceeding with the preprocessor's result" >&5
8640
echo "$as_me: WARNING: Xm/PrimitiveP.h: proceeding with the preprocessor's result" >&2;}
8641
{ echo "$as_me:$LINENO: WARNING: Xm/PrimitiveP.h: in the future, the compiler will take precedence" >&5
8642
echo "$as_me: WARNING: Xm/PrimitiveP.h: in the future, the compiler will take precedence" >&2;}
8644
## ---------------------------------------------------------------------- ##
8645
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
8646
## ---------------------------------------------------------------------- ##
8648
) | sed "s/^/$as_me: WARNING: /" >&2
8651
{ echo "$as_me:$LINENO: checking for Xm/PrimitiveP.h" >&5
8652
echo $ECHO_N "checking for Xm/PrimitiveP.h... $ECHO_C" >&6; }
8653
if test "${ac_cv_header_Xm_PrimitiveP_h+set}" = set; then
8654
echo $ECHO_N "(cached) $ECHO_C" >&6
8656
ac_cv_header_Xm_PrimitiveP_h=$ac_header_preproc
8658
{ echo "$as_me:$LINENO: result: $ac_cv_header_Xm_PrimitiveP_h" >&5
8659
echo "${ECHO_T}$ac_cv_header_Xm_PrimitiveP_h" >&6; }
8662
if test $ac_cv_header_Xm_PrimitiveP_h = yes; then
8665
{ { echo "$as_me:$LINENO: error: Can't locate Motif headers" >&5
8666
echo "$as_me: error: Can't locate Motif headers" >&2;}
8667
{ (exit 1); exit 1; }; }
8671
{ echo "$as_me:$LINENO: checking for XmGetPixmap in -lXm" >&5
8672
echo $ECHO_N "checking for XmGetPixmap in -lXm... $ECHO_C" >&6; }
8673
if test "${ac_cv_lib_Xm_XmGetPixmap+set}" = set; then
8674
echo $ECHO_N "(cached) $ECHO_C" >&6
8676
ac_check_lib_save_LIBS=$LIBS
8678
cat >conftest.$ac_ext <<_ACEOF
8681
cat confdefs.h >>conftest.$ac_ext
8682
cat >>conftest.$ac_ext <<_ACEOF
8683
/* end confdefs.h. */
8685
/* Override any GCC internal prototype to avoid an error.
8686
Use char because int might match the return type of a GCC
8687
builtin and then its argument prototype would still apply. */
8691
char XmGetPixmap ();
8695
return XmGetPixmap ();
8700
rm -f conftest.$ac_objext conftest$ac_exeext
8701
if { (ac_try="$ac_link"
8703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704
*) ac_try_echo=$ac_try;;
8706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707
(eval "$ac_link") 2>conftest.er1
8709
grep -v '^ *+' conftest.er1 >conftest.err
8711
cat conftest.err >&5
8712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713
(exit $ac_status); } && {
8714
test -z "$ac_c_werror_flag" ||
8715
test ! -s conftest.err
8716
} && test -s conftest$ac_exeext &&
8717
$as_test_x conftest$ac_exeext; then
8718
ac_cv_lib_Xm_XmGetPixmap=yes
8720
echo "$as_me: failed program was:" >&5
8721
sed 's/^/| /' conftest.$ac_ext >&5
8723
ac_cv_lib_Xm_XmGetPixmap=no
8726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8727
conftest$ac_exeext conftest.$ac_ext
8728
LIBS=$ac_check_lib_save_LIBS
8730
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmGetPixmap" >&5
8731
echo "${ECHO_T}$ac_cv_lib_Xm_XmGetPixmap" >&6; }
8732
if test $ac_cv_lib_Xm_XmGetPixmap = yes; then
8735
{ { echo "$as_me:$LINENO: error: Can't locate Motif Xm library" >&5
8736
echo "$as_me: error: Can't locate Motif Xm library" >&2;}
8737
{ (exit 1); exit 1; }; }
8741
# MOTIF_LIBS is prepended to GLW_LIB_DEPS since Xm needs Xt/X11
8742
GLW_LIB_DEPS="$MOTIF_LIBS $GLW_LIB_DEPS"
8743
GLW_PC_LIB_PRIV="$MOTIF_LIBS $GLW_PC_LIB_PRIV"
8744
GLW_PC_CFLAGS="$MOTIF_CFLAGS $GLW_PC_CFLAGS"
8747
# If static, empty GLW_LIB_DEPS and add libs for programs to link
8748
GLW_PC_LIB_PRIV="$GLW_PC_LIB_PRIV $OS_LIBS"
8749
if test "$enable_static" = no; then
8750
GLW_MESA_DEPS='-l$(GL_LIB)'
8751
GLW_LIB_DEPS="$GLW_LIB_DEPS $OS_LIBS"
8753
APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
8766
if test -f "$srcdir/include/GL/glut.h"; then
8771
# Check whether --enable-glut was given.
8772
if test "${enable_glut+set}" = set; then
8773
enableval=$enable_glut; enable_glut="$enableval"
8775
enable_glut="$default_glut"
8779
if test "x$enable_glu$enable_glut" = xnoyes; then
8780
{ echo "$as_me:$LINENO: WARNING: Disabling glut since GLU is disabled" >&5
8781
echo "$as_me: WARNING: Disabling glut since GLU is disabled" >&2;}
8784
if test "x$enable_glut" = xyes && test "$mesa_driver" = osmesa; then
8785
{ echo "$as_me:$LINENO: WARNING: Disabling glut since the driver is OSMesa" >&5
8786
echo "$as_me: WARNING: Disabling glut since the driver is OSMesa" >&2;}
8790
if test "x$enable_glut" = xyes; then
8791
SRC_DIRS="$SRC_DIRS glut/glx"
8793
if test "x$GCC" = xyes; then
8794
GLUT_CFLAGS="-fexceptions"
8796
if test "$x11_pkgconfig" = yes; then
8799
{ echo "$as_me:$LINENO: checking for GLUT" >&5
8800
echo $ECHO_N "checking for GLUT... $ECHO_C" >&6; }
8802
if test -n "$PKG_CONFIG"; then
8803
if test -n "$GLUT_CFLAGS"; then
8804
pkg_cv_GLUT_CFLAGS="$GLUT_CFLAGS"
8806
if test -n "$PKG_CONFIG" && \
8807
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xi\"") >&5
8808
($PKG_CONFIG --exists --print-errors "x11 xmu xi") 2>&5
8810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
(exit $ac_status); }; then
8812
pkg_cv_GLUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xi" 2>/dev/null`
8820
if test -n "$PKG_CONFIG"; then
8821
if test -n "$GLUT_LIBS"; then
8822
pkg_cv_GLUT_LIBS="$GLUT_LIBS"
8824
if test -n "$PKG_CONFIG" && \
8825
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xi\"") >&5
8826
($PKG_CONFIG --exists --print-errors "x11 xmu xi") 2>&5
8828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829
(exit $ac_status); }; then
8830
pkg_cv_GLUT_LIBS=`$PKG_CONFIG --libs "x11 xmu xi" 2>/dev/null`
8841
if test $pkg_failed = yes; then
8843
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8844
_pkg_short_errors_supported=yes
8846
_pkg_short_errors_supported=no
8848
if test $_pkg_short_errors_supported = yes; then
8849
GLUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xmu xi"`
8851
GLUT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmu xi"`
8853
# Put the nasty error message in config.log where it belongs
8854
echo "$GLUT_PKG_ERRORS" >&5
8856
{ { echo "$as_me:$LINENO: error: Package requirements (x11 xmu xi) were not met:
8860
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8861
installed software in a non-standard prefix.
8863
Alternatively, you may set the environment variables GLUT_CFLAGS
8864
and GLUT_LIBS to avoid the need to call pkg-config.
8865
See the pkg-config man page for more details.
8867
echo "$as_me: error: Package requirements (x11 xmu xi) were not met:
8871
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8872
installed software in a non-standard prefix.
8874
Alternatively, you may set the environment variables GLUT_CFLAGS
8875
and GLUT_LIBS to avoid the need to call pkg-config.
8876
See the pkg-config man page for more details.
8878
{ (exit 1); exit 1; }; }
8879
elif test $pkg_failed = untried; then
8880
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8881
is in your PATH or set the PKG_CONFIG environment variable to the full
8884
Alternatively, you may set the environment variables GLUT_CFLAGS
8885
and GLUT_LIBS to avoid the need to call pkg-config.
8886
See the pkg-config man page for more details.
8888
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8889
See \`config.log' for more details." >&5
8890
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8891
is in your PATH or set the PKG_CONFIG environment variable to the full
8894
Alternatively, you may set the environment variables GLUT_CFLAGS
8895
and GLUT_LIBS to avoid the need to call pkg-config.
8896
See the pkg-config man page for more details.
8898
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8899
See \`config.log' for more details." >&2;}
8900
{ (exit 1); exit 1; }; }
8902
GLUT_CFLAGS=$pkg_cv_GLUT_CFLAGS
8903
GLUT_LIBS=$pkg_cv_GLUT_LIBS
8904
{ echo "$as_me:$LINENO: result: yes" >&5
8905
echo "${ECHO_T}yes" >&6; }
8908
GLUT_PC_REQ_PRIV="x11 xmu xi"
8909
GLUT_LIB_DEPS="$GLUT_LIBS"
8911
# should check these...
8912
GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi"
8913
GLUT_PC_LIB_PRIV="$GLUT_LIB_DEPS"
8914
GLUT_PC_CFLAGS="$X11_INCLUDES"
8916
GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm $OS_LIBS"
8917
GLUT_PC_LIB_PRIV="$GLUT_PC_LIB_PRIV -lm $OS_LIBS"
8919
# If glut is available, we can build most programs
8920
if test "$with_demos" = yes; then
8921
PROGRAM_DIRS="$PROGRAM_DIRS demos redbook samples glsl"
8924
# If static, empty GLUT_LIB_DEPS and add libs for programs to link
8925
if test "$enable_static" = no; then
8926
GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)'
8928
APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS"
8940
if test "x$APP_LIB_DEPS" = x; then
8943
APP_LIB_DEPS="-lX11 -lsocket -lnsl -lm"
8954
LDFLAGS="$_SAVE_LDFLAGS"
8955
CPPFLAGS="$_SAVE_CPPFLAGS"
8957
ac_config_files="$ac_config_files configs/autoconf"
8960
ac_config_commands="$ac_config_commands configs"
8963
cat >confcache <<\_ACEOF
8964
# This file is a shell script that caches the results of configure
8965
# tests run on this system so they can be shared between configure
8966
# scripts and configure runs, see configure's option --config-cache.
8967
# It is not useful on other systems. If it contains results you don't
8968
# want to keep, you may remove or edit it.
8970
# config.status only pays attention to the cache file if you give it
8971
# the --recheck option to rerun configure.
8973
# `ac_cv_env_foo' variables (set or unset) will be overridden when
8974
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8979
# The following way of writing the cache mishandles newlines in values,
8980
# but we know of no workaround that is simple, portable, and efficient.
8981
# So, we kill variables containing newlines.
8982
# Ultrix sh set writes to stderr and can't be redirected directly,
8983
# and sets the high bit in the cache file unless we assign to the vars.
8985
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8986
eval ac_val=\$$ac_var
8990
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8991
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8994
_ | IFS | as_nl) ;; #(
8995
*) $as_unset $ac_var ;;
9001
case $as_nl`(ac_space=' '; set) 2>&1` in #(
9002
*${as_nl}ac_space=\ *)
9003
# `set' does not quote correctly, so add quotes (double-quote
9004
# substitution turns \\\\ into \\, and sed turns \\ into \).
9007
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9010
# `set' quotes correctly as required by POSIX, so do not add quotes.
9011
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9020
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9022
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9024
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9025
if test -w "$cache_file"; then
9026
test "x$cache_file" != "x/dev/null" &&
9027
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
9028
echo "$as_me: updating cache $cache_file" >&6;}
9029
cat confcache >$cache_file
9031
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9032
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9037
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9038
# Let make expand exec_prefix.
9039
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9041
# Transform confdefs.h into DEFS.
9042
# Protect against shell expansion while executing Makefile rules.
9043
# Protect against Makefile macro expansion.
9045
# If the first sed substitution is executed (which looks for macros that
9046
# take arguments), then branch to the quote section. Otherwise,
9047
# look for a macro that doesn't take arguments.
9051
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9053
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9057
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9070
DEFS=`sed -n "$ac_script" confdefs.h`
9075
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9076
# 1. Remove the extension, and $U if already installed.
9077
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9078
ac_i=`echo "$ac_i" | sed "$ac_script"`
9079
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9080
# will be set to the directory where LIBOBJS objects are built.
9081
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9082
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9086
LTLIBOBJS=$ac_ltlibobjs
9090
: ${CONFIG_STATUS=./config.status}
9091
ac_clean_files_save=$ac_clean_files
9092
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9093
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9094
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9095
cat >$CONFIG_STATUS <<_ACEOF
9097
# Generated by $as_me.
9098
# Run this file to recreate the current configuration.
9099
# Compiler output produced by configure, useful for debugging
9100
# configure, is in config.log if it exists.
9105
SHELL=\${CONFIG_SHELL-$SHELL}
9108
cat >>$CONFIG_STATUS <<\_ACEOF
9109
## --------------------- ##
9110
## M4sh Initialization. ##
9111
## --------------------- ##
9113
# Be more Bourne compatible
9114
DUALCASE=1; export DUALCASE # for MKS sh
9115
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9118
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9119
# is contrary to our usage. Disable this feature.
9120
alias -g '${1+"$@"}'='"$@"'
9121
setopt NO_GLOB_SUBST
9123
case `(set -o) 2>/dev/null` in
9124
*posix*) set -o posix ;;
9133
# Avoid depending upon Character Ranges.
9134
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9135
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9136
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9137
as_cr_digits='0123456789'
9138
as_cr_alnum=$as_cr_Letters$as_cr_digits
9140
# The user is always right.
9141
if test "${PATH_SEPARATOR+set}" != set; then
9142
echo "#! /bin/sh" >conf$$.sh
9143
echo "exit 0" >>conf$$.sh
9145
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9153
# Support unset when possible.
9154
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9162
# We need space, tab and new line, in precisely that order. Quoting is
9163
# there to prevent editors from complaining about space-tab.
9164
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9165
# splitting by setting IFS to empty value.)
9170
# Find who we are. Look in the path if we contain no directory separator.
9172
*[\\/]* ) as_myself=$0 ;;
9173
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177
test -z "$as_dir" && as_dir=.
9178
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9184
# We did not find ourselves, most probably we were run as `sh COMMAND'
9185
# in which case we are not to be found in the path.
9186
if test "x$as_myself" = x; then
9189
if test ! -f "$as_myself"; then
9190
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9191
{ (exit 1); exit 1; }
9194
# Work around bugs in pre-3.0 UWIN ksh.
9195
for as_var in ENV MAIL MAILPATH
9196
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9204
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9205
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9206
LC_TELEPHONE LC_TIME
9208
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9209
eval $as_var=C; export $as_var
9211
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9215
# Required to use basename.
9216
if expr a : '\(a\)' >/dev/null 2>&1 &&
9217
test "X`expr 00001 : '.*\(...\)'`" = X001; then
9223
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9224
as_basename=basename
9230
# Name of the executable.
9231
as_me=`$as_basename -- "$0" ||
9232
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9233
X"$0" : 'X\(//\)$' \| \
9234
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9236
sed '/^.*\/\([^/][^/]*\)\/*$/{
9257
test "x$as_lineno_1" != "x$as_lineno_2" &&
9258
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9260
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9261
# uniformly replaced by the line number. The first 'sed' inserts a
9262
# line-number line after each line using $LINENO; the second 'sed'
9263
# does the real work. The second script uses 'N' to pair each
9264
# line-number line with the line containing $LINENO, and appends
9265
# trailing '-' during substitution so that $LINENO is not a special
9267
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9268
# scripts with optimization help from Paolo Bonzini. Blame Lee
9269
# E. McMahon (1931-1989) for sed's syntax. :-)
9281
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9285
chmod +x "$as_me.lineno" ||
9286
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9287
{ (exit 1); exit 1; }; }
9289
# Don't try to exec as it changes $[0], causing all sort of problems
9290
# (the dirname of $[0] is not the place where we might find the
9291
# original and so on. Autoconf is especially sensitive to this).
9293
# Exit status is that of the last command.
9298
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9304
ECHO_C= ECHO_N= ECHO_T=
9307
case `echo 'x\c'` in
9308
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
9315
if expr a : '\(a\)' >/dev/null 2>&1 &&
9316
test "X`expr 00001 : '.*\(...\)'`" = X001; then
9322
rm -f conf$$ conf$$.exe conf$$.file
9323
if test -d conf$$.dir; then
9324
rm -f conf$$.dir/conf$$.file
9330
if ln -s conf$$.file conf$$ 2>/dev/null; then
9332
# ... but there are two gotchas:
9333
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9334
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9335
# In both cases, we have to default to `cp -p'.
9336
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9338
elif ln conf$$.file conf$$ 2>/dev/null; then
9343
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9344
rmdir conf$$.dir 2>/dev/null
9346
if mkdir -p . 2>/dev/null; then
9349
test -d ./-p && rmdir ./-p
9353
if test -x / >/dev/null 2>&1; then
9356
if ls -dL / >/dev/null 2>&1; then
9363
if test -d "$1"; then
9369
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9370
???[sx]*):;;*)false;;esac;fi
9374
as_executable_p=$as_test_x
9376
# Sed expression to map a string onto a valid CPP name.
9377
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9379
# Sed expression to map a string onto a valid variable name.
9380
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9385
# Save the log message, to keep $[0] and so on meaningful, and to
9386
# report actual input values of CONFIG_FILES etc. instead of their
9387
# values after options handling.
9389
This file was extended by Mesa $as_me 7.3.0, which was
9390
generated by GNU Autoconf 2.61. Invocation command line was
9392
CONFIG_FILES = $CONFIG_FILES
9393
CONFIG_HEADERS = $CONFIG_HEADERS
9394
CONFIG_LINKS = $CONFIG_LINKS
9395
CONFIG_COMMANDS = $CONFIG_COMMANDS
9398
on `(hostname || uname -n) 2>/dev/null | sed 1q`
9403
cat >>$CONFIG_STATUS <<_ACEOF
9404
# Files that config.status was made for.
9405
config_files="$ac_config_files"
9406
config_commands="$ac_config_commands"
9410
cat >>$CONFIG_STATUS <<\_ACEOF
9412
\`$as_me' instantiates files from templates according to the
9413
current configuration.
9415
Usage: $0 [OPTIONS] [FILE]...
9417
-h, --help print this help, then exit
9418
-V, --version print version number and configuration settings, then exit
9419
-q, --quiet do not print progress messages
9420
-d, --debug don't remove temporary files
9421
--recheck update $as_me by reconfiguring in the same conditions
9422
--file=FILE[:TEMPLATE]
9423
instantiate the configuration file FILE
9425
Configuration files:
9428
Configuration commands:
9431
Report bugs to <bug-autoconf@gnu.org>."
9434
cat >>$CONFIG_STATUS <<_ACEOF
9436
Mesa config.status 7.3.0
9437
configured by $0, generated by GNU Autoconf 2.61,
9438
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9440
Copyright (C) 2006 Free Software Foundation, Inc.
9441
This config.status script is free software; the Free Software Foundation
9442
gives unlimited permission to copy, distribute and modify it."
9448
cat >>$CONFIG_STATUS <<\_ACEOF
9449
# If no file are specified by the user, then we need to provide default
9450
# value. By we need to know if files were specified by the user.
9456
ac_option=`expr "X$1" : 'X\([^=]*\)='`
9457
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9468
# Handling of the options.
9469
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9471
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9472
echo "$ac_cs_version"; exit ;;
9473
--debug | --debu | --deb | --de | --d | -d )
9475
--file | --fil | --fi | --f )
9477
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9478
ac_need_defaults=false;;
9479
--he | --h | --help | --hel | -h )
9480
echo "$ac_cs_usage"; exit ;;
9481
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
9482
| -silent | --silent | --silen | --sile | --sil | --si | --s)
9486
-*) { echo "$as_me: error: unrecognized option: $1
9487
Try \`$0 --help' for more information." >&2
9488
{ (exit 1); exit 1; }; } ;;
9490
*) ac_config_targets="$ac_config_targets $1"
9491
ac_need_defaults=false ;;
9497
ac_configure_extra_args=
9499
if $ac_cs_silent; then
9501
ac_configure_extra_args="$ac_configure_extra_args --silent"
9505
cat >>$CONFIG_STATUS <<_ACEOF
9506
if \$ac_cs_recheck; then
9507
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9510
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9514
cat >>$CONFIG_STATUS <<\_ACEOF
9518
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9519
## Running $as_me. ##
9525
cat >>$CONFIG_STATUS <<_ACEOF
9528
cat >>$CONFIG_STATUS <<\_ACEOF
9530
# Handling of arguments.
9531
for ac_config_target in $ac_config_targets
9533
case $ac_config_target in
9534
"configs/autoconf") CONFIG_FILES="$CONFIG_FILES configs/autoconf" ;;
9535
"configs") CONFIG_COMMANDS="$CONFIG_COMMANDS configs" ;;
9537
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9538
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9539
{ (exit 1); exit 1; }; };;
9544
# If the user did not use the arguments to specify the items to instantiate,
9545
# then the envvar interface is used. Set only those that are not.
9546
# We use the long form for the default assignment because of an extremely
9547
# bizarre bug on SunOS 4.1.3.
9548
if $ac_need_defaults; then
9549
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9550
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9553
# Have a temporary directory for convenience. Make it in the build tree
9554
# simply because there is no reason against having it here, and in addition,
9555
# creating and moving files from /tmp can sometimes cause problems.
9556
# Hook for its removal unless debugging.
9557
# Note that there is a small window in which the directory will not be cleaned:
9558
# after its creation but before its name has been assigned to `$tmp'.
9562
trap 'exit_status=$?
9563
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9565
trap '{ (exit 1); exit 1; }' 1 2 13 15
9567
# Create a (secure) tmp directory for tmp files.
9570
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9571
test -n "$tmp" && test -d "$tmp"
9574
tmp=./conf$$-$RANDOM
9575
(umask 077 && mkdir "$tmp")
9578
echo "$me: cannot create a temporary directory in ." >&2
9579
{ (exit 1); exit 1; }
9583
# Set up the sed scripts for CONFIG_FILES section.
9586
# No need to generate the scripts if there are no CONFIG_FILES.
9587
# This happens for instance when ./config.status config.h
9588
if test -n "$CONFIG_FILES"; then
9595
for ac_last_try in false false false false false :; do
9596
cat >conf$$subs.sed <<_ACEOF
9597
SHELL!$SHELL$ac_delim
9598
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9599
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9600
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9601
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9602
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9603
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9604
exec_prefix!$exec_prefix$ac_delim
9605
prefix!$prefix$ac_delim
9606
program_transform_name!$program_transform_name$ac_delim
9607
bindir!$bindir$ac_delim
9608
sbindir!$sbindir$ac_delim
9609
libexecdir!$libexecdir$ac_delim
9610
datarootdir!$datarootdir$ac_delim
9611
datadir!$datadir$ac_delim
9612
sysconfdir!$sysconfdir$ac_delim
9613
sharedstatedir!$sharedstatedir$ac_delim
9614
localstatedir!$localstatedir$ac_delim
9615
includedir!$includedir$ac_delim
9616
oldincludedir!$oldincludedir$ac_delim
9617
docdir!$docdir$ac_delim
9618
infodir!$infodir$ac_delim
9619
htmldir!$htmldir$ac_delim
9620
dvidir!$dvidir$ac_delim
9621
pdfdir!$pdfdir$ac_delim
9622
psdir!$psdir$ac_delim
9623
libdir!$libdir$ac_delim
9624
localedir!$localedir$ac_delim
9625
mandir!$mandir$ac_delim
9627
ECHO_C!$ECHO_C$ac_delim
9628
ECHO_N!$ECHO_N$ac_delim
9629
ECHO_T!$ECHO_T$ac_delim
9631
build_alias!$build_alias$ac_delim
9632
host_alias!$host_alias$ac_delim
9633
target_alias!$target_alias$ac_delim
9634
build!$build$ac_delim
9635
build_cpu!$build_cpu$ac_delim
9636
build_vendor!$build_vendor$ac_delim
9637
build_os!$build_os$ac_delim
9639
host_cpu!$host_cpu$ac_delim
9640
host_vendor!$host_vendor$ac_delim
9641
host_os!$host_os$ac_delim
9643
CFLAGS!$CFLAGS$ac_delim
9644
LDFLAGS!$LDFLAGS$ac_delim
9645
CPPFLAGS!$CPPFLAGS$ac_delim
9646
ac_ct_CC!$ac_ct_CC$ac_delim
9647
EXEEXT!$EXEEXT$ac_delim
9648
OBJEXT!$OBJEXT$ac_delim
9651
CXXFLAGS!$CXXFLAGS$ac_delim
9652
ac_ct_CXX!$ac_ct_CXX$ac_delim
9654
MKDEP!$MKDEP$ac_delim
9656
POSIX_SHELL!$POSIX_SHELL$ac_delim
9657
MKDEP_OPTIONS!$MKDEP_OPTIONS$ac_delim
9658
PKG_CONFIG!$PKG_CONFIG$ac_delim
9659
LIB_DIR!$LIB_DIR$ac_delim
9660
EXTRA_LIB_PATH!$EXTRA_LIB_PATH$ac_delim
9661
X11_INCLUDES!$X11_INCLUDES$ac_delim
9662
DEFINES!$DEFINES$ac_delim
9663
OPT_FLAGS!$OPT_FLAGS$ac_delim
9664
ARCH_FLAGS!$ARCH_FLAGS$ac_delim
9665
MKLIB_OPTIONS!$MKLIB_OPTIONS$ac_delim
9666
GL_LIB_NAME!$GL_LIB_NAME$ac_delim
9667
GLU_LIB_NAME!$GLU_LIB_NAME$ac_delim
9668
GLUT_LIB_NAME!$GLUT_LIB_NAME$ac_delim
9669
GLW_LIB_NAME!$GLW_LIB_NAME$ac_delim
9670
OSMESA_LIB_NAME!$OSMESA_LIB_NAME$ac_delim
9671
ASM_FLAGS!$ASM_FLAGS$ac_delim
9672
ASM_SOURCES!$ASM_SOURCES$ac_delim
9673
ASM_API!$ASM_API$ac_delim
9674
PIC_FLAGS!$PIC_FLAGS$ac_delim
9676
EGREP!$EGREP$ac_delim
9677
SRC_DIRS!$SRC_DIRS$ac_delim
9678
GLU_DIRS!$GLU_DIRS$ac_delim
9679
DRIVER_DIRS!$DRIVER_DIRS$ac_delim
9680
WINDOW_SYSTEM!$WINDOW_SYSTEM$ac_delim
9681
XMKMF!$XMKMF$ac_delim
9682
X_CFLAGS!$X_CFLAGS$ac_delim
9683
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
9684
X_LIBS!$X_LIBS$ac_delim
9685
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
9686
XLIBGL_CFLAGS!$XLIBGL_CFLAGS$ac_delim
9687
XLIBGL_LIBS!$XLIBGL_LIBS$ac_delim
9688
LIBDRM_CFLAGS!$LIBDRM_CFLAGS$ac_delim
9689
LIBDRM_LIBS!$LIBDRM_LIBS$ac_delim
9690
DRI2PROTO_CFLAGS!$DRI2PROTO_CFLAGS$ac_delim
9691
DRI2PROTO_LIBS!$DRI2PROTO_LIBS$ac_delim
9692
DRIGL_CFLAGS!$DRIGL_CFLAGS$ac_delim
9693
DRIGL_LIBS!$DRIGL_LIBS$ac_delim
9696
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9698
elif $ac_last_try; then
9699
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9700
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9701
{ (exit 1); exit 1; }; }
9703
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9707
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9708
if test -n "$ac_eof"; then
9709
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9710
ac_eof=`expr $ac_eof + 1`
9713
cat >>$CONFIG_STATUS <<_ACEOF
9714
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9715
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9718
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9719
s/^/s,@/; s/!/@,|#_!!_#|/
9722
s/'"$ac_delim"'$/,g/; t
9724
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9725
' >>$CONFIG_STATUS <conf$$subs.sed
9726
rm -f conf$$subs.sed
9727
cat >>$CONFIG_STATUS <<_ACEOF
9733
for ac_last_try in false false false false false :; do
9734
cat >conf$$subs.sed <<_ACEOF
9735
XCB_CFLAGS!$XCB_CFLAGS$ac_delim
9736
XCB_LIBS!$XCB_LIBS$ac_delim
9737
GL_LIB_DEPS!$GL_LIB_DEPS$ac_delim
9738
GL_PC_REQ_PRIV!$GL_PC_REQ_PRIV$ac_delim
9739
GL_PC_LIB_PRIV!$GL_PC_LIB_PRIV$ac_delim
9740
GL_PC_CFLAGS!$GL_PC_CFLAGS$ac_delim
9741
DRI_PC_REQ_PRIV!$DRI_PC_REQ_PRIV$ac_delim
9742
DRI_DRIVER_INSTALL_DIR!$DRI_DRIVER_INSTALL_DIR$ac_delim
9743
USING_EGL!$USING_EGL$ac_delim
9744
DRI_DIRS!$DRI_DIRS$ac_delim
9745
EXPAT_INCLUDES!$EXPAT_INCLUDES$ac_delim
9746
DRI_LIB_DEPS!$DRI_LIB_DEPS$ac_delim
9747
OSMESA_LIB!$OSMESA_LIB$ac_delim
9748
OSMESA_LIB_DEPS!$OSMESA_LIB_DEPS$ac_delim
9749
OSMESA_MESA_DEPS!$OSMESA_MESA_DEPS$ac_delim
9750
OSMESA_PC_REQ!$OSMESA_PC_REQ$ac_delim
9751
OSMESA_PC_LIB_PRIV!$OSMESA_PC_LIB_PRIV$ac_delim
9752
GLU_LIB_DEPS!$GLU_LIB_DEPS$ac_delim
9753
GLU_MESA_DEPS!$GLU_MESA_DEPS$ac_delim
9754
GLU_PC_REQ!$GLU_PC_REQ$ac_delim
9755
GLU_PC_REQ_PRIV!$GLU_PC_REQ_PRIV$ac_delim
9756
GLU_PC_LIB_PRIV!$GLU_PC_LIB_PRIV$ac_delim
9757
GLU_PC_CFLAGS!$GLU_PC_CFLAGS$ac_delim
9758
GLW_CFLAGS!$GLW_CFLAGS$ac_delim
9759
GLW_LIBS!$GLW_LIBS$ac_delim
9760
MOTIF_CONFIG!$MOTIF_CONFIG$ac_delim
9761
GLW_LIB_DEPS!$GLW_LIB_DEPS$ac_delim
9762
GLW_MESA_DEPS!$GLW_MESA_DEPS$ac_delim
9763
GLW_SOURCES!$GLW_SOURCES$ac_delim
9764
MOTIF_CFLAGS!$MOTIF_CFLAGS$ac_delim
9765
GLW_PC_REQ_PRIV!$GLW_PC_REQ_PRIV$ac_delim
9766
GLW_PC_LIB_PRIV!$GLW_PC_LIB_PRIV$ac_delim
9767
GLW_PC_CFLAGS!$GLW_PC_CFLAGS$ac_delim
9768
GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim
9769
GLUT_LIBS!$GLUT_LIBS$ac_delim
9770
GLUT_LIB_DEPS!$GLUT_LIB_DEPS$ac_delim
9771
GLUT_MESA_DEPS!$GLUT_MESA_DEPS$ac_delim
9772
GLUT_PC_REQ_PRIV!$GLUT_PC_REQ_PRIV$ac_delim
9773
GLUT_PC_LIB_PRIV!$GLUT_PC_LIB_PRIV$ac_delim
9774
GLUT_PC_CFLAGS!$GLUT_PC_CFLAGS$ac_delim
9775
APP_LIB_DEPS!$APP_LIB_DEPS$ac_delim
9776
PROGRAM_DIRS!$PROGRAM_DIRS$ac_delim
9777
LIBOBJS!$LIBOBJS$ac_delim
9778
LTLIBOBJS!$LTLIBOBJS$ac_delim
9781
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
9783
elif $ac_last_try; then
9784
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9785
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9786
{ (exit 1); exit 1; }; }
9788
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9792
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9793
if test -n "$ac_eof"; then
9794
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9795
ac_eof=`expr $ac_eof + 1`
9798
cat >>$CONFIG_STATUS <<_ACEOF
9799
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9800
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9803
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9804
s/^/s,@/; s/!/@,|#_!!_#|/
9807
s/'"$ac_delim"'$/,g/; t
9809
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9810
' >>$CONFIG_STATUS <conf$$subs.sed
9811
rm -f conf$$subs.sed
9812
cat >>$CONFIG_STATUS <<_ACEOF
9819
# VPATH may cause trouble with some makes, so we remove $(srcdir),
9820
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9821
# trailing colons and then remove the whole line if VPATH becomes empty
9822
# (actually we leave an empty line to preserve line numbers).
9823
if test "x$srcdir" = x.; then
9824
ac_vpsub='/^[ ]*VPATH[ ]*=/{
9828
s/^\([^=]*=[ ]*\):*/\1/
9834
cat >>$CONFIG_STATUS <<\_ACEOF
9835
fi # test -n "$CONFIG_FILES"
9838
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
9841
:[FHLC]) ac_mode=$ac_tag; continue;;
9843
case $ac_mode$ac_tag in
9845
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9846
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9847
{ (exit 1); exit 1; }; };;
9848
:[FH]-) ac_tag=-:-;;
9849
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9866
-) ac_f="$tmp/stdin";;
9867
*) # Look for the file first in the build tree, then in the source tree
9868
# (if the path is not absolute). The absolute path cannot be DOS-style,
9869
# because $ac_f cannot contain `:'.
9873
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9875
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9876
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9877
{ (exit 1); exit 1; }; };;
9879
ac_file_inputs="$ac_file_inputs $ac_f"
9882
# Let's still pretend it is `configure' which instantiates (i.e., don't
9883
# use $as_me), people would be surprised to read:
9884
# /* config.h. Generated by config.status. */
9885
configure_input="Generated from "`IFS=:
9886
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9887
if test x"$ac_file" != x-; then
9888
configure_input="$ac_file. $configure_input"
9889
{ echo "$as_me:$LINENO: creating $ac_file" >&5
9890
echo "$as_me: creating $ac_file" >&6;}
9894
*:-:* | *:-) cat >"$tmp/stdin";;
9899
ac_dir=`$as_dirname -- "$ac_file" ||
9900
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9901
X"$ac_file" : 'X\(//\)[^/]' \| \
9902
X"$ac_file" : 'X\(//\)$' \| \
9903
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9905
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9924
-*) as_dir=./$as_dir;;
9926
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9930
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9931
*) as_qdir=$as_dir;;
9933
as_dirs="'$as_qdir' $as_dirs"
9934
as_dir=`$as_dirname -- "$as_dir" ||
9935
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9936
X"$as_dir" : 'X\(//\)[^/]' \| \
9937
X"$as_dir" : 'X\(//\)$' \| \
9938
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9940
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9957
test -d "$as_dir" && break
9959
test -z "$as_dirs" || eval "mkdir $as_dirs"
9960
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9961
echo "$as_me: error: cannot create directory $as_dir" >&2;}
9962
{ (exit 1); exit 1; }; }; }
9966
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9968
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9969
# A ".." for each directory in $ac_dir_suffix.
9970
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9971
case $ac_top_builddir_sub in
9972
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9973
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9976
ac_abs_top_builddir=$ac_pwd
9977
ac_abs_builddir=$ac_pwd$ac_dir_suffix
9978
# for backward compatibility:
9979
ac_top_builddir=$ac_top_build_prefix
9982
.) # We are building in place.
9984
ac_top_srcdir=$ac_top_builddir_sub
9985
ac_abs_top_srcdir=$ac_pwd ;;
9986
[\\/]* | ?:[\\/]* ) # Absolute name.
9987
ac_srcdir=$srcdir$ac_dir_suffix;
9988
ac_top_srcdir=$srcdir
9989
ac_abs_top_srcdir=$srcdir ;;
9991
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9992
ac_top_srcdir=$ac_top_build_prefix$srcdir
9993
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9995
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10006
cat >>$CONFIG_STATUS <<\_ACEOF
10007
# If the template does not know about datarootdir, expand it.
10008
# FIXME: This hack should be removed a few years after 2.60.
10009
ac_datarootdir_hack=; ac_datarootdir_seen=
10011
case `sed -n '/datarootdir/ {
10020
' $ac_file_inputs` in
10021
*datarootdir*) ac_datarootdir_seen=yes;;
10022
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10023
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10024
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10026
cat >>$CONFIG_STATUS <<_ACEOF
10027
ac_datarootdir_hack='
10028
s&@datadir@&$datadir&g
10029
s&@docdir@&$docdir&g
10030
s&@infodir@&$infodir&g
10031
s&@localedir@&$localedir&g
10032
s&@mandir@&$mandir&g
10033
s&\\\${datarootdir}&$datarootdir&g' ;;
10037
# Neutralize VPATH when `$srcdir' = `.'.
10038
# Shell code in configure.ac might set extrasub.
10039
# FIXME: do we really want to maintain this feature?
10040
cat >>$CONFIG_STATUS <<_ACEOF
10044
cat >>$CONFIG_STATUS <<\_ACEOF
10046
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10047
s&@configure_input@&$configure_input&;t t
10048
s&@top_builddir@&$ac_top_builddir_sub&;t t
10049
s&@srcdir@&$ac_srcdir&;t t
10050
s&@abs_srcdir@&$ac_abs_srcdir&;t t
10051
s&@top_srcdir@&$ac_top_srcdir&;t t
10052
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10053
s&@builddir@&$ac_builddir&;t t
10054
s&@abs_builddir@&$ac_abs_builddir&;t t
10055
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10056
$ac_datarootdir_hack
10057
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10059
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10060
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10061
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10062
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10063
which seems to be undefined. Please make sure it is defined." >&5
10064
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10065
which seems to be undefined. Please make sure it is defined." >&2;}
10069
-) cat "$tmp/out"; rm -f "$tmp/out";;
10070
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10075
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10076
echo "$as_me: executing $ac_file commands" >&6;}
10081
case $ac_file$ac_mode in
10083
if test -f configs/current || test -L configs/current; then
10084
rm -f configs/current
10086
ln -s autoconf configs/current
10093
{ (exit 0); exit 0; }
10095
chmod +x $CONFIG_STATUS
10096
ac_clean_files=$ac_clean_files_save
10099
# configure is writing to config.log, and then calls config.status.
10100
# config.status does its own redirection, appending to config.log.
10101
# Unfortunately, on DOS this fails, as config.log is still kept open
10102
# by configure, so config.status won't be able to write to it; its
10103
# output is simply discarded. So we exec the FD to /dev/null,
10104
# effectively closing config.log, so it can be properly (re)opened and
10105
# appended to by config.status. When coming back to configure, we
10106
# need to make the FD available again.
10107
if test "$no_create" != yes; then
10109
ac_config_status_args=
10110
test "$silent" = yes &&
10111
ac_config_status_args="$ac_config_status_args --quiet"
10113
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10115
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10116
# would make configure fail if this is the last instruction.
10117
$ac_cs_success || { (exit 1); exit 1; }
10122
echo " prefix: $prefix"
10123
echo " exec_prefix: $exec_prefix"
10124
echo " libdir: $libdir"
10125
echo " includedir: $includedir"
10128
echo " Driver: $mesa_driver"
10129
if echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1; then
10130
echo " OSMesa: lib$OSMESA_LIB"
10134
if test "$mesa_driver" = dri; then
10135
# cleanup the drivers var
10136
dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
10137
if test "x$DRI_DIRS" = x; then
10138
echo " DRI drivers: no"
10140
echo " DRI drivers: $dri_dirs"
10142
echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR"
10144
echo " Use XCB: $enable_xcb"
10147
echo " Shared libs: $enable_shared"
10148
echo " Static libs: $enable_static"
10149
echo " GLU: $enable_glu"
10150
echo " GLw: $enable_glw (Motif: $enable_motif)"
10151
echo " glut: $enable_glut"
10153
# cleanup the programs var for display
10154
program_dirs=`echo $PROGRAM_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
10155
if test "x$program_dirs" = x; then
10158
echo " Demos: $program_dirs"
10161
# cleanup the CFLAGS/CXXFLAGS/DEFINES vars
10162
cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
10163
$SED 's/^ *//;s/ */ /;s/ *$//'`
10164
cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
10165
$SED 's/^ *//;s/ */ /;s/ *$//'`
10166
defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/ */ /;s/ *$//'`
10168
echo " CFLAGS: $cflags"
10169
echo " CXXFLAGS: $cxxflags"
10170
echo " Macros: $defines"
10173
echo " Run '${MAKE-make}' to build Mesa"