1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.57. |
4 |
# |
5 |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 |
# Free Software Foundation, Inc. |
7 |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
9 |
## --------------------- ## |
10 |
## M4sh Initialization. ## |
11 |
## --------------------- ## |
12 |
|
13 |
# Be Bourne compatible |
14 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15 |
emulate sh |
16 |
NULLCMD=: |
17 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 |
# is contrary to our usage. Disable this feature. |
19 |
alias -g '${1+"$@"}'='"$@"' |
20 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 |
set -o posix |
22 |
fi |
23 |
|
24 |
# Support unset when possible. |
25 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
26 |
as_unset=unset |
27 |
else |
28 |
as_unset=false |
29 |
fi |
30 |
|
31 |
|
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
33 |
$as_unset ENV MAIL MAILPATH |
34 |
PS1='$ ' |
35 |
PS2='> ' |
36 |
PS4='+ ' |
37 |
|
38 |
# NLS nuisances. |
39 |
for as_var in \ |
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 |
LC_TELEPHONE LC_TIME |
43 |
do |
44 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 |
eval $as_var=C; export $as_var |
46 |
else |
47 |
$as_unset $as_var |
48 |
fi |
49 |
done |
50 |
|
51 |
# Required to use basename. |
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
as_expr=expr |
54 |
else |
55 |
as_expr=false |
56 |
fi |
57 |
|
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
as_basename=basename |
60 |
else |
61 |
as_basename=false |
62 |
fi |
63 |
|
64 |
|
65 |
# Name of the executable. |
66 |
as_me=`$as_basename "$0" || |
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
X"$0" : 'X\(//\)$' \| \ |
69 |
X"$0" : 'X\(/\)$' \| \ |
70 |
. : '\(.\)' 2>/dev/null || |
71 |
echo X/"$0" | |
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
s/.*/./; q'` |
76 |
|
77 |
|
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
79 |
# Avoid depending upon Character Ranges. |
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 |
as_cr_digits='0123456789' |
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 |
|
86 |
# The user is always right. |
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
88 |
echo "#! /bin/sh" >conf$$.sh |
89 |
echo "exit 0" >>conf$$.sh |
90 |
chmod +x conf$$.sh |
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 |
PATH_SEPARATOR=';' |
93 |
else |
94 |
PATH_SEPARATOR=: |
95 |
fi |
96 |
rm -f conf$$.sh |
97 |
fi |
98 |
|
99 |
|
100 |
as_lineno_1=$LINENO |
101 |
as_lineno_2=$LINENO |
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 |
# Find who we are. Look in the path if we contain no path at all |
106 |
# relative or not. |
107 |
case $0 in |
108 |
*[\\/]* ) as_myself=$0 ;; |
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 |
for as_dir in $PATH |
111 |
do |
112 |
IFS=$as_save_IFS |
113 |
test -z "$as_dir" && as_dir=. |
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 |
done |
116 |
|
117 |
;; |
118 |
esac |
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
120 |
# in which case we are not to be found in the path. |
121 |
if test "x$as_myself" = x; then |
122 |
as_myself=$0 |
123 |
fi |
124 |
if test ! -f "$as_myself"; then |
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 |
{ (exit 1); exit 1; }; } |
127 |
fi |
128 |
case $CONFIG_SHELL in |
129 |
'') |
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 |
do |
133 |
IFS=$as_save_IFS |
134 |
test -z "$as_dir" && as_dir=. |
135 |
for as_base in sh bash ksh sh5; do |
136 |
case $as_dir in |
137 |
/*) |
138 |
if ("$as_dir/$as_base" -c ' |
139 |
as_lineno_1=$LINENO |
140 |
as_lineno_2=$LINENO |
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 |
CONFIG_SHELL=$as_dir/$as_base |
147 |
export CONFIG_SHELL |
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 |
fi;; |
150 |
esac |
151 |
done |
152 |
done |
153 |
;; |
154 |
esac |
155 |
|
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
158 |
# line-number line before each line; the second 'sed' does the real |
159 |
# work. The second script uses 'N' to pair each line-number line |
160 |
# with the numbered line, and appends trailing '-' during |
161 |
# substitution so that $LINENO is not a special case at line end. |
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 |
sed '=' <$as_myself | |
165 |
sed ' |
166 |
N |
167 |
s,$,-, |
168 |
: loop |
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 |
t loop |
171 |
s,-$,, |
172 |
s,^['$as_cr_digits']*\n,, |
173 |
' >$as_me.lineno && |
174 |
chmod +x $as_me.lineno || |
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 |
{ (exit 1); exit 1; }; } |
177 |
|
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
179 |
# (the dirname of $[0] is not the place where we might find the |
180 |
# original and so on. Autoconf is especially sensible to this). |
181 |
. ./$as_me.lineno |
182 |
# Exit status is that of the last command. |
183 |
exit |
184 |
} |
185 |
|
186 |
|
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
189 |
' ECHO_T=' ' ;; |
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 |
esac |
193 |
|
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
195 |
as_expr=expr |
196 |
else |
197 |
as_expr=false |
198 |
fi |
199 |
|
200 |
rm -f conf$$ conf$$.exe conf$$.file |
201 |
echo >conf$$.file |
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 |
if test -f conf$$.exe; then |
206 |
# Don't use ln at all; we don't have any links |
207 |
as_ln_s='cp -p' |
208 |
else |
209 |
as_ln_s='ln -s' |
210 |
fi |
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
212 |
as_ln_s=ln |
213 |
else |
214 |
as_ln_s='cp -p' |
215 |
fi |
216 |
rm -f conf$$ conf$$.exe conf$$.file |
217 |
|
218 |
if mkdir -p . 2>/dev/null; then |
219 |
as_mkdir_p=: |
220 |
else |
221 |
as_mkdir_p=false |
222 |
fi |
223 |
|
224 |
as_executable_p="test -f" |
225 |
|
226 |
# Sed expression to map a string onto a valid CPP name. |
227 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
228 |
|
229 |
# Sed expression to map a string onto a valid variable name. |
230 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
231 |
|
232 |
|
233 |
# IFS |
234 |
# We need space, tab and new line, in precisely that order. |
235 |
as_nl=' |
236 |
' |
237 |
IFS=" $as_nl" |
238 |
|
239 |
# CDPATH. |
240 |
$as_unset CDPATH |
241 |
|
242 |
|
243 |
# Name of the host. |
244 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 |
# so uname gets run too. |
246 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 |
|
248 |
exec 6>&1 |
249 |
|
250 |
# |
251 |
# Initializations. |
252 |
# |
253 |
ac_default_prefix=/usr/local |
254 |
ac_config_libobj_dir=. |
255 |
cross_compiling=no |
256 |
subdirs= |
257 |
MFLAGS= |
258 |
MAKEFLAGS= |
259 |
SHELL=${CONFIG_SHELL-/bin/sh} |
260 |
|
261 |
# Maximum number of lines to put in a shell here document. |
262 |
# This variable seems obsolete. It should probably be removed, and |
263 |
# only ac_max_sed_lines should be used. |
264 |
: ${ac_max_here_lines=38} |
265 |
|
266 |
# Identity of this package. |
267 |
PACKAGE_NAME= |
268 |
PACKAGE_TARNAME= |
269 |
PACKAGE_VERSION= |
270 |
PACKAGE_STRING= |
271 |
PACKAGE_BUGREPORT= |
272 |
|
273 |
ac_unique_file="back.make.in" |
274 |
# Factoring default headers for most tests. |
275 |
ac_includes_default="\ |
276 |
#include <stdio.h> |
277 |
#if HAVE_SYS_TYPES_H |
278 |
# include <sys/types.h> |
279 |
#endif |
280 |
#if HAVE_SYS_STAT_H |
281 |
# include <sys/stat.h> |
282 |
#endif |
283 |
#if STDC_HEADERS |
284 |
# include <stdlib.h> |
285 |
# include <stddef.h> |
286 |
#else |
287 |
# if HAVE_STDLIB_H |
288 |
# include <stdlib.h> |
289 |
# endif |
290 |
#endif |
291 |
#if HAVE_STRING_H |
292 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
293 |
# include <memory.h> |
294 |
# endif |
295 |
# include <string.h> |
296 |
#endif |
297 |
#if HAVE_STRINGS_H |
298 |
# include <strings.h> |
299 |
#endif |
300 |
#if HAVE_INTTYPES_H |
301 |
# include <inttypes.h> |
302 |
#else |
303 |
# if HAVE_STDINT_H |
304 |
# include <stdint.h> |
305 |
# endif |
306 |
#endif |
307 |
#if HAVE_UNISTD_H |
308 |
# include <unistd.h> |
309 |
#endif" |
310 |
|
311 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS WITH_XFT WITH_GLX WITH_WRASTER GRAPHIC_LIBS GRAPHIC_CFLAGS GRAPHIC_LFLAGS BUILD_SERVER BUILD_GRAPHICS BACKEND_NAME LIBOBJS LTLIBOBJS' |
312 |
ac_subst_files='' |
313 |
|
314 |
# Initialize some variables set by options. |
315 |
ac_init_help= |
316 |
ac_init_version=false |
317 |
# The variables have the same names as the options, with |
318 |
# dashes changed to underlines. |
319 |
cache_file=/dev/null |
320 |
exec_prefix=NONE |
321 |
no_create= |
322 |
no_recursion= |
323 |
prefix=NONE |
324 |
program_prefix=NONE |
325 |
program_suffix=NONE |
326 |
program_transform_name=s,x,x, |
327 |
silent= |
328 |
site= |
329 |
srcdir= |
330 |
verbose= |
331 |
x_includes=NONE |
332 |
x_libraries=NONE |
333 |
|
334 |
# Installation directory options. |
335 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
336 |
# and all the variables that are supposed to be based on exec_prefix |
337 |
# by default will actually change. |
338 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
339 |
bindir='${exec_prefix}/bin' |
340 |
sbindir='${exec_prefix}/sbin' |
341 |
libexecdir='${exec_prefix}/libexec' |
342 |
datadir='${prefix}/share' |
343 |
sysconfdir='${prefix}/etc' |
344 |
sharedstatedir='${prefix}/com' |
345 |
localstatedir='${prefix}/var' |
346 |
libdir='${exec_prefix}/lib' |
347 |
includedir='${prefix}/include' |
348 |
oldincludedir='/usr/include' |
349 |
infodir='${prefix}/info' |
350 |
mandir='${prefix}/man' |
351 |
|
352 |
ac_prev= |
353 |
for ac_option |
354 |
do |
355 |
# If the previous option needs an argument, assign it. |
356 |
if test -n "$ac_prev"; then |
357 |
eval "$ac_prev=\$ac_option" |
358 |
ac_prev= |
359 |
continue |
360 |
fi |
361 |
|
362 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
363 |
|
364 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
365 |
|
366 |
case $ac_option in |
367 |
|
368 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
369 |
ac_prev=bindir ;; |
370 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
371 |
bindir=$ac_optarg ;; |
372 |
|
373 |
-build | --build | --buil | --bui | --bu) |
374 |
ac_prev=build_alias ;; |
375 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
376 |
build_alias=$ac_optarg ;; |
377 |
|
378 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
379 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
380 |
ac_prev=cache_file ;; |
381 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
382 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
383 |
cache_file=$ac_optarg ;; |
384 |
|
385 |
--config-cache | -C) |
386 |
cache_file=config.cache ;; |
387 |
|
388 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
389 |
ac_prev=datadir ;; |
390 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
391 |
| --da=*) |
392 |
datadir=$ac_optarg ;; |
393 |
|
394 |
-disable-* | --disable-*) |
395 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
396 |
# Reject names that are not valid shell variable names. |
397 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
398 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
399 |
{ (exit 1); exit 1; }; } |
400 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
401 |
eval "enable_$ac_feature=no" ;; |
402 |
|
403 |
-enable-* | --enable-*) |
404 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
405 |
# Reject names that are not valid shell variable names. |
406 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
407 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
408 |
{ (exit 1); exit 1; }; } |
409 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
410 |
case $ac_option in |
411 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
412 |
*) ac_optarg=yes ;; |
413 |
esac |
414 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
415 |
|
416 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
417 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
418 |
| --exec | --exe | --ex) |
419 |
ac_prev=exec_prefix ;; |
420 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
421 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
422 |
| --exec=* | --exe=* | --ex=*) |
423 |
exec_prefix=$ac_optarg ;; |
424 |
|
425 |
-gas | --gas | --ga | --g) |
426 |
# Obsolete; use --with-gas. |
427 |
with_gas=yes ;; |
428 |
|
429 |
-help | --help | --hel | --he | -h) |
430 |
ac_init_help=long ;; |
431 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
432 |
ac_init_help=recursive ;; |
433 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
434 |
ac_init_help=short ;; |
435 |
|
436 |
-host | --host | --hos | --ho) |
437 |
ac_prev=host_alias ;; |
438 |
-host=* | --host=* | --hos=* | --ho=*) |
439 |
host_alias=$ac_optarg ;; |
440 |
|
441 |
-includedir | --includedir | --includedi | --included | --include \ |
442 |
| --includ | --inclu | --incl | --inc) |
443 |
ac_prev=includedir ;; |
444 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
445 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
446 |
includedir=$ac_optarg ;; |
447 |
|
448 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
449 |
ac_prev=infodir ;; |
450 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
451 |
infodir=$ac_optarg ;; |
452 |
|
453 |
-libdir | --libdir | --libdi | --libd) |
454 |
ac_prev=libdir ;; |
455 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
456 |
libdir=$ac_optarg ;; |
457 |
|
458 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
459 |
| --libexe | --libex | --libe) |
460 |
ac_prev=libexecdir ;; |
461 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
462 |
| --libexe=* | --libex=* | --libe=*) |
463 |
libexecdir=$ac_optarg ;; |
464 |
|
465 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
466 |
| --localstate | --localstat | --localsta | --localst \ |
467 |
| --locals | --local | --loca | --loc | --lo) |
468 |
ac_prev=localstatedir ;; |
469 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
470 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
471 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
472 |
localstatedir=$ac_optarg ;; |
473 |
|
474 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
475 |
ac_prev=mandir ;; |
476 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
477 |
mandir=$ac_optarg ;; |
478 |
|
479 |
-nfp | --nfp | --nf) |
480 |
# Obsolete; use --without-fp. |
481 |
with_fp=no ;; |
482 |
|
483 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
484 |
| --no-cr | --no-c | -n) |
485 |
no_create=yes ;; |
486 |
|
487 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
488 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
489 |
no_recursion=yes ;; |
490 |
|
491 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
492 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
493 |
| --oldin | --oldi | --old | --ol | --o) |
494 |
ac_prev=oldincludedir ;; |
495 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
496 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
497 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
498 |
oldincludedir=$ac_optarg ;; |
499 |
|
500 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
501 |
ac_prev=prefix ;; |
502 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
503 |
prefix=$ac_optarg ;; |
504 |
|
505 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
506 |
| --program-pre | --program-pr | --program-p) |
507 |
ac_prev=program_prefix ;; |
508 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
509 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
510 |
program_prefix=$ac_optarg ;; |
511 |
|
512 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
513 |
| --program-suf | --program-su | --program-s) |
514 |
ac_prev=program_suffix ;; |
515 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
516 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
517 |
program_suffix=$ac_optarg ;; |
518 |
|
519 |
-program-transform-name | --program-transform-name \ |
520 |
| --program-transform-nam | --program-transform-na \ |
521 |
| --program-transform-n | --program-transform- \ |
522 |
| --program-transform | --program-transfor \ |
523 |
| --program-transfo | --program-transf \ |
524 |
| --program-trans | --program-tran \ |
525 |
| --progr-tra | --program-tr | --program-t) |
526 |
ac_prev=program_transform_name ;; |
527 |
-program-transform-name=* | --program-transform-name=* \ |
528 |
| --program-transform-nam=* | --program-transform-na=* \ |
529 |
| --program-transform-n=* | --program-transform-=* \ |
530 |
| --program-transform=* | --program-transfor=* \ |
531 |
| --program-transfo=* | --program-transf=* \ |
532 |
| --program-trans=* | --program-tran=* \ |
533 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
534 |
program_transform_name=$ac_optarg ;; |
535 |
|
536 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
537 |
| -silent | --silent | --silen | --sile | --sil) |
538 |
silent=yes ;; |
539 |
|
540 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
541 |
ac_prev=sbindir ;; |
542 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
543 |
| --sbi=* | --sb=*) |
544 |
sbindir=$ac_optarg ;; |
545 |
|
546 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
547 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
548 |
| --sharedst | --shareds | --shared | --share | --shar \ |
549 |
| --sha | --sh) |
550 |
ac_prev=sharedstatedir ;; |
551 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
552 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
553 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
554 |
| --sha=* | --sh=*) |
555 |
sharedstatedir=$ac_optarg ;; |
556 |
|
557 |
-site | --site | --sit) |
558 |
ac_prev=site ;; |
559 |
-site=* | --site=* | --sit=*) |
560 |
site=$ac_optarg ;; |
561 |
|
562 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
563 |
ac_prev=srcdir ;; |
564 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
565 |
srcdir=$ac_optarg ;; |
566 |
|
567 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
568 |
| --syscon | --sysco | --sysc | --sys | --sy) |
569 |
ac_prev=sysconfdir ;; |
570 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
571 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
572 |
sysconfdir=$ac_optarg ;; |
573 |
|
574 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
575 |
ac_prev=target_alias ;; |
576 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
577 |
target_alias=$ac_optarg ;; |
578 |
|
579 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
580 |
verbose=yes ;; |
581 |
|
582 |
-version | --version | --versio | --versi | --vers | -V) |
583 |
ac_init_version=: ;; |
584 |
|
585 |
-with-* | --with-*) |
586 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
587 |
# Reject names that are not valid shell variable names. |
588 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
589 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
590 |
{ (exit 1); exit 1; }; } |
591 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
592 |
case $ac_option in |
593 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
594 |
*) ac_optarg=yes ;; |
595 |
esac |
596 |
eval "with_$ac_package='$ac_optarg'" ;; |
597 |
|
598 |
-without-* | --without-*) |
599 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
600 |
# Reject names that are not valid shell variable names. |
601 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
602 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
603 |
{ (exit 1); exit 1; }; } |
604 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
605 |
eval "with_$ac_package=no" ;; |
606 |
|
607 |
--x) |
608 |
# Obsolete; use --with-x. |
609 |
with_x=yes ;; |
610 |
|
611 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
612 |
| --x-incl | --x-inc | --x-in | --x-i) |
613 |
ac_prev=x_includes ;; |
614 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
615 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
616 |
x_includes=$ac_optarg ;; |
617 |
|
618 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
619 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
620 |
ac_prev=x_libraries ;; |
621 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
622 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
623 |
x_libraries=$ac_optarg ;; |
624 |
|
625 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
626 |
Try \`$0 --help' for more information." >&2 |
627 |
{ (exit 1); exit 1; }; } |
628 |
;; |
629 |
|
630 |
*=*) |
631 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
632 |
# Reject names that are not valid shell variable names. |
633 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
634 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
635 |
{ (exit 1); exit 1; }; } |
636 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
637 |
eval "$ac_envvar='$ac_optarg'" |
638 |
export $ac_envvar ;; |
639 |
|
640 |
*) |
641 |
# FIXME: should be removed in autoconf 3.0. |
642 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
643 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
644 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
645 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
646 |
;; |
647 |
|
648 |
esac |
649 |
done |
650 |
|
651 |
if test -n "$ac_prev"; then |
652 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
653 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
654 |
{ (exit 1); exit 1; }; } |
655 |
fi |
656 |
|
657 |
# Be sure to have absolute paths. |
658 |
for ac_var in exec_prefix prefix |
659 |
do |
660 |
eval ac_val=$`echo $ac_var` |
661 |
case $ac_val in |
662 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
663 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
664 |
{ (exit 1); exit 1; }; };; |
665 |
esac |
666 |
done |
667 |
|
668 |
# Be sure to have absolute paths. |
669 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
670 |
localstatedir libdir includedir oldincludedir infodir mandir |
671 |
do |
672 |
eval ac_val=$`echo $ac_var` |
673 |
case $ac_val in |
674 |
[\\/$]* | ?:[\\/]* ) ;; |
675 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
676 |
{ (exit 1); exit 1; }; };; |
677 |
esac |
678 |
done |
679 |
|
680 |
# There might be people who depend on the old broken behavior: `$host' |
681 |
# used to hold the argument of --host etc. |
682 |
# FIXME: To remove some day. |
683 |
build=$build_alias |
684 |
host=$host_alias |
685 |
target=$target_alias |
686 |
|
687 |
# FIXME: To remove some day. |
688 |
if test "x$host_alias" != x; then |
689 |
if test "x$build_alias" = x; then |
690 |
cross_compiling=maybe |
691 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
692 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
693 |
elif test "x$build_alias" != "x$host_alias"; then |
694 |
cross_compiling=yes |
695 |
fi |
696 |
fi |
697 |
|
698 |
ac_tool_prefix= |
699 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
700 |
|
701 |
test "$silent" = yes && exec 6>/dev/null |
702 |
|
703 |
|
704 |
# Find the source files, if location was not specified. |
705 |
if test -z "$srcdir"; then |
706 |
ac_srcdir_defaulted=yes |
707 |
# Try the directory containing this script, then its parent. |
708 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
709 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
710 |
X"$0" : 'X\(//\)[^/]' \| \ |
711 |
X"$0" : 'X\(//\)$' \| \ |
712 |
X"$0" : 'X\(/\)' \| \ |
713 |
. : '\(.\)' 2>/dev/null || |
714 |
echo X"$0" | |
715 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
716 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
717 |
/^X\(\/\/\)$/{ s//\1/; q; } |
718 |
/^X\(\/\).*/{ s//\1/; q; } |
719 |
s/.*/./; q'` |
720 |
srcdir=$ac_confdir |
721 |
if test ! -r $srcdir/$ac_unique_file; then |
722 |
srcdir=.. |
723 |
fi |
724 |
else |
725 |
ac_srcdir_defaulted=no |
726 |
fi |
727 |
if test ! -r $srcdir/$ac_unique_file; then |
728 |
if test "$ac_srcdir_defaulted" = yes; then |
729 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
730 |
{ (exit 1); exit 1; }; } |
731 |
else |
732 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
733 |
{ (exit 1); exit 1; }; } |
734 |
fi |
735 |
fi |
736 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
737 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
738 |
{ (exit 1); exit 1; }; } |
739 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
740 |
ac_env_build_alias_set=${build_alias+set} |
741 |
ac_env_build_alias_value=$build_alias |
742 |
ac_cv_env_build_alias_set=${build_alias+set} |
743 |
ac_cv_env_build_alias_value=$build_alias |
744 |
ac_env_host_alias_set=${host_alias+set} |
745 |
ac_env_host_alias_value=$host_alias |
746 |
ac_cv_env_host_alias_set=${host_alias+set} |
747 |
ac_cv_env_host_alias_value=$host_alias |
748 |
ac_env_target_alias_set=${target_alias+set} |
749 |
ac_env_target_alias_value=$target_alias |
750 |
ac_cv_env_target_alias_set=${target_alias+set} |
751 |
ac_cv_env_target_alias_value=$target_alias |
752 |
ac_env_CC_set=${CC+set} |
753 |
ac_env_CC_value=$CC |
754 |
ac_cv_env_CC_set=${CC+set} |
755 |
ac_cv_env_CC_value=$CC |
756 |
ac_env_CFLAGS_set=${CFLAGS+set} |
757 |
ac_env_CFLAGS_value=$CFLAGS |
758 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
759 |
ac_cv_env_CFLAGS_value=$CFLAGS |
760 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
761 |
ac_env_LDFLAGS_value=$LDFLAGS |
762 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
763 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
764 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
765 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
766 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
768 |
ac_env_CPP_set=${CPP+set} |
769 |
ac_env_CPP_value=$CPP |
770 |
ac_cv_env_CPP_set=${CPP+set} |
771 |
ac_cv_env_CPP_value=$CPP |
772 |
|
773 |
# |
774 |
# Report the --help message. |
775 |
# |
776 |
if test "$ac_init_help" = "long"; then |
777 |
# Omit some internal or obsolete options to make the list less imposing. |
778 |
# This message is too long to be a string in the A/UX 3.1 sh. |
779 |
cat <<_ACEOF |
780 |
\`configure' configures this package to adapt to many kinds of systems. |
781 |
|
782 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
783 |
|
784 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
785 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
786 |
|
787 |
Defaults for the options are specified in brackets. |
788 |
|
789 |
Configuration: |
790 |
-h, --help display this help and exit |
791 |
--help=short display options specific to this package |
792 |
--help=recursive display the short help of all the included packages |
793 |
-V, --version display version information and exit |
794 |
-q, --quiet, --silent do not print \`checking...' messages |
795 |
--cache-file=FILE cache test results in FILE [disabled] |
796 |
-C, --config-cache alias for \`--cache-file=config.cache' |
797 |
-n, --no-create do not create output files |
798 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
799 |
|
800 |
_ACEOF |
801 |
|
802 |
cat <<_ACEOF |
803 |
Installation directories: |
804 |
--prefix=PREFIX install architecture-independent files in PREFIX |
805 |
[$ac_default_prefix] |
806 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
807 |
[PREFIX] |
808 |
|
809 |
By default, \`make install' will install all the files in |
810 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
811 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
812 |
for instance \`--prefix=\$HOME'. |
813 |
|
814 |
For better control, use the options below. |
815 |
|
816 |
Fine tuning of the installation directories: |
817 |
--bindir=DIR user executables [EPREFIX/bin] |
818 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
819 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
820 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
821 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
822 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
823 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
824 |
--libdir=DIR object code libraries [EPREFIX/lib] |
825 |
--includedir=DIR C header files [PREFIX/include] |
826 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
827 |
--infodir=DIR info documentation [PREFIX/info] |
828 |
--mandir=DIR man documentation [PREFIX/man] |
829 |
_ACEOF |
830 |
|
831 |
cat <<\_ACEOF |
832 |
|
833 |
X features: |
834 |
--x-includes=DIR X include files are in DIR |
835 |
--x-libraries=DIR X library files are in DIR |
836 |
|
837 |
System types: |
838 |
--build=BUILD configure for building on BUILD [guessed] |
839 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
840 |
--target=TARGET configure for building compilers for TARGET [HOST] |
841 |
_ACEOF |
842 |
fi |
843 |
|
844 |
if test -n "$ac_init_help"; then |
845 |
|
846 |
cat <<\_ACEOF |
847 |
|
848 |
Optional Features: |
849 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
850 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
851 |
--disable-glx Disable GLX support |
852 |
--disable-xim Disable XIM support |
853 |
--enable-server=SRV Build server type: x11, win32 |
854 |
--enable-graphics=GPH Build graphics: xlib, xdps, winlib, art |
855 |
|
856 |
Optional Packages: |
857 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
858 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
859 |
--with-wraster=PREFIX get-wraster-flags directory prefix |
860 |
--with-library-flags=fg Library flags for libraries |
861 |
--with-include-flags=fg Include flags |
862 |
--with-x use the X Window System |
863 |
--with-jpeg-library=DIR JPEG library file are in DIR |
864 |
--with-jpeg-include=DIR JPEG include files are in DIR |
865 |
--with-tiff-library=DIR TIFF library file are in DIR |
866 |
--with-tiff-include=DIR TIFF include files are in DIR |
867 |
--with-name=PREFIX Set the name of the backend (def=back) |
868 |
|
869 |
Some influential environment variables: |
870 |
CC C compiler command |
871 |
CFLAGS C compiler flags |
872 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
873 |
nonstandard directory <lib dir> |
874 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
875 |
headers in a nonstandard directory <include dir> |
876 |
CPP C preprocessor |
877 |
|
878 |
Use these variables to override the choices made by `configure' or to help |
879 |
it to find libraries and programs with nonstandard names/locations. |
880 |
|
881 |
_ACEOF |
882 |
fi |
883 |
|
884 |
if test "$ac_init_help" = "recursive"; then |
885 |
# If there are subdirs, report their specific --help. |
886 |
ac_popdir=`pwd` |
887 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
888 |
test -d $ac_dir || continue |
889 |
ac_builddir=. |
890 |
|
891 |
if test "$ac_dir" != .; then |
892 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
893 |
# A "../" for each directory in $ac_dir_suffix. |
894 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
895 |
else |
896 |
ac_dir_suffix= ac_top_builddir= |
897 |
fi |
898 |
|
899 |
case $srcdir in |
900 |
.) # No --srcdir option. We are building in place. |
901 |
ac_srcdir=. |
902 |
if test -z "$ac_top_builddir"; then |
903 |
ac_top_srcdir=. |
904 |
else |
905 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
906 |
fi ;; |
907 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
908 |
ac_srcdir=$srcdir$ac_dir_suffix; |
909 |
ac_top_srcdir=$srcdir ;; |
910 |
*) # Relative path. |
911 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
912 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
913 |
esac |
914 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
915 |
# absolute. |
916 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
917 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
918 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
919 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
920 |
|
921 |
cd $ac_dir |
922 |
# Check for guested configure; otherwise get Cygnus style configure. |
923 |
if test -f $ac_srcdir/configure.gnu; then |
924 |
echo |
925 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
926 |
elif test -f $ac_srcdir/configure; then |
927 |
echo |
928 |
$SHELL $ac_srcdir/configure --help=recursive |
929 |
elif test -f $ac_srcdir/configure.ac || |
930 |
test -f $ac_srcdir/configure.in; then |
931 |
echo |
932 |
$ac_configure --help |
933 |
else |
934 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
935 |
fi |
936 |
cd $ac_popdir |
937 |
done |
938 |
fi |
939 |
|
940 |
test -n "$ac_init_help" && exit 0 |
941 |
if $ac_init_version; then |
942 |
cat <<\_ACEOF |
943 |
|
944 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
945 |
Free Software Foundation, Inc. |
946 |
This configure script is free software; the Free Software Foundation |
947 |
gives unlimited permission to copy, distribute and modify it. |
948 |
_ACEOF |
949 |
exit 0 |
950 |
fi |
951 |
exec 5>config.log |
952 |
cat >&5 <<_ACEOF |
953 |
This file contains any messages produced by compilers while |
954 |
running configure, to aid debugging if configure makes a mistake. |
955 |
|
956 |
It was created by $as_me, which was |
957 |
generated by GNU Autoconf 2.57. Invocation command line was |
958 |
|
959 |
$ $0 $@ |
960 |
|
961 |
_ACEOF |
962 |
{ |
963 |
cat <<_ASUNAME |
964 |
## --------- ## |
965 |
## Platform. ## |
966 |
## --------- ## |
967 |
|
968 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
969 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
970 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
971 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
972 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
973 |
|
974 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
975 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
976 |
|
977 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
978 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
979 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
980 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
981 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
982 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
983 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
984 |
|
985 |
_ASUNAME |
986 |
|
987 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
988 |
for as_dir in $PATH |
989 |
do |
990 |
IFS=$as_save_IFS |
991 |
test -z "$as_dir" && as_dir=. |
992 |
echo "PATH: $as_dir" |
993 |
done |
994 |
|
995 |
} >&5 |
996 |
|
997 |
cat >&5 <<_ACEOF |
998 |
|
999 |
|
1000 |
## ----------- ## |
1001 |
## Core tests. ## |
1002 |
## ----------- ## |
1003 |
|
1004 |
_ACEOF |
1005 |
|
1006 |
|
1007 |
# Keep a trace of the command line. |
1008 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1009 |
# Strip out --silent because we don't want to record it for future runs. |
1010 |
# Also quote any args containing shell meta-characters. |
1011 |
# Make two passes to allow for proper duplicate-argument suppression. |
1012 |
ac_configure_args= |
1013 |
ac_configure_args0= |
1014 |
ac_configure_args1= |
1015 |
ac_sep= |
1016 |
ac_must_keep_next=false |
1017 |
for ac_pass in 1 2 |
1018 |
do |
1019 |
for ac_arg |
1020 |
do |
1021 |
case $ac_arg in |
1022 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1023 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1024 |
| -silent | --silent | --silen | --sile | --sil) |
1025 |
continue ;; |
1026 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1027 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1028 |
esac |
1029 |
case $ac_pass in |
1030 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1031 |
2) |
1032 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1033 |
if test $ac_must_keep_next = true; then |
1034 |
ac_must_keep_next=false # Got value, back to normal. |
1035 |
else |
1036 |
case $ac_arg in |
1037 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1038 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1039 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1040 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1041 |
case "$ac_configure_args0 " in |
1042 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1043 |
esac |
1044 |
;; |
1045 |
-* ) ac_must_keep_next=true ;; |
1046 |
esac |
1047 |
fi |
1048 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1049 |
# Get rid of the leading space. |
1050 |
ac_sep=" " |
1051 |
;; |
1052 |
esac |
1053 |
done |
1054 |
done |
1055 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1056 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1057 |
|
1058 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1059 |
# config.log. We remove comments because anyway the quotes in there |
1060 |
# would cause problems or look ugly. |
1061 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1062 |
# such as our DU 5.0 friend, will then `close' the trap. |
1063 |
trap 'exit_status=$? |
1064 |
# Save into config.log some information that might help in debugging. |
1065 |
{ |
1066 |
echo |
1067 |
|
1068 |
cat <<\_ASBOX |
1069 |
## ---------------- ## |
1070 |
## Cache variables. ## |
1071 |
## ---------------- ## |
1072 |
_ASBOX |
1073 |
echo |
1074 |
# The following way of writing the cache mishandles newlines in values, |
1075 |
{ |
1076 |
(set) 2>&1 | |
1077 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1078 |
*ac_space=\ *) |
1079 |
sed -n \ |
1080 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1081 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1082 |
;; |
1083 |
*) |
1084 |
sed -n \ |
1085 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1086 |
;; |
1087 |
esac; |
1088 |
} |
1089 |
echo |
1090 |
|
1091 |
cat <<\_ASBOX |
1092 |
## ----------------- ## |
1093 |
## Output variables. ## |
1094 |
## ----------------- ## |
1095 |
_ASBOX |
1096 |
echo |
1097 |
for ac_var in $ac_subst_vars |
1098 |
do |
1099 |
eval ac_val=$`echo $ac_var` |
1100 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1101 |
done | sort |
1102 |
echo |
1103 |
|
1104 |
if test -n "$ac_subst_files"; then |
1105 |
cat <<\_ASBOX |
1106 |
## ------------- ## |
1107 |
## Output files. ## |
1108 |
## ------------- ## |
1109 |
_ASBOX |
1110 |
echo |
1111 |
for ac_var in $ac_subst_files |
1112 |
do |
1113 |
eval ac_val=$`echo $ac_var` |
1114 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1115 |
done | sort |
1116 |
echo |
1117 |
fi |
1118 |
|
1119 |
if test -s confdefs.h; then |
1120 |
cat <<\_ASBOX |
1121 |
## ----------- ## |
1122 |
## confdefs.h. ## |
1123 |
## ----------- ## |
1124 |
_ASBOX |
1125 |
echo |
1126 |
sed "/^$/d" confdefs.h | sort |
1127 |
echo |
1128 |
fi |
1129 |
test "$ac_signal" != 0 && |
1130 |
echo "$as_me: caught signal $ac_signal" |
1131 |
echo "$as_me: exit $exit_status" |
1132 |
} >&5 |
1133 |
rm -f core core.* *.core && |
1134 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1135 |
exit $exit_status |
1136 |
' 0 |
1137 |
for ac_signal in 1 2 13 15; do |
1138 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1139 |
done |
1140 |
ac_signal=0 |
1141 |
|
1142 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1143 |
rm -rf conftest* confdefs.h |
1144 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1145 |
echo >confdefs.h |
1146 |
|
1147 |
# Predefined preprocessor variables. |
1148 |
|
1149 |
cat >>confdefs.h <<_ACEOF |
1150 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1151 |
_ACEOF |
1152 |
|
1153 |
|
1154 |
cat >>confdefs.h <<_ACEOF |
1155 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1156 |
_ACEOF |
1157 |
|
1158 |
|
1159 |
cat >>confdefs.h <<_ACEOF |
1160 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1161 |
_ACEOF |
1162 |
|
1163 |
|
1164 |
cat >>confdefs.h <<_ACEOF |
1165 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1166 |
_ACEOF |
1167 |
|
1168 |
|
1169 |
cat >>confdefs.h <<_ACEOF |
1170 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1171 |
_ACEOF |
1172 |
|
1173 |
|
1174 |
# Let the site file select an alternate cache file if it wants to. |
1175 |
# Prefer explicitly selected file to automatically selected ones. |
1176 |
if test -z "$CONFIG_SITE"; then |
1177 |
if test "x$prefix" != xNONE; then |
1178 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1179 |
else |
1180 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1181 |
fi |
1182 |
fi |
1183 |
for ac_site_file in $CONFIG_SITE; do |
1184 |
if test -r "$ac_site_file"; then |
1185 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1186 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1187 |
sed 's/^/| /' "$ac_site_file" >&5 |
1188 |
. "$ac_site_file" |
1189 |
fi |
1190 |
done |
1191 |
|
1192 |
if test -r "$cache_file"; then |
1193 |
# Some versions of bash will fail to source /dev/null (special |
1194 |
# files actually), so we avoid doing that. |
1195 |
if test -f "$cache_file"; then |
1196 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1197 |
echo "$as_me: loading cache $cache_file" >&6;} |
1198 |
case $cache_file in |
1199 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1200 |
*) . ./$cache_file;; |
1201 |
esac |
1202 |
fi |
1203 |
else |
1204 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1205 |
echo "$as_me: creating cache $cache_file" >&6;} |
1206 |
>$cache_file |
1207 |
fi |
1208 |
|
1209 |
# Check that the precious variables saved in the cache have kept the same |
1210 |
# value. |
1211 |
ac_cache_corrupted=false |
1212 |
for ac_var in `(set) 2>&1 | |
1213 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1214 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1215 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1216 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1217 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1218 |
case $ac_old_set,$ac_new_set in |
1219 |
set,) |
1220 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1221 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1222 |
ac_cache_corrupted=: ;; |
1223 |
,set) |
1224 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1225 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1226 |
ac_cache_corrupted=: ;; |
1227 |
,);; |
1228 |
*) |
1229 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1230 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1231 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1232 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1233 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1234 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1235 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1236 |
ac_cache_corrupted=: |
1237 |
fi;; |
1238 |
esac |
1239 |
# Pass precious variables to config.status. |
1240 |
if test "$ac_new_set" = set; then |
1241 |
case $ac_new_val in |
1242 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1243 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1244 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1245 |
esac |
1246 |
case " $ac_configure_args " in |
1247 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1248 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1249 |
esac |
1250 |
fi |
1251 |
done |
1252 |
if $ac_cache_corrupted; then |
1253 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1254 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1255 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1256 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1257 |
{ (exit 1); exit 1; }; } |
1258 |
fi |
1259 |
|
1260 |
ac_ext=c |
1261 |
ac_cpp='$CPP $CPPFLAGS' |
1262 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1263 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1264 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
ac_config_headers="$ac_config_headers config.h" |
1286 |
|
1287 |
|
1288 |
if test -z "$GNUSTEP_SYSTEM_ROOT"; then |
1289 |
{ { echo "$as_me:$LINENO: error: You must run the GNUstep.sh script before configuring" >&5 |
1290 |
echo "$as_me: error: You must run the GNUstep.sh script before configuring" >&2;} |
1291 |
{ (exit 1); exit 1; }; } |
1292 |
fi |
1293 |
|
1294 |
#-------------------------------------------------------------------- |
1295 |
# Use config.guess, config.sub and install-sh provided by gnustep-make |
1296 |
#-------------------------------------------------------------------- |
1297 |
ac_aux_dir= |
1298 |
for ac_dir in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES; do |
1299 |
if test -f $ac_dir/install-sh; then |
1300 |
ac_aux_dir=$ac_dir |
1301 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
1302 |
break |
1303 |
elif test -f $ac_dir/install.sh; then |
1304 |
ac_aux_dir=$ac_dir |
1305 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1306 |
break |
1307 |
elif test -f $ac_dir/shtool; then |
1308 |
ac_aux_dir=$ac_dir |
1309 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1310 |
break |
1311 |
fi |
1312 |
done |
1313 |
if test -z "$ac_aux_dir"; then |
1314 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5 |
1315 |
echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;} |
1316 |
{ (exit 1); exit 1; }; } |
1317 |
fi |
1318 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1319 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1320 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1321 |
|
1322 |
|
1323 |
#-------------------------------------------------------------------- |
1324 |
# Determine the host, build, and target systems |
1325 |
#-------------------------------------------------------------------- |
1326 |
ac_ext=c |
1327 |
ac_cpp='$CPP $CPPFLAGS' |
1328 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1329 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1330 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1331 |
if test -n "$ac_tool_prefix"; then |
1332 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1333 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1334 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1335 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1336 |
if test "${ac_cv_prog_CC+set}" = set; then |
1337 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1338 |
else |
1339 |
if test -n "$CC"; then |
1340 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1341 |
else |
1342 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1343 |
for as_dir in $PATH |
1344 |
do |
1345 |
IFS=$as_save_IFS |
1346 |
test -z "$as_dir" && as_dir=. |
1347 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1348 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1349 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1350 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1351 |
break 2 |
1352 |
fi |
1353 |
done |
1354 |
done |
1355 |
|
1356 |
fi |
1357 |
fi |
1358 |
CC=$ac_cv_prog_CC |
1359 |
if test -n "$CC"; then |
1360 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1361 |
echo "${ECHO_T}$CC" >&6 |
1362 |
else |
1363 |
echo "$as_me:$LINENO: result: no" >&5 |
1364 |
echo "${ECHO_T}no" >&6 |
1365 |
fi |
1366 |
|
1367 |
fi |
1368 |
if test -z "$ac_cv_prog_CC"; then |
1369 |
ac_ct_CC=$CC |
1370 |
# Extract the first word of "gcc", so it can be a program name with args. |
1371 |
set dummy gcc; ac_word=$2 |
1372 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1373 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1374 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1375 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1376 |
else |
1377 |
if test -n "$ac_ct_CC"; then |
1378 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1379 |
else |
1380 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1381 |
for as_dir in $PATH |
1382 |
do |
1383 |
IFS=$as_save_IFS |
1384 |
test -z "$as_dir" && as_dir=. |
1385 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1386 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1387 |
ac_cv_prog_ac_ct_CC="gcc" |
1388 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1389 |
break 2 |
1390 |
fi |
1391 |
done |
1392 |
done |
1393 |
|
1394 |
fi |
1395 |
fi |
1396 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1397 |
if test -n "$ac_ct_CC"; then |
1398 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1399 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1400 |
else |
1401 |
echo "$as_me:$LINENO: result: no" >&5 |
1402 |
echo "${ECHO_T}no" >&6 |
1403 |
fi |
1404 |
|
1405 |
CC=$ac_ct_CC |
1406 |
else |
1407 |
CC="$ac_cv_prog_CC" |
1408 |
fi |
1409 |
|
1410 |
if test -z "$CC"; then |
1411 |
if test -n "$ac_tool_prefix"; then |
1412 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1413 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1414 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1415 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1416 |
if test "${ac_cv_prog_CC+set}" = set; then |
1417 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1418 |
else |
1419 |
if test -n "$CC"; then |
1420 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1421 |
else |
1422 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1423 |
for as_dir in $PATH |
1424 |
do |
1425 |
IFS=$as_save_IFS |
1426 |
test -z "$as_dir" && as_dir=. |
1427 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1428 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1429 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1430 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1431 |
break 2 |
1432 |
fi |
1433 |
done |
1434 |
done |
1435 |
|
1436 |
fi |
1437 |
fi |
1438 |
CC=$ac_cv_prog_CC |
1439 |
if test -n "$CC"; then |
1440 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1441 |
echo "${ECHO_T}$CC" >&6 |
1442 |
else |
1443 |
echo "$as_me:$LINENO: result: no" >&5 |
1444 |
echo "${ECHO_T}no" >&6 |
1445 |
fi |
1446 |
|
1447 |
fi |
1448 |
if test -z "$ac_cv_prog_CC"; then |
1449 |
ac_ct_CC=$CC |
1450 |
# Extract the first word of "cc", so it can be a program name with args. |
1451 |
set dummy cc; ac_word=$2 |
1452 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1453 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1454 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1455 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1456 |
else |
1457 |
if test -n "$ac_ct_CC"; then |
1458 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1459 |
else |
1460 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1461 |
for as_dir in $PATH |
1462 |
do |
1463 |
IFS=$as_save_IFS |
1464 |
test -z "$as_dir" && as_dir=. |
1465 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1466 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1467 |
ac_cv_prog_ac_ct_CC="cc" |
1468 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1469 |
break 2 |
1470 |
fi |
1471 |
done |
1472 |
done |
1473 |
|
1474 |
fi |
1475 |
fi |
1476 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1477 |
if test -n "$ac_ct_CC"; then |
1478 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1479 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1480 |
else |
1481 |
echo "$as_me:$LINENO: result: no" >&5 |
1482 |
echo "${ECHO_T}no" >&6 |
1483 |
fi |
1484 |
|
1485 |
CC=$ac_ct_CC |
1486 |
else |
1487 |
CC="$ac_cv_prog_CC" |
1488 |
fi |
1489 |
|
1490 |
fi |
1491 |
if test -z "$CC"; then |
1492 |
# Extract the first word of "cc", so it can be a program name with args. |
1493 |
set dummy cc; ac_word=$2 |
1494 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1495 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1496 |
if test "${ac_cv_prog_CC+set}" = set; then |
1497 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1498 |
else |
1499 |
if test -n "$CC"; then |
1500 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1501 |
else |
1502 |
ac_prog_rejected=no |
1503 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1504 |
for as_dir in $PATH |
1505 |
do |
1506 |
IFS=$as_save_IFS |
1507 |
test -z "$as_dir" && as_dir=. |
1508 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1509 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1510 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1511 |
ac_prog_rejected=yes |
1512 |
continue |
1513 |
fi |
1514 |
ac_cv_prog_CC="cc" |
1515 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1516 |
break 2 |
1517 |
fi |
1518 |
done |
1519 |
done |
1520 |
|
1521 |
if test $ac_prog_rejected = yes; then |
1522 |
# We found a bogon in the path, so make sure we never use it. |
1523 |
set dummy $ac_cv_prog_CC |
1524 |
shift |
1525 |
if test $# != 0; then |
1526 |
# We chose a different compiler from the bogus one. |
1527 |
# However, it has the same basename, so the bogon will be chosen |
1528 |
# first if we set CC to just the basename; use the full file name. |
1529 |
shift |
1530 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1531 |
fi |
1532 |
fi |
1533 |
fi |
1534 |
fi |
1535 |
CC=$ac_cv_prog_CC |
1536 |
if test -n "$CC"; then |
1537 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1538 |
echo "${ECHO_T}$CC" >&6 |
1539 |
else |
1540 |
echo "$as_me:$LINENO: result: no" >&5 |
1541 |
echo "${ECHO_T}no" >&6 |
1542 |
fi |
1543 |
|
1544 |
fi |
1545 |
if test -z "$CC"; then |
1546 |
if test -n "$ac_tool_prefix"; then |
1547 |
for ac_prog in cl |
1548 |
do |
1549 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1550 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1551 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1552 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1553 |
if test "${ac_cv_prog_CC+set}" = set; then |
1554 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1555 |
else |
1556 |
if test -n "$CC"; then |
1557 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1558 |
else |
1559 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1560 |
for as_dir in $PATH |
1561 |
do |
1562 |
IFS=$as_save_IFS |
1563 |
test -z "$as_dir" && as_dir=. |
1564 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1565 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1566 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1567 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1568 |
break 2 |
1569 |
fi |
1570 |
done |
1571 |
done |
1572 |
|
1573 |
fi |
1574 |
fi |
1575 |
CC=$ac_cv_prog_CC |
1576 |
if test -n "$CC"; then |
1577 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1578 |
echo "${ECHO_T}$CC" >&6 |
1579 |
else |
1580 |
echo "$as_me:$LINENO: result: no" >&5 |
1581 |
echo "${ECHO_T}no" >&6 |
1582 |
fi |
1583 |
|
1584 |
test -n "$CC" && break |
1585 |
done |
1586 |
fi |
1587 |
if test -z "$CC"; then |
1588 |
ac_ct_CC=$CC |
1589 |
for ac_prog in cl |
1590 |
do |
1591 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1592 |
set dummy $ac_prog; ac_word=$2 |
1593 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1594 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1595 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1596 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1597 |
else |
1598 |
if test -n "$ac_ct_CC"; then |
1599 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1600 |
else |
1601 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1602 |
for as_dir in $PATH |
1603 |
do |
1604 |
IFS=$as_save_IFS |
1605 |
test -z "$as_dir" && as_dir=. |
1606 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1607 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1608 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1609 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1610 |
break 2 |
1611 |
fi |
1612 |
done |
1613 |
done |
1614 |
|
1615 |
fi |
1616 |
fi |
1617 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1618 |
if test -n "$ac_ct_CC"; then |
1619 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1620 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1621 |
else |
1622 |
echo "$as_me:$LINENO: result: no" >&5 |
1623 |
echo "${ECHO_T}no" >&6 |
1624 |
fi |
1625 |
|
1626 |
test -n "$ac_ct_CC" && break |
1627 |
done |
1628 |
|
1629 |
CC=$ac_ct_CC |
1630 |
fi |
1631 |
|
1632 |
fi |
1633 |
|
1634 |
|
1635 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1636 |
See \`config.log' for more details." >&5 |
1637 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
1638 |
See \`config.log' for more details." >&2;} |
1639 |
{ (exit 1); exit 1; }; } |
1640 |
|
1641 |
# Provide some information about the compiler. |
1642 |
echo "$as_me:$LINENO:" \ |
1643 |
"checking for C compiler version" >&5 |
1644 |
ac_compiler=`set X $ac_compile; echo $2` |
1645 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1646 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1647 |
ac_status=$? |
1648 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1649 |
(exit $ac_status); } |
1650 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1651 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1652 |
ac_status=$? |
1653 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1654 |
(exit $ac_status); } |
1655 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1656 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1657 |
ac_status=$? |
1658 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1659 |
(exit $ac_status); } |
1660 |
|
1661 |
cat >conftest.$ac_ext <<_ACEOF |
1662 |
#line $LINENO "configure" |
1663 |
/* confdefs.h. */ |
1664 |
_ACEOF |
1665 |
cat confdefs.h >>conftest.$ac_ext |
1666 |
cat >>conftest.$ac_ext <<_ACEOF |
1667 |
/* end confdefs.h. */ |
1668 |
|
1669 |
int |
1670 |
main () |
1671 |
{ |
1672 |
|
1673 |
; |
1674 |
return 0; |
1675 |
} |
1676 |
_ACEOF |
1677 |
ac_clean_files_save=$ac_clean_files |
1678 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1679 |
# Try to create an executable without -o first, disregard a.out. |
1680 |
# It will help us diagnose broken compilers, and finding out an intuition |
1681 |
# of exeext. |
1682 |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
1683 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1684 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1685 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1686 |
(eval $ac_link_default) 2>&5 |
1687 |
ac_status=$? |
1688 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1689 |
(exit $ac_status); }; then |
1690 |
# Find the output, starting from the most likely. This scheme is |
1691 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1692 |
# resort. |
1693 |
|
1694 |
# Be careful to initialize this variable, since it used to be cached. |
1695 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1696 |
ac_cv_exeext= |
1697 |
# b.out is created by i960 compilers. |
1698 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1699 |
do |
1700 |
test -f "$ac_file" || continue |
1701 |
case $ac_file in |
1702 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1703 |
;; |
1704 |
conftest.$ac_ext ) |
1705 |
# This is the source file. |
1706 |
;; |
1707 |
[ab].out ) |
1708 |
# We found the default executable, but exeext='' is most |
1709 |
# certainly right. |
1710 |
break;; |
1711 |
*.* ) |
1712 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1713 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1714 |
# but it would be cool to find out if it's true. Does anybody |
1715 |
# maintain Libtool? --akim. |
1716 |
export ac_cv_exeext |
1717 |
break;; |
1718 |
* ) |
1719 |
break;; |
1720 |
esac |
1721 |
done |
1722 |
else |
1723 |
echo "$as_me: failed program was:" >&5 |
1724 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1725 |
|
1726 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1727 |
See \`config.log' for more details." >&5 |
1728 |
echo "$as_me: error: C compiler cannot create executables |
1729 |
See \`config.log' for more details." >&2;} |
1730 |
{ (exit 77); exit 77; }; } |
1731 |
fi |
1732 |
|
1733 |
ac_exeext=$ac_cv_exeext |
1734 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1735 |
echo "${ECHO_T}$ac_file" >&6 |
1736 |
|
1737 |
# Check the compiler produces executables we can run. If not, either |
1738 |
# the compiler is broken, or we cross compile. |
1739 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1740 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1741 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1742 |
# If not cross compiling, check that we can run a simple program. |
1743 |
if test "$cross_compiling" != yes; then |
1744 |
if { ac_try='./$ac_file' |
1745 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1746 |
(eval $ac_try) 2>&5 |
1747 |
ac_status=$? |
1748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1749 |
(exit $ac_status); }; }; then |
1750 |
cross_compiling=no |
1751 |
else |
1752 |
if test "$cross_compiling" = maybe; then |
1753 |
cross_compiling=yes |
1754 |
else |
1755 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1756 |
If you meant to cross compile, use \`--host'. |
1757 |
See \`config.log' for more details." >&5 |
1758 |
echo "$as_me: error: cannot run C compiled programs. |
1759 |
If you meant to cross compile, use \`--host'. |
1760 |
See \`config.log' for more details." >&2;} |
1761 |
{ (exit 1); exit 1; }; } |
1762 |
fi |
1763 |
fi |
1764 |
fi |
1765 |
echo "$as_me:$LINENO: result: yes" >&5 |
1766 |
echo "${ECHO_T}yes" >&6 |
1767 |
|
1768 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1769 |
ac_clean_files=$ac_clean_files_save |
1770 |
# Check the compiler produces executables we can run. If not, either |
1771 |
# the compiler is broken, or we cross compile. |
1772 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1773 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1774 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1775 |
echo "${ECHO_T}$cross_compiling" >&6 |
1776 |
|
1777 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1778 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1779 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1780 |
(eval $ac_link) 2>&5 |
1781 |
ac_status=$? |
1782 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1783 |
(exit $ac_status); }; then |
1784 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1785 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1786 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1787 |
# `rm'. |
1788 |
for ac_file in conftest.exe conftest conftest.*; do |
1789 |
test -f "$ac_file" || continue |
1790 |
case $ac_file in |
1791 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1792 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1793 |
export ac_cv_exeext |
1794 |
break;; |
1795 |
* ) break;; |
1796 |
esac |
1797 |
done |
1798 |
else |
1799 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1800 |
See \`config.log' for more details." >&5 |
1801 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1802 |
See \`config.log' for more details." >&2;} |
1803 |
{ (exit 1); exit 1; }; } |
1804 |
fi |
1805 |
|
1806 |
rm -f conftest$ac_cv_exeext |
1807 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1808 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
1809 |
|
1810 |
rm -f conftest.$ac_ext |
1811 |
EXEEXT=$ac_cv_exeext |
1812 |
ac_exeext=$EXEEXT |
1813 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1814 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1815 |
if test "${ac_cv_objext+set}" = set; then |
1816 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1817 |
else |
1818 |
cat >conftest.$ac_ext <<_ACEOF |
1819 |
#line $LINENO "configure" |
1820 |
/* confdefs.h. */ |
1821 |
_ACEOF |
1822 |
cat confdefs.h >>conftest.$ac_ext |
1823 |
cat >>conftest.$ac_ext <<_ACEOF |
1824 |
/* end confdefs.h. */ |
1825 |
|
1826 |
int |
1827 |
main () |
1828 |
{ |
1829 |
|
1830 |
; |
1831 |
return 0; |
1832 |
} |
1833 |
_ACEOF |
1834 |
rm -f conftest.o conftest.obj |
1835 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1836 |
(eval $ac_compile) 2>&5 |
1837 |
ac_status=$? |
1838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1839 |
(exit $ac_status); }; then |
1840 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1841 |
case $ac_file in |
1842 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1843 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1844 |
break;; |
1845 |
esac |
1846 |
done |
1847 |
else |
1848 |
echo "$as_me: failed program was:" >&5 |
1849 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1850 |
|
1851 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1852 |
See \`config.log' for more details." >&5 |
1853 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1854 |
See \`config.log' for more details." >&2;} |
1855 |
{ (exit 1); exit 1; }; } |
1856 |
fi |
1857 |
|
1858 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1859 |
fi |
1860 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1861 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1862 |
OBJEXT=$ac_cv_objext |
1863 |
ac_objext=$OBJEXT |
1864 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1865 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1866 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1867 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1868 |
else |
1869 |
cat >conftest.$ac_ext <<_ACEOF |
1870 |
#line $LINENO "configure" |
1871 |
/* confdefs.h. */ |
1872 |
_ACEOF |
1873 |
cat confdefs.h >>conftest.$ac_ext |
1874 |
cat >>conftest.$ac_ext <<_ACEOF |
1875 |
/* end confdefs.h. */ |
1876 |
|
1877 |
int |
1878 |
main () |
1879 |
{ |
1880 |
#ifndef __GNUC__ |
1881 |
choke me |
1882 |
#endif |
1883 |
|
1884 |
; |
1885 |
return 0; |
1886 |
} |
1887 |
_ACEOF |
1888 |
rm -f conftest.$ac_objext |
1889 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1890 |
(eval $ac_compile) 2>&5 |
1891 |
ac_status=$? |
1892 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1893 |
(exit $ac_status); } && |
1894 |
{ ac_try='test -s conftest.$ac_objext' |
1895 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1896 |
(eval $ac_try) 2>&5 |
1897 |
ac_status=$? |
1898 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1899 |
(exit $ac_status); }; }; then |
1900 |
ac_compiler_gnu=yes |
1901 |
else |
1902 |
echo "$as_me: failed program was:" >&5 |
1903 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1904 |
|
1905 |
ac_compiler_gnu=no |
1906 |
fi |
1907 |
rm -f conftest.$ac_objext conftest.$ac_ext |
1908 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
1909 |
|
1910 |
fi |
1911 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1912 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1913 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
1914 |
ac_test_CFLAGS=${CFLAGS+set} |
1915 |
ac_save_CFLAGS=$CFLAGS |
1916 |
CFLAGS="-g" |
1917 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
1918 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1919 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
1920 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1921 |
else |
1922 |
cat >conftest.$ac_ext <<_ACEOF |
1923 |
#line $LINENO "configure" |
1924 |
/* confdefs.h. */ |
1925 |
_ACEOF |
1926 |
cat confdefs.h >>conftest.$ac_ext |
1927 |
cat >>conftest.$ac_ext <<_ACEOF |
1928 |
/* end confdefs.h. */ |
1929 |
|
1930 |
int |
1931 |
main () |
1932 |
{ |
1933 |
|
1934 |
; |
1935 |
return 0; |
1936 |
} |
1937 |
_ACEOF |
1938 |
rm -f conftest.$ac_objext |
1939 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1940 |
(eval $ac_compile) 2>&5 |
1941 |
ac_status=$? |
1942 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1943 |
(exit $ac_status); } && |
1944 |
{ ac_try='test -s conftest.$ac_objext' |
1945 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1946 |
(eval $ac_try) 2>&5 |
1947 |
ac_status=$? |
1948 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1949 |
(exit $ac_status); }; }; then |
1950 |
ac_cv_prog_cc_g=yes |
1951 |
else |
1952 |
echo "$as_me: failed program was:" >&5 |
1953 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1954 |
|
1955 |
ac_cv_prog_cc_g=no |
1956 |
fi |
1957 |
rm -f conftest.$ac_objext conftest.$ac_ext |
1958 |
fi |
1959 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
1960 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
1961 |
if test "$ac_test_CFLAGS" = set; then |
1962 |
CFLAGS=$ac_save_CFLAGS |
1963 |
elif test $ac_cv_prog_cc_g = yes; then |
1964 |
if test "$GCC" = yes; then |
1965 |
CFLAGS="-g -O2" |
1966 |
else |
1967 |
CFLAGS="-g" |
1968 |
fi |
1969 |
else |
1970 |
if test "$GCC" = yes; then |
1971 |
CFLAGS="-O2" |
1972 |
else |
1973 |
CFLAGS= |
1974 |
fi |
1975 |
fi |
1976 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
1977 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
1978 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
1979 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1980 |
else |
1981 |
ac_cv_prog_cc_stdc=no |
1982 |
ac_save_CC=$CC |
1983 |
cat >conftest.$ac_ext <<_ACEOF |
1984 |
#line $LINENO "configure" |
1985 |
/* confdefs.h. */ |
1986 |
_ACEOF |
1987 |
cat confdefs.h >>conftest.$ac_ext |
1988 |
cat >>conftest.$ac_ext <<_ACEOF |
1989 |
/* end confdefs.h. */ |
1990 |
#include <stdarg.h> |
1991 |
#include <stdio.h> |
1992 |
#include <sys/types.h> |
1993 |
#include <sys/stat.h> |
1994 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
1995 |
struct buf { int x; }; |
1996 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
1997 |
static char *e (p, i) |
1998 |
char **p; |
1999 |
int i; |
2000 |
{ |
2001 |
return p[i]; |
2002 |
} |
2003 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2004 |
{ |
2005 |
char *s; |
2006 |
va_list v; |
2007 |
va_start (v,p); |
2008 |
s = g (p, va_arg (v,int)); |
2009 |
va_end (v); |
2010 |
return s; |
2011 |
} |
2012 |
int test (int i, double x); |
2013 |
struct s1 {int (*f) (int a);}; |
2014 |
struct s2 {int (*f) (double a);}; |
2015 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2016 |
int argc; |
2017 |
char **argv; |
2018 |
int |
2019 |
main () |
2020 |
{ |
2021 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2022 |
; |
2023 |
return 0; |
2024 |
} |
2025 |
_ACEOF |
2026 |
# Don't try gcc -ansi; that turns off useful extensions and |
2027 |
# breaks some systems' header files. |
2028 |
# AIX -qlanglvl=ansi |
2029 |
# Ultrix and OSF/1 -std1 |
2030 |
# HP-UX 10.20 and later -Ae |
2031 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2032 |
# SVR4 -Xc -D__EXTENSIONS__ |
2033 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2034 |
do |
2035 |
CC="$ac_save_CC $ac_arg" |
2036 |
rm -f conftest.$ac_objext |
2037 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2038 |
(eval $ac_compile) 2>&5 |
2039 |
ac_status=$? |
2040 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2041 |
(exit $ac_status); } && |
2042 |
{ ac_try='test -s conftest.$ac_objext' |
2043 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2044 |
(eval $ac_try) 2>&5 |
2045 |
ac_status=$? |
2046 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2047 |
(exit $ac_status); }; }; then |
2048 |
ac_cv_prog_cc_stdc=$ac_arg |
2049 |
break |
2050 |
else |
2051 |
echo "$as_me: failed program was:" >&5 |
2052 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2053 |
|
2054 |
fi |
2055 |
rm -f conftest.$ac_objext |
2056 |
done |
2057 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2058 |
CC=$ac_save_CC |
2059 |
|
2060 |
fi |
2061 |
|
2062 |
case "x$ac_cv_prog_cc_stdc" in |
2063 |
x|xno) |
2064 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2065 |
echo "${ECHO_T}none needed" >&6 ;; |
2066 |
*) |
2067 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2068 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2069 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2070 |
esac |
2071 |
|
2072 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2073 |
# in C++ we need to declare it. In case someone uses the same compiler |
2074 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2075 |
# the declaration of exit, since it's the most demanding environment. |
2076 |
cat >conftest.$ac_ext <<_ACEOF |
2077 |
#ifndef __cplusplus |
2078 |
choke me |
2079 |
#endif |
2080 |
_ACEOF |
2081 |
rm -f conftest.$ac_objext |
2082 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2083 |
(eval $ac_compile) 2>&5 |
2084 |
ac_status=$? |
2085 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2086 |
(exit $ac_status); } && |
2087 |
{ ac_try='test -s conftest.$ac_objext' |
2088 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2089 |
(eval $ac_try) 2>&5 |
2090 |
ac_status=$? |
2091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2092 |
(exit $ac_status); }; }; then |
2093 |
for ac_declaration in \ |
2094 |
''\ |
2095 |
'#include <stdlib.h>' \ |
2096 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2097 |
'extern "C" void std::exit (int); using std::exit;' \ |
2098 |
'extern "C" void exit (int) throw ();' \ |
2099 |
'extern "C" void exit (int);' \ |
2100 |
'void exit (int);' |
2101 |
do |
2102 |
cat >conftest.$ac_ext <<_ACEOF |
2103 |
#line $LINENO "configure" |
2104 |
/* confdefs.h. */ |
2105 |
_ACEOF |
2106 |
cat confdefs.h >>conftest.$ac_ext |
2107 |
cat >>conftest.$ac_ext <<_ACEOF |
2108 |
/* end confdefs.h. */ |
2109 |
#include <stdlib.h> |
2110 |
$ac_declaration |
2111 |
int |
2112 |
main () |
2113 |
{ |
2114 |
exit (42); |
2115 |
; |
2116 |
return 0; |
2117 |
} |
2118 |
_ACEOF |
2119 |
rm -f conftest.$ac_objext |
2120 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2121 |
(eval $ac_compile) 2>&5 |
2122 |
ac_status=$? |
2123 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2124 |
(exit $ac_status); } && |
2125 |
{ ac_try='test -s conftest.$ac_objext' |
2126 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2127 |
(eval $ac_try) 2>&5 |
2128 |
ac_status=$? |
2129 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2130 |
(exit $ac_status); }; }; then |
2131 |
: |
2132 |
else |
2133 |
echo "$as_me: failed program was:" >&5 |
2134 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2135 |
|
2136 |
continue |
2137 |
fi |
2138 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2139 |
cat >conftest.$ac_ext <<_ACEOF |
2140 |
#line $LINENO "configure" |
2141 |
/* confdefs.h. */ |
2142 |
_ACEOF |
2143 |
cat confdefs.h >>conftest.$ac_ext |
2144 |
cat >>conftest.$ac_ext <<_ACEOF |
2145 |
/* end confdefs.h. */ |
2146 |
$ac_declaration |
2147 |
int |
2148 |
main () |
2149 |
{ |
2150 |
exit (42); |
2151 |
; |
2152 |
return 0; |
2153 |
} |
2154 |
_ACEOF |
2155 |
rm -f conftest.$ac_objext |
2156 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2157 |
(eval $ac_compile) 2>&5 |
2158 |
ac_status=$? |
2159 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2160 |
(exit $ac_status); } && |
2161 |
{ ac_try='test -s conftest.$ac_objext' |
2162 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2163 |
(eval $ac_try) 2>&5 |
2164 |
ac_status=$? |
2165 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2166 |
(exit $ac_status); }; }; then |
2167 |
break |
2168 |
else |
2169 |
echo "$as_me: failed program was:" >&5 |
2170 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2171 |
|
2172 |
fi |
2173 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2174 |
done |
2175 |
rm -f conftest* |
2176 |
if test -n "$ac_declaration"; then |
2177 |
echo '#ifdef __cplusplus' >>confdefs.h |
2178 |
echo $ac_declaration >>confdefs.h |
2179 |
echo '#endif' >>confdefs.h |
2180 |
fi |
2181 |
|
2182 |
else |
2183 |
echo "$as_me: failed program was:" >&5 |
2184 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2185 |
|
2186 |
fi |
2187 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2188 |
ac_ext=c |
2189 |
ac_cpp='$CPP $CPPFLAGS' |
2190 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2191 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2192 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2193 |
|
2194 |
# Make sure we can run config.sub. |
2195 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
2196 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
2197 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
2198 |
{ (exit 1); exit 1; }; } |
2199 |
|
2200 |
echo "$as_me:$LINENO: checking build system type" >&5 |
2201 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
2202 |
if test "${ac_cv_build+set}" = set; then |
2203 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2204 |
else |
2205 |
ac_cv_build_alias=$build_alias |
2206 |
test -z "$ac_cv_build_alias" && |
2207 |
ac_cv_build_alias=`$ac_config_guess` |
2208 |
test -z "$ac_cv_build_alias" && |
2209 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2210 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2211 |
{ (exit 1); exit 1; }; } |
2212 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2213 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
2214 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
2215 |
{ (exit 1); exit 1; }; } |
2216 |
|
2217 |
fi |
2218 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2219 |
echo "${ECHO_T}$ac_cv_build" >&6 |
2220 |
build=$ac_cv_build |
2221 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2222 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2223 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2224 |
|
2225 |
|
2226 |
echo "$as_me:$LINENO: checking host system type" >&5 |
2227 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
2228 |
if test "${ac_cv_host+set}" = set; then |
2229 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2230 |
else |
2231 |
ac_cv_host_alias=$host_alias |
2232 |
test -z "$ac_cv_host_alias" && |
2233 |
ac_cv_host_alias=$ac_cv_build_alias |
2234 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
2235 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
2236 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
2237 |
{ (exit 1); exit 1; }; } |
2238 |
|
2239 |
fi |
2240 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2241 |
echo "${ECHO_T}$ac_cv_host" >&6 |
2242 |
host=$ac_cv_host |
2243 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2244 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2245 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2246 |
|
2247 |
|
2248 |
echo "$as_me:$LINENO: checking target system type" >&5 |
2249 |
echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
2250 |
if test "${ac_cv_target+set}" = set; then |
2251 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2252 |
else |
2253 |
ac_cv_target_alias=$target_alias |
2254 |
test "x$ac_cv_target_alias" = "x" && |
2255 |
ac_cv_target_alias=$ac_cv_host_alias |
2256 |
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
2257 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
2258 |
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
2259 |
{ (exit 1); exit 1; }; } |
2260 |
|
2261 |
fi |
2262 |
echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2263 |
echo "${ECHO_T}$ac_cv_target" >&6 |
2264 |
target=$ac_cv_target |
2265 |
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2266 |
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2267 |
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2268 |
|
2269 |
|
2270 |
# The aliases save the names the user supplied, while $host etc. |
2271 |
# will get canonicalized. |
2272 |
test -n "$target_alias" && |
2273 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
2274 |
NONENONEs,x,x, && |
2275 |
program_prefix=${target_alias}- |
2276 |
|
2277 |
#-------------------------------------------------------------------- |
2278 |
# The following is so that headers and custom libraries |
2279 |
# in the GNUstep root are used before the standard ones |
2280 |
#-------------------------------------------------------------------- |
2281 |
# Set location of GNUstep dirs for later use |
2282 |
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers |
2283 |
if test "$GNUSTEP_FLATTENED" = yes; then |
2284 |
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries |
2285 |
else |
2286 |
clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os` |
2287 |
clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu` |
2288 |
obj_dir=$clean_target_cpu/$clean_target_os |
2289 |
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir |
2290 |
fi |
2291 |
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR" |
2292 |
LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR" |
2293 |
|
2294 |
#-------------------------------------------------------------------- |
2295 |
# Add target OS directories as necessary |
2296 |
#-------------------------------------------------------------------- |
2297 |
case "$target_os" in |
2298 |
freebsd* | openbsd* ) |
2299 |
CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" |
2300 |
LDFLAGS="$LDFLAGS -L/usr/pkg/lib";; |
2301 |
netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" |
2302 |
LDFLAGS="$LDFLAGS -L/usr/pkg/lib";; |
2303 |
esac |
2304 |
|
2305 |
#-------------------------------------------------------------------- |
2306 |
# Look for WindowMaker's wraster library |
2307 |
#-------------------------------------------------------------------- |
2308 |
|
2309 |
# Check whether --with-wraster or --without-wraster was given. |
2310 |
if test "${with_wraster+set}" = set; then |
2311 |
withval="$with_wraster" |
2312 |
|
2313 |
fi; |
2314 |
if test "x$with_wraster" = "x"; then |
2315 |
wprefix="" |
2316 |
else |
2317 |
wprefix=${with_wraster}/ |
2318 |
fi |
2319 |
|
2320 |
if test "x$with_wraster" != "xnone"; then |
2321 |
GRAPHIC_LIBS=`${wprefix}get-wraster-flags --libs` |
2322 |
GRAPHIC_CFLAGS=`${wprefix}get-wraster-flags --cflags | sed -e "s|-I/usr/include||"` |
2323 |
GRAPHIC_LFLAGS=`${wprefix}get-wraster-flags --ldflags` |
2324 |
fi |
2325 |
|
2326 |
|
2327 |
|
2328 |
|
2329 |
ac_ext=c |
2330 |
ac_cpp='$CPP $CPPFLAGS' |
2331 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2332 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2333 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2334 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2335 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2336 |
# On Suns, sometimes $CPP names a directory. |
2337 |
if test -n "$CPP" && test -d "$CPP"; then |
2338 |
CPP= |
2339 |
fi |
2340 |
if test -z "$CPP"; then |
2341 |
if test "${ac_cv_prog_CPP+set}" = set; then |
2342 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2343 |
else |
2344 |
# Double quotes because CPP needs to be expanded |
2345 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
2346 |
do |
2347 |
ac_preproc_ok=false |
2348 |
for ac_c_preproc_warn_flag in '' yes |
2349 |
do |
2350 |
# Use a header file that comes with gcc, so configuring glibc |
2351 |
# with a fresh cross-compiler works. |
2352 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2353 |
# <limits.h> exists even on freestanding compilers. |
2354 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2355 |
# not just through cpp. "Syntax error" is here to catch this case. |
2356 |
cat >conftest.$ac_ext <<_ACEOF |
2357 |
#line $LINENO "configure" |
2358 |
/* confdefs.h. */ |
2359 |
_ACEOF |
2360 |
cat confdefs.h >>conftest.$ac_ext |
2361 |
cat >>conftest.$ac_ext <<_ACEOF |
2362 |
/* end confdefs.h. */ |
2363 |
#ifdef __STDC__ |
2364 |
# include <limits.h> |
2365 |
#else |
2366 |
# include <assert.h> |
2367 |
#endif |
2368 |
Syntax error |
2369 |
_ACEOF |
2370 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2371 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2372 |
ac_status=$? |
2373 |
grep -v '^ *+' conftest.er1 >conftest.err |
2374 |
rm -f conftest.er1 |
2375 |
cat conftest.err >&5 |
2376 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2377 |
(exit $ac_status); } >/dev/null; then |
2378 |
if test -s conftest.err; then |
2379 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2380 |
else |
2381 |
ac_cpp_err= |
2382 |
fi |
2383 |
else |
2384 |
ac_cpp_err=yes |
2385 |
fi |
2386 |
if test -z "$ac_cpp_err"; then |
2387 |
: |
2388 |
else |
2389 |
echo "$as_me: failed program was:" >&5 |
2390 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2391 |
|
2392 |
# Broken: fails on valid input. |
2393 |
continue |
2394 |
fi |
2395 |
rm -f conftest.err conftest.$ac_ext |
2396 |
|
2397 |
# OK, works on sane cases. Now check whether non-existent headers |
2398 |
# can be detected and how. |
2399 |
cat >conftest.$ac_ext <<_ACEOF |
2400 |
#line $LINENO "configure" |
2401 |
/* confdefs.h. */ |
2402 |
_ACEOF |
2403 |
cat confdefs.h >>conftest.$ac_ext |
2404 |
cat >>conftest.$ac_ext <<_ACEOF |
2405 |
/* end confdefs.h. */ |
2406 |
#include <ac_nonexistent.h> |
2407 |
_ACEOF |
2408 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2409 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2410 |
ac_status=$? |
2411 |
grep -v '^ *+' conftest.er1 >conftest.err |
2412 |
rm -f conftest.er1 |
2413 |
cat conftest.err >&5 |
2414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2415 |
(exit $ac_status); } >/dev/null; then |
2416 |
if test -s conftest.err; then |
2417 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2418 |
else |
2419 |
ac_cpp_err= |
2420 |
fi |
2421 |
else |
2422 |
ac_cpp_err=yes |
2423 |
fi |
2424 |
if test -z "$ac_cpp_err"; then |
2425 |
# Broken: success on invalid input. |
2426 |
continue |
2427 |
else |
2428 |
echo "$as_me: failed program was:" >&5 |
2429 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2430 |
|
2431 |
# Passes both tests. |
2432 |
ac_preproc_ok=: |
2433 |
break |
2434 |
fi |
2435 |
rm -f conftest.err conftest.$ac_ext |
2436 |
|
2437 |
done |
2438 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2439 |
rm -f conftest.err conftest.$ac_ext |
2440 |
if $ac_preproc_ok; then |
2441 |
break |
2442 |
fi |
2443 |
|
2444 |
done |
2445 |
ac_cv_prog_CPP=$CPP |
2446 |
|
2447 |
fi |
2448 |
CPP=$ac_cv_prog_CPP |
2449 |
else |
2450 |
ac_cv_prog_CPP=$CPP |
2451 |
fi |
2452 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
2453 |
echo "${ECHO_T}$CPP" >&6 |
2454 |
ac_preproc_ok=false |
2455 |
for ac_c_preproc_warn_flag in '' yes |
2456 |
do |
2457 |
# Use a header file that comes with gcc, so configuring glibc |
2458 |
# with a fresh cross-compiler works. |
2459 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2460 |
# <limits.h> exists even on freestanding compilers. |
2461 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2462 |
# not just through cpp. "Syntax error" is here to catch this case. |
2463 |
cat >conftest.$ac_ext <<_ACEOF |
2464 |
#line $LINENO "configure" |
2465 |
/* confdefs.h. */ |
2466 |
_ACEOF |
2467 |
cat confdefs.h >>conftest.$ac_ext |
2468 |
cat >>conftest.$ac_ext <<_ACEOF |
2469 |
/* end confdefs.h. */ |
2470 |
#ifdef __STDC__ |
2471 |
# include <limits.h> |
2472 |
#else |
2473 |
# include <assert.h> |
2474 |
#endif |
2475 |
Syntax error |
2476 |
_ACEOF |
2477 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2478 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2479 |
ac_status=$? |
2480 |
grep -v '^ *+' conftest.er1 >conftest.err |
2481 |
rm -f conftest.er1 |
2482 |
cat conftest.err >&5 |
2483 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2484 |
(exit $ac_status); } >/dev/null; then |
2485 |
if test -s conftest.err; then |
2486 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2487 |
else |
2488 |
ac_cpp_err= |
2489 |
fi |
2490 |
else |
2491 |
ac_cpp_err=yes |
2492 |
fi |
2493 |
if test -z "$ac_cpp_err"; then |
2494 |
: |
2495 |
else |
2496 |
echo "$as_me: failed program was:" >&5 |
2497 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2498 |
|
2499 |
# Broken: fails on valid input. |
2500 |
continue |
2501 |
fi |
2502 |
rm -f conftest.err conftest.$ac_ext |
2503 |
|
2504 |
# OK, works on sane cases. Now check whether non-existent headers |
2505 |
# can be detected and how. |
2506 |
cat >conftest.$ac_ext <<_ACEOF |
2507 |
#line $LINENO "configure" |
2508 |
/* confdefs.h. */ |
2509 |
_ACEOF |
2510 |
cat confdefs.h >>conftest.$ac_ext |
2511 |
cat >>conftest.$ac_ext <<_ACEOF |
2512 |
/* end confdefs.h. */ |
2513 |
#include <ac_nonexistent.h> |
2514 |
_ACEOF |
2515 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2516 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2517 |
ac_status=$? |
2518 |
grep -v '^ *+' conftest.er1 >conftest.err |
2519 |
rm -f conftest.er1 |
2520 |
cat conftest.err >&5 |
2521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2522 |
(exit $ac_status); } >/dev/null; then |
2523 |
if test -s conftest.err; then |
2524 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2525 |
else |
2526 |
ac_cpp_err= |
2527 |
fi |
2528 |
else |
2529 |
ac_cpp_err=yes |
2530 |
fi |
2531 |
if test -z "$ac_cpp_err"; then |
2532 |
# Broken: success on invalid input. |
2533 |
continue |
2534 |
else |
2535 |
echo "$as_me: failed program was:" >&5 |
2536 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2537 |
|
2538 |
# Passes both tests. |
2539 |
ac_preproc_ok=: |
2540 |
break |
2541 |
fi |
2542 |
rm -f conftest.err conftest.$ac_ext |
2543 |
|
2544 |
done |
2545 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2546 |
rm -f conftest.err conftest.$ac_ext |
2547 |
if $ac_preproc_ok; then |
2548 |
: |
2549 |
else |
2550 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2551 |
See \`config.log' for more details." >&5 |
2552 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2553 |
See \`config.log' for more details." >&2;} |
2554 |
{ (exit 1); exit 1; }; } |
2555 |
fi |
2556 |
|
2557 |
ac_ext=c |
2558 |
ac_cpp='$CPP $CPPFLAGS' |
2559 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2560 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2561 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2562 |
|
2563 |
|
2564 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
2565 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
2566 |
if test "${ac_cv_prog_egrep+set}" = set; then |
2567 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2568 |
else |
2569 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2570 |
then ac_cv_prog_egrep='grep -E' |
2571 |
else ac_cv_prog_egrep='egrep' |
2572 |
fi |
2573 |
fi |
2574 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2575 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
2576 |
EGREP=$ac_cv_prog_egrep |
2577 |
|
2578 |
|
2579 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2580 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2581 |
if test "${ac_cv_header_stdc+set}" = set; then |
2582 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2583 |
else |
2584 |
cat >conftest.$ac_ext <<_ACEOF |
2585 |
#line $LINENO "configure" |
2586 |
/* confdefs.h. */ |
2587 |
_ACEOF |
2588 |
cat confdefs.h >>conftest.$ac_ext |
2589 |
cat >>conftest.$ac_ext <<_ACEOF |
2590 |
/* end confdefs.h. */ |
2591 |
#include <stdlib.h> |
2592 |
#include <stdarg.h> |
2593 |
#include <string.h> |
2594 |
#include <float.h> |
2595 |
|
2596 |
int |
2597 |
main () |
2598 |
{ |
2599 |
|
2600 |
; |
2601 |
return 0; |
2602 |
} |
2603 |
_ACEOF |
2604 |
rm -f conftest.$ac_objext |
2605 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2606 |
(eval $ac_compile) 2>&5 |
2607 |
ac_status=$? |
2608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2609 |
(exit $ac_status); } && |
2610 |
{ ac_try='test -s conftest.$ac_objext' |
2611 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2612 |
(eval $ac_try) 2>&5 |
2613 |
ac_status=$? |
2614 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2615 |
(exit $ac_status); }; }; then |
2616 |
ac_cv_header_stdc=yes |
2617 |
else |
2618 |
echo "$as_me: failed program was:" >&5 |
2619 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2620 |
|
2621 |
ac_cv_header_stdc=no |
2622 |
fi |
2623 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2624 |
|
2625 |
if test $ac_cv_header_stdc = yes; then |
2626 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2627 |
cat >conftest.$ac_ext <<_ACEOF |
2628 |
#line $LINENO "configure" |
2629 |
/* confdefs.h. */ |
2630 |
_ACEOF |
2631 |
cat confdefs.h >>conftest.$ac_ext |
2632 |
cat >>conftest.$ac_ext <<_ACEOF |
2633 |
/* end confdefs.h. */ |
2634 |
#include <string.h> |
2635 |
|
2636 |
_ACEOF |
2637 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2638 |
$EGREP "memchr" >/dev/null 2>&1; then |
2639 |
: |
2640 |
else |
2641 |
ac_cv_header_stdc=no |
2642 |
fi |
2643 |
rm -f conftest* |
2644 |
|
2645 |
fi |
2646 |
|
2647 |
if test $ac_cv_header_stdc = yes; then |
2648 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2649 |
cat >conftest.$ac_ext <<_ACEOF |
2650 |
#line $LINENO "configure" |
2651 |
/* confdefs.h. */ |
2652 |
_ACEOF |
2653 |
cat confdefs.h >>conftest.$ac_ext |
2654 |
cat >>conftest.$ac_ext <<_ACEOF |
2655 |
/* end confdefs.h. */ |
2656 |
#include <stdlib.h> |
2657 |
|
2658 |
_ACEOF |
2659 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2660 |
$EGREP "free" >/dev/null 2>&1; then |
2661 |
: |
2662 |
else |
2663 |
ac_cv_header_stdc=no |
2664 |
fi |
2665 |
rm -f conftest* |
2666 |
|
2667 |
fi |
2668 |
|
2669 |
if test $ac_cv_header_stdc = yes; then |
2670 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2671 |
if test "$cross_compiling" = yes; then |
2672 |
: |
2673 |
else |
2674 |
cat >conftest.$ac_ext <<_ACEOF |
2675 |
#line $LINENO "configure" |
2676 |
/* confdefs.h. */ |
2677 |
_ACEOF |
2678 |
cat confdefs.h >>conftest.$ac_ext |
2679 |
cat >>conftest.$ac_ext <<_ACEOF |
2680 |
/* end confdefs.h. */ |
2681 |
#include <ctype.h> |
2682 |
#if ((' ' & 0x0FF) == 0x020) |
2683 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2684 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2685 |
#else |
2686 |
# define ISLOWER(c) \ |
2687 |
(('a' <= (c) && (c) <= 'i') \ |
2688 |
|| ('j' <= (c) && (c) <= 'r') \ |
2689 |
|| ('s' <= (c) && (c) <= 'z')) |
2690 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2691 |
#endif |
2692 |
|
2693 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2694 |
int |
2695 |
main () |
2696 |
{ |
2697 |
int i; |
2698 |
for (i = 0; i < 256; i++) |
2699 |
if (XOR (islower (i), ISLOWER (i)) |
2700 |
|| toupper (i) != TOUPPER (i)) |
2701 |
exit(2); |
2702 |
exit (0); |
2703 |
} |
2704 |
_ACEOF |
2705 |
rm -f conftest$ac_exeext |
2706 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2707 |
(eval $ac_link) 2>&5 |
2708 |
ac_status=$? |
2709 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2710 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2711 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2712 |
(eval $ac_try) 2>&5 |
2713 |
ac_status=$? |
2714 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2715 |
(exit $ac_status); }; }; then |
2716 |
: |
2717 |
else |
2718 |
echo "$as_me: program exited with status $ac_status" >&5 |
2719 |
echo "$as_me: failed program was:" >&5 |
2720 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2721 |
|
2722 |
( exit $ac_status ) |
2723 |
ac_cv_header_stdc=no |
2724 |
fi |
2725 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2726 |
fi |
2727 |
fi |
2728 |
fi |
2729 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
2730 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
2731 |
if test $ac_cv_header_stdc = yes; then |
2732 |
|
2733 |
cat >>confdefs.h <<\_ACEOF |
2734 |
#define STDC_HEADERS 1 |
2735 |
_ACEOF |
2736 |
|
2737 |
fi |
2738 |
|
2739 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2740 |
|
2741 |
|
2742 |
|
2743 |
|
2744 |
|
2745 |
|
2746 |
|
2747 |
|
2748 |
|
2749 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
2750 |
inttypes.h stdint.h unistd.h |
2751 |
do |
2752 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2753 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2754 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
2755 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2756 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2757 |
else |
2758 |
cat >conftest.$ac_ext <<_ACEOF |
2759 |
#line $LINENO "configure" |
2760 |
/* confdefs.h. */ |
2761 |
_ACEOF |
2762 |
cat confdefs.h >>conftest.$ac_ext |
2763 |
cat >>conftest.$ac_ext <<_ACEOF |
2764 |
/* end confdefs.h. */ |
2765 |
$ac_includes_default |
2766 |
|
2767 |
#include <$ac_header> |
2768 |
_ACEOF |
2769 |
rm -f conftest.$ac_objext |
2770 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2771 |
(eval $ac_compile) 2>&5 |
2772 |
ac_status=$? |
2773 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2774 |
(exit $ac_status); } && |
2775 |
{ ac_try='test -s conftest.$ac_objext' |
2776 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2777 |
(eval $ac_try) 2>&5 |
2778 |
ac_status=$? |
2779 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2780 |
(exit $ac_status); }; }; then |
2781 |
eval "$as_ac_Header=yes" |
2782 |
else |
2783 |
echo "$as_me: failed program was:" >&5 |
2784 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2785 |
|
2786 |
eval "$as_ac_Header=no" |
2787 |
fi |
2788 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2789 |
fi |
2790 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2791 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2792 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2793 |
cat >>confdefs.h <<_ACEOF |
2794 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2795 |
_ACEOF |
2796 |
|
2797 |
fi |
2798 |
|
2799 |
done |
2800 |
|
2801 |
|
2802 |
echo "$as_me:$LINENO: checking for current libwraster support" >&5 |
2803 |
echo $ECHO_N "checking for current libwraster support... $ECHO_C" >&6 |
2804 |
if test "${gs_cv_have_wraster+set}" = set; then |
2805 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2806 |
else |
2807 |
wraster_check_save_header=${CPPFLAGS} |
2808 |
wraster_check_save_libs=${LIBS} |
2809 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
2810 |
LIBS="${GRAPHIC_LIBS} $LIBS" |
2811 |
|
2812 |
# Check for RFillImage which is only in version 2.0 of libwraster |
2813 |
echo "$as_me:$LINENO: checking for RFillImage in -lwraster" >&5 |
2814 |
echo $ECHO_N "checking for RFillImage in -lwraster... $ECHO_C" >&6 |
2815 |
if test "${ac_cv_lib_wraster_RFillImage+set}" = set; then |
2816 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2817 |
else |
2818 |
ac_check_lib_save_LIBS=$LIBS |
2819 |
LIBS="-lwraster $LIBS" |
2820 |
cat >conftest.$ac_ext <<_ACEOF |
2821 |
#line $LINENO "configure" |
2822 |
/* confdefs.h. */ |
2823 |
_ACEOF |
2824 |
cat confdefs.h >>conftest.$ac_ext |
2825 |
cat >>conftest.$ac_ext <<_ACEOF |
2826 |
/* end confdefs.h. */ |
2827 |
|
2828 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2829 |
#ifdef __cplusplus |
2830 |
extern "C" |
2831 |
#endif |
2832 |
/* We use char because int might match the return type of a gcc2 |
2833 |
builtin and then its argument prototype would still apply. */ |
2834 |
char RFillImage (); |
2835 |
int |
2836 |
main () |
2837 |
{ |
2838 |
RFillImage (); |
2839 |
; |
2840 |
return 0; |
2841 |
} |
2842 |
_ACEOF |
2843 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2844 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2845 |
(eval $ac_link) 2>&5 |
2846 |
ac_status=$? |
2847 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2848 |
(exit $ac_status); } && |
2849 |
{ ac_try='test -s conftest$ac_exeext' |
2850 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2851 |
(eval $ac_try) 2>&5 |
2852 |
ac_status=$? |
2853 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2854 |
(exit $ac_status); }; }; then |
2855 |
ac_cv_lib_wraster_RFillImage=yes |
2856 |
else |
2857 |
echo "$as_me: failed program was:" >&5 |
2858 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2859 |
|
2860 |
ac_cv_lib_wraster_RFillImage=no |
2861 |
fi |
2862 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
2863 |
LIBS=$ac_check_lib_save_LIBS |
2864 |
fi |
2865 |
echo "$as_me:$LINENO: result: $ac_cv_lib_wraster_RFillImage" >&5 |
2866 |
echo "${ECHO_T}$ac_cv_lib_wraster_RFillImage" >&6 |
2867 |
if test $ac_cv_lib_wraster_RFillImage = yes; then |
2868 |
gs_cv_have_wraster=yes |
2869 |
else |
2870 |
gs_cv_have_wraster=no |
2871 |
fi |
2872 |
if test "x$with_wraster" = "xnone"; then |
2873 |
gs_cv_have_wraster=no |
2874 |
fi |
2875 |
if test "$gs_cv_have_wraster" = yes; then |
2876 |
|
2877 |
for ac_header in wraster.h |
2878 |
do |
2879 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2880 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2881 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2882 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
2883 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2884 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2885 |
fi |
2886 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2887 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
2888 |
else |
2889 |
# Is the header compilable? |
2890 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
2891 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
2892 |
cat >conftest.$ac_ext <<_ACEOF |
2893 |
#line $LINENO "configure" |
2894 |
/* confdefs.h. */ |
2895 |
_ACEOF |
2896 |
cat confdefs.h >>conftest.$ac_ext |
2897 |
cat >>conftest.$ac_ext <<_ACEOF |
2898 |
/* end confdefs.h. */ |
2899 |
$ac_includes_default |
2900 |
#include <$ac_header> |
2901 |
_ACEOF |
2902 |
rm -f conftest.$ac_objext |
2903 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2904 |
(eval $ac_compile) 2>&5 |
2905 |
ac_status=$? |
2906 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2907 |
(exit $ac_status); } && |
2908 |
{ ac_try='test -s conftest.$ac_objext' |
2909 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2910 |
(eval $ac_try) 2>&5 |
2911 |
ac_status=$? |
2912 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2913 |
(exit $ac_status); }; }; then |
2914 |
ac_header_compiler=yes |
2915 |
else |
2916 |
echo "$as_me: failed program was:" >&5 |
2917 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2918 |
|
2919 |
ac_header_compiler=no |
2920 |
fi |
2921 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2922 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
2923 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
2924 |
|
2925 |
# Is the header present? |
2926 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
2927 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
2928 |
cat >conftest.$ac_ext <<_ACEOF |
2929 |
#line $LINENO "configure" |
2930 |
/* confdefs.h. */ |
2931 |
_ACEOF |
2932 |
cat confdefs.h >>conftest.$ac_ext |
2933 |
cat >>conftest.$ac_ext <<_ACEOF |
2934 |
/* end confdefs.h. */ |
2935 |
#include <$ac_header> |
2936 |
_ACEOF |
2937 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2938 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2939 |
ac_status=$? |
2940 |
grep -v '^ *+' conftest.er1 >conftest.err |
2941 |
rm -f conftest.er1 |
2942 |
cat conftest.err >&5 |
2943 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2944 |
(exit $ac_status); } >/dev/null; then |
2945 |
if test -s conftest.err; then |
2946 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2947 |
else |
2948 |
ac_cpp_err= |
2949 |
fi |
2950 |
else |
2951 |
ac_cpp_err=yes |
2952 |
fi |
2953 |
if test -z "$ac_cpp_err"; then |
2954 |
ac_header_preproc=yes |
2955 |
else |
2956 |
echo "$as_me: failed program was:" >&5 |
2957 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2958 |
|
2959 |
ac_header_preproc=no |
2960 |
fi |
2961 |
rm -f conftest.err conftest.$ac_ext |
2962 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
2963 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
2964 |
|
2965 |
# So? What about this header? |
2966 |
case $ac_header_compiler:$ac_header_preproc in |
2967 |
yes:no ) |
2968 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
2969 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
2970 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
2971 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
2972 |
( |
2973 |
cat <<\_ASBOX |
2974 |
## ------------------------------------ ## |
2975 |
## Report this to bug-autoconf@gnu.org. ## |
2976 |
## ------------------------------------ ## |
2977 |
_ASBOX |
2978 |
) | |
2979 |
sed "s/^/$as_me: WARNING: /" >&2 |
2980 |
;; |
2981 |
no:yes ) |
2982 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
2983 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
2984 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
2985 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
2986 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
2987 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
2988 |
( |
2989 |
cat <<\_ASBOX |
2990 |
## ------------------------------------ ## |
2991 |
## Report this to bug-autoconf@gnu.org. ## |
2992 |
## ------------------------------------ ## |
2993 |
_ASBOX |
2994 |
) | |
2995 |
sed "s/^/$as_me: WARNING: /" >&2 |
2996 |
;; |
2997 |
esac |
2998 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2999 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3000 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3001 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3002 |
else |
3003 |
eval "$as_ac_Header=$ac_header_preproc" |
3004 |
fi |
3005 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3006 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3007 |
|
3008 |
fi |
3009 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3010 |
cat >>confdefs.h <<_ACEOF |
3011 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3012 |
_ACEOF |
3013 |
gs_cv_have_wraster=yes |
3014 |
else |
3015 |
gs_cv_have_wraster=no |
3016 |
fi |
3017 |
|
3018 |
done |
3019 |
|
3020 |
fi |
3021 |
CPPFLAGS="${wraster_check_save_header}" |
3022 |
LIBS="${wraster_check_save_libs}" |
3023 |
|
3024 |
fi |
3025 |
|
3026 |
echo "$as_me:$LINENO: result: $gs_cv_have_wraster" >&5 |
3027 |
echo "${ECHO_T}$gs_cv_have_wraster" >&6 |
3028 |
|
3029 |
if test $gs_cv_have_wraster = no; then |
3030 |
GRAPHIC_LIBS= |
3031 |
GRAPHIC_CFLAGS= |
3032 |
GRAPHIC_LFLAGS= |
3033 |
fi |
3034 |
|
3035 |
|
3036 |
# Check whether --with-library-flags or --without-library-flags was given. |
3037 |
if test "${with_library_flags+set}" = set; then |
3038 |
withval="$with_library_flags" |
3039 |
|
3040 |
fi; |
3041 |
|
3042 |
# Check whether --with-dps_include or --without-dps_include was given. |
3043 |
if test "${with_dps_include+set}" = set; then |
3044 |
withval="$with_dps_include" |
3045 |
|
3046 |
fi; |
3047 |
GRAPHIC_LFLAGS="$GRAPHIC_LFLAGS $with_library_flags" |
3048 |
GRAPHIC_CFLAGS="$GRAPHIC_CFLAGS $with_include_flags" |
3049 |
|
3050 |
#-------------------------------------------------------------------- |
3051 |
# Find for X windows |
3052 |
#-------------------------------------------------------------------- |
3053 |
# If the user specifically set x_include/x_libs, then assume we're |
3054 |
# using a special X system and discard any previous GRAPHIC_flags |
3055 |
set_x_paths=no |
3056 |
if test $gs_cv_have_wraster = no -o $x_includes != NONE; then |
3057 |
set_x_paths=yes |
3058 |
fi |
3059 |
echo "$as_me:$LINENO: checking for X" >&5 |
3060 |
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
3061 |
|
3062 |
|
3063 |
# Check whether --with-x or --without-x was given. |
3064 |
if test "${with_x+set}" = set; then |
3065 |
withval="$with_x" |
3066 |
|
3067 |
fi; |
3068 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
3069 |
if test "x$with_x" = xno; then |
3070 |
# The user explicitly disabled X. |
3071 |
have_x=disabled |
3072 |
else |
3073 |
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
3074 |
# Both variables are already set. |
3075 |
have_x=yes |
3076 |
else |
3077 |
if test "${ac_cv_have_x+set}" = set; then |
3078 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3079 |
else |
3080 |
# One or both of the vars are not set, and there is no cached value. |
3081 |
ac_x_includes=no ac_x_libraries=no |
3082 |
rm -fr conftest.dir |
3083 |
if mkdir conftest.dir; then |
3084 |
cd conftest.dir |
3085 |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
3086 |
cat >Imakefile <<'_ACEOF' |
3087 |
acfindx: |
3088 |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
3089 |
_ACEOF |
3090 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
3091 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3092 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
3093 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
3094 |
for ac_extension in a so sl; do |
3095 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
3096 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
3097 |
ac_im_usrlibdir=$ac_im_libdir; break |
3098 |
fi |
3099 |
done |
3100 |
# Screen out bogus values from the imake configuration. They are |
3101 |
# bogus both because they are the default anyway, and because |
3102 |
# using them would break gcc on systems where it needs fixed includes. |
3103 |
case $ac_im_incroot in |
3104 |
/usr/include) ;; |
3105 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
3106 |
esac |
3107 |
case $ac_im_usrlibdir in |
3108 |
/usr/lib | /lib) ;; |
3109 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
3110 |
esac |
3111 |
fi |
3112 |
cd .. |
3113 |
rm -fr conftest.dir |
3114 |
fi |
3115 |
|
3116 |
# Standard set of common directories for X headers. |
3117 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
3118 |
ac_x_header_dirs=' |
3119 |
/usr/X11/include |
3120 |
/usr/X11R6/include |
3121 |
/usr/X11R5/include |
3122 |
/usr/X11R4/include |
3123 |
|
3124 |
/usr/include/X11 |
3125 |
/usr/include/X11R6 |
3126 |
/usr/include/X11R5 |
3127 |
/usr/include/X11R4 |
3128 |
|
3129 |
/usr/local/X11/include |
3130 |
/usr/local/X11R6/include |
3131 |
/usr/local/X11R5/include |
3132 |
/usr/local/X11R4/include |
3133 |
|
3134 |
/usr/local/include/X11 |
3135 |
/usr/local/include/X11R6 |
3136 |
/usr/local/include/X11R5 |
3137 |
/usr/local/include/X11R4 |
3138 |
|
3139 |
/usr/X386/include |
3140 |
/usr/x386/include |
3141 |
/usr/XFree86/include/X11 |
3142 |
|
3143 |
/usr/include |
3144 |
/usr/local/include |
3145 |
/usr/unsupported/include |
3146 |
/usr/athena/include |
3147 |
/usr/local/x11r5/include |
3148 |
/usr/lpp/Xamples/include |
3149 |
|
3150 |
/usr/openwin/include |
3151 |
/usr/openwin/share/include' |
3152 |
|
3153 |
if test "$ac_x_includes" = no; then |
3154 |
# Guess where to find include files, by looking for Intrinsic.h. |
3155 |
# First, try using that file with no special directory specified. |
3156 |
cat >conftest.$ac_ext <<_ACEOF |
3157 |
#line $LINENO "configure" |
3158 |
/* confdefs.h. */ |
3159 |
_ACEOF |
3160 |
cat confdefs.h >>conftest.$ac_ext |
3161 |
cat >>conftest.$ac_ext <<_ACEOF |
3162 |
/* end confdefs.h. */ |
3163 |
#include <X11/Intrinsic.h> |
3164 |
_ACEOF |
3165 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3166 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3167 |
ac_status=$? |
3168 |
grep -v '^ *+' conftest.er1 >conftest.err |
3169 |
rm -f conftest.er1 |
3170 |
cat conftest.err >&5 |
3171 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3172 |
(exit $ac_status); } >/dev/null; then |
3173 |
if test -s conftest.err; then |
3174 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3175 |
else |
3176 |
ac_cpp_err= |
3177 |
fi |
3178 |
else |
3179 |
ac_cpp_err=yes |
3180 |
fi |
3181 |
if test -z "$ac_cpp_err"; then |
3182 |
# We can compile using X headers with no special include directory. |
3183 |
ac_x_includes= |
3184 |
else |
3185 |
echo "$as_me: failed program was:" >&5 |
3186 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3187 |
|
3188 |
for ac_dir in $ac_x_header_dirs; do |
3189 |
if test -r "$ac_dir/X11/Intrinsic.h"; then |
3190 |
ac_x_includes=$ac_dir |
3191 |
break |
3192 |
fi |
3193 |
done |
3194 |
fi |
3195 |
rm -f conftest.err conftest.$ac_ext |
3196 |
fi # $ac_x_includes = no |
3197 |
|
3198 |
if test "$ac_x_libraries" = no; then |
3199 |
# Check for the libraries. |
3200 |
# See if we find them without any special options. |
3201 |
# Don't add to $LIBS permanently. |
3202 |
ac_save_LIBS=$LIBS |
3203 |
LIBS="-lXt $LIBS" |
3204 |
cat >conftest.$ac_ext <<_ACEOF |
3205 |
#line $LINENO "configure" |
3206 |
/* confdefs.h. */ |
3207 |
_ACEOF |
3208 |
cat confdefs.h >>conftest.$ac_ext |
3209 |
cat >>conftest.$ac_ext <<_ACEOF |
3210 |
/* end confdefs.h. */ |
3211 |
#include <X11/Intrinsic.h> |
3212 |
int |
3213 |
main () |
3214 |
{ |
3215 |
XtMalloc (0) |
3216 |
; |
3217 |
return 0; |
3218 |
} |
3219 |
_ACEOF |
3220 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3221 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3222 |
(eval $ac_link) 2>&5 |
3223 |
ac_status=$? |
3224 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3225 |
(exit $ac_status); } && |
3226 |
{ ac_try='test -s conftest$ac_exeext' |
3227 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3228 |
(eval $ac_try) 2>&5 |
3229 |
ac_status=$? |
3230 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3231 |
(exit $ac_status); }; }; then |
3232 |
LIBS=$ac_save_LIBS |
3233 |
# We can link X programs with no special library path. |
3234 |
ac_x_libraries= |
3235 |
else |
3236 |
echo "$as_me: failed program was:" >&5 |
3237 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3238 |
|
3239 |
LIBS=$ac_save_LIBS |
3240 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
3241 |
do |
3242 |
# Don't even attempt the hair of trying to link an X program! |
3243 |
for ac_extension in a so sl; do |
3244 |
if test -r $ac_dir/libXt.$ac_extension; then |
3245 |
ac_x_libraries=$ac_dir |
3246 |
break 2 |
3247 |
fi |
3248 |
done |
3249 |
done |
3250 |
fi |
3251 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3252 |
fi # $ac_x_libraries = no |
3253 |
|
3254 |
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
3255 |
# Didn't find X anywhere. Cache the known absence of X. |
3256 |
ac_cv_have_x="have_x=no" |
3257 |
else |
3258 |
# Record where we found X for the cache. |
3259 |
ac_cv_have_x="have_x=yes \ |
3260 |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
3261 |
fi |
3262 |
fi |
3263 |
|
3264 |
fi |
3265 |
eval "$ac_cv_have_x" |
3266 |
fi # $with_x != no |
3267 |
|
3268 |
if test "$have_x" != yes; then |
3269 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
3270 |
echo "${ECHO_T}$have_x" >&6 |
3271 |
no_x=yes |
3272 |
else |
3273 |
# If each of the values was on the command line, it overrides each guess. |
3274 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
3275 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
3276 |
# Update the cache value to reflect the command line values. |
3277 |
ac_cv_have_x="have_x=yes \ |
3278 |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
3279 |
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
3280 |
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
3281 |
fi |
3282 |
|
3283 |
if test "$no_x" = yes; then |
3284 |
# Not all programs may use this symbol, but it does not hurt to define it. |
3285 |
|
3286 |
cat >>confdefs.h <<\_ACEOF |
3287 |
#define X_DISPLAY_MISSING 1 |
3288 |
_ACEOF |
3289 |
|
3290 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
3291 |
else |
3292 |
if test -n "$x_includes"; then |
3293 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
3294 |
fi |
3295 |
|
3296 |
# It would also be nice to do this for all -L options, not just this one. |
3297 |
if test -n "$x_libraries"; then |
3298 |
X_LIBS="$X_LIBS -L$x_libraries" |
3299 |
# For Solaris; some versions of Sun CC require a space after -R and |
3300 |
# others require no space. Words are not sufficient . . . . |
3301 |
case `(uname -sr) 2>/dev/null` in |
3302 |
"SunOS 5"*) |
3303 |
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
3304 |
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
3305 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
3306 |
cat >conftest.$ac_ext <<_ACEOF |
3307 |
#line $LINENO "configure" |
3308 |
/* confdefs.h. */ |
3309 |
_ACEOF |
3310 |
cat confdefs.h >>conftest.$ac_ext |
3311 |
cat >>conftest.$ac_ext <<_ACEOF |
3312 |
/* end confdefs.h. */ |
3313 |
|
3314 |
int |
3315 |
main () |
3316 |
{ |
3317 |
|
3318 |
; |
3319 |
return 0; |
3320 |
} |
3321 |
_ACEOF |
3322 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3323 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3324 |
(eval $ac_link) 2>&5 |
3325 |
ac_status=$? |
3326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3327 |
(exit $ac_status); } && |
3328 |
{ ac_try='test -s conftest$ac_exeext' |
3329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3330 |
(eval $ac_try) 2>&5 |
3331 |
ac_status=$? |
3332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3333 |
(exit $ac_status); }; }; then |
3334 |
ac_R_nospace=yes |
3335 |
else |
3336 |
echo "$as_me: failed program was:" >&5 |
3337 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3338 |
|
3339 |
ac_R_nospace=no |
3340 |
fi |
3341 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3342 |
if test $ac_R_nospace = yes; then |
3343 |
echo "$as_me:$LINENO: result: no" >&5 |
3344 |
echo "${ECHO_T}no" >&6 |
3345 |
X_LIBS="$X_LIBS -R$x_libraries" |
3346 |
else |
3347 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
3348 |
cat >conftest.$ac_ext <<_ACEOF |
3349 |
#line $LINENO "configure" |
3350 |
/* confdefs.h. */ |
3351 |
_ACEOF |
3352 |
cat confdefs.h >>conftest.$ac_ext |
3353 |
cat >>conftest.$ac_ext <<_ACEOF |
3354 |
/* end confdefs.h. */ |
3355 |
|
3356 |
int |
3357 |
main () |
3358 |
{ |
3359 |
|
3360 |
; |
3361 |
return 0; |
3362 |
} |
3363 |
_ACEOF |
3364 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3365 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3366 |
(eval $ac_link) 2>&5 |
3367 |
ac_status=$? |
3368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3369 |
(exit $ac_status); } && |
3370 |
{ ac_try='test -s conftest$ac_exeext' |
3371 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3372 |
(eval $ac_try) 2>&5 |
3373 |
ac_status=$? |
3374 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3375 |
(exit $ac_status); }; }; then |
3376 |
ac_R_space=yes |
3377 |
else |
3378 |
echo "$as_me: failed program was:" >&5 |
3379 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3380 |
|
3381 |
ac_R_space=no |
3382 |
fi |
3383 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3384 |
if test $ac_R_space = yes; then |
3385 |
echo "$as_me:$LINENO: result: yes" >&5 |
3386 |
echo "${ECHO_T}yes" >&6 |
3387 |
X_LIBS="$X_LIBS -R $x_libraries" |
3388 |
else |
3389 |
echo "$as_me:$LINENO: result: neither works" >&5 |
3390 |
echo "${ECHO_T}neither works" >&6 |
3391 |
fi |
3392 |
fi |
3393 |
LIBS=$ac_xsave_LIBS |
3394 |
esac |
3395 |
fi |
3396 |
|
3397 |
# Check for system-dependent libraries X programs must link with. |
3398 |
# Do this before checking for the system-independent R6 libraries |
3399 |
# (-lICE), since we may need -lsocket or whatever for X linking. |
3400 |
|
3401 |
if test "$ISC" = yes; then |
3402 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
3403 |
else |
3404 |
# Martyn Johnson says this is needed for Ultrix, if the X |
3405 |
# libraries were built with DECnet support. And Karl Berry says |
3406 |
# the Alpha needs dnet_stub (dnet does not exist). |
3407 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
3408 |
cat >conftest.$ac_ext <<_ACEOF |
3409 |
#line $LINENO "configure" |
3410 |
/* confdefs.h. */ |
3411 |
_ACEOF |
3412 |
cat confdefs.h >>conftest.$ac_ext |
3413 |
cat >>conftest.$ac_ext <<_ACEOF |
3414 |
/* end confdefs.h. */ |
3415 |
|
3416 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3417 |
#ifdef __cplusplus |
3418 |
extern "C" |
3419 |
#endif |
3420 |
/* We use char because int might match the return type of a gcc2 |
3421 |
builtin and then its argument prototype would still apply. */ |
3422 |
char XOpenDisplay (); |
3423 |
int |
3424 |
main () |
3425 |
{ |
3426 |
XOpenDisplay (); |
3427 |
; |
3428 |
return 0; |
3429 |
} |
3430 |
_ACEOF |
3431 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3432 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3433 |
(eval $ac_link) 2>&5 |
3434 |
ac_status=$? |
3435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3436 |
(exit $ac_status); } && |
3437 |
{ ac_try='test -s conftest$ac_exeext' |
3438 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3439 |
(eval $ac_try) 2>&5 |
3440 |
ac_status=$? |
3441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3442 |
(exit $ac_status); }; }; then |
3443 |
: |
3444 |
else |
3445 |
echo "$as_me: failed program was:" >&5 |
3446 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3447 |
|
3448 |
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
3449 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
3450 |
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
3451 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3452 |
else |
3453 |
ac_check_lib_save_LIBS=$LIBS |
3454 |
LIBS="-ldnet $LIBS" |
3455 |
cat >conftest.$ac_ext <<_ACEOF |
3456 |
#line $LINENO "configure" |
3457 |
/* confdefs.h. */ |
3458 |
_ACEOF |
3459 |
cat confdefs.h >>conftest.$ac_ext |
3460 |
cat >>conftest.$ac_ext <<_ACEOF |
3461 |
/* end confdefs.h. */ |
3462 |
|
3463 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3464 |
#ifdef __cplusplus |
3465 |
extern "C" |
3466 |
#endif |
3467 |
/* We use char because int might match the return type of a gcc2 |
3468 |
builtin and then its argument prototype would still apply. */ |
3469 |
char dnet_ntoa (); |
3470 |
int |
3471 |
main () |
3472 |
{ |
3473 |
dnet_ntoa (); |
3474 |
; |
3475 |
return 0; |
3476 |
} |
3477 |
_ACEOF |
3478 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3479 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3480 |
(eval $ac_link) 2>&5 |
3481 |
ac_status=$? |
3482 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3483 |
(exit $ac_status); } && |
3484 |
{ ac_try='test -s conftest$ac_exeext' |
3485 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3486 |
(eval $ac_try) 2>&5 |
3487 |
ac_status=$? |
3488 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3489 |
(exit $ac_status); }; }; then |
3490 |
ac_cv_lib_dnet_dnet_ntoa=yes |
3491 |
else |
3492 |
echo "$as_me: failed program was:" >&5 |
3493 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3494 |
|
3495 |
ac_cv_lib_dnet_dnet_ntoa=no |
3496 |
fi |
3497 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3498 |
LIBS=$ac_check_lib_save_LIBS |
3499 |
fi |
3500 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
3501 |
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
3502 |
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
3503 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3504 |
fi |
3505 |
|
3506 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
3507 |
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
3508 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
3509 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
3510 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3511 |
else |
3512 |
ac_check_lib_save_LIBS=$LIBS |
3513 |
LIBS="-ldnet_stub $LIBS" |
3514 |
cat >conftest.$ac_ext <<_ACEOF |
3515 |
#line $LINENO "configure" |
3516 |
/* confdefs.h. */ |
3517 |
_ACEOF |
3518 |
cat confdefs.h >>conftest.$ac_ext |
3519 |
cat >>conftest.$ac_ext <<_ACEOF |
3520 |
/* end confdefs.h. */ |
3521 |
|
3522 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3523 |
#ifdef __cplusplus |
3524 |
extern "C" |
3525 |
#endif |
3526 |
/* We use char because int might match the return type of a gcc2 |
3527 |
builtin and then its argument prototype would still apply. */ |
3528 |
char dnet_ntoa (); |
3529 |
int |
3530 |
main () |
3531 |
{ |
3532 |
dnet_ntoa (); |
3533 |
; |
3534 |
return 0; |
3535 |
} |
3536 |
_ACEOF |
3537 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3538 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3539 |
(eval $ac_link) 2>&5 |
3540 |
ac_status=$? |
3541 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3542 |
(exit $ac_status); } && |
3543 |
{ ac_try='test -s conftest$ac_exeext' |
3544 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3545 |
(eval $ac_try) 2>&5 |
3546 |
ac_status=$? |
3547 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3548 |
(exit $ac_status); }; }; then |
3549 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
3550 |
else |
3551 |
echo "$as_me: failed program was:" >&5 |
3552 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3553 |
|
3554 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
3555 |
fi |
3556 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3557 |
LIBS=$ac_check_lib_save_LIBS |
3558 |
fi |
3559 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
3560 |
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
3561 |
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
3562 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3563 |
fi |
3564 |
|
3565 |
fi |
3566 |
fi |
3567 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3568 |
LIBS="$ac_xsave_LIBS" |
3569 |
|
3570 |
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
3571 |
# to get the SysV transport functions. |
3572 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
3573 |
# needs -lnsl. |
3574 |
# The nsl library prevents programs from opening the X display |
3575 |
# on Irix 5.2, according to T.E. Dickey. |
3576 |
# The functions gethostbyname, getservbyname, and inet_addr are |
3577 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
3578 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
3579 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
3580 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
3581 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3582 |
else |
3583 |
cat >conftest.$ac_ext <<_ACEOF |
3584 |
#line $LINENO "configure" |
3585 |
/* confdefs.h. */ |
3586 |
_ACEOF |
3587 |
cat confdefs.h >>conftest.$ac_ext |
3588 |
cat >>conftest.$ac_ext <<_ACEOF |
3589 |
/* end confdefs.h. */ |
3590 |
/* System header to define __stub macros and hopefully few prototypes, |
3591 |
which can conflict with char gethostbyname (); below. |
3592 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3593 |
<limits.h> exists even on freestanding compilers. */ |
3594 |
#ifdef __STDC__ |
3595 |
# include <limits.h> |
3596 |
#else |
3597 |
# include <assert.h> |
3598 |
#endif |
3599 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3600 |
#ifdef __cplusplus |
3601 |
extern "C" |
3602 |
{ |
3603 |
#endif |
3604 |
/* We use char because int might match the return type of a gcc2 |
3605 |
builtin and then its argument prototype would still apply. */ |
3606 |
char gethostbyname (); |
3607 |
/* The GNU C library defines this for functions which it implements |
3608 |
to always fail with ENOSYS. Some functions are actually named |
3609 |
something starting with __ and the normal name is an alias. */ |
3610 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
3611 |
choke me |
3612 |
#else |
3613 |
char (*f) () = gethostbyname; |
3614 |
#endif |
3615 |
#ifdef __cplusplus |
3616 |
} |
3617 |
#endif |
3618 |
|
3619 |
int |
3620 |
main () |
3621 |
{ |
3622 |
return f != gethostbyname; |
3623 |
; |
3624 |
return 0; |
3625 |
} |
3626 |
_ACEOF |
3627 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3628 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3629 |
(eval $ac_link) 2>&5 |
3630 |
ac_status=$? |
3631 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3632 |
(exit $ac_status); } && |
3633 |
{ ac_try='test -s conftest$ac_exeext' |
3634 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3635 |
(eval $ac_try) 2>&5 |
3636 |
ac_status=$? |
3637 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3638 |
(exit $ac_status); }; }; then |
3639 |
ac_cv_func_gethostbyname=yes |
3640 |
else |
3641 |
echo "$as_me: failed program was:" >&5 |
3642 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3643 |
|
3644 |
ac_cv_func_gethostbyname=no |
3645 |
fi |
3646 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3647 |
fi |
3648 |
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
3649 |
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
3650 |
|
3651 |
if test $ac_cv_func_gethostbyname = no; then |
3652 |
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3653 |
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3654 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3655 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3656 |
else |
3657 |
ac_check_lib_save_LIBS=$LIBS |
3658 |
LIBS="-lnsl $LIBS" |
3659 |
cat >conftest.$ac_ext <<_ACEOF |
3660 |
#line $LINENO "configure" |
3661 |
/* confdefs.h. */ |
3662 |
_ACEOF |
3663 |
cat confdefs.h >>conftest.$ac_ext |
3664 |
cat >>conftest.$ac_ext <<_ACEOF |
3665 |
/* end confdefs.h. */ |
3666 |
|
3667 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3668 |
#ifdef __cplusplus |
3669 |
extern "C" |
3670 |
#endif |
3671 |
/* We use char because int might match the return type of a gcc2 |
3672 |
builtin and then its argument prototype would still apply. */ |
3673 |
char gethostbyname (); |
3674 |
int |
3675 |
main () |
3676 |
{ |
3677 |
gethostbyname (); |
3678 |
; |
3679 |
return 0; |
3680 |
} |
3681 |
_ACEOF |
3682 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3683 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3684 |
(eval $ac_link) 2>&5 |
3685 |
ac_status=$? |
3686 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3687 |
(exit $ac_status); } && |
3688 |
{ ac_try='test -s conftest$ac_exeext' |
3689 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3690 |
(eval $ac_try) 2>&5 |
3691 |
ac_status=$? |
3692 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3693 |
(exit $ac_status); }; }; then |
3694 |
ac_cv_lib_nsl_gethostbyname=yes |
3695 |
else |
3696 |
echo "$as_me: failed program was:" >&5 |
3697 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3698 |
|
3699 |
ac_cv_lib_nsl_gethostbyname=no |
3700 |
fi |
3701 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3702 |
LIBS=$ac_check_lib_save_LIBS |
3703 |
fi |
3704 |
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
3705 |
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3706 |
if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3707 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
3708 |
fi |
3709 |
|
3710 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
3711 |
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
3712 |
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
3713 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
3714 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3715 |
else |
3716 |
ac_check_lib_save_LIBS=$LIBS |
3717 |
LIBS="-lbsd $LIBS" |
3718 |
cat >conftest.$ac_ext <<_ACEOF |
3719 |
#line $LINENO "configure" |
3720 |
/* confdefs.h. */ |
3721 |
_ACEOF |
3722 |
cat confdefs.h >>conftest.$ac_ext |
3723 |
cat >>conftest.$ac_ext <<_ACEOF |
3724 |
/* end confdefs.h. */ |
3725 |
|
3726 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3727 |
#ifdef __cplusplus |
3728 |
extern "C" |
3729 |
#endif |
3730 |
/* We use char because int might match the return type of a gcc2 |
3731 |
builtin and then its argument prototype would still apply. */ |
3732 |
char gethostbyname (); |
3733 |
int |
3734 |
main () |
3735 |
{ |
3736 |
gethostbyname (); |
3737 |
; |
3738 |
return 0; |
3739 |
} |
3740 |
_ACEOF |
3741 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3742 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3743 |
(eval $ac_link) 2>&5 |
3744 |
ac_status=$? |
3745 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3746 |
(exit $ac_status); } && |
3747 |
{ ac_try='test -s conftest$ac_exeext' |
3748 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3749 |
(eval $ac_try) 2>&5 |
3750 |
ac_status=$? |
3751 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3752 |
(exit $ac_status); }; }; then |
3753 |
ac_cv_lib_bsd_gethostbyname=yes |
3754 |
else |
3755 |
echo "$as_me: failed program was:" >&5 |
3756 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3757 |
|
3758 |
ac_cv_lib_bsd_gethostbyname=no |
3759 |
fi |
3760 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3761 |
LIBS=$ac_check_lib_save_LIBS |
3762 |
fi |
3763 |
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
3764 |
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
3765 |
if test $ac_cv_lib_bsd_gethostbyname = yes; then |
3766 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
3767 |
fi |
3768 |
|
3769 |
fi |
3770 |
fi |
3771 |
|
3772 |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
3773 |
# socket/setsockopt and other routines are undefined under SCO ODT |
3774 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
3775 |
# on later versions), says Simon Leinen: it contains gethostby* |
3776 |
# variants that don't use the name server (or something). -lsocket |
3777 |
# must be given before -lnsl if both are needed. We assume that |
3778 |
# if connect needs -lnsl, so does gethostbyname. |
3779 |
echo "$as_me:$LINENO: checking for connect" >&5 |
3780 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
3781 |
if test "${ac_cv_func_connect+set}" = set; then |
3782 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3783 |
else |
3784 |
cat >conftest.$ac_ext <<_ACEOF |
3785 |
#line $LINENO "configure" |
3786 |
/* confdefs.h. */ |
3787 |
_ACEOF |
3788 |
cat confdefs.h >>conftest.$ac_ext |
3789 |
cat >>conftest.$ac_ext <<_ACEOF |
3790 |
/* end confdefs.h. */ |
3791 |
/* System header to define __stub macros and hopefully few prototypes, |
3792 |
which can conflict with char connect (); below. |
3793 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3794 |
<limits.h> exists even on freestanding compilers. */ |
3795 |
#ifdef __STDC__ |
3796 |
# include <limits.h> |
3797 |
#else |
3798 |
# include <assert.h> |
3799 |
#endif |
3800 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3801 |
#ifdef __cplusplus |
3802 |
extern "C" |
3803 |
{ |
3804 |
#endif |
3805 |
/* We use char because int might match the return type of a gcc2 |
3806 |
builtin and then its argument prototype would still apply. */ |
3807 |
char connect (); |
3808 |
/* The GNU C library defines this for functions which it implements |
3809 |
to always fail with ENOSYS. Some functions are actually named |
3810 |
something starting with __ and the normal name is an alias. */ |
3811 |
#if defined (__stub_connect) || defined (__stub___connect) |
3812 |
choke me |
3813 |
#else |
3814 |
char (*f) () = connect; |
3815 |
#endif |
3816 |
#ifdef __cplusplus |
3817 |
} |
3818 |
#endif |
3819 |
|
3820 |
int |
3821 |
main () |
3822 |
{ |
3823 |
return f != connect; |
3824 |
; |
3825 |
return 0; |
3826 |
} |
3827 |
_ACEOF |
3828 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3829 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3830 |
(eval $ac_link) 2>&5 |
3831 |
ac_status=$? |
3832 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3833 |
(exit $ac_status); } && |
3834 |
{ ac_try='test -s conftest$ac_exeext' |
3835 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3836 |
(eval $ac_try) 2>&5 |
3837 |
ac_status=$? |
3838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3839 |
(exit $ac_status); }; }; then |
3840 |
ac_cv_func_connect=yes |
3841 |
else |
3842 |
echo "$as_me: failed program was:" >&5 |
3843 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3844 |
|
3845 |
ac_cv_func_connect=no |
3846 |
fi |
3847 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3848 |
fi |
3849 |
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
3850 |
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
3851 |
|
3852 |
if test $ac_cv_func_connect = no; then |
3853 |
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
3854 |
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
3855 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
3856 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3857 |
else |
3858 |
ac_check_lib_save_LIBS=$LIBS |
3859 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
3860 |
cat >conftest.$ac_ext <<_ACEOF |
3861 |
#line $LINENO "configure" |
3862 |
/* confdefs.h. */ |
3863 |
_ACEOF |
3864 |
cat confdefs.h >>conftest.$ac_ext |
3865 |
cat >>conftest.$ac_ext <<_ACEOF |
3866 |
/* end confdefs.h. */ |
3867 |
|
3868 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3869 |
#ifdef __cplusplus |
3870 |
extern "C" |
3871 |
#endif |
3872 |
/* We use char because int might match the return type of a gcc2 |
3873 |
builtin and then its argument prototype would still apply. */ |
3874 |
char connect (); |
3875 |
int |
3876 |
main () |
3877 |
{ |
3878 |
connect (); |
3879 |
; |
3880 |
return 0; |
3881 |
} |
3882 |
_ACEOF |
3883 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3884 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3885 |
(eval $ac_link) 2>&5 |
3886 |
ac_status=$? |
3887 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3888 |
(exit $ac_status); } && |
3889 |
{ ac_try='test -s conftest$ac_exeext' |
3890 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3891 |
(eval $ac_try) 2>&5 |
3892 |
ac_status=$? |
3893 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3894 |
(exit $ac_status); }; }; then |
3895 |
ac_cv_lib_socket_connect=yes |
3896 |
else |
3897 |
echo "$as_me: failed program was:" >&5 |
3898 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3899 |
|
3900 |
ac_cv_lib_socket_connect=no |
3901 |
fi |
3902 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3903 |
LIBS=$ac_check_lib_save_LIBS |
3904 |
fi |
3905 |
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
3906 |
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
3907 |
if test $ac_cv_lib_socket_connect = yes; then |
3908 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
3909 |
fi |
3910 |
|
3911 |
fi |
3912 |
|
3913 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
3914 |
echo "$as_me:$LINENO: checking for remove" >&5 |
3915 |
echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
3916 |
if test "${ac_cv_func_remove+set}" = set; then |
3917 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 |
else |
3919 |
cat >conftest.$ac_ext <<_ACEOF |
3920 |
#line $LINENO "configure" |
3921 |
/* confdefs.h. */ |
3922 |
_ACEOF |
3923 |
cat confdefs.h >>conftest.$ac_ext |
3924 |
cat >>conftest.$ac_ext <<_ACEOF |
3925 |
/* end confdefs.h. */ |
3926 |
/* System header to define __stub macros and hopefully few prototypes, |
3927 |
which can conflict with char remove (); below. |
3928 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3929 |
<limits.h> exists even on freestanding compilers. */ |
3930 |
#ifdef __STDC__ |
3931 |
# include <limits.h> |
3932 |
#else |
3933 |
# include <assert.h> |
3934 |
#endif |
3935 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3936 |
#ifdef __cplusplus |
3937 |
extern "C" |
3938 |
{ |
3939 |
#endif |
3940 |
/* We use char because int might match the return type of a gcc2 |
3941 |
builtin and then its argument prototype would still apply. */ |
3942 |
char remove (); |
3943 |
/* The GNU C library defines this for functions which it implements |
3944 |
to always fail with ENOSYS. Some functions are actually named |
3945 |
something starting with __ and the normal name is an alias. */ |
3946 |
#if defined (__stub_remove) || defined (__stub___remove) |
3947 |
choke me |
3948 |
#else |
3949 |
char (*f) () = remove; |
3950 |
#endif |
3951 |
#ifdef __cplusplus |
3952 |
} |
3953 |
#endif |
3954 |
|
3955 |
int |
3956 |
main () |
3957 |
{ |
3958 |
return f != remove; |
3959 |
; |
3960 |
return 0; |
3961 |
} |
3962 |
_ACEOF |
3963 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3964 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3965 |
(eval $ac_link) 2>&5 |
3966 |
ac_status=$? |
3967 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3968 |
(exit $ac_status); } && |
3969 |
{ ac_try='test -s conftest$ac_exeext' |
3970 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3971 |
(eval $ac_try) 2>&5 |
3972 |
ac_status=$? |
3973 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3974 |
(exit $ac_status); }; }; then |
3975 |
ac_cv_func_remove=yes |
3976 |
else |
3977 |
echo "$as_me: failed program was:" >&5 |
3978 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3979 |
|
3980 |
ac_cv_func_remove=no |
3981 |
fi |
3982 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3983 |
fi |
3984 |
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
3985 |
echo "${ECHO_T}$ac_cv_func_remove" >&6 |
3986 |
|
3987 |
if test $ac_cv_func_remove = no; then |
3988 |
echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
3989 |
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
3990 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
3991 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3992 |
else |
3993 |
ac_check_lib_save_LIBS=$LIBS |
3994 |
LIBS="-lposix $LIBS" |
3995 |
cat >conftest.$ac_ext <<_ACEOF |
3996 |
#line $LINENO "configure" |
3997 |
/* confdefs.h. */ |
3998 |
_ACEOF |
3999 |
cat confdefs.h >>conftest.$ac_ext |
4000 |
cat >>conftest.$ac_ext <<_ACEOF |
4001 |
/* end confdefs.h. */ |
4002 |
|
4003 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4004 |
#ifdef __cplusplus |
4005 |
extern "C" |
4006 |
#endif |
4007 |
/* We use char because int might match the return type of a gcc2 |
4008 |
builtin and then its argument prototype would still apply. */ |
4009 |
char remove (); |
4010 |
int |
4011 |
main () |
4012 |
{ |
4013 |
remove (); |
4014 |
; |
4015 |
return 0; |
4016 |
} |
4017 |
_ACEOF |
4018 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4019 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4020 |
(eval $ac_link) 2>&5 |
4021 |
ac_status=$? |
4022 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4023 |
(exit $ac_status); } && |
4024 |
{ ac_try='test -s conftest$ac_exeext' |
4025 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4026 |
(eval $ac_try) 2>&5 |
4027 |
ac_status=$? |
4028 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4029 |
(exit $ac_status); }; }; then |
4030 |
ac_cv_lib_posix_remove=yes |
4031 |
else |
4032 |
echo "$as_me: failed program was:" >&5 |
4033 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4034 |
|
4035 |
ac_cv_lib_posix_remove=no |
4036 |
fi |
4037 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4038 |
LIBS=$ac_check_lib_save_LIBS |
4039 |
fi |
4040 |
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
4041 |
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
4042 |
if test $ac_cv_lib_posix_remove = yes; then |
4043 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
4044 |
fi |
4045 |
|
4046 |
fi |
4047 |
|
4048 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
4049 |
echo "$as_me:$LINENO: checking for shmat" >&5 |
4050 |
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
4051 |
if test "${ac_cv_func_shmat+set}" = set; then |
4052 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4053 |
else |
4054 |
cat >conftest.$ac_ext <<_ACEOF |
4055 |
#line $LINENO "configure" |
4056 |
/* confdefs.h. */ |
4057 |
_ACEOF |
4058 |
cat confdefs.h >>conftest.$ac_ext |
4059 |
cat >>conftest.$ac_ext <<_ACEOF |
4060 |
/* end confdefs.h. */ |
4061 |
/* System header to define __stub macros and hopefully few prototypes, |
4062 |
which can conflict with char shmat (); below. |
4063 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4064 |
<limits.h> exists even on freestanding compilers. */ |
4065 |
#ifdef __STDC__ |
4066 |
# include <limits.h> |
4067 |
#else |
4068 |
# include <assert.h> |
4069 |
#endif |
4070 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4071 |
#ifdef __cplusplus |
4072 |
extern "C" |
4073 |
{ |
4074 |
#endif |
4075 |
/* We use char because int might match the return type of a gcc2 |
4076 |
builtin and then its argument prototype would still apply. */ |
4077 |
char shmat (); |
4078 |
/* The GNU C library defines this for functions which it implements |
4079 |
to always fail with ENOSYS. Some functions are actually named |
4080 |
something starting with __ and the normal name is an alias. */ |
4081 |
#if defined (__stub_shmat) || defined (__stub___shmat) |
4082 |
choke me |
4083 |
#else |
4084 |
char (*f) () = shmat; |
4085 |
#endif |
4086 |
#ifdef __cplusplus |
4087 |
} |
4088 |
#endif |
4089 |
|
4090 |
int |
4091 |
main () |
4092 |
{ |
4093 |
return f != shmat; |
4094 |
; |
4095 |
return 0; |
4096 |
} |
4097 |
_ACEOF |
4098 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4099 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4100 |
(eval $ac_link) 2>&5 |
4101 |
ac_status=$? |
4102 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4103 |
(exit $ac_status); } && |
4104 |
{ ac_try='test -s conftest$ac_exeext' |
4105 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4106 |
(eval $ac_try) 2>&5 |
4107 |
ac_status=$? |
4108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4109 |
(exit $ac_status); }; }; then |
4110 |
ac_cv_func_shmat=yes |
4111 |
else |
4112 |
echo "$as_me: failed program was:" >&5 |
4113 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4114 |
|
4115 |
ac_cv_func_shmat=no |
4116 |
fi |
4117 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4118 |
fi |
4119 |
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
4120 |
echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
4121 |
|
4122 |
if test $ac_cv_func_shmat = no; then |
4123 |
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
4124 |
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
4125 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
4126 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4127 |
else |
4128 |
ac_check_lib_save_LIBS=$LIBS |
4129 |
LIBS="-lipc $LIBS" |
4130 |
cat >conftest.$ac_ext <<_ACEOF |
4131 |
#line $LINENO "configure" |
4132 |
/* confdefs.h. */ |
4133 |
_ACEOF |
4134 |
cat confdefs.h >>conftest.$ac_ext |
4135 |
cat >>conftest.$ac_ext <<_ACEOF |
4136 |
/* end confdefs.h. */ |
4137 |
|
4138 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4139 |
#ifdef __cplusplus |
4140 |
extern "C" |
4141 |
#endif |
4142 |
/* We use char because int might match the return type of a gcc2 |
4143 |
builtin and then its argument prototype would still apply. */ |
4144 |
char shmat (); |
4145 |
int |
4146 |
main () |
4147 |
{ |
4148 |
shmat (); |
4149 |
; |
4150 |
return 0; |
4151 |
} |
4152 |
_ACEOF |
4153 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4154 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4155 |
(eval $ac_link) 2>&5 |
4156 |
ac_status=$? |
4157 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4158 |
(exit $ac_status); } && |
4159 |
{ ac_try='test -s conftest$ac_exeext' |
4160 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4161 |
(eval $ac_try) 2>&5 |
4162 |
ac_status=$? |
4163 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4164 |
(exit $ac_status); }; }; then |
4165 |
ac_cv_lib_ipc_shmat=yes |
4166 |
else |
4167 |
echo "$as_me: failed program was:" >&5 |
4168 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4169 |
|
4170 |
ac_cv_lib_ipc_shmat=no |
4171 |
fi |
4172 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4173 |
LIBS=$ac_check_lib_save_LIBS |
4174 |
fi |
4175 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
4176 |
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
4177 |
if test $ac_cv_lib_ipc_shmat = yes; then |
4178 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
4179 |
fi |
4180 |
|
4181 |
fi |
4182 |
fi |
4183 |
|
4184 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
4185 |
ac_save_LDFLAGS=$LDFLAGS |
4186 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
4187 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
4188 |
# check for ICE first), but we must link in the order -lSM -lICE or |
4189 |
# we get undefined symbols. So assume we have SM if we have ICE. |
4190 |
# These have to be linked with before -lX11, unlike the other |
4191 |
# libraries we check for below, so use a different variable. |
4192 |
# John Interrante, Karl Berry |
4193 |
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
4194 |
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
4195 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
4196 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4197 |
else |
4198 |
ac_check_lib_save_LIBS=$LIBS |
4199 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
4200 |
cat >conftest.$ac_ext <<_ACEOF |
4201 |
#line $LINENO "configure" |
4202 |
/* confdefs.h. */ |
4203 |
_ACEOF |
4204 |
cat confdefs.h >>conftest.$ac_ext |
4205 |
cat >>conftest.$ac_ext <<_ACEOF |
4206 |
/* end confdefs.h. */ |
4207 |
|
4208 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4209 |
#ifdef __cplusplus |
4210 |
extern "C" |
4211 |
#endif |
4212 |
/* We use char because int might match the return type of a gcc2 |
4213 |
builtin and then its argument prototype would still apply. */ |
4214 |
char IceConnectionNumber (); |
4215 |
int |
4216 |
main () |
4217 |
{ |
4218 |
IceConnectionNumber (); |
4219 |
; |
4220 |
return 0; |
4221 |
} |
4222 |
_ACEOF |
4223 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4224 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4225 |
(eval $ac_link) 2>&5 |
4226 |
ac_status=$? |
4227 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4228 |
(exit $ac_status); } && |
4229 |
{ ac_try='test -s conftest$ac_exeext' |
4230 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4231 |
(eval $ac_try) 2>&5 |
4232 |
ac_status=$? |
4233 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4234 |
(exit $ac_status); }; }; then |
4235 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
4236 |
else |
4237 |
echo "$as_me: failed program was:" >&5 |
4238 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4239 |
|
4240 |
ac_cv_lib_ICE_IceConnectionNumber=no |
4241 |
fi |
4242 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4243 |
LIBS=$ac_check_lib_save_LIBS |
4244 |
fi |
4245 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
4246 |
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
4247 |
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
4248 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
4249 |
fi |
4250 |
|
4251 |
LDFLAGS=$ac_save_LDFLAGS |
4252 |
|
4253 |
fi |
4254 |
|
4255 |
if test "x$no_x" = xyes; then |
4256 |
set_x_paths=no |
4257 |
fi |
4258 |
|
4259 |
if test $set_x_paths = yes; then |
4260 |
GRAPHIC_CFLAGS="$X_CFLAGS" |
4261 |
GRAPHIC_LFLAGS="$X_LIBS" |
4262 |
GRAPHIC_LIBS="$X_EXTRA_LIBS" |
4263 |
|
4264 |
lib_save_header=${CPPFLAGS} |
4265 |
lib_save_libs=${LIBS} |
4266 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
4267 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
4268 |
echo "$as_me:$LINENO: checking for main in -lXext" >&5 |
4269 |
echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6 |
4270 |
if test "${ac_cv_lib_Xext_main+set}" = set; then |
4271 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4272 |
else |
4273 |
ac_check_lib_save_LIBS=$LIBS |
4274 |
LIBS="-lXext $LIBS" |
4275 |
cat >conftest.$ac_ext <<_ACEOF |
4276 |
#line $LINENO "configure" |
4277 |
/* confdefs.h. */ |
4278 |
_ACEOF |
4279 |
cat confdefs.h >>conftest.$ac_ext |
4280 |
cat >>conftest.$ac_ext <<_ACEOF |
4281 |
/* end confdefs.h. */ |
4282 |
|
4283 |
|
4284 |
int |
4285 |
main () |
4286 |
{ |
4287 |
main (); |
4288 |
; |
4289 |
return 0; |
4290 |
} |
4291 |
_ACEOF |
4292 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4293 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4294 |
(eval $ac_link) 2>&5 |
4295 |
ac_status=$? |
4296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4297 |
(exit $ac_status); } && |
4298 |
{ ac_try='test -s conftest$ac_exeext' |
4299 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4300 |
(eval $ac_try) 2>&5 |
4301 |
ac_status=$? |
4302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4303 |
(exit $ac_status); }; }; then |
4304 |
ac_cv_lib_Xext_main=yes |
4305 |
else |
4306 |
echo "$as_me: failed program was:" >&5 |
4307 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4308 |
|
4309 |
ac_cv_lib_Xext_main=no |
4310 |
fi |
4311 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4312 |
LIBS=$ac_check_lib_save_LIBS |
4313 |
fi |
4314 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5 |
4315 |
echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6 |
4316 |
if test $ac_cv_lib_Xext_main = yes; then |
4317 |
have_xext=1 |
4318 |
else |
4319 |
have_xext=0 |
4320 |
fi |
4321 |
|
4322 |
if test $have_xext = 1; then |
4323 |
GRAPHIC_LIBS="-lX11 -lXext ${GRAPHIC_LIBS}" |
4324 |
else |
4325 |
GRAPHIC_LIBS="-lX11 ${GRAPHIC_LIBS}" |
4326 |
fi |
4327 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
4328 |
echo "$as_me:$LINENO: checking for main in -lXmu" >&5 |
4329 |
echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6 |
4330 |
if test "${ac_cv_lib_Xmu_main+set}" = set; then |
4331 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4332 |
else |
4333 |
ac_check_lib_save_LIBS=$LIBS |
4334 |
LIBS="-lXmu $LIBS" |
4335 |
cat >conftest.$ac_ext <<_ACEOF |
4336 |
#line $LINENO "configure" |
4337 |
/* confdefs.h. */ |
4338 |
_ACEOF |
4339 |
cat confdefs.h >>conftest.$ac_ext |
4340 |
cat >>conftest.$ac_ext <<_ACEOF |
4341 |
/* end confdefs.h. */ |
4342 |
|
4343 |
|
4344 |
int |
4345 |
main () |
4346 |
{ |
4347 |
main (); |
4348 |
; |
4349 |
return 0; |
4350 |
} |
4351 |
_ACEOF |
4352 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4353 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4354 |
(eval $ac_link) 2>&5 |
4355 |
ac_status=$? |
4356 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4357 |
(exit $ac_status); } && |
4358 |
{ ac_try='test -s conftest$ac_exeext' |
4359 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4360 |
(eval $ac_try) 2>&5 |
4361 |
ac_status=$? |
4362 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4363 |
(exit $ac_status); }; }; then |
4364 |
ac_cv_lib_Xmu_main=yes |
4365 |
else |
4366 |
echo "$as_me: failed program was:" >&5 |
4367 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4368 |
|
4369 |
ac_cv_lib_Xmu_main=no |
4370 |
fi |
4371 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4372 |
LIBS=$ac_check_lib_save_LIBS |
4373 |
fi |
4374 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5 |
4375 |
echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6 |
4376 |
if test $ac_cv_lib_Xmu_main = yes; then |
4377 |
have_xmu=1 |
4378 |
else |
4379 |
have_xmu=0 |
4380 |
fi |
4381 |
|
4382 |
CPPFLAGS="${lib_save_header}" |
4383 |
LIBS="${lib_save_libs}" |
4384 |
if test $have_xmu = 1; then |
4385 |
GRAPHIC_LIBS="-lXmu ${GRAPHIC_LIBS}" |
4386 |
fi |
4387 |
fi |
4388 |
if test -r $x_includes/X11/DPS; then |
4389 |
GRAPHIC_CFLAGS="-I$x_includes/X11 $GRAPHIC_CFLAGS" |
4390 |
fi |
4391 |
|
4392 |
|
4393 |
#-------------------------------------------------------------------- |
4394 |
# Find for DPS |
4395 |
#-------------------------------------------------------------------- |
4396 |
save_CPPFLAGS=${CPPFLAGS} |
4397 |
CPPFLAGS="${CPPFLAGS} ${GRAPHIC_CFLAGS}" |
4398 |
|
4399 |
|
4400 |
for ac_header in DPS/dpsclient.h DPS/dpsNXargs.h |
4401 |
do |
4402 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4403 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4404 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4405 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4406 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4407 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4408 |
fi |
4409 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4410 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4411 |
else |
4412 |
# Is the header compilable? |
4413 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4414 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4415 |
cat >conftest.$ac_ext <<_ACEOF |
4416 |
#line $LINENO "configure" |
4417 |
/* confdefs.h. */ |
4418 |
_ACEOF |
4419 |
cat confdefs.h >>conftest.$ac_ext |
4420 |
cat >>conftest.$ac_ext <<_ACEOF |
4421 |
/* end confdefs.h. */ |
4422 |
$ac_includes_default |
4423 |
#include <$ac_header> |
4424 |
_ACEOF |
4425 |
rm -f conftest.$ac_objext |
4426 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4427 |
(eval $ac_compile) 2>&5 |
4428 |
ac_status=$? |
4429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4430 |
(exit $ac_status); } && |
4431 |
{ ac_try='test -s conftest.$ac_objext' |
4432 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4433 |
(eval $ac_try) 2>&5 |
4434 |
ac_status=$? |
4435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4436 |
(exit $ac_status); }; }; then |
4437 |
ac_header_compiler=yes |
4438 |
else |
4439 |
echo "$as_me: failed program was:" >&5 |
4440 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4441 |
|
4442 |
ac_header_compiler=no |
4443 |
fi |
4444 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4445 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4446 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4447 |
|
4448 |
# Is the header present? |
4449 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4450 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4451 |
cat >conftest.$ac_ext <<_ACEOF |
4452 |
#line $LINENO "configure" |
4453 |
/* confdefs.h. */ |
4454 |
_ACEOF |
4455 |
cat confdefs.h >>conftest.$ac_ext |
4456 |
cat >>conftest.$ac_ext <<_ACEOF |
4457 |
/* end confdefs.h. */ |
4458 |
#include <$ac_header> |
4459 |
_ACEOF |
4460 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4461 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4462 |
ac_status=$? |
4463 |
grep -v '^ *+' conftest.er1 >conftest.err |
4464 |
rm -f conftest.er1 |
4465 |
cat conftest.err >&5 |
4466 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4467 |
(exit $ac_status); } >/dev/null; then |
4468 |
if test -s conftest.err; then |
4469 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4470 |
else |
4471 |
ac_cpp_err= |
4472 |
fi |
4473 |
else |
4474 |
ac_cpp_err=yes |
4475 |
fi |
4476 |
if test -z "$ac_cpp_err"; then |
4477 |
ac_header_preproc=yes |
4478 |
else |
4479 |
echo "$as_me: failed program was:" >&5 |
4480 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4481 |
|
4482 |
ac_header_preproc=no |
4483 |
fi |
4484 |
rm -f conftest.err conftest.$ac_ext |
4485 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4486 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4487 |
|
4488 |
# So? What about this header? |
4489 |
case $ac_header_compiler:$ac_header_preproc in |
4490 |
yes:no ) |
4491 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4492 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4493 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4494 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4495 |
( |
4496 |
cat <<\_ASBOX |
4497 |
## ------------------------------------ ## |
4498 |
## Report this to bug-autoconf@gnu.org. ## |
4499 |
## ------------------------------------ ## |
4500 |
_ASBOX |
4501 |
) | |
4502 |
sed "s/^/$as_me: WARNING: /" >&2 |
4503 |
;; |
4504 |
no:yes ) |
4505 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4506 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4507 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4508 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4509 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4510 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4511 |
( |
4512 |
cat <<\_ASBOX |
4513 |
## ------------------------------------ ## |
4514 |
## Report this to bug-autoconf@gnu.org. ## |
4515 |
## ------------------------------------ ## |
4516 |
_ASBOX |
4517 |
) | |
4518 |
sed "s/^/$as_me: WARNING: /" >&2 |
4519 |
;; |
4520 |
esac |
4521 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4522 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4523 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4524 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4525 |
else |
4526 |
eval "$as_ac_Header=$ac_header_preproc" |
4527 |
fi |
4528 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4529 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4530 |
|
4531 |
fi |
4532 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4533 |
cat >>confdefs.h <<_ACEOF |
4534 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4535 |
_ACEOF |
4536 |
|
4537 |
fi |
4538 |
|
4539 |
done |
4540 |
|
4541 |
CPPFLAGS="${save_CPPFLAGS}" |
4542 |
|
4543 |
#-------------------------------------------------------------------- |
4544 |
# freetype libraries |
4545 |
#-------------------------------------------------------------------- |
4546 |
save_header=${CPPFLAGS} |
4547 |
save_libs=${LIBS} |
4548 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
4549 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
4550 |
|
4551 |
FREETYPE_LIBS="`freetype-config --libs`" |
4552 |
FREETYPE_CFLAGS="`freetype-config --cflags`" |
4553 |
|
4554 |
CPPFLAGS="${CPPFLAGS} ${FREETYPE_CFLAGS}" |
4555 |
LIBS="${LIBS} ${FREETYPE_LIBS}" |
4556 |
|
4557 |
echo "$as_me:$LINENO: checking for main in -lfreetype" >&5 |
4558 |
echo $ECHO_N "checking for main in -lfreetype... $ECHO_C" >&6 |
4559 |
if test "${ac_cv_lib_freetype_main+set}" = set; then |
4560 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4561 |
else |
4562 |
ac_check_lib_save_LIBS=$LIBS |
4563 |
LIBS="-lfreetype $LIBS" |
4564 |
cat >conftest.$ac_ext <<_ACEOF |
4565 |
#line $LINENO "configure" |
4566 |
/* confdefs.h. */ |
4567 |
_ACEOF |
4568 |
cat confdefs.h >>conftest.$ac_ext |
4569 |
cat >>conftest.$ac_ext <<_ACEOF |
4570 |
/* end confdefs.h. */ |
4571 |
|
4572 |
|
4573 |
int |
4574 |
main () |
4575 |
{ |
4576 |
main (); |
4577 |
; |
4578 |
return 0; |
4579 |
} |
4580 |
_ACEOF |
4581 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4582 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4583 |
(eval $ac_link) 2>&5 |
4584 |
ac_status=$? |
4585 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4586 |
(exit $ac_status); } && |
4587 |
{ ac_try='test -s conftest$ac_exeext' |
4588 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4589 |
(eval $ac_try) 2>&5 |
4590 |
ac_status=$? |
4591 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4592 |
(exit $ac_status); }; }; then |
4593 |
ac_cv_lib_freetype_main=yes |
4594 |
else |
4595 |
echo "$as_me: failed program was:" >&5 |
4596 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4597 |
|
4598 |
ac_cv_lib_freetype_main=no |
4599 |
fi |
4600 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4601 |
LIBS=$ac_check_lib_save_LIBS |
4602 |
fi |
4603 |
echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_main" >&5 |
4604 |
echo "${ECHO_T}$ac_cv_lib_freetype_main" >&6 |
4605 |
if test $ac_cv_lib_freetype_main = yes; then |
4606 |
have_freetype=yes |
4607 |
else |
4608 |
have_freetype=no |
4609 |
fi |
4610 |
|
4611 |
if test "$have_freetype" = yes; then |
4612 |
if test "${ac_cv_header_ft2build_h+set}" = set; then |
4613 |
echo "$as_me:$LINENO: checking for ft2build.h" >&5 |
4614 |
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6 |
4615 |
if test "${ac_cv_header_ft2build_h+set}" = set; then |
4616 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4617 |
fi |
4618 |
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 |
4619 |
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6 |
4620 |
else |
4621 |
# Is the header compilable? |
4622 |
echo "$as_me:$LINENO: checking ft2build.h usability" >&5 |
4623 |
echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6 |
4624 |
cat >conftest.$ac_ext <<_ACEOF |
4625 |
#line $LINENO "configure" |
4626 |
/* confdefs.h. */ |
4627 |
_ACEOF |
4628 |
cat confdefs.h >>conftest.$ac_ext |
4629 |
cat >>conftest.$ac_ext <<_ACEOF |
4630 |
/* end confdefs.h. */ |
4631 |
$ac_includes_default |
4632 |
#include <ft2build.h> |
4633 |
_ACEOF |
4634 |
rm -f conftest.$ac_objext |
4635 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4636 |
(eval $ac_compile) 2>&5 |
4637 |
ac_status=$? |
4638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4639 |
(exit $ac_status); } && |
4640 |
{ ac_try='test -s conftest.$ac_objext' |
4641 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4642 |
(eval $ac_try) 2>&5 |
4643 |
ac_status=$? |
4644 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4645 |
(exit $ac_status); }; }; then |
4646 |
ac_header_compiler=yes |
4647 |
else |
4648 |
echo "$as_me: failed program was:" >&5 |
4649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4650 |
|
4651 |
ac_header_compiler=no |
4652 |
fi |
4653 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4654 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4655 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4656 |
|
4657 |
# Is the header present? |
4658 |
echo "$as_me:$LINENO: checking ft2build.h presence" >&5 |
4659 |
echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6 |
4660 |
cat >conftest.$ac_ext <<_ACEOF |
4661 |
#line $LINENO "configure" |
4662 |
/* confdefs.h. */ |
4663 |
_ACEOF |
4664 |
cat confdefs.h >>conftest.$ac_ext |
4665 |
cat >>conftest.$ac_ext <<_ACEOF |
4666 |
/* end confdefs.h. */ |
4667 |
#include <ft2build.h> |
4668 |
_ACEOF |
4669 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4670 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4671 |
ac_status=$? |
4672 |
grep -v '^ *+' conftest.er1 >conftest.err |
4673 |
rm -f conftest.er1 |
4674 |
cat conftest.err >&5 |
4675 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4676 |
(exit $ac_status); } >/dev/null; then |
4677 |
if test -s conftest.err; then |
4678 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4679 |
else |
4680 |
ac_cpp_err= |
4681 |
fi |
4682 |
else |
4683 |
ac_cpp_err=yes |
4684 |
fi |
4685 |
if test -z "$ac_cpp_err"; then |
4686 |
ac_header_preproc=yes |
4687 |
else |
4688 |
echo "$as_me: failed program was:" >&5 |
4689 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4690 |
|
4691 |
ac_header_preproc=no |
4692 |
fi |
4693 |
rm -f conftest.err conftest.$ac_ext |
4694 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4695 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4696 |
|
4697 |
# So? What about this header? |
4698 |
case $ac_header_compiler:$ac_header_preproc in |
4699 |
yes:no ) |
4700 |
{ echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4701 |
echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4702 |
{ echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 |
4703 |
echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} |
4704 |
( |
4705 |
cat <<\_ASBOX |
4706 |
## ------------------------------------ ## |
4707 |
## Report this to bug-autoconf@gnu.org. ## |
4708 |
## ------------------------------------ ## |
4709 |
_ASBOX |
4710 |
) | |
4711 |
sed "s/^/$as_me: WARNING: /" >&2 |
4712 |
;; |
4713 |
no:yes ) |
4714 |
{ echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 |
4715 |
echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} |
4716 |
{ echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 |
4717 |
echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} |
4718 |
{ echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 |
4719 |
echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} |
4720 |
( |
4721 |
cat <<\_ASBOX |
4722 |
## ------------------------------------ ## |
4723 |
## Report this to bug-autoconf@gnu.org. ## |
4724 |
## ------------------------------------ ## |
4725 |
_ASBOX |
4726 |
) | |
4727 |
sed "s/^/$as_me: WARNING: /" >&2 |
4728 |
;; |
4729 |
esac |
4730 |
echo "$as_me:$LINENO: checking for ft2build.h" >&5 |
4731 |
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6 |
4732 |
if test "${ac_cv_header_ft2build_h+set}" = set; then |
4733 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4734 |
else |
4735 |
ac_cv_header_ft2build_h=$ac_header_preproc |
4736 |
fi |
4737 |
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 |
4738 |
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6 |
4739 |
|
4740 |
fi |
4741 |
if test $ac_cv_header_ft2build_h = yes; then |
4742 |
have_freetype=yes |
4743 |
else |
4744 |
have_freetype=no |
4745 |
fi |
4746 |
|
4747 |
|
4748 |
fi |
4749 |
if test "$have_freetype" = yes; then |
4750 |
GRAPHIC_CFLAGS="$GRAPHIC_CFLAGS $FREETYPE_CFLAGS" |
4751 |
GRAPHIC_LIBS="$FREETYPE_LIBS $GRAPHIC_LIBS" |
4752 |
fi |
4753 |
CPPFLAGS="${save_header}" |
4754 |
LIBS="${save_libs}" |
4755 |
|
4756 |
#-------------------------------------------------------------------- |
4757 |
# Extended font support & UTF8 support |
4758 |
#-------------------------------------------------------------------- |
4759 |
WITH_XFT=no |
4760 |
save_header=${CPPFLAGS} |
4761 |
save_libs=${LIBS} |
4762 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
4763 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
4764 |
echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 |
4765 |
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6 |
4766 |
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then |
4767 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4768 |
else |
4769 |
ac_check_lib_save_LIBS=$LIBS |
4770 |
LIBS="-lXft $LIBS" |
4771 |
cat >conftest.$ac_ext <<_ACEOF |
4772 |
#line $LINENO "configure" |
4773 |
/* confdefs.h. */ |
4774 |
_ACEOF |
4775 |
cat confdefs.h >>conftest.$ac_ext |
4776 |
cat >>conftest.$ac_ext <<_ACEOF |
4777 |
/* end confdefs.h. */ |
4778 |
|
4779 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4780 |
#ifdef __cplusplus |
4781 |
extern "C" |
4782 |
#endif |
4783 |
/* We use char because int might match the return type of a gcc2 |
4784 |
builtin and then its argument prototype would still apply. */ |
4785 |
char XftFontOpen (); |
4786 |
int |
4787 |
main () |
4788 |
{ |
4789 |
XftFontOpen (); |
4790 |
; |
4791 |
return 0; |
4792 |
} |
4793 |
_ACEOF |
4794 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4795 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4796 |
(eval $ac_link) 2>&5 |
4797 |
ac_status=$? |
4798 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4799 |
(exit $ac_status); } && |
4800 |
{ ac_try='test -s conftest$ac_exeext' |
4801 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4802 |
(eval $ac_try) 2>&5 |
4803 |
ac_status=$? |
4804 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4805 |
(exit $ac_status); }; }; then |
4806 |
ac_cv_lib_Xft_XftFontOpen=yes |
4807 |
else |
4808 |
echo "$as_me: failed program was:" >&5 |
4809 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4810 |
|
4811 |
ac_cv_lib_Xft_XftFontOpen=no |
4812 |
fi |
4813 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4814 |
LIBS=$ac_check_lib_save_LIBS |
4815 |
fi |
4816 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
4817 |
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6 |
4818 |
if test $ac_cv_lib_Xft_XftFontOpen = yes; then |
4819 |
have_xft=yes |
4820 |
else |
4821 |
have_xft=no |
4822 |
fi |
4823 |
|
4824 |
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then |
4825 |
echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 |
4826 |
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 |
4827 |
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then |
4828 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4829 |
fi |
4830 |
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 |
4831 |
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 |
4832 |
else |
4833 |
# Is the header compilable? |
4834 |
echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 |
4835 |
echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6 |
4836 |
cat >conftest.$ac_ext <<_ACEOF |
4837 |
#line $LINENO "configure" |
4838 |
/* confdefs.h. */ |
4839 |
_ACEOF |
4840 |
cat confdefs.h >>conftest.$ac_ext |
4841 |
cat >>conftest.$ac_ext <<_ACEOF |
4842 |
/* end confdefs.h. */ |
4843 |
$ac_includes_default |
4844 |
#include <X11/Xft/Xft.h> |
4845 |
_ACEOF |
4846 |
rm -f conftest.$ac_objext |
4847 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4848 |
(eval $ac_compile) 2>&5 |
4849 |
ac_status=$? |
4850 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4851 |
(exit $ac_status); } && |
4852 |
{ ac_try='test -s conftest.$ac_objext' |
4853 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4854 |
(eval $ac_try) 2>&5 |
4855 |
ac_status=$? |
4856 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4857 |
(exit $ac_status); }; }; then |
4858 |
ac_header_compiler=yes |
4859 |
else |
4860 |
echo "$as_me: failed program was:" >&5 |
4861 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4862 |
|
4863 |
ac_header_compiler=no |
4864 |
fi |
4865 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4866 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4867 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4868 |
|
4869 |
# Is the header present? |
4870 |
echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 |
4871 |
echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6 |
4872 |
cat >conftest.$ac_ext <<_ACEOF |
4873 |
#line $LINENO "configure" |
4874 |
/* confdefs.h. */ |
4875 |
_ACEOF |
4876 |
cat confdefs.h >>conftest.$ac_ext |
4877 |
cat >>conftest.$ac_ext <<_ACEOF |
4878 |
/* end confdefs.h. */ |
4879 |
#include <X11/Xft/Xft.h> |
4880 |
_ACEOF |
4881 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4882 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4883 |
ac_status=$? |
4884 |
grep -v '^ *+' conftest.er1 >conftest.err |
4885 |
rm -f conftest.er1 |
4886 |
cat conftest.err >&5 |
4887 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4888 |
(exit $ac_status); } >/dev/null; then |
4889 |
if test -s conftest.err; then |
4890 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4891 |
else |
4892 |
ac_cpp_err= |
4893 |
fi |
4894 |
else |
4895 |
ac_cpp_err=yes |
4896 |
fi |
4897 |
if test -z "$ac_cpp_err"; then |
4898 |
ac_header_preproc=yes |
4899 |
else |
4900 |
echo "$as_me: failed program was:" >&5 |
4901 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4902 |
|
4903 |
ac_header_preproc=no |
4904 |
fi |
4905 |
rm -f conftest.err conftest.$ac_ext |
4906 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4907 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4908 |
|
4909 |
# So? What about this header? |
4910 |
case $ac_header_compiler:$ac_header_preproc in |
4911 |
yes:no ) |
4912 |
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4913 |
echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4914 |
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 |
4915 |
echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} |
4916 |
( |
4917 |
cat <<\_ASBOX |
4918 |
## ------------------------------------ ## |
4919 |
## Report this to bug-autoconf@gnu.org. ## |
4920 |
## ------------------------------------ ## |
4921 |
_ASBOX |
4922 |
) | |
4923 |
sed "s/^/$as_me: WARNING: /" >&2 |
4924 |
;; |
4925 |
no:yes ) |
4926 |
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 |
4927 |
echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} |
4928 |
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 |
4929 |
echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} |
4930 |
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 |
4931 |
echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} |
4932 |
( |
4933 |
cat <<\_ASBOX |
4934 |
## ------------------------------------ ## |
4935 |
## Report this to bug-autoconf@gnu.org. ## |
4936 |
## ------------------------------------ ## |
4937 |
_ASBOX |
4938 |
) | |
4939 |
sed "s/^/$as_me: WARNING: /" >&2 |
4940 |
;; |
4941 |
esac |
4942 |
echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 |
4943 |
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 |
4944 |
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then |
4945 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4946 |
else |
4947 |
ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc |
4948 |
fi |
4949 |
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 |
4950 |
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 |
4951 |
|
4952 |
fi |
4953 |
|
4954 |
|
4955 |
if test "$have_xft" = yes -a "$ac_cv_header_X11_Xft_Xft_h" = yes; then |
4956 |
GRAPHIC_LIBS="-lXft ${GRAPHIC_LIBS}" |
4957 |
WITH_XFT=yes |
4958 |
|
4959 |
cat >>confdefs.h <<\_ACEOF |
4960 |
#define HAVE_XFT 1 |
4961 |
_ACEOF |
4962 |
|
4963 |
echo "$as_me:$LINENO: checking for XftDrawStringUtf8 in -lXft" >&5 |
4964 |
echo $ECHO_N "checking for XftDrawStringUtf8 in -lXft... $ECHO_C" >&6 |
4965 |
if test "${ac_cv_lib_Xft_XftDrawStringUtf8+set}" = set; then |
4966 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4967 |
else |
4968 |
ac_check_lib_save_LIBS=$LIBS |
4969 |
LIBS="-lXft $LIBS" |
4970 |
cat >conftest.$ac_ext <<_ACEOF |
4971 |
#line $LINENO "configure" |
4972 |
/* confdefs.h. */ |
4973 |
_ACEOF |
4974 |
cat confdefs.h >>conftest.$ac_ext |
4975 |
cat >>conftest.$ac_ext <<_ACEOF |
4976 |
/* end confdefs.h. */ |
4977 |
|
4978 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4979 |
#ifdef __cplusplus |
4980 |
extern "C" |
4981 |
#endif |
4982 |
/* We use char because int might match the return type of a gcc2 |
4983 |
builtin and then its argument prototype would still apply. */ |
4984 |
char XftDrawStringUtf8 (); |
4985 |
int |
4986 |
main () |
4987 |
{ |
4988 |
XftDrawStringUtf8 (); |
4989 |
; |
4990 |
return 0; |
4991 |
} |
4992 |
_ACEOF |
4993 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4994 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4995 |
(eval $ac_link) 2>&5 |
4996 |
ac_status=$? |
4997 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4998 |
(exit $ac_status); } && |
4999 |
{ ac_try='test -s conftest$ac_exeext' |
5000 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5001 |
(eval $ac_try) 2>&5 |
5002 |
ac_status=$? |
5003 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5004 |
(exit $ac_status); }; }; then |
5005 |
ac_cv_lib_Xft_XftDrawStringUtf8=yes |
5006 |
else |
5007 |
echo "$as_me: failed program was:" >&5 |
5008 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5009 |
|
5010 |
ac_cv_lib_Xft_XftDrawStringUtf8=no |
5011 |
fi |
5012 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5013 |
LIBS=$ac_check_lib_save_LIBS |
5014 |
fi |
5015 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawStringUtf8" >&5 |
5016 |
echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawStringUtf8" >&6 |
5017 |
if test $ac_cv_lib_Xft_XftDrawStringUtf8 = yes; then |
5018 |
have_utf8=yes |
5019 |
else |
5020 |
have_utf8=no |
5021 |
fi |
5022 |
|
5023 |
if test "$have_utf8" = yes; then |
5024 |
|
5025 |
cat >>confdefs.h <<\_ACEOF |
5026 |
#define HAVE_UTF8 1 |
5027 |
_ACEOF |
5028 |
|
5029 |
fi |
5030 |
echo "$as_me:$LINENO: checking for FcPatternCreate in -lfontconfig" >&5 |
5031 |
echo $ECHO_N "checking for FcPatternCreate in -lfontconfig... $ECHO_C" >&6 |
5032 |
if test "${ac_cv_lib_fontconfig_FcPatternCreate+set}" = set; then |
5033 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5034 |
else |
5035 |
ac_check_lib_save_LIBS=$LIBS |
5036 |
LIBS="-lfontconfig $LIBS" |
5037 |
cat >conftest.$ac_ext <<_ACEOF |
5038 |
#line $LINENO "configure" |
5039 |
/* confdefs.h. */ |
5040 |
_ACEOF |
5041 |
cat confdefs.h >>conftest.$ac_ext |
5042 |
cat >>conftest.$ac_ext <<_ACEOF |
5043 |
/* end confdefs.h. */ |
5044 |
|
5045 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5046 |
#ifdef __cplusplus |
5047 |
extern "C" |
5048 |
#endif |
5049 |
/* We use char because int might match the return type of a gcc2 |
5050 |
builtin and then its argument prototype would still apply. */ |
5051 |
char FcPatternCreate (); |
5052 |
int |
5053 |
main () |
5054 |
{ |
5055 |
FcPatternCreate (); |
5056 |
; |
5057 |
return 0; |
5058 |
} |
5059 |
_ACEOF |
5060 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5061 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5062 |
(eval $ac_link) 2>&5 |
5063 |
ac_status=$? |
5064 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5065 |
(exit $ac_status); } && |
5066 |
{ ac_try='test -s conftest$ac_exeext' |
5067 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5068 |
(eval $ac_try) 2>&5 |
5069 |
ac_status=$? |
5070 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5071 |
(exit $ac_status); }; }; then |
5072 |
ac_cv_lib_fontconfig_FcPatternCreate=yes |
5073 |
else |
5074 |
echo "$as_me: failed program was:" >&5 |
5075 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5076 |
|
5077 |
ac_cv_lib_fontconfig_FcPatternCreate=no |
5078 |
fi |
5079 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5080 |
LIBS=$ac_check_lib_save_LIBS |
5081 |
fi |
5082 |
echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5 |
5083 |
echo "${ECHO_T}$ac_cv_lib_fontconfig_FcPatternCreate" >&6 |
5084 |
if test $ac_cv_lib_fontconfig_FcPatternCreate = yes; then |
5085 |
have_fc=yes |
5086 |
else |
5087 |
have_fc=no |
5088 |
fi |
5089 |
|
5090 |
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then |
5091 |
echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 |
5092 |
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6 |
5093 |
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then |
5094 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5095 |
fi |
5096 |
echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 |
5097 |
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6 |
5098 |
else |
5099 |
# Is the header compilable? |
5100 |
echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5 |
5101 |
echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6 |
5102 |
cat >conftest.$ac_ext <<_ACEOF |
5103 |
#line $LINENO "configure" |
5104 |
/* confdefs.h. */ |
5105 |
_ACEOF |
5106 |
cat confdefs.h >>conftest.$ac_ext |
5107 |
cat >>conftest.$ac_ext <<_ACEOF |
5108 |
/* end confdefs.h. */ |
5109 |
$ac_includes_default |
5110 |
#include <fontconfig/fontconfig.h> |
5111 |
_ACEOF |
5112 |
rm -f conftest.$ac_objext |
5113 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5114 |
(eval $ac_compile) 2>&5 |
5115 |
ac_status=$? |
5116 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5117 |
(exit $ac_status); } && |
5118 |
{ ac_try='test -s conftest.$ac_objext' |
5119 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5120 |
(eval $ac_try) 2>&5 |
5121 |
ac_status=$? |
5122 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5123 |
(exit $ac_status); }; }; then |
5124 |
ac_header_compiler=yes |
5125 |
else |
5126 |
echo "$as_me: failed program was:" >&5 |
5127 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5128 |
|
5129 |
ac_header_compiler=no |
5130 |
fi |
5131 |
rm -f conftest.$ac_objext conftest.$ac_ext |
5132 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5133 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
5134 |
|
5135 |
# Is the header present? |
5136 |
echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5 |
5137 |
echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6 |
5138 |
cat >conftest.$ac_ext <<_ACEOF |
5139 |
#line $LINENO "configure" |
5140 |
/* confdefs.h. */ |
5141 |
_ACEOF |
5142 |
cat confdefs.h >>conftest.$ac_ext |
5143 |
cat >>conftest.$ac_ext <<_ACEOF |
5144 |
/* end confdefs.h. */ |
5145 |
#include <fontconfig/fontconfig.h> |
5146 |
_ACEOF |
5147 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5148 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5149 |
ac_status=$? |
5150 |
grep -v '^ *+' conftest.er1 >conftest.err |
5151 |
rm -f conftest.er1 |
5152 |
cat conftest.err >&5 |
5153 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5154 |
(exit $ac_status); } >/dev/null; then |
5155 |
if test -s conftest.err; then |
5156 |
ac_cpp_err=$ac_c_preproc_warn_flag |
5157 |
else |
5158 |
ac_cpp_err= |
5159 |
fi |
5160 |
else |
5161 |
ac_cpp_err=yes |
5162 |
fi |
5163 |
if test -z "$ac_cpp_err"; then |
5164 |
ac_header_preproc=yes |
5165 |
else |
5166 |
echo "$as_me: failed program was:" >&5 |
5167 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5168 |
|
5169 |
ac_header_preproc=no |
5170 |
fi |
5171 |
rm -f conftest.err conftest.$ac_ext |
5172 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5173 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
5174 |
|
5175 |
# So? What about this header? |
5176 |
case $ac_header_compiler:$ac_header_preproc in |
5177 |
yes:no ) |
5178 |
{ echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5179 |
echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5180 |
{ echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 |
5181 |
echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} |
5182 |
( |
5183 |
cat <<\_ASBOX |
5184 |
## ------------------------------------ ## |
5185 |
## Report this to bug-autoconf@gnu.org. ## |
5186 |
## ------------------------------------ ## |
5187 |
_ASBOX |
5188 |
) | |
5189 |
sed "s/^/$as_me: WARNING: /" >&2 |
5190 |
;; |
5191 |
no:yes ) |
5192 |
{ echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5 |
5193 |
echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;} |
5194 |
{ echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5 |
5195 |
echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;} |
5196 |
{ echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 |
5197 |
echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} |
5198 |
( |
5199 |
cat <<\_ASBOX |
5200 |
## ------------------------------------ ## |
5201 |
## Report this to bug-autoconf@gnu.org. ## |
5202 |
## ------------------------------------ ## |
5203 |
_ASBOX |
5204 |
) | |
5205 |
sed "s/^/$as_me: WARNING: /" >&2 |
5206 |
;; |
5207 |
esac |
5208 |
echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 |
5209 |
echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6 |
5210 |
if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then |
5211 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5212 |
else |
5213 |
ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc |
5214 |
fi |
5215 |
echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 |
5216 |
echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6 |
5217 |
|
5218 |
fi |
5219 |
|
5220 |
|
5221 |
if test "$have_fc" = yes -a "$ac_cv_header_fontconfig_fontconfig_h" = yes; then |
5222 |
GRAPHIC_LIBS="-lfontconfig ${GRAPHIC_LIBS}" |
5223 |
|
5224 |
cat >>confdefs.h <<\_ACEOF |
5225 |
#define HAVE_FC 1 |
5226 |
_ACEOF |
5227 |
|
5228 |
fi |
5229 |
fi |
5230 |
CPPFLAGS="${save_header}" |
5231 |
LIBS="${save_libs}" |
5232 |
|
5233 |
|
5234 |
#-------------------------------------------------------------------- |
5235 |
# GLX support |
5236 |
#-------------------------------------------------------------------- |
5237 |
WITH_GLX=no |
5238 |
# Check whether --enable-glx or --disable-glx was given. |
5239 |
if test "${enable_glx+set}" = set; then |
5240 |
enableval="$enable_glx" |
5241 |
|
5242 |
else |
5243 |
enable_glx=yes |
5244 |
fi; |
5245 |
if test "x$enable_glx" = "xyes"; then |
5246 |
save_header=${CPPFLAGS} |
5247 |
save_libs=${LIBS} |
5248 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
5249 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
5250 |
echo "$as_me:$LINENO: checking for glXMakeContextCurrent in -lGL" >&5 |
5251 |
echo $ECHO_N "checking for glXMakeContextCurrent in -lGL... $ECHO_C" >&6 |
5252 |
if test "${ac_cv_lib_GL_glXMakeContextCurrent+set}" = set; then |
5253 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5254 |
else |
5255 |
ac_check_lib_save_LIBS=$LIBS |
5256 |
LIBS="-lGL $LIBS" |
5257 |
cat >conftest.$ac_ext <<_ACEOF |
5258 |
#line $LINENO "configure" |
5259 |
/* confdefs.h. */ |
5260 |
_ACEOF |
5261 |
cat confdefs.h >>conftest.$ac_ext |
5262 |
cat >>conftest.$ac_ext <<_ACEOF |
5263 |
/* end confdefs.h. */ |
5264 |
|
5265 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5266 |
#ifdef __cplusplus |
5267 |
extern "C" |
5268 |
#endif |
5269 |
/* We use char because int might match the return type of a gcc2 |
5270 |
builtin and then its argument prototype would still apply. */ |
5271 |
char glXMakeContextCurrent (); |
5272 |
int |
5273 |
main () |
5274 |
{ |
5275 |
glXMakeContextCurrent (); |
5276 |
; |
5277 |
return 0; |
5278 |
} |
5279 |
_ACEOF |
5280 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5281 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5282 |
(eval $ac_link) 2>&5 |
5283 |
ac_status=$? |
5284 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5285 |
(exit $ac_status); } && |
5286 |
{ ac_try='test -s conftest$ac_exeext' |
5287 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5288 |
(eval $ac_try) 2>&5 |
5289 |
ac_status=$? |
5290 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5291 |
(exit $ac_status); }; }; then |
5292 |
ac_cv_lib_GL_glXMakeContextCurrent=yes |
5293 |
else |
5294 |
echo "$as_me: failed program was:" >&5 |
5295 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5296 |
|
5297 |
ac_cv_lib_GL_glXMakeContextCurrent=no |
5298 |
fi |
5299 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5300 |
LIBS=$ac_check_lib_save_LIBS |
5301 |
fi |
5302 |
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXMakeContextCurrent" >&5 |
5303 |
echo "${ECHO_T}$ac_cv_lib_GL_glXMakeContextCurrent" >&6 |
5304 |
if test $ac_cv_lib_GL_glXMakeContextCurrent = yes; then |
5305 |
have_glx=yes |
5306 |
else |
5307 |
have_glx=no |
5308 |
fi |
5309 |
|
5310 |
if test "${ac_cv_header_GL_glx_h+set}" = set; then |
5311 |
echo "$as_me:$LINENO: checking for GL/glx.h" >&5 |
5312 |
echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6 |
5313 |
if test "${ac_cv_header_GL_glx_h+set}" = set; then |
5314 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5315 |
fi |
5316 |
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5 |
5317 |
echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6 |
5318 |
else |
5319 |
# Is the header compilable? |
5320 |
echo "$as_me:$LINENO: checking GL/glx.h usability" >&5 |
5321 |
echo $ECHO_N "checking GL/glx.h usability... $ECHO_C" >&6 |
5322 |
cat >conftest.$ac_ext <<_ACEOF |
5323 |
#line $LINENO "configure" |
5324 |
/* confdefs.h. */ |
5325 |
_ACEOF |
5326 |
cat confdefs.h >>conftest.$ac_ext |
5327 |
cat >>conftest.$ac_ext <<_ACEOF |
5328 |
/* end confdefs.h. */ |
5329 |
$ac_includes_default |
5330 |
#include <GL/glx.h> |
5331 |
_ACEOF |
5332 |
rm -f conftest.$ac_objext |
5333 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5334 |
(eval $ac_compile) 2>&5 |
5335 |
ac_status=$? |
5336 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5337 |
(exit $ac_status); } && |
5338 |
{ ac_try='test -s conftest.$ac_objext' |
5339 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5340 |
(eval $ac_try) 2>&5 |
5341 |
ac_status=$? |
5342 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5343 |
(exit $ac_status); }; }; then |
5344 |
ac_header_compiler=yes |
5345 |
else |
5346 |
echo "$as_me: failed program was:" >&5 |
5347 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5348 |
|
5349 |
ac_header_compiler=no |
5350 |
fi |
5351 |
rm -f conftest.$ac_objext conftest.$ac_ext |
5352 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5353 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
5354 |
|
5355 |
# Is the header present? |
5356 |
echo "$as_me:$LINENO: checking GL/glx.h presence" >&5 |
5357 |
echo $ECHO_N "checking GL/glx.h presence... $ECHO_C" >&6 |
5358 |
cat >conftest.$ac_ext <<_ACEOF |
5359 |
#line $LINENO "configure" |
5360 |
/* confdefs.h. */ |
5361 |
_ACEOF |
5362 |
cat confdefs.h >>conftest.$ac_ext |
5363 |
cat >>conftest.$ac_ext <<_ACEOF |
5364 |
/* end confdefs.h. */ |
5365 |
#include <GL/glx.h> |
5366 |
_ACEOF |
5367 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5368 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5369 |
ac_status=$? |
5370 |
grep -v '^ *+' conftest.er1 >conftest.err |
5371 |
rm -f conftest.er1 |
5372 |
cat conftest.err >&5 |
5373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5374 |
(exit $ac_status); } >/dev/null; then |
5375 |
if test -s conftest.err; then |
5376 |
ac_cpp_err=$ac_c_preproc_warn_flag |
5377 |
else |
5378 |
ac_cpp_err= |
5379 |
fi |
5380 |
else |
5381 |
ac_cpp_err=yes |
5382 |
fi |
5383 |
if test -z "$ac_cpp_err"; then |
5384 |
ac_header_preproc=yes |
5385 |
else |
5386 |
echo "$as_me: failed program was:" >&5 |
5387 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5388 |
|
5389 |
ac_header_preproc=no |
5390 |
fi |
5391 |
rm -f conftest.err conftest.$ac_ext |
5392 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5393 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
5394 |
|
5395 |
# So? What about this header? |
5396 |
case $ac_header_compiler:$ac_header_preproc in |
5397 |
yes:no ) |
5398 |
{ echo "$as_me:$LINENO: WARNING: GL/glx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5399 |
echo "$as_me: WARNING: GL/glx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5400 |
{ echo "$as_me:$LINENO: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&5 |
5401 |
echo "$as_me: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&2;} |
5402 |
( |
5403 |
cat <<\_ASBOX |
5404 |
## ------------------------------------ ## |
5405 |
## Report this to bug-autoconf@gnu.org. ## |
5406 |
## ------------------------------------ ## |
5407 |
_ASBOX |
5408 |
) | |
5409 |
sed "s/^/$as_me: WARNING: /" >&2 |
5410 |
;; |
5411 |
no:yes ) |
5412 |
{ echo "$as_me:$LINENO: WARNING: GL/glx.h: present but cannot be compiled" >&5 |
5413 |
echo "$as_me: WARNING: GL/glx.h: present but cannot be compiled" >&2;} |
5414 |
{ echo "$as_me:$LINENO: WARNING: GL/glx.h: check for missing prerequisite headers?" >&5 |
5415 |
echo "$as_me: WARNING: GL/glx.h: check for missing prerequisite headers?" >&2;} |
5416 |
{ echo "$as_me:$LINENO: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&5 |
5417 |
echo "$as_me: WARNING: GL/glx.h: proceeding with the preprocessor's result" >&2;} |
5418 |
( |
5419 |
cat <<\_ASBOX |
5420 |
## ------------------------------------ ## |
5421 |
## Report this to bug-autoconf@gnu.org. ## |
5422 |
## ------------------------------------ ## |
5423 |
_ASBOX |
5424 |
) | |
5425 |
sed "s/^/$as_me: WARNING: /" >&2 |
5426 |
;; |
5427 |
esac |
5428 |
echo "$as_me:$LINENO: checking for GL/glx.h" >&5 |
5429 |
echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6 |
5430 |
if test "${ac_cv_header_GL_glx_h+set}" = set; then |
5431 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5432 |
else |
5433 |
ac_cv_header_GL_glx_h=$ac_header_preproc |
5434 |
fi |
5435 |
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5 |
5436 |
echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6 |
5437 |
|
5438 |
fi |
5439 |
|
5440 |
|
5441 |
echo "$as_me:$LINENO: checking for GLX_RGBA_TYPE" >&5 |
5442 |
echo $ECHO_N "checking for GLX_RGBA_TYPE... $ECHO_C" >&6 |
5443 |
cat >conftest.$ac_ext <<_ACEOF |
5444 |
#line $LINENO "configure" |
5445 |
/* confdefs.h. */ |
5446 |
_ACEOF |
5447 |
cat confdefs.h >>conftest.$ac_ext |
5448 |
cat >>conftest.$ac_ext <<_ACEOF |
5449 |
/* end confdefs.h. */ |
5450 |
#include <GL/glx.h> |
5451 |
#ifdef GLX_RGBA_TYPE |
5452 |
yes |
5453 |
#endif |
5454 |
|
5455 |
_ACEOF |
5456 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5457 |
$EGREP "yes" >/dev/null 2>&1; then |
5458 |
have_glx_rgba=yes |
5459 |
else |
5460 |
have_glx_rgba=no |
5461 |
fi |
5462 |
rm -f conftest* |
5463 |
|
5464 |
echo "$as_me:$LINENO: result: $have_glx_rgba" >&5 |
5465 |
echo "${ECHO_T}$have_glx_rgba" >&6 |
5466 |
if test "$have_glx" = yes -a "$ac_cv_header_GL_glx_h" = yes -a "$have_glx_rgba" = yes; then |
5467 |
GRAPHIC_LIBS="-lGL ${GRAPHIC_LIBS}" |
5468 |
WITH_GLX=yes |
5469 |
|
5470 |
cat >>confdefs.h <<\_ACEOF |
5471 |
#define HAVE_GLX 1 |
5472 |
_ACEOF |
5473 |
|
5474 |
fi |
5475 |
CPPFLAGS="${save_header}" |
5476 |
LIBS="${save_libs}" |
5477 |
|
5478 |
fi |
5479 |
|
5480 |
|
5481 |
#-------------------------------------------------------------------- |
5482 |
# XIM support |
5483 |
#-------------------------------------------------------------------- |
5484 |
# Check whether --enable-xim or --disable-xim was given. |
5485 |
if test "${enable_xim+set}" = set; then |
5486 |
enableval="$enable_xim" |
5487 |
|
5488 |
else |
5489 |
enable_xim=yes |
5490 |
fi; |
5491 |
if test "x$enable_xim" = "xyes"; then |
5492 |
|
5493 |
cat >>confdefs.h <<\_ACEOF |
5494 |
#define USE_XIM 1 |
5495 |
_ACEOF |
5496 |
|
5497 |
fi |
5498 |
|
5499 |
#-------------------------------------------------------------------- |
5500 |
# Functions |
5501 |
#-------------------------------------------------------------------- |
5502 |
|
5503 |
for ac_func in usleep |
5504 |
do |
5505 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5506 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5507 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5508 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5509 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5510 |
else |
5511 |
cat >conftest.$ac_ext <<_ACEOF |
5512 |
#line $LINENO "configure" |
5513 |
/* confdefs.h. */ |
5514 |
_ACEOF |
5515 |
cat confdefs.h >>conftest.$ac_ext |
5516 |
cat >>conftest.$ac_ext <<_ACEOF |
5517 |
/* end confdefs.h. */ |
5518 |
/* System header to define __stub macros and hopefully few prototypes, |
5519 |
which can conflict with char $ac_func (); below. |
5520 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5521 |
<limits.h> exists even on freestanding compilers. */ |
5522 |
#ifdef __STDC__ |
5523 |
# include <limits.h> |
5524 |
#else |
5525 |
# include <assert.h> |
5526 |
#endif |
5527 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5528 |
#ifdef __cplusplus |
5529 |
extern "C" |
5530 |
{ |
5531 |
#endif |
5532 |
/* We use char because int might match the return type of a gcc2 |
5533 |
builtin and then its argument prototype would still apply. */ |
5534 |
char $ac_func (); |
5535 |
/* The GNU C library defines this for functions which it implements |
5536 |
to always fail with ENOSYS. Some functions are actually named |
5537 |
something starting with __ and the normal name is an alias. */ |
5538 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5539 |
choke me |
5540 |
#else |
5541 |
char (*f) () = $ac_func; |
5542 |
#endif |
5543 |
#ifdef __cplusplus |
5544 |
} |
5545 |
#endif |
5546 |
|
5547 |
int |
5548 |
main () |
5549 |
{ |
5550 |
return f != $ac_func; |
5551 |
; |
5552 |
return 0; |
5553 |
} |
5554 |
_ACEOF |
5555 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5556 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5557 |
(eval $ac_link) 2>&5 |
5558 |
ac_status=$? |
5559 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5560 |
(exit $ac_status); } && |
5561 |
{ ac_try='test -s conftest$ac_exeext' |
5562 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5563 |
(eval $ac_try) 2>&5 |
5564 |
ac_status=$? |
5565 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5566 |
(exit $ac_status); }; }; then |
5567 |
eval "$as_ac_var=yes" |
5568 |
else |
5569 |
echo "$as_me: failed program was:" >&5 |
5570 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5571 |
|
5572 |
eval "$as_ac_var=no" |
5573 |
fi |
5574 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5575 |
fi |
5576 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5577 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5578 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5579 |
cat >>confdefs.h <<_ACEOF |
5580 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5581 |
_ACEOF |
5582 |
|
5583 |
fi |
5584 |
done |
5585 |
|
5586 |
|
5587 |
#-------------------------------------------------------------------- |
5588 |
# Find for JPEG |
5589 |
#-------------------------------------------------------------------- |
5590 |
|
5591 |
# Check whether --with-jpeg_library or --without-jpeg_library was given. |
5592 |
if test "${with_jpeg_library+set}" = set; then |
5593 |
withval="$with_jpeg_library" |
5594 |
|
5595 |
else |
5596 |
with_jpeg_library= |
5597 |
fi; |
5598 |
|
5599 |
# Check whether --with-jpeg_include or --without-jpeg_include was given. |
5600 |
if test "${with_jpeg_include+set}" = set; then |
5601 |
withval="$with_jpeg_include" |
5602 |
|
5603 |
else |
5604 |
with_jpeg_include= |
5605 |
fi; |
5606 |
|
5607 |
if test -n "$with_jpeg_library"; then |
5608 |
with_jpeg_library="-L$with_jpeg_library" |
5609 |
fi |
5610 |
if test -n "$with_jpeg_include"; then |
5611 |
with_jpeg_include="-I$with_jpeg_include" |
5612 |
fi |
5613 |
|
5614 |
|
5615 |
|
5616 |
if test $gs_cv_have_wraster = no -o $set_x_paths = yes; then |
5617 |
jpeg_check_lib_save_header=${CPPFLAGS} |
5618 |
CPPFLAGS="${with_jpeg_library} ${with_jpeg_include} ${CPPFLAGS}" |
5619 |
|
5620 |
echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
5621 |
echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6 |
5622 |
if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then |
5623 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5624 |
else |
5625 |
ac_check_lib_save_LIBS=$LIBS |
5626 |
LIBS="-ljpeg $LIBS" |
5627 |
cat >conftest.$ac_ext <<_ACEOF |
5628 |
#line $LINENO "configure" |
5629 |
/* confdefs.h. */ |
5630 |
_ACEOF |
5631 |
cat confdefs.h >>conftest.$ac_ext |
5632 |
cat >>conftest.$ac_ext <<_ACEOF |
5633 |
/* end confdefs.h. */ |
5634 |
|
5635 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5636 |
#ifdef __cplusplus |
5637 |
extern "C" |
5638 |
#endif |
5639 |
/* We use char because int might match the return type of a gcc2 |
5640 |
builtin and then its argument prototype would still apply. */ |
5641 |
char jpeg_destroy_decompress (); |
5642 |
int |
5643 |
main () |
5644 |
{ |
5645 |
jpeg_destroy_decompress (); |
5646 |
; |
5647 |
return 0; |
5648 |
} |
5649 |
_ACEOF |
5650 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5651 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5652 |
(eval $ac_link) 2>&5 |
5653 |
ac_status=$? |
5654 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5655 |
(exit $ac_status); } && |
5656 |
{ ac_try='test -s conftest$ac_exeext' |
5657 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5658 |
(eval $ac_try) 2>&5 |
5659 |
ac_status=$? |
5660 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5661 |
(exit $ac_status); }; }; then |
5662 |
ac_cv_lib_jpeg_jpeg_destroy_decompress=yes |
5663 |
else |
5664 |
echo "$as_me: failed program was:" >&5 |
5665 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5666 |
|
5667 |
ac_cv_lib_jpeg_jpeg_destroy_decompress=no |
5668 |
fi |
5669 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5670 |
LIBS=$ac_check_lib_save_LIBS |
5671 |
fi |
5672 |
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 |
5673 |
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6 |
5674 |
if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then |
5675 |
jpeg_ok=yes |
5676 |
else |
5677 |
jpeg_ok=no |
5678 |
fi |
5679 |
|
5680 |
if test "$jpeg_ok" = yes; then |
5681 |
echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
5682 |
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 |
5683 |
cat >conftest.$ac_ext <<_ACEOF |
5684 |
#line $LINENO "configure" |
5685 |
/* confdefs.h. */ |
5686 |
_ACEOF |
5687 |
cat confdefs.h >>conftest.$ac_ext |
5688 |
cat >>conftest.$ac_ext <<_ACEOF |
5689 |
/* end confdefs.h. */ |
5690 |
#include <stdio.h> |
5691 |
#undef PACKAGE |
5692 |
#undef VERSION |
5693 |
#undef HAVE_STDLIB_H |
5694 |
#include <jpeglib.h> |
5695 |
_ACEOF |
5696 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5697 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5698 |
ac_status=$? |
5699 |
grep -v '^ *+' conftest.er1 >conftest.err |
5700 |
rm -f conftest.er1 |
5701 |
cat conftest.err >&5 |
5702 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5703 |
(exit $ac_status); } >/dev/null; then |
5704 |
if test -s conftest.err; then |
5705 |
ac_cpp_err=$ac_c_preproc_warn_flag |
5706 |
else |
5707 |
ac_cpp_err= |
5708 |
fi |
5709 |
else |
5710 |
ac_cpp_err=yes |
5711 |
fi |
5712 |
if test -z "$ac_cpp_err"; then |
5713 |
jpeg_ok=yes |
5714 |
else |
5715 |
echo "$as_me: failed program was:" >&5 |
5716 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5717 |
|
5718 |
jpeg_ok=no |
5719 |
fi |
5720 |
rm -f conftest.err conftest.$ac_ext |
5721 |
echo "$as_me:$LINENO: result: $jpeg_ok" >&5 |
5722 |
echo "${ECHO_T}$jpeg_ok" >&6 |
5723 |
|
5724 |
if test "$jpeg_ok" = yes; then |
5725 |
GRAPHIC_LFLAGS="${with_jpeg_library} $GRAPHIC_LFLAGS" |
5726 |
GRAPHIC_CFLAGS="${with_jpeg_include} $GRAPHIC_CFLAGS" |
5727 |
fi |
5728 |
fi |
5729 |
CPPFLAGS="${jpeg_check_lib_save_header}" |
5730 |
fi |
5731 |
|
5732 |
#-------------------------------------------------------------------- |
5733 |
# Find for TIFF |
5734 |
#-------------------------------------------------------------------- |
5735 |
|
5736 |
# Check whether --with-tiff_library or --without-tiff_library was given. |
5737 |
if test "${with_tiff_library+set}" = set; then |
5738 |
withval="$with_tiff_library" |
5739 |
|
5740 |
else |
5741 |
with_tiff_library= |
5742 |
fi; |
5743 |
|
5744 |
# Check whether --with-tiff_include or --without-tiff_include was given. |
5745 |
if test "${with_tiff_include+set}" = set; then |
5746 |
withval="$with_tiff_include" |
5747 |
|
5748 |
else |
5749 |
with_tiff_include= |
5750 |
fi; |
5751 |
|
5752 |
if test -n "$with_tiff_library"; then |
5753 |
with_tiff_library="-L$with_tiff_library" |
5754 |
fi |
5755 |
if test -n "$with_tiff_include"; then |
5756 |
with_tiff_include="-I$with_tiff_include" |
5757 |
fi |
5758 |
|
5759 |
|
5760 |
|
5761 |
if test $gs_cv_have_wraster = no -o $set_x_paths = yes; then |
5762 |
tiff_check_lib_save_header=${CPPFLAGS} |
5763 |
tiff_check_lib_save_libs=${LIBS} |
5764 |
CPPFLAGS="${with_tiff_library} ${JPEG_LIB} ${with_tiff_include} ${JPEG_INCLUDE} ${CPPFLAGS}" |
5765 |
echo "$as_me:$LINENO: checking for main in -lz" >&5 |
5766 |
echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 |
5767 |
if test "${ac_cv_lib_z_main+set}" = set; then |
5768 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5769 |
else |
5770 |
ac_check_lib_save_LIBS=$LIBS |
5771 |
LIBS="-lz $LIBS" |
5772 |
cat >conftest.$ac_ext <<_ACEOF |
5773 |
#line $LINENO "configure" |
5774 |
/* confdefs.h. */ |
5775 |
_ACEOF |
5776 |
cat confdefs.h >>conftest.$ac_ext |
5777 |
cat >>conftest.$ac_ext <<_ACEOF |
5778 |
/* end confdefs.h. */ |
5779 |
|
5780 |
|
5781 |
int |
5782 |
main () |
5783 |
{ |
5784 |
main (); |
5785 |
; |
5786 |
return 0; |
5787 |
} |
5788 |
_ACEOF |
5789 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5790 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5791 |
(eval $ac_link) 2>&5 |
5792 |
ac_status=$? |
5793 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5794 |
(exit $ac_status); } && |
5795 |
{ ac_try='test -s conftest$ac_exeext' |
5796 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5797 |
(eval $ac_try) 2>&5 |
5798 |
ac_status=$? |
5799 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5800 |
(exit $ac_status); }; }; then |
5801 |
ac_cv_lib_z_main=yes |
5802 |
else |
5803 |
echo "$as_me: failed program was:" >&5 |
5804 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5805 |
|
5806 |
ac_cv_lib_z_main=no |
5807 |
fi |
5808 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5809 |
LIBS=$ac_check_lib_save_LIBS |
5810 |
fi |
5811 |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 |
5812 |
echo "${ECHO_T}$ac_cv_lib_z_main" >&6 |
5813 |
if test $ac_cv_lib_z_main = yes; then |
5814 |
HAVE_LIBZ=1 |
5815 |
else |
5816 |
HAVE_LIBZ=0 |
5817 |
fi |
5818 |
|
5819 |
|
5820 |
echo "$as_me:$LINENO: checking for -ltiff without -ljpeg nor -lz" >&5 |
5821 |
echo $ECHO_N "checking for -ltiff without -ljpeg nor -lz... $ECHO_C" >&6 |
5822 |
LIBS="-ltiff -lm $LIBS" |
5823 |
cat >conftest.$ac_ext <<_ACEOF |
5824 |
#line $LINENO "configure" |
5825 |
/* confdefs.h. */ |
5826 |
_ACEOF |
5827 |
cat confdefs.h >>conftest.$ac_ext |
5828 |
cat >>conftest.$ac_ext <<_ACEOF |
5829 |
/* end confdefs.h. */ |
5830 |
char TIFFReadScanline(); |
5831 |
int |
5832 |
main () |
5833 |
{ |
5834 |
TIFFReadScanline() |
5835 |
; |
5836 |
return 0; |
5837 |
} |
5838 |
_ACEOF |
5839 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5840 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5841 |
(eval $ac_link) 2>&5 |
5842 |
ac_status=$? |
5843 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5844 |
(exit $ac_status); } && |
5845 |
{ ac_try='test -s conftest$ac_exeext' |
5846 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5847 |
(eval $ac_try) 2>&5 |
5848 |
ac_status=$? |
5849 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5850 |
(exit $ac_status); }; }; then |
5851 |
jpeg_notneeded=yes |
5852 |
else |
5853 |
echo "$as_me: failed program was:" >&5 |
5854 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5855 |
|
5856 |
jpeg_notneeded=no |
5857 |
fi |
5858 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5859 |
echo "$as_me:$LINENO: result: $jpeg_notneeded" >&5 |
5860 |
echo "${ECHO_T}$jpeg_notneeded" >&6 |
5861 |
LIBS=${tiff_check_lib_save_libs} |
5862 |
JPEG= |
5863 |
if test "$jpeg_notneeded" = no; then |
5864 |
JPEG=-ljpeg |
5865 |
fi |
5866 |
|
5867 |
if test $HAVE_LIBZ = 1; then |
5868 |
echo "$as_me:$LINENO: checking for -ltiff without -lz" >&5 |
5869 |
echo $ECHO_N "checking for -ltiff without -lz... $ECHO_C" >&6 |
5870 |
LIBS="-ltiff $JPEG -lm $LIBS" |
5871 |
cat >conftest.$ac_ext <<_ACEOF |
5872 |
#line $LINENO "configure" |
5873 |
/* confdefs.h. */ |
5874 |
_ACEOF |
5875 |
cat confdefs.h >>conftest.$ac_ext |
5876 |
cat >>conftest.$ac_ext <<_ACEOF |
5877 |
/* end confdefs.h. */ |
5878 |
char TIFFReadScanline(); |
5879 |
int |
5880 |
main () |
5881 |
{ |
5882 |
TIFFReadScanline() |
5883 |
; |
5884 |
return 0; |
5885 |
} |
5886 |
_ACEOF |
5887 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5888 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5889 |
(eval $ac_link) 2>&5 |
5890 |
ac_status=$? |
5891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5892 |
(exit $ac_status); } && |
5893 |
{ ac_try='test -s conftest$ac_exeext' |
5894 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5895 |
(eval $ac_try) 2>&5 |
5896 |
ac_status=$? |
5897 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5898 |
(exit $ac_status); }; }; then |
5899 |
libz_notneeded=yes |
5900 |
else |
5901 |
echo "$as_me: failed program was:" >&5 |
5902 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5903 |
|
5904 |
libz_notneeded=no |
5905 |
fi |
5906 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5907 |
echo "$as_me:$LINENO: result: $libz_notneeded" >&5 |
5908 |
echo "${ECHO_T}$libz_notneeded" >&6 |
5909 |
LIBS=${tiff_check_lib_save_libs} |
5910 |
if test "$libz_notneeded" = no; then |
5911 |
JPEG="$JPEG -lz" |
5912 |
fi |
5913 |
fi |
5914 |
|
5915 |
echo "$as_me:$LINENO: checking for TIFFReadScanline in -ltiff" >&5 |
5916 |
echo $ECHO_N "checking for TIFFReadScanline in -ltiff... $ECHO_C" >&6 |
5917 |
if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then |
5918 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5919 |
else |
5920 |
ac_check_lib_save_LIBS=$LIBS |
5921 |
LIBS="-ltiff $JPEG -lm $LIBS" |
5922 |
cat >conftest.$ac_ext <<_ACEOF |
5923 |
#line $LINENO "configure" |
5924 |
/* confdefs.h. */ |
5925 |
_ACEOF |
5926 |
cat confdefs.h >>conftest.$ac_ext |
5927 |
cat >>conftest.$ac_ext <<_ACEOF |
5928 |
/* end confdefs.h. */ |
5929 |
|
5930 |
/* Override any gcc2 internal prototype to avoid an error. */ |
5931 |
#ifdef __cplusplus |
5932 |
extern "C" |
5933 |
#endif |
5934 |
/* We use char because int might match the return type of a gcc2 |
5935 |
builtin and then its argument prototype would still apply. */ |
5936 |
char TIFFReadScanline (); |
5937 |
int |
5938 |
main () |
5939 |
{ |
5940 |
TIFFReadScanline (); |
5941 |
; |
5942 |
return 0; |
5943 |
} |
5944 |
_ACEOF |
5945 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5946 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5947 |
(eval $ac_link) 2>&5 |
5948 |
ac_status=$? |
5949 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5950 |
(exit $ac_status); } && |
5951 |
{ ac_try='test -s conftest$ac_exeext' |
5952 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5953 |
(eval $ac_try) 2>&5 |
5954 |
ac_status=$? |
5955 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5956 |
(exit $ac_status); }; }; then |
5957 |
ac_cv_lib_tiff_TIFFReadScanline=yes |
5958 |
else |
5959 |
echo "$as_me: failed program was:" >&5 |
5960 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5961 |
|
5962 |
ac_cv_lib_tiff_TIFFReadScanline=no |
5963 |
fi |
5964 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5965 |
LIBS=$ac_check_lib_save_LIBS |
5966 |
fi |
5967 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 |
5968 |
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadScanline" >&6 |
5969 |
if test $ac_cv_lib_tiff_TIFFReadScanline = yes; then |
5970 |
tiff_ok=yes |
5971 |
else |
5972 |
tiff_ok=no |
5973 |
fi |
5974 |
|
5975 |
if test "$tiff_ok" = yes; then |
5976 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
5977 |
echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
5978 |
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
5979 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
5980 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5981 |
fi |
5982 |
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
5983 |
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
5984 |
else |
5985 |
# Is the header compilable? |
5986 |
echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
5987 |
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 |
5988 |
cat >conftest.$ac_ext <<_ACEOF |
5989 |
#line $LINENO "configure" |
5990 |
/* confdefs.h. */ |
5991 |
_ACEOF |
5992 |
cat confdefs.h >>conftest.$ac_ext |
5993 |
cat >>conftest.$ac_ext <<_ACEOF |
5994 |
/* end confdefs.h. */ |
5995 |
$ac_includes_default |
5996 |
#include <tiffio.h> |
5997 |
_ACEOF |
5998 |
rm -f conftest.$ac_objext |
5999 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6000 |
(eval $ac_compile) 2>&5 |
6001 |
ac_status=$? |
6002 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6003 |
(exit $ac_status); } && |
6004 |
{ ac_try='test -s conftest.$ac_objext' |
6005 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6006 |
(eval $ac_try) 2>&5 |
6007 |
ac_status=$? |
6008 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6009 |
(exit $ac_status); }; }; then |
6010 |
ac_header_compiler=yes |
6011 |
else |
6012 |
echo "$as_me: failed program was:" >&5 |
6013 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6014 |
|
6015 |
ac_header_compiler=no |
6016 |
fi |
6017 |
rm -f conftest.$ac_objext conftest.$ac_ext |
6018 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6019 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6020 |
|
6021 |
# Is the header present? |
6022 |
echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
6023 |
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 |
6024 |
cat >conftest.$ac_ext <<_ACEOF |
6025 |
#line $LINENO "configure" |
6026 |
/* confdefs.h. */ |
6027 |
_ACEOF |
6028 |
cat confdefs.h >>conftest.$ac_ext |
6029 |
cat >>conftest.$ac_ext <<_ACEOF |
6030 |
/* end confdefs.h. */ |
6031 |
#include <tiffio.h> |
6032 |
_ACEOF |
6033 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6034 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6035 |
ac_status=$? |
6036 |
grep -v '^ *+' conftest.er1 >conftest.err |
6037 |
rm -f conftest.er1 |
6038 |
cat conftest.err >&5 |
6039 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6040 |
(exit $ac_status); } >/dev/null; then |
6041 |
if test -s conftest.err; then |
6042 |
ac_cpp_err=$ac_c_preproc_warn_flag |
6043 |
else |
6044 |
ac_cpp_err= |
6045 |
fi |
6046 |
else |
6047 |
ac_cpp_err=yes |
6048 |
fi |
6049 |
if test -z "$ac_cpp_err"; then |
6050 |
ac_header_preproc=yes |
6051 |
else |
6052 |
echo "$as_me: failed program was:" >&5 |
6053 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6054 |
|
6055 |
ac_header_preproc=no |
6056 |
fi |
6057 |
rm -f conftest.err conftest.$ac_ext |
6058 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6059 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6060 |
|
6061 |
# So? What about this header? |
6062 |
case $ac_header_compiler:$ac_header_preproc in |
6063 |
yes:no ) |
6064 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6065 |
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6066 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
6067 |
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
6068 |
( |
6069 |
cat <<\_ASBOX |
6070 |
## ------------------------------------ ## |
6071 |
## Report this to bug-autoconf@gnu.org. ## |
6072 |
## ------------------------------------ ## |
6073 |
_ASBOX |
6074 |
) | |
6075 |
sed "s/^/$as_me: WARNING: /" >&2 |
6076 |
;; |
6077 |
no:yes ) |
6078 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
6079 |
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} |
6080 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
6081 |
echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} |
6082 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
6083 |
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
6084 |
( |
6085 |
cat <<\_ASBOX |
6086 |
## ------------------------------------ ## |
6087 |
## Report this to bug-autoconf@gnu.org. ## |
6088 |
## ------------------------------------ ## |
6089 |
_ASBOX |
6090 |
) | |
6091 |
sed "s/^/$as_me: WARNING: /" >&2 |
6092 |
;; |
6093 |
esac |
6094 |
echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
6095 |
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
6096 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
6097 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6098 |
else |
6099 |
ac_cv_header_tiffio_h=$ac_header_preproc |
6100 |
fi |
6101 |
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
6102 |
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
6103 |
|
6104 |
fi |
6105 |
if test $ac_cv_header_tiffio_h = yes; then |
6106 |
tiff_ok=yes |
6107 |
else |
6108 |
tiff_ok=no |
6109 |
fi |
6110 |
|
6111 |
|
6112 |
if test "$tiff_ok" = yes; then |
6113 |
GRAPHIC_LFLAGS="${with_tiff_library} $GRAPHIC_LFLAGS" |
6114 |
GRAPHIC_CFLAGS="${with_tiff_include} $GRAPHIC_CFLAGS" |
6115 |
GRAPHIC_LIBS="-ltiff $JPEG -lm $GRAPHIC_LIBS" |
6116 |
else |
6117 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libtiff header tiffio" >&5 |
6118 |
echo "$as_me: WARNING: Cannot find libtiff header tiffio" >&2;} |
6119 |
echo "* The GUI library requres the TIFF library" |
6120 |
echo "* Use --with-tiff-include to specify the tiff header directory" |
6121 |
echo "* and --with-tiff-library to specify the tiff library directory" |
6122 |
echo "* if it is not in the usual place(s)" |
6123 |
{ { echo "$as_me:$LINENO: error: gnustep-gui will not compile without tiff includes" >&5 |
6124 |
echo "$as_me: error: gnustep-gui will not compile without tiff includes" >&2;} |
6125 |
{ (exit 1); exit 1; }; } |
6126 |
fi |
6127 |
else |
6128 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libtiff" >&5 |
6129 |
echo "$as_me: WARNING: Cannot find libtiff" >&2;} |
6130 |
echo "* The GUI library reqiures the TIFF library" |
6131 |
echo "* Use --with-tiff-library to specify the tiff library" |
6132 |
echo "* directory if it is not in the usual place(s)" |
6133 |
echo "* You may also have to specify --with-jpeg-library if the jpeg" |
6134 |
echo "* library is needed by tiff", |
6135 |
{ { echo "$as_me:$LINENO: error: gnustep-gui will not compile without tiff" >&5 |
6136 |
echo "$as_me: error: gnustep-gui will not compile without tiff" >&2;} |
6137 |
{ (exit 1); exit 1; }; } |
6138 |
fi |
6139 |
CPPFLAGS="${tiff_check_lib_save_header}" |
6140 |
fi |
6141 |
|
6142 |
save_CPPFLAGS=${CPPFLAGS} |
6143 |
CPPFLAGS="$CPPFLAGS $GRAPHIC_CFLAGS" |
6144 |
|
6145 |
for ac_header in X11/extensions/XShm.h |
6146 |
do |
6147 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6148 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6149 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6150 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6151 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6152 |
else |
6153 |
cat >conftest.$ac_ext <<_ACEOF |
6154 |
#line $LINENO "configure" |
6155 |
/* confdefs.h. */ |
6156 |
_ACEOF |
6157 |
cat confdefs.h >>conftest.$ac_ext |
6158 |
cat >>conftest.$ac_ext <<_ACEOF |
6159 |
/* end confdefs.h. */ |
6160 |
#include <X11/Xlib.h> |
6161 |
|
6162 |
#include <$ac_header> |
6163 |
_ACEOF |
6164 |
rm -f conftest.$ac_objext |
6165 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6166 |
(eval $ac_compile) 2>&5 |
6167 |
ac_status=$? |
6168 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6169 |
(exit $ac_status); } && |
6170 |
{ ac_try='test -s conftest.$ac_objext' |
6171 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6172 |
(eval $ac_try) 2>&5 |
6173 |
ac_status=$? |
6174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6175 |
(exit $ac_status); }; }; then |
6176 |
eval "$as_ac_Header=yes" |
6177 |
else |
6178 |
echo "$as_me: failed program was:" >&5 |
6179 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6180 |
|
6181 |
eval "$as_ac_Header=no" |
6182 |
fi |
6183 |
rm -f conftest.$ac_objext conftest.$ac_ext |
6184 |
fi |
6185 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6186 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6187 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6188 |
cat >>confdefs.h <<_ACEOF |
6189 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6190 |
_ACEOF |
6191 |
|
6192 |
cat >>confdefs.h <<\_ACEOF |
6193 |
#define XSHM 1 |
6194 |
_ACEOF |
6195 |
|
6196 |
fi |
6197 |
|
6198 |
done |
6199 |
|
6200 |
CPPFLAGS="$save_CPPFLAGS" |
6201 |
|
6202 |
#-------------------------------------------------------------------- |
6203 |
# Window's graphics library |
6204 |
#-------------------------------------------------------------------- |
6205 |
save_header=${CPPFLAGS} |
6206 |
save_libs=${LIBS} |
6207 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
6208 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
6209 |
echo "$as_me:$LINENO: checking for main in -lgdi32" >&5 |
6210 |
echo $ECHO_N "checking for main in -lgdi32... $ECHO_C" >&6 |
6211 |
if test "${ac_cv_lib_gdi32_main+set}" = set; then |
6212 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6213 |
else |
6214 |
ac_check_lib_save_LIBS=$LIBS |
6215 |
LIBS="-lgdi32 $LIBS" |
6216 |
cat >conftest.$ac_ext <<_ACEOF |
6217 |
#line $LINENO "configure" |
6218 |
/* confdefs.h. */ |
6219 |
_ACEOF |
6220 |
cat confdefs.h >>conftest.$ac_ext |
6221 |
cat >>conftest.$ac_ext <<_ACEOF |
6222 |
/* end confdefs.h. */ |
6223 |
|
6224 |
|
6225 |
int |
6226 |
main () |
6227 |
{ |
6228 |
main (); |
6229 |
; |
6230 |
return 0; |
6231 |
} |
6232 |
_ACEOF |
6233 |
rm -f conftest.$ac_objext conftest$ac_exeext |
6234 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6235 |
(eval $ac_link) 2>&5 |
6236 |
ac_status=$? |
6237 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6238 |
(exit $ac_status); } && |
6239 |
{ ac_try='test -s conftest$ac_exeext' |
6240 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6241 |
(eval $ac_try) 2>&5 |
6242 |
ac_status=$? |
6243 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6244 |
(exit $ac_status); }; }; then |
6245 |
ac_cv_lib_gdi32_main=yes |
6246 |
else |
6247 |
echo "$as_me: failed program was:" >&5 |
6248 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6249 |
|
6250 |
ac_cv_lib_gdi32_main=no |
6251 |
fi |
6252 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6253 |
LIBS=$ac_check_lib_save_LIBS |
6254 |
fi |
6255 |
echo "$as_me:$LINENO: result: $ac_cv_lib_gdi32_main" >&5 |
6256 |
echo "${ECHO_T}$ac_cv_lib_gdi32_main" >&6 |
6257 |
if test $ac_cv_lib_gdi32_main = yes; then |
6258 |
have_gdi32=yes |
6259 |
else |
6260 |
have_gdi32=no |
6261 |
fi |
6262 |
|
6263 |
if test "$have_gdi32" = yes; then |
6264 |
WIN32_LIBS="-lgdi32" |
6265 |
fi |
6266 |
CPPFLAGS="${save_header}" |
6267 |
LIBS="${save_libs}" |
6268 |
|
6269 |
#-------------------------------------------------------------------- |
6270 |
# libart graphics libraries |
6271 |
#-------------------------------------------------------------------- |
6272 |
save_header=${CPPFLAGS} |
6273 |
save_libs=${LIBS} |
6274 |
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}" |
6275 |
LIBS="${GRAPHIC_LIBS} ${LIBS}" |
6276 |
|
6277 |
LIBART_LIBS="`libart2-config --libs`" |
6278 |
LIBART_CFLAGS="`libart2-config --cflags`" |
6279 |
|
6280 |
CPPFLAGS="${CPPFLAGS} ${LIBART_CFLAGS}" |
6281 |
LIBS="${LIBS} ${LIBART_LIBS}" |
6282 |
|
6283 |
echo "$as_me:$LINENO: checking for main in -lart_lgpl_2" >&5 |
6284 |
echo $ECHO_N "checking for main in -lart_lgpl_2... $ECHO_C" >&6 |
6285 |
if test "${ac_cv_lib_art_lgpl_2_main+set}" = set; then |
6286 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6287 |
else |
6288 |
ac_check_lib_save_LIBS=$LIBS |
6289 |
LIBS="-lart_lgpl_2 $LIBS" |
6290 |
cat >conftest.$ac_ext <<_ACEOF |
6291 |
#line $LINENO "configure" |
6292 |
/* confdefs.h. */ |
6293 |
_ACEOF |
6294 |
cat confdefs.h >>conftest.$ac_ext |
6295 |
cat >>conftest.$ac_ext <<_ACEOF |
6296 |
/* end confdefs.h. */ |
6297 |
|
6298 |
|
6299 |
int |
6300 |
main () |
6301 |
{ |
6302 |
main (); |
6303 |
; |
6304 |
return 0; |
6305 |
} |
6306 |
_ACEOF |
6307 |
rm -f conftest.$ac_objext conftest$ac_exeext |
6308 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6309 |
(eval $ac_link) 2>&5 |
6310 |
ac_status=$? |
6311 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6312 |
(exit $ac_status); } && |
6313 |
{ ac_try='test -s conftest$ac_exeext' |
6314 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6315 |
(eval $ac_try) 2>&5 |
6316 |
ac_status=$? |
6317 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6318 |
(exit $ac_status); }; }; then |
6319 |
ac_cv_lib_art_lgpl_2_main=yes |
6320 |
else |
6321 |
echo "$as_me: failed program was:" >&5 |
6322 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6323 |
|
6324 |
ac_cv_lib_art_lgpl_2_main=no |
6325 |
fi |
6326 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6327 |
LIBS=$ac_check_lib_save_LIBS |
6328 |
fi |
6329 |
echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_main" >&5 |
6330 |
echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_main" >&6 |
6331 |
if test $ac_cv_lib_art_lgpl_2_main = yes; then |
6332 |
have_libart_lgpl_2=yes |
6333 |
else |
6334 |
have_libart_lgpl_2=no |
6335 |
fi |
6336 |
|
6337 |
if test "$have_libart_lgpl_2" = yes; then |
6338 |
if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then |
6339 |
echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5 |
6340 |
echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6 |
6341 |
if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then |
6342 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6343 |
fi |
6344 |
echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5 |
6345 |
echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6 |
6346 |
else |
6347 |
# Is the header compilable? |
6348 |
echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5 |
6349 |
echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6 |
6350 |
cat >conftest.$ac_ext <<_ACEOF |
6351 |
#line $LINENO "configure" |
6352 |
/* confdefs.h. */ |
6353 |
_ACEOF |
6354 |
cat confdefs.h >>conftest.$ac_ext |
6355 |
cat >>conftest.$ac_ext <<_ACEOF |
6356 |
/* end confdefs.h. */ |
6357 |
$ac_includes_default |
6358 |
#include <libart_lgpl/libart.h> |
6359 |
_ACEOF |
6360 |
rm -f conftest.$ac_objext |
6361 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6362 |
(eval $ac_compile) 2>&5 |
6363 |
ac_status=$? |
6364 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6365 |
(exit $ac_status); } && |
6366 |
{ ac_try='test -s conftest.$ac_objext' |
6367 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6368 |
(eval $ac_try) 2>&5 |
6369 |
ac_status=$? |
6370 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6371 |
(exit $ac_status); }; }; then |
6372 |
ac_header_compiler=yes |
6373 |
else |
6374 |
echo "$as_me: failed program was:" >&5 |
6375 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6376 |
|
6377 |
ac_header_compiler=no |
6378 |
fi |
6379 |
rm -f conftest.$ac_objext conftest.$ac_ext |
6380 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6381 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
6382 |
|
6383 |
# Is the header present? |
6384 |
echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5 |
6385 |
echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6 |
6386 |
cat >conftest.$ac_ext <<_ACEOF |
6387 |
#line $LINENO "configure" |
6388 |
/* confdefs.h. */ |
6389 |
_ACEOF |
6390 |
cat confdefs.h >>conftest.$ac_ext |
6391 |
cat >>conftest.$ac_ext <<_ACEOF |
6392 |
/* end confdefs.h. */ |
6393 |
#include <libart_lgpl/libart.h> |
6394 |
_ACEOF |
6395 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6396 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6397 |
ac_status=$? |
6398 |
grep -v '^ *+' conftest.er1 >conftest.err |
6399 |
rm -f conftest.er1 |
6400 |
cat conftest.err >&5 |
6401 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6402 |
(exit $ac_status); } >/dev/null; then |
6403 |
if test -s conftest.err; then |
6404 |
ac_cpp_err=$ac_c_preproc_warn_flag |
6405 |
else |
6406 |
ac_cpp_err= |
6407 |
fi |
6408 |
else |
6409 |
ac_cpp_err=yes |
6410 |
fi |
6411 |
if test -z "$ac_cpp_err"; then |
6412 |
ac_header_preproc=yes |
6413 |
else |
6414 |
echo "$as_me: failed program was:" >&5 |
6415 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6416 |
|
6417 |
ac_header_preproc=no |
6418 |
fi |
6419 |
rm -f conftest.err conftest.$ac_ext |
6420 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6421 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
6422 |
|
6423 |
# So? What about this header? |
6424 |
case $ac_header_compiler:$ac_header_preproc in |
6425 |
yes:no ) |
6426 |
{ echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6427 |
echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6428 |
{ echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5 |
6429 |
echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;} |
6430 |
( |
6431 |
cat <<\_ASBOX |
6432 |
## ------------------------------------ ## |
6433 |
## Report this to bug-autoconf@gnu.org. ## |
6434 |
## ------------------------------------ ## |
6435 |
_ASBOX |
6436 |
) | |
6437 |
sed "s/^/$as_me: WARNING: /" >&2 |
6438 |
;; |
6439 |
no:yes ) |
6440 |
{ echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5 |
6441 |
echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;} |
6442 |
{ echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&5 |
6443 |
echo "$as_me: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&2;} |
6444 |
{ echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5 |
6445 |
echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;} |
6446 |
( |
6447 |
cat <<\_ASBOX |
6448 |
## ------------------------------------ ## |
6449 |
## Report this to bug-autoconf@gnu.org. ## |
6450 |
## ------------------------------------ ## |
6451 |
_ASBOX |
6452 |
) | |
6453 |
sed "s/^/$as_me: WARNING: /" >&2 |
6454 |
;; |
6455 |
esac |
6456 |
echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5 |
6457 |
echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6 |
6458 |
if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then |
6459 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6460 |
else |
6461 |
ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc |
6462 |
fi |
6463 |
echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5 |
6464 |
echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6 |
6465 |
|
6466 |
fi |
6467 |
if test $ac_cv_header_libart_lgpl_libart_h = yes; then |
6468 |
have_libart_lgpl_2=yes |
6469 |
else |
6470 |
have_libart_lgpl_2=no |
6471 |
fi |
6472 |
|
6473 |
|
6474 |
fi |
6475 |
if test "$have_libart_lgpl_2" = yes; then |
6476 |
GRAPHIC_LIBS="$LIBART_LIBS $GRAPHIC_LIBS" |
6477 |
GRAPHIC_CFLAGS="$LIBART_CFLAGS $GRAPHIC_CFLAGS" |
6478 |
fi |
6479 |
CPPFLAGS="${save_header}" |
6480 |
LIBS="${save_libs}" |
6481 |
|
6482 |
#-------------------------------------------------------------------- |
6483 |
# Set definitions |
6484 |
#-------------------------------------------------------------------- |
6485 |
WITH_WRASTER=no |
6486 |
if test $gs_cv_have_wraster = yes -a $set_x_paths = no; then |
6487 |
|
6488 |
cat >>confdefs.h <<\_ACEOF |
6489 |
#define WITH_WRASTER 1 |
6490 |
_ACEOF |
6491 |
|
6492 |
WITH_WRASTER=yes |
6493 |
fi |
6494 |
|
6495 |
|
6496 |
|
6497 |
|
6498 |
|
6499 |
#-------------------------------------------------------------------- |
6500 |
# Which projects should we build? |
6501 |
#-------------------------------------------------------------------- |
6502 |
BUILD_SERVER=x11 |
6503 |
BUILD_GRAPHICS=xlib |
6504 |
case $target_os in |
6505 |
*mingw32* ) BUILD_SERVER=win32 |
6506 |
BUILD_GRAPHICS=winlib;; |
6507 |
esac |
6508 |
|
6509 |
# Check whether --enable-server or --disable-server was given. |
6510 |
if test "${enable_server+set}" = set; then |
6511 |
enableval="$enable_server" |
6512 |
|
6513 |
else |
6514 |
enable_server=$BUILD_SERVER |
6515 |
fi; |
6516 |
# Check whether --enable-graphics or --disable-graphics was given. |
6517 |
if test "${enable_graphics+set}" = set; then |
6518 |
enableval="$enable_graphics" |
6519 |
|
6520 |
else |
6521 |
enable_graphics="$BUILD_GRAPHICS" |
6522 |
fi; |
6523 |
|
6524 |
BUILD_SERVER=$enable_server |
6525 |
BUILD_GRAPHICS="$enable_graphics" |
6526 |
echo "$as_me:$LINENO: checking Backend Server" >&5 |
6527 |
echo $ECHO_N "checking Backend Server... $ECHO_C" >&6 |
6528 |
|
6529 |
|
6530 |
cat >>confdefs.h <<_ACEOF |
6531 |
#define BUILD_SERVER SERVER_$BUILD_SERVER |
6532 |
_ACEOF |
6533 |
|
6534 |
echo "$as_me:$LINENO: result: $BUILD_SERVER" >&5 |
6535 |
echo "${ECHO_T}$BUILD_SERVER" >&6 |
6536 |
|
6537 |
echo "$as_me:$LINENO: checking Backend Graphics" >&5 |
6538 |
echo $ECHO_N "checking Backend Graphics... $ECHO_C" >&6 |
6539 |
|
6540 |
|
6541 |
cat >>confdefs.h <<_ACEOF |
6542 |
#define BUILD_GRAPHICS $BUILD_GRAPHICS |
6543 |
_ACEOF |
6544 |
|
6545 |
echo "$as_me:$LINENO: result: $BUILD_GRAPHICS" >&5 |
6546 |
echo "${ECHO_T}$BUILD_GRAPHICS" >&6 |
6547 |
|
6548 |
if test x"$BUILD_GRAPHICS" = "xxdps"; then |
6549 |
GRAPHIC_LIBS="-ldpstk -ldps -lpsres -lXt $X_PRE_LIBS $GRAPHIC_LIBS" |
6550 |
elif test x"$BUILD_GRAPHICS" = "xart"; then |
6551 |
if test "$have_freetype" = no; then |
6552 |
{ { echo "$as_me:$LINENO: error: can't find freetype, required for graphics=art!" >&5 |
6553 |
echo "$as_me: error: can't find freetype, required for graphics=art!" >&2;} |
6554 |
{ (exit 1); exit 1; }; } |
6555 |
fi |
6556 |
if test "$have_libart_lgpl_2" = no; then |
6557 |
{ { echo "$as_me:$LINENO: error: can't find libart, required for graphics=art!" >&5 |
6558 |
echo "$as_me: error: can't find libart, required for graphics=art!" >&2;} |
6559 |
{ (exit 1); exit 1; }; } |
6560 |
fi |
6561 |
elif test x"$BUILD_GRAPHICS" = "xwinlib"; then |
6562 |
GRAPHIC_LIBS="$WIN32_LIBS $GRAPHIC_LIBS" |
6563 |
fi |
6564 |
|
6565 |
|
6566 |
|
6567 |
|
6568 |
#-------------------------------------------------------------------- |
6569 |
# Set the name of the backend |
6570 |
#-------------------------------------------------------------------- |
6571 |
|
6572 |
# Check whether --with-name or --without-name was given. |
6573 |
if test "${with_name+set}" = set; then |
6574 |
withval="$with_name" |
6575 |
|
6576 |
fi; |
6577 |
echo "$as_me:$LINENO: checking Backend name" >&5 |
6578 |
echo $ECHO_N "checking Backend name... $ECHO_C" >&6 |
6579 |
if test "x$with_name" = "x"; then |
6580 |
BACKEND_NAME=back |
6581 |
else |
6582 |
BACKEND_NAME=${with_name} |
6583 |
fi |
6584 |
echo "$as_me:$LINENO: result: $BACKEND_NAME" >&5 |
6585 |
echo "${ECHO_T}$BACKEND_NAME" >&6 |
6586 |
|
6587 |
|
6588 |
ac_config_files="$ac_config_files back.make config.make" |
6589 |
|
6590 |
cat >confcache <<\_ACEOF |
6591 |
# This file is a shell script that caches the results of configure |
6592 |
# tests run on this system so they can be shared between configure |
6593 |
# scripts and configure runs, see configure's option --config-cache. |
6594 |
# It is not useful on other systems. If it contains results you don't |
6595 |
# want to keep, you may remove or edit it. |
6596 |
# |
6597 |
# config.status only pays attention to the cache file if you give it |
6598 |
# the --recheck option to rerun configure. |
6599 |
# |
6600 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
6601 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
6602 |
# following values. |
6603 |
|
6604 |
_ACEOF |
6605 |
|
6606 |
# The following way of writing the cache mishandles newlines in values, |
6607 |
# but we know of no workaround that is simple, portable, and efficient. |
6608 |
# So, don't put newlines in cache variables' values. |
6609 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
6610 |
# and sets the high bit in the cache file unless we assign to the vars. |
6611 |
{ |
6612 |
(set) 2>&1 | |
6613 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
6614 |
*ac_space=\ *) |
6615 |
# `set' does not quote correctly, so add quotes (double-quote |
6616 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
6617 |
sed -n \ |
6618 |
"s/'/'\\\\''/g; |
6619 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
6620 |
;; |
6621 |
*) |
6622 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
6623 |
sed -n \ |
6624 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
6625 |
;; |
6626 |
esac; |
6627 |
} | |
6628 |
sed ' |
6629 |
t clear |
6630 |
: clear |
6631 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6632 |
t end |
6633 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6634 |
: end' >>confcache |
6635 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
6636 |
if test -w $cache_file; then |
6637 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6638 |
cat confcache >$cache_file |
6639 |
else |
6640 |
echo "not updating unwritable cache $cache_file" |
6641 |
fi |
6642 |
fi |
6643 |
rm -f confcache |
6644 |
|
6645 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6646 |
# Let make expand exec_prefix. |
6647 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
6648 |
|
6649 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
6650 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
6651 |
# trailing colons and then remove the whole line if VPATH becomes empty |
6652 |
# (actually we leave an empty line to preserve line numbers). |
6653 |
if test "x$srcdir" = x.; then |
6654 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
6655 |
s/:*\$(srcdir):*/:/; |
6656 |
s/:*\${srcdir}:*/:/; |
6657 |
s/:*@srcdir@:*/:/; |
6658 |
s/^\([^=]*=[ ]*\):*/\1/; |
6659 |
s/:*$//; |
6660 |
s/^[^=]*=[ ]*$//; |
6661 |
}' |
6662 |
fi |
6663 |
|
6664 |
DEFS=-DHAVE_CONFIG_H |
6665 |
|
6666 |
ac_libobjs= |
6667 |
ac_ltlibobjs= |
6668 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6669 |
# 1. Remove the extension, and $U if already installed. |
6670 |
ac_i=`echo "$ac_i" | |
6671 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6672 |
# 2. Add them. |
6673 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
6674 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
6675 |
done |
6676 |
LIBOBJS=$ac_libobjs |
6677 |
|
6678 |
LTLIBOBJS=$ac_ltlibobjs |
6679 |
|
6680 |
|
6681 |
|
6682 |
: ${CONFIG_STATUS=./config.status} |
6683 |
ac_clean_files_save=$ac_clean_files |
6684 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
6685 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
6686 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
6687 |
cat >$CONFIG_STATUS <<_ACEOF |
6688 |
#! $SHELL |
6689 |
# Generated by $as_me. |
6690 |
# Run this file to recreate the current configuration. |
6691 |
# Compiler output produced by configure, useful for debugging |
6692 |
# configure, is in config.log if it exists. |
6693 |
|
6694 |
debug=false |
6695 |
ac_cs_recheck=false |
6696 |
ac_cs_silent=false |
6697 |
SHELL=\${CONFIG_SHELL-$SHELL} |
6698 |
_ACEOF |
6699 |
|
6700 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6701 |
## --------------------- ## |
6702 |
## M4sh Initialization. ## |
6703 |
## --------------------- ## |
6704 |
|
6705 |
# Be Bourne compatible |
6706 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6707 |
emulate sh |
6708 |
NULLCMD=: |
6709 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6710 |
# is contrary to our usage. Disable this feature. |
6711 |
alias -g '${1+"$@"}'='"$@"' |
6712 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
6713 |
set -o posix |
6714 |
fi |
6715 |
|
6716 |
# Support unset when possible. |
6717 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
6718 |
as_unset=unset |
6719 |
else |
6720 |
as_unset=false |
6721 |
fi |
6722 |
|
6723 |
|
6724 |
# Work around bugs in pre-3.0 UWIN ksh. |
6725 |
$as_unset ENV MAIL MAILPATH |
6726 |
PS1='$ ' |
6727 |
PS2='> ' |
6728 |
PS4='+ ' |
6729 |
|
6730 |
# NLS nuisances. |
6731 |
for as_var in \ |
6732 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
6733 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
6734 |
LC_TELEPHONE LC_TIME |
6735 |
do |
6736 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6737 |
eval $as_var=C; export $as_var |
6738 |
else |
6739 |
$as_unset $as_var |
6740 |
fi |
6741 |
done |
6742 |
|
6743 |
# Required to use basename. |
6744 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
6745 |
as_expr=expr |
6746 |
else |
6747 |
as_expr=false |
6748 |
fi |
6749 |
|
6750 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6751 |
as_basename=basename |
6752 |
else |
6753 |
as_basename=false |
6754 |
fi |
6755 |
|
6756 |
|
6757 |
# Name of the executable. |
6758 |
as_me=`$as_basename "$0" || |
6759 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6760 |
X"$0" : 'X\(//\)$' \| \ |
6761 |
X"$0" : 'X\(/\)$' \| \ |
6762 |
. : '\(.\)' 2>/dev/null || |
6763 |
echo X/"$0" | |
6764 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
6765 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
6766 |
/^X\/\(\/\).*/{ s//\1/; q; } |
6767 |
s/.*/./; q'` |
6768 |
|
6769 |
|
6770 |
# PATH needs CR, and LINENO needs CR and PATH. |
6771 |
# Avoid depending upon Character Ranges. |
6772 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
6773 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
6774 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
6775 |
as_cr_digits='0123456789' |
6776 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
6777 |
|
6778 |
# The user is always right. |
6779 |
if test "${PATH_SEPARATOR+set}" != set; then |
6780 |
echo "#! /bin/sh" >conf$$.sh |
6781 |
echo "exit 0" >>conf$$.sh |
6782 |
chmod +x conf$$.sh |
6783 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
6784 |
PATH_SEPARATOR=';' |
6785 |
else |
6786 |
PATH_SEPARATOR=: |
6787 |
fi |
6788 |
rm -f conf$$.sh |
6789 |
fi |
6790 |
|
6791 |
|
6792 |
as_lineno_1=$LINENO |
6793 |
as_lineno_2=$LINENO |
6794 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6795 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
6796 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
6797 |
# Find who we are. Look in the path if we contain no path at all |
6798 |
# relative or not. |
6799 |
case $0 in |
6800 |
*[\\/]* ) as_myself=$0 ;; |
6801 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6802 |
for as_dir in $PATH |
6803 |
do |
6804 |
IFS=$as_save_IFS |
6805 |
test -z "$as_dir" && as_dir=. |
6806 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
6807 |
done |
6808 |
|
6809 |
;; |
6810 |
esac |
6811 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
6812 |
# in which case we are not to be found in the path. |
6813 |
if test "x$as_myself" = x; then |
6814 |
as_myself=$0 |
6815 |
fi |
6816 |
if test ! -f "$as_myself"; then |
6817 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
6818 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
6819 |
{ (exit 1); exit 1; }; } |
6820 |
fi |
6821 |
case $CONFIG_SHELL in |
6822 |
'') |
6823 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6824 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
6825 |
do |
6826 |
IFS=$as_save_IFS |
6827 |
test -z "$as_dir" && as_dir=. |
6828 |
for as_base in sh bash ksh sh5; do |
6829 |
case $as_dir in |
6830 |
/*) |
6831 |
if ("$as_dir/$as_base" -c ' |
6832 |
as_lineno_1=$LINENO |
6833 |
as_lineno_2=$LINENO |
6834 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6835 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
6836 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
6837 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
6838 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
6839 |
CONFIG_SHELL=$as_dir/$as_base |
6840 |
export CONFIG_SHELL |
6841 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
6842 |
fi;; |
6843 |
esac |
6844 |
done |
6845 |
done |
6846 |
;; |
6847 |
esac |
6848 |
|
6849 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
6850 |
# uniformly replaced by the line number. The first 'sed' inserts a |
6851 |
# line-number line before each line; the second 'sed' does the real |
6852 |
# work. The second script uses 'N' to pair each line-number line |
6853 |
# with the numbered line, and appends trailing '-' during |
6854 |
# substitution so that $LINENO is not a special case at line end. |
6855 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
6856 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
6857 |
sed '=' <$as_myself | |
6858 |
sed ' |
6859 |
N |
6860 |
s,$,-, |
6861 |
: loop |
6862 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
6863 |
t loop |
6864 |
s,-$,, |
6865 |
s,^['$as_cr_digits']*\n,, |
6866 |
' >$as_me.lineno && |
6867 |
chmod +x $as_me.lineno || |
6868 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
6869 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
6870 |
{ (exit 1); exit 1; }; } |
6871 |
|
6872 |
# Don't try to exec as it changes $[0], causing all sort of problems |
6873 |
# (the dirname of $[0] is not the place where we might find the |
6874 |
# original and so on. Autoconf is especially sensible to this). |
6875 |
. ./$as_me.lineno |
6876 |
# Exit status is that of the last command. |
6877 |
exit |
6878 |
} |
6879 |
|
6880 |
|
6881 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
6882 |
*c*,-n*) ECHO_N= ECHO_C=' |
6883 |
' ECHO_T=' ' ;; |
6884 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
6885 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
6886 |
esac |
6887 |
|
6888 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
6889 |
as_expr=expr |
6890 |
else |
6891 |
as_expr=false |
6892 |
fi |
6893 |
|
6894 |
rm -f conf$$ conf$$.exe conf$$.file |
6895 |
echo >conf$$.file |
6896 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
6897 |
# We could just check for DJGPP; but this test a) works b) is more generic |
6898 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
6899 |
if test -f conf$$.exe; then |
6900 |
# Don't use ln at all; we don't have any links |
6901 |
as_ln_s='cp -p' |
6902 |
else |
6903 |
as_ln_s='ln -s' |
6904 |
fi |
6905 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
6906 |
as_ln_s=ln |
6907 |
else |
6908 |
as_ln_s='cp -p' |
6909 |
fi |
6910 |
rm -f conf$$ conf$$.exe conf$$.file |
6911 |
|
6912 |
if mkdir -p . 2>/dev/null; then |
6913 |
as_mkdir_p=: |
6914 |
else |
6915 |
as_mkdir_p=false |
6916 |
fi |
6917 |
|
6918 |
as_executable_p="test -f" |
6919 |
|
6920 |
# Sed expression to map a string onto a valid CPP name. |
6921 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
6922 |
|
6923 |
# Sed expression to map a string onto a valid variable name. |
6924 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
6925 |
|
6926 |
|
6927 |
# IFS |
6928 |
# We need space, tab and new line, in precisely that order. |
6929 |
as_nl=' |
6930 |
' |
6931 |
IFS=" $as_nl" |
6932 |
|
6933 |
# CDPATH. |
6934 |
$as_unset CDPATH |
6935 |
|
6936 |
exec 6>&1 |
6937 |
|
6938 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
6939 |
# report actual input values of CONFIG_FILES etc. instead of their |
6940 |
# values after options handling. Logging --version etc. is OK. |
6941 |
exec 5>>config.log |
6942 |
{ |
6943 |
echo |
6944 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6945 |
## Running $as_me. ## |
6946 |
_ASBOX |
6947 |
} >&5 |
6948 |
cat >&5 <<_CSEOF |
6949 |
|
6950 |
This file was extended by $as_me, which was |
6951 |
generated by GNU Autoconf 2.57. Invocation command line was |
6952 |
|
6953 |
CONFIG_FILES = $CONFIG_FILES |
6954 |
CONFIG_HEADERS = $CONFIG_HEADERS |
6955 |
CONFIG_LINKS = $CONFIG_LINKS |
6956 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
6957 |
$ $0 $@ |
6958 |
|
6959 |
_CSEOF |
6960 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
6961 |
echo >&5 |
6962 |
_ACEOF |
6963 |
|
6964 |
# Files that config.status was made for. |
6965 |
if test -n "$ac_config_files"; then |
6966 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
6967 |
fi |
6968 |
|
6969 |
if test -n "$ac_config_headers"; then |
6970 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
6971 |
fi |
6972 |
|
6973 |
if test -n "$ac_config_links"; then |
6974 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
6975 |
fi |
6976 |
|
6977 |
if test -n "$ac_config_commands"; then |
6978 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
6979 |
fi |
6980 |
|
6981 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6982 |
|
6983 |
ac_cs_usage="\ |
6984 |
\`$as_me' instantiates files from templates according to the |
6985 |
current configuration. |
6986 |
|
6987 |
Usage: $0 [OPTIONS] [FILE]... |
6988 |
|
6989 |
-h, --help print this help, then exit |
6990 |
-V, --version print version number, then exit |
6991 |
-q, --quiet do not print progress messages |
6992 |
-d, --debug don't remove temporary files |
6993 |
--recheck update $as_me by reconfiguring in the same conditions |
6994 |
--file=FILE[:TEMPLATE] |
6995 |
instantiate the configuration file FILE |
6996 |
--header=FILE[:TEMPLATE] |
6997 |
instantiate the configuration header FILE |
6998 |
|
6999 |
Configuration files: |
7000 |
$config_files |
7001 |
|
7002 |
Configuration headers: |
7003 |
$config_headers |
7004 |
|
7005 |
Report bugs to <bug-autoconf@gnu.org>." |
7006 |
_ACEOF |
7007 |
|
7008 |
cat >>$CONFIG_STATUS <<_ACEOF |
7009 |
ac_cs_version="\\ |
7010 |
config.status |
7011 |
configured by $0, generated by GNU Autoconf 2.57, |
7012 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7013 |
|
7014 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7015 |
Free Software Foundation, Inc. |
7016 |
This config.status script is free software; the Free Software Foundation |
7017 |
gives unlimited permission to copy, distribute and modify it." |
7018 |
srcdir=$srcdir |
7019 |
_ACEOF |
7020 |
|
7021 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7022 |
# If no file are specified by the user, then we need to provide default |
7023 |
# value. By we need to know if files were specified by the user. |
7024 |
ac_need_defaults=: |
7025 |
while test $# != 0 |
7026 |
do |
7027 |
case $1 in |
7028 |
--*=*) |
7029 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
7030 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
7031 |
ac_shift=: |
7032 |
;; |
7033 |
-*) |
7034 |
ac_option=$1 |
7035 |
ac_optarg=$2 |
7036 |
ac_shift=shift |
7037 |
;; |
7038 |
*) # This is not an option, so the user has probably given explicit |
7039 |
# arguments. |
7040 |
ac_option=$1 |
7041 |
ac_need_defaults=false;; |
7042 |
esac |
7043 |
|
7044 |
case $ac_option in |
7045 |
# Handling of the options. |
7046 |
_ACEOF |
7047 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7048 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7049 |
ac_cs_recheck=: ;; |
7050 |
--version | --vers* | -V ) |
7051 |
echo "$ac_cs_version"; exit 0 ;; |
7052 |
--he | --h) |
7053 |
# Conflict between --help and --header |
7054 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
7055 |
Try \`$0 --help' for more information." >&5 |
7056 |
echo "$as_me: error: ambiguous option: $1 |
7057 |
Try \`$0 --help' for more information." >&2;} |
7058 |
{ (exit 1); exit 1; }; };; |
7059 |
--help | --hel | -h ) |
7060 |
echo "$ac_cs_usage"; exit 0 ;; |
7061 |
--debug | --d* | -d ) |
7062 |
debug=: ;; |
7063 |
--file | --fil | --fi | --f ) |
7064 |
$ac_shift |
7065 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
7066 |
ac_need_defaults=false;; |
7067 |
--header | --heade | --head | --hea ) |
7068 |
$ac_shift |
7069 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
7070 |
ac_need_defaults=false;; |
7071 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7072 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
7073 |
ac_cs_silent=: ;; |
7074 |
|
7075 |
# This is an error. |
7076 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
7077 |
Try \`$0 --help' for more information." >&5 |
7078 |
echo "$as_me: error: unrecognized option: $1 |
7079 |
Try \`$0 --help' for more information." >&2;} |
7080 |
{ (exit 1); exit 1; }; } ;; |
7081 |
|
7082 |
*) ac_config_targets="$ac_config_targets $1" ;; |
7083 |
|
7084 |
esac |
7085 |
shift |
7086 |
done |
7087 |
|
7088 |
ac_configure_extra_args= |
7089 |
|
7090 |
if $ac_cs_silent; then |
7091 |
exec 6>/dev/null |
7092 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
7093 |
fi |
7094 |
|
7095 |
_ACEOF |
7096 |
cat >>$CONFIG_STATUS <<_ACEOF |
7097 |
if \$ac_cs_recheck; then |
7098 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
7099 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7100 |
fi |
7101 |
|
7102 |
_ACEOF |
7103 |
|
7104 |
|
7105 |
|
7106 |
|
7107 |
|
7108 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7109 |
for ac_config_target in $ac_config_targets |
7110 |
do |
7111 |
case "$ac_config_target" in |
7112 |
# Handling of arguments. |
7113 |
"back.make" ) CONFIG_FILES="$CONFIG_FILES back.make" ;; |
7114 |
"config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;; |
7115 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
7116 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7117 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7118 |
{ (exit 1); exit 1; }; };; |
7119 |
esac |
7120 |
done |
7121 |
|
7122 |
# If the user did not use the arguments to specify the items to instantiate, |
7123 |
# then the envvar interface is used. Set only those that are not. |
7124 |
# We use the long form for the default assignment because of an extremely |
7125 |
# bizarre bug on SunOS 4.1.3. |
7126 |
if $ac_need_defaults; then |
7127 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
7128 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
7129 |
fi |
7130 |
|
7131 |
# Have a temporary directory for convenience. Make it in the build tree |
7132 |
# simply because there is no reason to put it here, and in addition, |
7133 |
# creating and moving files from /tmp can sometimes cause problems. |
7134 |
# Create a temporary directory, and hook for its removal unless debugging. |
7135 |
$debug || |
7136 |
{ |
7137 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
7138 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7139 |
} |
7140 |
|
7141 |
# Create a (secure) tmp directory for tmp files. |
7142 |
|
7143 |
{ |
7144 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
7145 |
test -n "$tmp" && test -d "$tmp" |
7146 |
} || |
7147 |
{ |
7148 |
tmp=./confstat$$-$RANDOM |
7149 |
(umask 077 && mkdir $tmp) |
7150 |
} || |
7151 |
{ |
7152 |
echo "$me: cannot create a temporary directory in ." >&2 |
7153 |
{ (exit 1); exit 1; } |
7154 |
} |
7155 |
|
7156 |
_ACEOF |
7157 |
|
7158 |
cat >>$CONFIG_STATUS <<_ACEOF |
7159 |
|
7160 |
# |
7161 |
# CONFIG_FILES section. |
7162 |
# |
7163 |
|
7164 |
# No need to generate the scripts if there are no CONFIG_FILES. |
7165 |
# This happens for instance when ./config.status config.h |
7166 |
if test -n "\$CONFIG_FILES"; then |
7167 |
# Protect against being on the right side of a sed subst in config.status. |
7168 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
7169 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
7170 |
s,@SHELL@,$SHELL,;t t |
7171 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
7172 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
7173 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
7174 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
7175 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
7176 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
7177 |
s,@exec_prefix@,$exec_prefix,;t t |
7178 |
s,@prefix@,$prefix,;t t |
7179 |
s,@program_transform_name@,$program_transform_name,;t t |
7180 |
s,@bindir@,$bindir,;t t |
7181 |
s,@sbindir@,$sbindir,;t t |
7182 |
s,@libexecdir@,$libexecdir,;t t |
7183 |
s,@datadir@,$datadir,;t t |
7184 |
s,@sysconfdir@,$sysconfdir,;t t |
7185 |
s,@sharedstatedir@,$sharedstatedir,;t t |
7186 |
s,@localstatedir@,$localstatedir,;t t |
7187 |
s,@libdir@,$libdir,;t t |
7188 |
s,@includedir@,$includedir,;t t |
7189 |
s,@oldincludedir@,$oldincludedir,;t t |
7190 |
s,@infodir@,$infodir,;t t |
7191 |
s,@mandir@,$mandir,;t t |
7192 |
s,@build_alias@,$build_alias,;t t |
7193 |
s,@host_alias@,$host_alias,;t t |
7194 |
s,@target_alias@,$target_alias,;t t |
7195 |
s,@DEFS@,$DEFS,;t t |
7196 |
s,@ECHO_C@,$ECHO_C,;t t |
7197 |
s,@ECHO_N@,$ECHO_N,;t t |
7198 |
s,@ECHO_T@,$ECHO_T,;t t |
7199 |
s,@LIBS@,$LIBS,;t t |
7200 |
s,@CC@,$CC,;t t |
7201 |
s,@CFLAGS@,$CFLAGS,;t t |
7202 |
s,@LDFLAGS@,$LDFLAGS,;t t |
7203 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
7204 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
7205 |
s,@EXEEXT@,$EXEEXT,;t t |
7206 |
s,@OBJEXT@,$OBJEXT,;t t |
7207 |
s,@build@,$build,;t t |
7208 |
s,@build_cpu@,$build_cpu,;t t |
7209 |
s,@build_vendor@,$build_vendor,;t t |
7210 |
s,@build_os@,$build_os,;t t |
7211 |
s,@host@,$host,;t t |
7212 |
s,@host_cpu@,$host_cpu,;t t |
7213 |
s,@host_vendor@,$host_vendor,;t t |
7214 |
s,@host_os@,$host_os,;t t |
7215 |
s,@target@,$target,;t t |
7216 |
s,@target_cpu@,$target_cpu,;t t |
7217 |
s,@target_vendor@,$target_vendor,;t t |
7218 |
s,@target_os@,$target_os,;t t |
7219 |
s,@CPP@,$CPP,;t t |
7220 |
s,@EGREP@,$EGREP,;t t |
7221 |
s,@X_CFLAGS@,$X_CFLAGS,;t t |
7222 |
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
7223 |
s,@X_LIBS@,$X_LIBS,;t t |
7224 |
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
7225 |
s,@WITH_XFT@,$WITH_XFT,;t t |
7226 |
s,@WITH_GLX@,$WITH_GLX,;t t |
7227 |
s,@WITH_WRASTER@,$WITH_WRASTER,;t t |
7228 |
s,@GRAPHIC_LIBS@,$GRAPHIC_LIBS,;t t |
7229 |
s,@GRAPHIC_CFLAGS@,$GRAPHIC_CFLAGS,;t t |
7230 |
s,@GRAPHIC_LFLAGS@,$GRAPHIC_LFLAGS,;t t |
7231 |
s,@BUILD_SERVER@,$BUILD_SERVER,;t t |
7232 |
s,@BUILD_GRAPHICS@,$BUILD_GRAPHICS,;t t |
7233 |
s,@BACKEND_NAME@,$BACKEND_NAME,;t t |
7234 |
s,@LIBOBJS@,$LIBOBJS,;t t |
7235 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
7236 |
CEOF |
7237 |
|
7238 |
_ACEOF |
7239 |
|
7240 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7241 |
# Split the substitutions into bite-sized pieces for seds with |
7242 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
7243 |
ac_max_sed_lines=48 |
7244 |
ac_sed_frag=1 # Number of current file. |
7245 |
ac_beg=1 # First line for current file. |
7246 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
7247 |
ac_more_lines=: |
7248 |
ac_sed_cmds= |
7249 |
while $ac_more_lines; do |
7250 |
if test $ac_beg -gt 1; then |
7251 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
7252 |
else |
7253 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
7254 |
fi |
7255 |
if test ! -s $tmp/subs.frag; then |
7256 |
ac_more_lines=false |
7257 |
else |
7258 |
# The purpose of the label and of the branching condition is to |
7259 |
# speed up the sed processing (if there are no `@' at all, there |
7260 |
# is no need to browse any of the substitutions). |
7261 |
# These are the two extra sed commands mentioned above. |
7262 |
(echo ':t |
7263 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
7264 |
if test -z "$ac_sed_cmds"; then |
7265 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
7266 |
else |
7267 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
7268 |
fi |
7269 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
7270 |
ac_beg=$ac_end |
7271 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
7272 |
fi |
7273 |
done |
7274 |
if test -z "$ac_sed_cmds"; then |
7275 |
ac_sed_cmds=cat |
7276 |
fi |
7277 |
fi # test -n "$CONFIG_FILES" |
7278 |
|
7279 |
_ACEOF |
7280 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7281 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
7282 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7283 |
case $ac_file in |
7284 |
- | *:- | *:-:* ) # input from stdin |
7285 |
cat >$tmp/stdin |
7286 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7287 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7288 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7289 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7290 |
* ) ac_file_in=$ac_file.in ;; |
7291 |
esac |
7292 |
|
7293 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7294 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7295 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7296 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
7297 |
X"$ac_file" : 'X\(//\)$' \| \ |
7298 |
X"$ac_file" : 'X\(/\)' \| \ |
7299 |
. : '\(.\)' 2>/dev/null || |
7300 |
echo X"$ac_file" | |
7301 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7302 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7303 |
/^X\(\/\/\)$/{ s//\1/; q; } |
7304 |
/^X\(\/\).*/{ s//\1/; q; } |
7305 |
s/.*/./; q'` |
7306 |
{ if $as_mkdir_p; then |
7307 |
mkdir -p "$ac_dir" |
7308 |
else |
7309 |
as_dir="$ac_dir" |
7310 |
as_dirs= |
7311 |
while test ! -d "$as_dir"; do |
7312 |
as_dirs="$as_dir $as_dirs" |
7313 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
7314 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7315 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
7316 |
X"$as_dir" : 'X\(//\)$' \| \ |
7317 |
X"$as_dir" : 'X\(/\)' \| \ |
7318 |
. : '\(.\)' 2>/dev/null || |
7319 |
echo X"$as_dir" | |
7320 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7321 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7322 |
/^X\(\/\/\)$/{ s//\1/; q; } |
7323 |
/^X\(\/\).*/{ s//\1/; q; } |
7324 |
s/.*/./; q'` |
7325 |
done |
7326 |
test ! -n "$as_dirs" || mkdir $as_dirs |
7327 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
7328 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
7329 |
{ (exit 1); exit 1; }; }; } |
7330 |
|
7331 |
ac_builddir=. |
7332 |
|
7333 |
if test "$ac_dir" != .; then |
7334 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7335 |
# A "../" for each directory in $ac_dir_suffix. |
7336 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
7337 |
else |
7338 |
ac_dir_suffix= ac_top_builddir= |
7339 |
fi |
7340 |
|
7341 |
case $srcdir in |
7342 |
.) # No --srcdir option. We are building in place. |
7343 |
ac_srcdir=. |
7344 |
if test -z "$ac_top_builddir"; then |
7345 |
ac_top_srcdir=. |
7346 |
else |
7347 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
7348 |
fi ;; |
7349 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
7350 |
ac_srcdir=$srcdir$ac_dir_suffix; |
7351 |
ac_top_srcdir=$srcdir ;; |
7352 |
*) # Relative path. |
7353 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7354 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
7355 |
esac |
7356 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
7357 |
# absolute. |
7358 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
7359 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
7360 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7361 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
7362 |
|
7363 |
|
7364 |
|
7365 |
if test x"$ac_file" != x-; then |
7366 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
7367 |
echo "$as_me: creating $ac_file" >&6;} |
7368 |
rm -f "$ac_file" |
7369 |
fi |
7370 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
7371 |
# use $as_me), people would be surprised to read: |
7372 |
# /* config.h. Generated by config.status. */ |
7373 |
if test x"$ac_file" = x-; then |
7374 |
configure_input= |
7375 |
else |
7376 |
configure_input="$ac_file. " |
7377 |
fi |
7378 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
7379 |
sed 's,.*/,,'` by configure." |
7380 |
|
7381 |
# First look for the input files in the build tree, otherwise in the |
7382 |
# src tree. |
7383 |
ac_file_inputs=`IFS=: |
7384 |
for f in $ac_file_in; do |
7385 |
case $f in |
7386 |
-) echo $tmp/stdin ;; |
7387 |
[\\/$]*) |
7388 |
# Absolute (can't be DOS-style, as IFS=:) |
7389 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7390 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
7391 |
{ (exit 1); exit 1; }; } |
7392 |
echo $f;; |
7393 |
*) # Relative |
7394 |
if test -f "$f"; then |
7395 |
# Build tree |
7396 |
echo $f |
7397 |
elif test -f "$srcdir/$f"; then |
7398 |
# Source tree |
7399 |
echo $srcdir/$f |
7400 |
else |
7401 |
# /dev/null tree |
7402 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7403 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
7404 |
{ (exit 1); exit 1; }; } |
7405 |
fi;; |
7406 |
esac |
7407 |
done` || { (exit 1); exit 1; } |
7408 |
_ACEOF |
7409 |
cat >>$CONFIG_STATUS <<_ACEOF |
7410 |
sed "$ac_vpsub |
7411 |
$extrasub |
7412 |
_ACEOF |
7413 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7414 |
:t |
7415 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
7416 |
s,@configure_input@,$configure_input,;t t |
7417 |
s,@srcdir@,$ac_srcdir,;t t |
7418 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
7419 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
7420 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
7421 |
s,@builddir@,$ac_builddir,;t t |
7422 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
7423 |
s,@top_builddir@,$ac_top_builddir,;t t |
7424 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
7425 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
7426 |
rm -f $tmp/stdin |
7427 |
if test x"$ac_file" != x-; then |
7428 |
mv $tmp/out $ac_file |
7429 |
else |
7430 |
cat $tmp/out |
7431 |
rm -f $tmp/out |
7432 |
fi |
7433 |
|
7434 |
done |
7435 |
_ACEOF |
7436 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7437 |
|
7438 |
# |
7439 |
# CONFIG_HEADER section. |
7440 |
# |
7441 |
|
7442 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
7443 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
7444 |
# |
7445 |
# ac_d sets the value in "#define NAME VALUE" lines. |
7446 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7447 |
ac_dB='[ ].*$,\1#\2' |
7448 |
ac_dC=' ' |
7449 |
ac_dD=',;t' |
7450 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
7451 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
7452 |
ac_uB='$,\1#\2define\3' |
7453 |
ac_uC=' ' |
7454 |
ac_uD=',;t' |
7455 |
|
7456 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
7457 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7458 |
case $ac_file in |
7459 |
- | *:- | *:-:* ) # input from stdin |
7460 |
cat >$tmp/stdin |
7461 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7462 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7463 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7464 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7465 |
* ) ac_file_in=$ac_file.in ;; |
7466 |
esac |
7467 |
|
7468 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7469 |
echo "$as_me: creating $ac_file" >&6;} |
7470 |
|
7471 |
# First look for the input files in the build tree, otherwise in the |
7472 |
# src tree. |
7473 |
ac_file_inputs=`IFS=: |
7474 |
for f in $ac_file_in; do |
7475 |
case $f in |
7476 |
-) echo $tmp/stdin ;; |
7477 |
[\\/$]*) |
7478 |
# Absolute (can't be DOS-style, as IFS=:) |
7479 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7480 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
7481 |
{ (exit 1); exit 1; }; } |
7482 |
echo $f;; |
7483 |
*) # Relative |
7484 |
if test -f "$f"; then |
7485 |
# Build tree |
7486 |
echo $f |
7487 |
elif test -f "$srcdir/$f"; then |
7488 |
# Source tree |
7489 |
echo $srcdir/$f |
7490 |
else |
7491 |
# /dev/null tree |
7492 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7493 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
7494 |
{ (exit 1); exit 1; }; } |
7495 |
fi;; |
7496 |
esac |
7497 |
done` || { (exit 1); exit 1; } |
7498 |
# Remove the trailing spaces. |
7499 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
7500 |
|
7501 |
_ACEOF |
7502 |
|
7503 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
7504 |
# `conftest.undefs', that substitutes the proper values into |
7505 |
# config.h.in to produce config.h. The first handles `#define' |
7506 |
# templates, and the second `#undef' templates. |
7507 |
# And first: Protect against being on the right side of a sed subst in |
7508 |
# config.status. Protect against being in an unquoted here document |
7509 |
# in config.status. |
7510 |
rm -f conftest.defines conftest.undefs |
7511 |
# Using a here document instead of a string reduces the quoting nightmare. |
7512 |
# Putting comments in sed scripts is not portable. |
7513 |
# |
7514 |
# `end' is used to avoid that the second main sed command (meant for |
7515 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
7516 |
# See the Autoconf documentation for `clear'. |
7517 |
cat >confdef2sed.sed <<\_ACEOF |
7518 |
s/[\\&,]/\\&/g |
7519 |
s,[\\$`],\\&,g |
7520 |
t clear |
7521 |
: clear |
7522 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
7523 |
t end |
7524 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
7525 |
: end |
7526 |
_ACEOF |
7527 |
# If some macros were called several times there might be several times |
7528 |
# the same #defines, which is useless. Nevertheless, we may not want to |
7529 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
7530 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
7531 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
7532 |
rm -f confdef2sed.sed |
7533 |
|
7534 |
# This sed command replaces #undef with comments. This is necessary, for |
7535 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
7536 |
# on some systems where configure will not decide to define it. |
7537 |
cat >>conftest.undefs <<\_ACEOF |
7538 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
7539 |
_ACEOF |
7540 |
|
7541 |
# Break up conftest.defines because some shells have a limit on the size |
7542 |
# of here documents, and old seds have small limits too (100 cmds). |
7543 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
7544 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
7545 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7546 |
echo ' :' >>$CONFIG_STATUS |
7547 |
rm -f conftest.tail |
7548 |
while grep . conftest.defines >/dev/null |
7549 |
do |
7550 |
# Write a limited-size here document to $tmp/defines.sed. |
7551 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
7552 |
# Speed up: don't consider the non `#define' lines. |
7553 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
7554 |
# Work around the forget-to-reset-the-flag bug. |
7555 |
echo 't clr' >>$CONFIG_STATUS |
7556 |
echo ': clr' >>$CONFIG_STATUS |
7557 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
7558 |
echo 'CEOF |
7559 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
7560 |
rm -f $tmp/in |
7561 |
mv $tmp/out $tmp/in |
7562 |
' >>$CONFIG_STATUS |
7563 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
7564 |
rm -f conftest.defines |
7565 |
mv conftest.tail conftest.defines |
7566 |
done |
7567 |
rm -f conftest.defines |
7568 |
echo ' fi # grep' >>$CONFIG_STATUS |
7569 |
echo >>$CONFIG_STATUS |
7570 |
|
7571 |
# Break up conftest.undefs because some shells have a limit on the size |
7572 |
# of here documents, and old seds have small limits too (100 cmds). |
7573 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
7574 |
rm -f conftest.tail |
7575 |
while grep . conftest.undefs >/dev/null |
7576 |
do |
7577 |
# Write a limited-size here document to $tmp/undefs.sed. |
7578 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
7579 |
# Speed up: don't consider the non `#undef' |
7580 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
7581 |
# Work around the forget-to-reset-the-flag bug. |
7582 |
echo 't clr' >>$CONFIG_STATUS |
7583 |
echo ': clr' >>$CONFIG_STATUS |
7584 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
7585 |
echo 'CEOF |
7586 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7587 |
rm -f $tmp/in |
7588 |
mv $tmp/out $tmp/in |
7589 |
' >>$CONFIG_STATUS |
7590 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
7591 |
rm -f conftest.undefs |
7592 |
mv conftest.tail conftest.undefs |
7593 |
done |
7594 |
rm -f conftest.undefs |
7595 |
|
7596 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7597 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
7598 |
# use $as_me), people would be surprised to read: |
7599 |
# /* config.h. Generated by config.status. */ |
7600 |
if test x"$ac_file" = x-; then |
7601 |
echo "/* Generated by configure. */" >$tmp/config.h |
7602 |
else |
7603 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
7604 |
fi |
7605 |
cat $tmp/in >>$tmp/config.h |
7606 |
rm -f $tmp/in |
7607 |
if test x"$ac_file" != x-; then |
7608 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
7609 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7610 |
echo "$as_me: $ac_file is unchanged" >&6;} |
7611 |
else |
7612 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7613 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7614 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
7615 |
X"$ac_file" : 'X\(//\)$' \| \ |
7616 |
X"$ac_file" : 'X\(/\)' \| \ |
7617 |
. : '\(.\)' 2>/dev/null || |
7618 |
echo X"$ac_file" | |
7619 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7620 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7621 |
/^X\(\/\/\)$/{ s//\1/; q; } |
7622 |
/^X\(\/\).*/{ s//\1/; q; } |
7623 |
s/.*/./; q'` |
7624 |
{ if $as_mkdir_p; then |
7625 |
mkdir -p "$ac_dir" |
7626 |
else |
7627 |
as_dir="$ac_dir" |
7628 |
as_dirs= |
7629 |
while test ! -d "$as_dir"; do |
7630 |
as_dirs="$as_dir $as_dirs" |
7631 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
7632 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7633 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
7634 |
X"$as_dir" : 'X\(//\)$' \| \ |
7635 |
X"$as_dir" : 'X\(/\)' \| \ |
7636 |
. : '\(.\)' 2>/dev/null || |
7637 |
echo X"$as_dir" | |
7638 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7639 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7640 |
/^X\(\/\/\)$/{ s//\1/; q; } |
7641 |
/^X\(\/\).*/{ s//\1/; q; } |
7642 |
s/.*/./; q'` |
7643 |
done |
7644 |
test ! -n "$as_dirs" || mkdir $as_dirs |
7645 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
7646 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
7647 |
{ (exit 1); exit 1; }; }; } |
7648 |
|
7649 |
rm -f $ac_file |
7650 |
mv $tmp/config.h $ac_file |
7651 |
fi |
7652 |
else |
7653 |
cat $tmp/config.h |
7654 |
rm -f $tmp/config.h |
7655 |
fi |
7656 |
done |
7657 |
_ACEOF |
7658 |
|
7659 |
cat >>$CONFIG_STATUS <<\_ACEOF |
7660 |
|
7661 |
{ (exit 0); exit 0; } |
7662 |
_ACEOF |
7663 |
chmod +x $CONFIG_STATUS |
7664 |
ac_clean_files=$ac_clean_files_save |
7665 |
|
7666 |
|
7667 |
# configure is writing to config.log, and then calls config.status. |
7668 |
# config.status does its own redirection, appending to config.log. |
7669 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
7670 |
# by configure, so config.status won't be able to write to it; its |
7671 |
# output is simply discarded. So we exec the FD to /dev/null, |
7672 |
# effectively closing config.log, so it can be properly (re)opened and |
7673 |
# appended to by config.status. When coming back to configure, we |
7674 |
# need to make the FD available again. |
7675 |
if test "$no_create" != yes; then |
7676 |
ac_cs_success=: |
7677 |
ac_config_status_args= |
7678 |
test "$silent" = yes && |
7679 |
ac_config_status_args="$ac_config_status_args --quiet" |
7680 |
exec 5>/dev/null |
7681 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
7682 |
exec 5>>config.log |
7683 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
7684 |
# would make configure fail if this is the last instruction. |
7685 |
$ac_cs_success || { (exit 1); exit 1; } |
7686 |
fi |
7687 |
|