1 |
cebix |
1.1 |
#! /bin/sh |
2 |
|
|
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles. |
4 |
|
|
# Generated automatically using autoconf version 2.13 |
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 |
|
|
# |
7 |
|
|
# This configure script is free software; the Free Software Foundation |
8 |
|
|
# gives unlimited permission to copy, distribute and modify it. |
9 |
|
|
|
10 |
|
|
# Defaults: |
11 |
|
|
ac_help= |
12 |
|
|
ac_default_prefix=/usr/local |
13 |
|
|
# Any additions from configure.in: |
14 |
|
|
ac_help="$ac_help |
15 |
cebix |
1.9 |
--enable-xf86-dga use the XFree86 DGA extension [default=yes]" |
16 |
cebix |
1.7 |
ac_help="$ac_help |
17 |
cebix |
1.9 |
--enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]" |
18 |
cebix |
1.1 |
ac_help="$ac_help |
19 |
cebix |
1.9 |
--enable-esd Enlightened Sound Daemon support [default=yes]" |
20 |
|
|
ac_help="$ac_help |
21 |
|
|
--enable-ui use GTK user interface [default=yes]" |
22 |
cebix |
1.1 |
ac_help="$ac_help |
23 |
|
|
--with-x use the X Window System" |
24 |
|
|
ac_help="$ac_help |
25 |
|
|
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
26 |
|
|
ac_help="$ac_help |
27 |
|
|
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
28 |
|
|
ac_help="$ac_help |
29 |
|
|
--disable-gtktest Do not try to compile and run a test GTK program" |
30 |
cebix |
1.9 |
ac_help="$ac_help |
31 |
|
|
--with-esd-prefix=PFX Prefix where ESD is installed (optional)" |
32 |
|
|
ac_help="$ac_help |
33 |
|
|
--with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)" |
34 |
|
|
ac_help="$ac_help |
35 |
|
|
--disable-esdtest Do not try to compile and run a test ESD program" |
36 |
cebix |
1.1 |
|
37 |
|
|
# Initialize some variables set by options. |
38 |
|
|
# The variables have the same names as the options, with |
39 |
|
|
# dashes changed to underlines. |
40 |
|
|
build=NONE |
41 |
|
|
cache_file=./config.cache |
42 |
|
|
exec_prefix=NONE |
43 |
|
|
host=NONE |
44 |
|
|
no_create= |
45 |
|
|
nonopt=NONE |
46 |
|
|
no_recursion= |
47 |
|
|
prefix=NONE |
48 |
|
|
program_prefix=NONE |
49 |
|
|
program_suffix=NONE |
50 |
|
|
program_transform_name=s,x,x, |
51 |
|
|
silent= |
52 |
|
|
site= |
53 |
|
|
srcdir= |
54 |
|
|
target=NONE |
55 |
|
|
verbose= |
56 |
|
|
x_includes=NONE |
57 |
|
|
x_libraries=NONE |
58 |
|
|
bindir='${exec_prefix}/bin' |
59 |
|
|
sbindir='${exec_prefix}/sbin' |
60 |
|
|
libexecdir='${exec_prefix}/libexec' |
61 |
|
|
datadir='${prefix}/share' |
62 |
|
|
sysconfdir='${prefix}/etc' |
63 |
|
|
sharedstatedir='${prefix}/com' |
64 |
|
|
localstatedir='${prefix}/var' |
65 |
|
|
libdir='${exec_prefix}/lib' |
66 |
|
|
includedir='${prefix}/include' |
67 |
|
|
oldincludedir='/usr/include' |
68 |
|
|
infodir='${prefix}/info' |
69 |
|
|
mandir='${prefix}/man' |
70 |
|
|
|
71 |
|
|
# Initialize some other variables. |
72 |
|
|
subdirs= |
73 |
|
|
MFLAGS= MAKEFLAGS= |
74 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
75 |
|
|
# Maximum number of lines to put in a shell here document. |
76 |
|
|
ac_max_here_lines=12 |
77 |
|
|
|
78 |
|
|
ac_prev= |
79 |
|
|
for ac_option |
80 |
|
|
do |
81 |
|
|
|
82 |
|
|
# If the previous option needs an argument, assign it. |
83 |
|
|
if test -n "$ac_prev"; then |
84 |
|
|
eval "$ac_prev=\$ac_option" |
85 |
|
|
ac_prev= |
86 |
|
|
continue |
87 |
|
|
fi |
88 |
|
|
|
89 |
|
|
case "$ac_option" in |
90 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
91 |
|
|
*) ac_optarg= ;; |
92 |
|
|
esac |
93 |
|
|
|
94 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
95 |
|
|
|
96 |
|
|
case "$ac_option" in |
97 |
|
|
|
98 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
99 |
|
|
ac_prev=bindir ;; |
100 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
101 |
|
|
bindir="$ac_optarg" ;; |
102 |
|
|
|
103 |
|
|
-build | --build | --buil | --bui | --bu) |
104 |
|
|
ac_prev=build ;; |
105 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
106 |
|
|
build="$ac_optarg" ;; |
107 |
|
|
|
108 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
109 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
110 |
|
|
ac_prev=cache_file ;; |
111 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
112 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
113 |
|
|
cache_file="$ac_optarg" ;; |
114 |
|
|
|
115 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
116 |
|
|
ac_prev=datadir ;; |
117 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
118 |
|
|
| --da=*) |
119 |
|
|
datadir="$ac_optarg" ;; |
120 |
|
|
|
121 |
|
|
-disable-* | --disable-*) |
122 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
123 |
|
|
# Reject names that are not valid shell variable names. |
124 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
125 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
126 |
|
|
fi |
127 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
128 |
|
|
eval "enable_${ac_feature}=no" ;; |
129 |
|
|
|
130 |
|
|
-enable-* | --enable-*) |
131 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
132 |
|
|
# Reject names that are not valid shell variable names. |
133 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
134 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
135 |
|
|
fi |
136 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
137 |
|
|
case "$ac_option" in |
138 |
|
|
*=*) ;; |
139 |
|
|
*) ac_optarg=yes ;; |
140 |
|
|
esac |
141 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;; |
142 |
|
|
|
143 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
144 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
145 |
|
|
| --exec | --exe | --ex) |
146 |
|
|
ac_prev=exec_prefix ;; |
147 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
148 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
149 |
|
|
| --exec=* | --exe=* | --ex=*) |
150 |
|
|
exec_prefix="$ac_optarg" ;; |
151 |
|
|
|
152 |
|
|
-gas | --gas | --ga | --g) |
153 |
|
|
# Obsolete; use --with-gas. |
154 |
|
|
with_gas=yes ;; |
155 |
|
|
|
156 |
|
|
-help | --help | --hel | --he) |
157 |
|
|
# Omit some internal or obsolete options to make the list less imposing. |
158 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh. |
159 |
|
|
cat << EOF |
160 |
|
|
Usage: configure [options] [host] |
161 |
|
|
Options: [defaults in brackets after descriptions] |
162 |
|
|
Configuration: |
163 |
|
|
--cache-file=FILE cache test results in FILE |
164 |
|
|
--help print this message |
165 |
|
|
--no-create do not create output files |
166 |
|
|
--quiet, --silent do not print \`checking...' messages |
167 |
|
|
--version print the version of autoconf that created configure |
168 |
|
|
Directory and file names: |
169 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
170 |
|
|
[$ac_default_prefix] |
171 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
172 |
|
|
[same as prefix] |
173 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
174 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
175 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
176 |
|
|
--datadir=DIR read-only architecture-independent data in DIR |
177 |
|
|
[PREFIX/share] |
178 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
179 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
180 |
|
|
[PREFIX/com] |
181 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
182 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
183 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include] |
184 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
185 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
186 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
187 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
188 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
189 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
190 |
|
|
--program-transform-name=PROGRAM |
191 |
|
|
run sed PROGRAM on installed program names |
192 |
|
|
EOF |
193 |
|
|
cat << EOF |
194 |
|
|
Host type: |
195 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
196 |
|
|
--host=HOST configure for HOST [guessed] |
197 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST] |
198 |
|
|
Features and packages: |
199 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
200 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
201 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
202 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
203 |
|
|
--x-includes=DIR X include files are in DIR |
204 |
|
|
--x-libraries=DIR X library files are in DIR |
205 |
|
|
EOF |
206 |
|
|
if test -n "$ac_help"; then |
207 |
|
|
echo "--enable and --with options recognized:$ac_help" |
208 |
|
|
fi |
209 |
|
|
exit 0 ;; |
210 |
|
|
|
211 |
|
|
-host | --host | --hos | --ho) |
212 |
|
|
ac_prev=host ;; |
213 |
|
|
-host=* | --host=* | --hos=* | --ho=*) |
214 |
|
|
host="$ac_optarg" ;; |
215 |
|
|
|
216 |
|
|
-includedir | --includedir | --includedi | --included | --include \ |
217 |
|
|
| --includ | --inclu | --incl | --inc) |
218 |
|
|
ac_prev=includedir ;; |
219 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
220 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*) |
221 |
|
|
includedir="$ac_optarg" ;; |
222 |
|
|
|
223 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf) |
224 |
|
|
ac_prev=infodir ;; |
225 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
226 |
|
|
infodir="$ac_optarg" ;; |
227 |
|
|
|
228 |
|
|
-libdir | --libdir | --libdi | --libd) |
229 |
|
|
ac_prev=libdir ;; |
230 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
231 |
|
|
libdir="$ac_optarg" ;; |
232 |
|
|
|
233 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
234 |
|
|
| --libexe | --libex | --libe) |
235 |
|
|
ac_prev=libexecdir ;; |
236 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
237 |
|
|
| --libexe=* | --libex=* | --libe=*) |
238 |
|
|
libexecdir="$ac_optarg" ;; |
239 |
|
|
|
240 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
241 |
|
|
| --localstate | --localstat | --localsta | --localst \ |
242 |
|
|
| --locals | --local | --loca | --loc | --lo) |
243 |
|
|
ac_prev=localstatedir ;; |
244 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
245 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
246 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
247 |
|
|
localstatedir="$ac_optarg" ;; |
248 |
|
|
|
249 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
250 |
|
|
ac_prev=mandir ;; |
251 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
252 |
|
|
mandir="$ac_optarg" ;; |
253 |
|
|
|
254 |
|
|
-nfp | --nfp | --nf) |
255 |
|
|
# Obsolete; use --without-fp. |
256 |
|
|
with_fp=no ;; |
257 |
|
|
|
258 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
259 |
|
|
| --no-cr | --no-c) |
260 |
|
|
no_create=yes ;; |
261 |
|
|
|
262 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
263 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
264 |
|
|
no_recursion=yes ;; |
265 |
|
|
|
266 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
267 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
268 |
|
|
| --oldin | --oldi | --old | --ol | --o) |
269 |
|
|
ac_prev=oldincludedir ;; |
270 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
271 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
272 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
273 |
|
|
oldincludedir="$ac_optarg" ;; |
274 |
|
|
|
275 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
276 |
|
|
ac_prev=prefix ;; |
277 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
278 |
|
|
prefix="$ac_optarg" ;; |
279 |
|
|
|
280 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
281 |
|
|
| --program-pre | --program-pr | --program-p) |
282 |
|
|
ac_prev=program_prefix ;; |
283 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
284 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
285 |
|
|
program_prefix="$ac_optarg" ;; |
286 |
|
|
|
287 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
288 |
|
|
| --program-suf | --program-su | --program-s) |
289 |
|
|
ac_prev=program_suffix ;; |
290 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
291 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
292 |
|
|
program_suffix="$ac_optarg" ;; |
293 |
|
|
|
294 |
|
|
-program-transform-name | --program-transform-name \ |
295 |
|
|
| --program-transform-nam | --program-transform-na \ |
296 |
|
|
| --program-transform-n | --program-transform- \ |
297 |
|
|
| --program-transform | --program-transfor \ |
298 |
|
|
| --program-transfo | --program-transf \ |
299 |
|
|
| --program-trans | --program-tran \ |
300 |
|
|
| --progr-tra | --program-tr | --program-t) |
301 |
|
|
ac_prev=program_transform_name ;; |
302 |
|
|
-program-transform-name=* | --program-transform-name=* \ |
303 |
|
|
| --program-transform-nam=* | --program-transform-na=* \ |
304 |
|
|
| --program-transform-n=* | --program-transform-=* \ |
305 |
|
|
| --program-transform=* | --program-transfor=* \ |
306 |
|
|
| --program-transfo=* | --program-transf=* \ |
307 |
|
|
| --program-trans=* | --program-tran=* \ |
308 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
309 |
|
|
program_transform_name="$ac_optarg" ;; |
310 |
|
|
|
311 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
312 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
313 |
|
|
silent=yes ;; |
314 |
|
|
|
315 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
316 |
|
|
ac_prev=sbindir ;; |
317 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
318 |
|
|
| --sbi=* | --sb=*) |
319 |
|
|
sbindir="$ac_optarg" ;; |
320 |
|
|
|
321 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
322 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
323 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \ |
324 |
|
|
| --sha | --sh) |
325 |
|
|
ac_prev=sharedstatedir ;; |
326 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
327 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
328 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
329 |
|
|
| --sha=* | --sh=*) |
330 |
|
|
sharedstatedir="$ac_optarg" ;; |
331 |
|
|
|
332 |
|
|
-site | --site | --sit) |
333 |
|
|
ac_prev=site ;; |
334 |
|
|
-site=* | --site=* | --sit=*) |
335 |
|
|
site="$ac_optarg" ;; |
336 |
|
|
|
337 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
338 |
|
|
ac_prev=srcdir ;; |
339 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
340 |
|
|
srcdir="$ac_optarg" ;; |
341 |
|
|
|
342 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
343 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy) |
344 |
|
|
ac_prev=sysconfdir ;; |
345 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
346 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
347 |
|
|
sysconfdir="$ac_optarg" ;; |
348 |
|
|
|
349 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t) |
350 |
|
|
ac_prev=target ;; |
351 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
352 |
|
|
target="$ac_optarg" ;; |
353 |
|
|
|
354 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
355 |
|
|
verbose=yes ;; |
356 |
|
|
|
357 |
|
|
-version | --version | --versio | --versi | --vers) |
358 |
|
|
echo "configure generated by autoconf version 2.13" |
359 |
|
|
exit 0 ;; |
360 |
|
|
|
361 |
|
|
-with-* | --with-*) |
362 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
363 |
|
|
# Reject names that are not valid shell variable names. |
364 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
365 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
366 |
|
|
fi |
367 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
368 |
|
|
case "$ac_option" in |
369 |
|
|
*=*) ;; |
370 |
|
|
*) ac_optarg=yes ;; |
371 |
|
|
esac |
372 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;; |
373 |
|
|
|
374 |
|
|
-without-* | --without-*) |
375 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
376 |
|
|
# Reject names that are not valid shell variable names. |
377 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
378 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
379 |
|
|
fi |
380 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
381 |
|
|
eval "with_${ac_package}=no" ;; |
382 |
|
|
|
383 |
|
|
--x) |
384 |
|
|
# Obsolete; use --with-x. |
385 |
|
|
with_x=yes ;; |
386 |
|
|
|
387 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
388 |
|
|
| --x-incl | --x-inc | --x-in | --x-i) |
389 |
|
|
ac_prev=x_includes ;; |
390 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
391 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
392 |
|
|
x_includes="$ac_optarg" ;; |
393 |
|
|
|
394 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
395 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
396 |
|
|
ac_prev=x_libraries ;; |
397 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
398 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
399 |
|
|
x_libraries="$ac_optarg" ;; |
400 |
|
|
|
401 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
402 |
|
|
;; |
403 |
|
|
|
404 |
|
|
*) |
405 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
406 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
407 |
|
|
fi |
408 |
|
|
if test "x$nonopt" != xNONE; then |
409 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
410 |
|
|
fi |
411 |
|
|
nonopt="$ac_option" |
412 |
|
|
;; |
413 |
|
|
|
414 |
|
|
esac |
415 |
|
|
done |
416 |
|
|
|
417 |
|
|
if test -n "$ac_prev"; then |
418 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
419 |
|
|
fi |
420 |
|
|
|
421 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
422 |
|
|
|
423 |
|
|
# File descriptor usage: |
424 |
|
|
# 0 standard input |
425 |
|
|
# 1 file creation |
426 |
|
|
# 2 errors and warnings |
427 |
|
|
# 3 some systems may open it to /dev/tty |
428 |
|
|
# 4 used on the Kubota Titan |
429 |
|
|
# 6 checking for... messages and results |
430 |
|
|
# 5 compiler messages saved in config.log |
431 |
|
|
if test "$silent" = yes; then |
432 |
|
|
exec 6>/dev/null |
433 |
|
|
else |
434 |
|
|
exec 6>&1 |
435 |
|
|
fi |
436 |
|
|
exec 5>./config.log |
437 |
|
|
|
438 |
|
|
echo "\ |
439 |
|
|
This file contains any messages produced by compilers while |
440 |
|
|
running configure, to aid debugging if configure makes a mistake. |
441 |
|
|
" 1>&5 |
442 |
|
|
|
443 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
444 |
|
|
# Also quote any args containing shell metacharacters. |
445 |
|
|
ac_configure_args= |
446 |
|
|
for ac_arg |
447 |
|
|
do |
448 |
|
|
case "$ac_arg" in |
449 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
450 |
|
|
| --no-cr | --no-c) ;; |
451 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
452 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
453 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
454 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
455 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
456 |
|
|
esac |
457 |
|
|
done |
458 |
|
|
|
459 |
|
|
# NLS nuisances. |
460 |
|
|
# Only set these to C if already set. These must not be set unconditionally |
461 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO). |
462 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
463 |
|
|
# Non-C LC_CTYPE values break the ctype check. |
464 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
465 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
466 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
467 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
468 |
|
|
|
469 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
470 |
|
|
rm -rf conftest* confdefs.h |
471 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
472 |
|
|
echo > confdefs.h |
473 |
|
|
|
474 |
|
|
# A filename unique to this package, relative to the directory that |
475 |
|
|
# configure is in, which we can look for to find out if srcdir is correct. |
476 |
|
|
ac_unique_file=main_unix.cpp |
477 |
|
|
|
478 |
|
|
# Find the source files, if location was not specified. |
479 |
|
|
if test -z "$srcdir"; then |
480 |
|
|
ac_srcdir_defaulted=yes |
481 |
|
|
# Try the directory containing this script, then its parent. |
482 |
|
|
ac_prog=$0 |
483 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
484 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
485 |
|
|
srcdir=$ac_confdir |
486 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
487 |
|
|
srcdir=.. |
488 |
|
|
fi |
489 |
|
|
else |
490 |
|
|
ac_srcdir_defaulted=no |
491 |
|
|
fi |
492 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
493 |
|
|
if test "$ac_srcdir_defaulted" = yes; then |
494 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
495 |
|
|
else |
496 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
497 |
|
|
fi |
498 |
|
|
fi |
499 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
500 |
|
|
|
501 |
|
|
# Prefer explicitly selected file to automatically selected ones. |
502 |
|
|
if test -z "$CONFIG_SITE"; then |
503 |
|
|
if test "x$prefix" != xNONE; then |
504 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
505 |
|
|
else |
506 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
507 |
|
|
fi |
508 |
|
|
fi |
509 |
|
|
for ac_site_file in $CONFIG_SITE; do |
510 |
|
|
if test -r "$ac_site_file"; then |
511 |
|
|
echo "loading site script $ac_site_file" |
512 |
|
|
. "$ac_site_file" |
513 |
|
|
fi |
514 |
|
|
done |
515 |
|
|
|
516 |
|
|
if test -r "$cache_file"; then |
517 |
|
|
echo "loading cache $cache_file" |
518 |
|
|
. $cache_file |
519 |
|
|
else |
520 |
|
|
echo "creating cache $cache_file" |
521 |
|
|
> $cache_file |
522 |
|
|
fi |
523 |
|
|
|
524 |
|
|
ac_ext=c |
525 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
526 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
527 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
528 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
529 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
530 |
|
|
|
531 |
|
|
ac_exeext= |
532 |
|
|
ac_objext=o |
533 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
534 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
535 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
536 |
|
|
ac_n= ac_c=' |
537 |
|
|
' ac_t=' ' |
538 |
|
|
else |
539 |
|
|
ac_n=-n ac_c= ac_t= |
540 |
|
|
fi |
541 |
|
|
else |
542 |
|
|
ac_n= ac_c='\c' ac_t= |
543 |
|
|
fi |
544 |
|
|
|
545 |
|
|
|
546 |
|
|
|
547 |
|
|
|
548 |
|
|
|
549 |
cebix |
1.7 |
# Check whether --enable-xf86-dga or --disable-xf86-dga was given. |
550 |
|
|
if test "${enable_xf86_dga+set}" = set; then |
551 |
|
|
enableval="$enable_xf86_dga" |
552 |
|
|
WANT_XF86_DGA=$enableval |
553 |
cebix |
1.11 |
else |
554 |
|
|
WANT_XF86_DGA=yes |
555 |
cebix |
1.7 |
fi |
556 |
|
|
|
557 |
|
|
# Check whether --enable-fbdev-dga or --disable-fbdev-dga was given. |
558 |
|
|
if test "${enable_fbdev_dga+set}" = set; then |
559 |
|
|
enableval="$enable_fbdev_dga" |
560 |
|
|
WANT_FBDEV_DGA=$enableval |
561 |
cebix |
1.11 |
else |
562 |
|
|
WANT_FBDEV_DGA=yes |
563 |
cebix |
1.1 |
fi |
564 |
|
|
|
565 |
cebix |
1.9 |
# Check whether --enable-esd or --disable-esd was given. |
566 |
|
|
if test "${enable_esd+set}" = set; then |
567 |
|
|
enableval="$enable_esd" |
568 |
|
|
WANT_ESD=$enableval |
569 |
cebix |
1.11 |
else |
570 |
|
|
WANT_ESD=yes |
571 |
cebix |
1.9 |
fi |
572 |
|
|
|
573 |
cebix |
1.1 |
# Check whether --enable-ui or --disable-ui was given. |
574 |
|
|
if test "${enable_ui+set}" = set; then |
575 |
|
|
enableval="$enable_ui" |
576 |
|
|
WANT_UI=$enableval |
577 |
cebix |
1.11 |
else |
578 |
|
|
WANT_UI=yes |
579 |
cebix |
1.1 |
fi |
580 |
|
|
|
581 |
|
|
|
582 |
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
583 |
|
|
set dummy gcc; ac_word=$2 |
584 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
585 |
cebix |
1.11 |
echo "configure:586: checking for $ac_word" >&5 |
586 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
587 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
588 |
|
|
else |
589 |
|
|
if test -n "$CC"; then |
590 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
591 |
|
|
else |
592 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
593 |
|
|
ac_dummy="$PATH" |
594 |
|
|
for ac_dir in $ac_dummy; do |
595 |
|
|
test -z "$ac_dir" && ac_dir=. |
596 |
|
|
if test -f $ac_dir/$ac_word; then |
597 |
|
|
ac_cv_prog_CC="gcc" |
598 |
|
|
break |
599 |
|
|
fi |
600 |
|
|
done |
601 |
|
|
IFS="$ac_save_ifs" |
602 |
|
|
fi |
603 |
|
|
fi |
604 |
|
|
CC="$ac_cv_prog_CC" |
605 |
|
|
if test -n "$CC"; then |
606 |
|
|
echo "$ac_t""$CC" 1>&6 |
607 |
|
|
else |
608 |
|
|
echo "$ac_t""no" 1>&6 |
609 |
|
|
fi |
610 |
|
|
|
611 |
|
|
if test -z "$CC"; then |
612 |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
613 |
|
|
set dummy cc; ac_word=$2 |
614 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
615 |
cebix |
1.11 |
echo "configure:616: checking for $ac_word" >&5 |
616 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
617 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
618 |
|
|
else |
619 |
|
|
if test -n "$CC"; then |
620 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
621 |
|
|
else |
622 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
623 |
|
|
ac_prog_rejected=no |
624 |
|
|
ac_dummy="$PATH" |
625 |
|
|
for ac_dir in $ac_dummy; do |
626 |
|
|
test -z "$ac_dir" && ac_dir=. |
627 |
|
|
if test -f $ac_dir/$ac_word; then |
628 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
629 |
|
|
ac_prog_rejected=yes |
630 |
|
|
continue |
631 |
|
|
fi |
632 |
|
|
ac_cv_prog_CC="cc" |
633 |
|
|
break |
634 |
|
|
fi |
635 |
|
|
done |
636 |
|
|
IFS="$ac_save_ifs" |
637 |
|
|
if test $ac_prog_rejected = yes; then |
638 |
|
|
# We found a bogon in the path, so make sure we never use it. |
639 |
|
|
set dummy $ac_cv_prog_CC |
640 |
|
|
shift |
641 |
|
|
if test $# -gt 0; then |
642 |
|
|
# We chose a different compiler from the bogus one. |
643 |
|
|
# However, it has the same basename, so the bogon will be chosen |
644 |
|
|
# first if we set CC to just the basename; use the full file name. |
645 |
|
|
shift |
646 |
|
|
set dummy "$ac_dir/$ac_word" "$@" |
647 |
|
|
shift |
648 |
|
|
ac_cv_prog_CC="$@" |
649 |
|
|
fi |
650 |
|
|
fi |
651 |
|
|
fi |
652 |
|
|
fi |
653 |
|
|
CC="$ac_cv_prog_CC" |
654 |
|
|
if test -n "$CC"; then |
655 |
|
|
echo "$ac_t""$CC" 1>&6 |
656 |
|
|
else |
657 |
|
|
echo "$ac_t""no" 1>&6 |
658 |
|
|
fi |
659 |
|
|
|
660 |
|
|
if test -z "$CC"; then |
661 |
|
|
case "`uname -s`" in |
662 |
|
|
*win32* | *WIN32*) |
663 |
|
|
# Extract the first word of "cl", so it can be a program name with args. |
664 |
|
|
set dummy cl; ac_word=$2 |
665 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
666 |
cebix |
1.11 |
echo "configure:667: checking for $ac_word" >&5 |
667 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
668 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
669 |
|
|
else |
670 |
|
|
if test -n "$CC"; then |
671 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
672 |
|
|
else |
673 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
674 |
|
|
ac_dummy="$PATH" |
675 |
|
|
for ac_dir in $ac_dummy; do |
676 |
|
|
test -z "$ac_dir" && ac_dir=. |
677 |
|
|
if test -f $ac_dir/$ac_word; then |
678 |
|
|
ac_cv_prog_CC="cl" |
679 |
|
|
break |
680 |
|
|
fi |
681 |
|
|
done |
682 |
|
|
IFS="$ac_save_ifs" |
683 |
|
|
fi |
684 |
|
|
fi |
685 |
|
|
CC="$ac_cv_prog_CC" |
686 |
|
|
if test -n "$CC"; then |
687 |
|
|
echo "$ac_t""$CC" 1>&6 |
688 |
|
|
else |
689 |
|
|
echo "$ac_t""no" 1>&6 |
690 |
|
|
fi |
691 |
|
|
;; |
692 |
|
|
esac |
693 |
|
|
fi |
694 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
695 |
|
|
fi |
696 |
|
|
|
697 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
698 |
cebix |
1.11 |
echo "configure:699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
699 |
cebix |
1.1 |
|
700 |
|
|
ac_ext=c |
701 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
702 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
703 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
704 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
705 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
706 |
|
|
|
707 |
|
|
cat > conftest.$ac_ext << EOF |
708 |
|
|
|
709 |
cebix |
1.11 |
#line 710 "configure" |
710 |
cebix |
1.1 |
#include "confdefs.h" |
711 |
|
|
|
712 |
|
|
main(){return(0);} |
713 |
|
|
EOF |
714 |
cebix |
1.11 |
if { (eval echo configure:715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
715 |
cebix |
1.1 |
ac_cv_prog_cc_works=yes |
716 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
717 |
|
|
if (./conftest; exit) 2>/dev/null; then |
718 |
|
|
ac_cv_prog_cc_cross=no |
719 |
|
|
else |
720 |
|
|
ac_cv_prog_cc_cross=yes |
721 |
|
|
fi |
722 |
|
|
else |
723 |
|
|
echo "configure: failed program was:" >&5 |
724 |
|
|
cat conftest.$ac_ext >&5 |
725 |
|
|
ac_cv_prog_cc_works=no |
726 |
|
|
fi |
727 |
|
|
rm -fr conftest* |
728 |
|
|
ac_ext=c |
729 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
730 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
731 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
732 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
733 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
734 |
|
|
|
735 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
736 |
|
|
if test $ac_cv_prog_cc_works = no; then |
737 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
738 |
|
|
fi |
739 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
740 |
cebix |
1.11 |
echo "configure:741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
741 |
cebix |
1.1 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
742 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
743 |
|
|
|
744 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
745 |
cebix |
1.11 |
echo "configure:746: checking whether we are using GNU C" >&5 |
746 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
747 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
748 |
|
|
else |
749 |
|
|
cat > conftest.c <<EOF |
750 |
|
|
#ifdef __GNUC__ |
751 |
|
|
yes; |
752 |
|
|
#endif |
753 |
|
|
EOF |
754 |
cebix |
1.11 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
755 |
cebix |
1.1 |
ac_cv_prog_gcc=yes |
756 |
|
|
else |
757 |
|
|
ac_cv_prog_gcc=no |
758 |
|
|
fi |
759 |
|
|
fi |
760 |
|
|
|
761 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
762 |
|
|
|
763 |
|
|
if test $ac_cv_prog_gcc = yes; then |
764 |
|
|
GCC=yes |
765 |
|
|
else |
766 |
|
|
GCC= |
767 |
|
|
fi |
768 |
|
|
|
769 |
|
|
ac_test_CFLAGS="${CFLAGS+set}" |
770 |
|
|
ac_save_CFLAGS="$CFLAGS" |
771 |
|
|
CFLAGS= |
772 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
773 |
cebix |
1.11 |
echo "configure:774: checking whether ${CC-cc} accepts -g" >&5 |
774 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
775 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
776 |
|
|
else |
777 |
|
|
echo 'void f(){}' > conftest.c |
778 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
779 |
|
|
ac_cv_prog_cc_g=yes |
780 |
|
|
else |
781 |
|
|
ac_cv_prog_cc_g=no |
782 |
|
|
fi |
783 |
|
|
rm -f conftest* |
784 |
|
|
|
785 |
|
|
fi |
786 |
|
|
|
787 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
788 |
|
|
if test "$ac_test_CFLAGS" = set; then |
789 |
|
|
CFLAGS="$ac_save_CFLAGS" |
790 |
|
|
elif test $ac_cv_prog_cc_g = yes; then |
791 |
|
|
if test "$GCC" = yes; then |
792 |
|
|
CFLAGS="-g -O2" |
793 |
|
|
else |
794 |
|
|
CFLAGS="-g" |
795 |
|
|
fi |
796 |
|
|
else |
797 |
|
|
if test "$GCC" = yes; then |
798 |
|
|
CFLAGS="-O2" |
799 |
|
|
else |
800 |
|
|
CFLAGS= |
801 |
|
|
fi |
802 |
|
|
fi |
803 |
|
|
|
804 |
cebix |
1.3 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
805 |
cebix |
1.11 |
echo "configure:806: checking how to run the C preprocessor" >&5 |
806 |
cebix |
1.3 |
# On Suns, sometimes $CPP names a directory. |
807 |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
808 |
|
|
CPP= |
809 |
|
|
fi |
810 |
|
|
if test -z "$CPP"; then |
811 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
812 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
813 |
|
|
else |
814 |
|
|
# This must be in double quotes, not single quotes, because CPP may get |
815 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make. |
816 |
|
|
CPP="${CC-cc} -E" |
817 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
818 |
|
|
# not just through cpp. |
819 |
|
|
cat > conftest.$ac_ext <<EOF |
820 |
cebix |
1.11 |
#line 821 "configure" |
821 |
cebix |
1.3 |
#include "confdefs.h" |
822 |
|
|
#include <assert.h> |
823 |
|
|
Syntax Error |
824 |
|
|
EOF |
825 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
826 |
cebix |
1.11 |
{ (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
827 |
cebix |
1.3 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
828 |
|
|
if test -z "$ac_err"; then |
829 |
|
|
: |
830 |
|
|
else |
831 |
|
|
echo "$ac_err" >&5 |
832 |
|
|
echo "configure: failed program was:" >&5 |
833 |
|
|
cat conftest.$ac_ext >&5 |
834 |
|
|
rm -rf conftest* |
835 |
|
|
CPP="${CC-cc} -E -traditional-cpp" |
836 |
|
|
cat > conftest.$ac_ext <<EOF |
837 |
cebix |
1.11 |
#line 838 "configure" |
838 |
cebix |
1.3 |
#include "confdefs.h" |
839 |
|
|
#include <assert.h> |
840 |
|
|
Syntax Error |
841 |
|
|
EOF |
842 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
843 |
cebix |
1.11 |
{ (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
844 |
cebix |
1.3 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
845 |
|
|
if test -z "$ac_err"; then |
846 |
|
|
: |
847 |
|
|
else |
848 |
|
|
echo "$ac_err" >&5 |
849 |
|
|
echo "configure: failed program was:" >&5 |
850 |
|
|
cat conftest.$ac_ext >&5 |
851 |
|
|
rm -rf conftest* |
852 |
|
|
CPP="${CC-cc} -nologo -E" |
853 |
|
|
cat > conftest.$ac_ext <<EOF |
854 |
cebix |
1.11 |
#line 855 "configure" |
855 |
cebix |
1.3 |
#include "confdefs.h" |
856 |
|
|
#include <assert.h> |
857 |
|
|
Syntax Error |
858 |
|
|
EOF |
859 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
860 |
cebix |
1.11 |
{ (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
861 |
cebix |
1.3 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
862 |
|
|
if test -z "$ac_err"; then |
863 |
|
|
: |
864 |
|
|
else |
865 |
|
|
echo "$ac_err" >&5 |
866 |
|
|
echo "configure: failed program was:" >&5 |
867 |
|
|
cat conftest.$ac_ext >&5 |
868 |
|
|
rm -rf conftest* |
869 |
|
|
CPP=/lib/cpp |
870 |
|
|
fi |
871 |
|
|
rm -f conftest* |
872 |
|
|
fi |
873 |
|
|
rm -f conftest* |
874 |
|
|
fi |
875 |
|
|
rm -f conftest* |
876 |
|
|
ac_cv_prog_CPP="$CPP" |
877 |
|
|
fi |
878 |
|
|
CPP="$ac_cv_prog_CPP" |
879 |
|
|
else |
880 |
|
|
ac_cv_prog_CPP="$CPP" |
881 |
|
|
fi |
882 |
|
|
echo "$ac_t""$CPP" 1>&6 |
883 |
|
|
|
884 |
cebix |
1.1 |
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
885 |
|
|
do |
886 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
887 |
|
|
set dummy $ac_prog; ac_word=$2 |
888 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
889 |
cebix |
1.11 |
echo "configure:890: checking for $ac_word" >&5 |
890 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
891 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
892 |
|
|
else |
893 |
|
|
if test -n "$CXX"; then |
894 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
895 |
|
|
else |
896 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
897 |
|
|
ac_dummy="$PATH" |
898 |
|
|
for ac_dir in $ac_dummy; do |
899 |
|
|
test -z "$ac_dir" && ac_dir=. |
900 |
|
|
if test -f $ac_dir/$ac_word; then |
901 |
|
|
ac_cv_prog_CXX="$ac_prog" |
902 |
|
|
break |
903 |
|
|
fi |
904 |
|
|
done |
905 |
|
|
IFS="$ac_save_ifs" |
906 |
|
|
fi |
907 |
|
|
fi |
908 |
|
|
CXX="$ac_cv_prog_CXX" |
909 |
|
|
if test -n "$CXX"; then |
910 |
|
|
echo "$ac_t""$CXX" 1>&6 |
911 |
|
|
else |
912 |
|
|
echo "$ac_t""no" 1>&6 |
913 |
|
|
fi |
914 |
|
|
|
915 |
|
|
test -n "$CXX" && break |
916 |
|
|
done |
917 |
|
|
test -n "$CXX" || CXX="gcc" |
918 |
|
|
|
919 |
|
|
|
920 |
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
921 |
cebix |
1.11 |
echo "configure:922: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
922 |
cebix |
1.1 |
|
923 |
|
|
ac_ext=C |
924 |
|
|
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
925 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS' |
926 |
|
|
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
927 |
|
|
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
928 |
|
|
cross_compiling=$ac_cv_prog_cxx_cross |
929 |
|
|
|
930 |
|
|
cat > conftest.$ac_ext << EOF |
931 |
|
|
|
932 |
cebix |
1.11 |
#line 933 "configure" |
933 |
cebix |
1.1 |
#include "confdefs.h" |
934 |
|
|
|
935 |
|
|
int main(){return(0);} |
936 |
|
|
EOF |
937 |
cebix |
1.11 |
if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
938 |
cebix |
1.1 |
ac_cv_prog_cxx_works=yes |
939 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
940 |
|
|
if (./conftest; exit) 2>/dev/null; then |
941 |
|
|
ac_cv_prog_cxx_cross=no |
942 |
|
|
else |
943 |
|
|
ac_cv_prog_cxx_cross=yes |
944 |
|
|
fi |
945 |
|
|
else |
946 |
|
|
echo "configure: failed program was:" >&5 |
947 |
|
|
cat conftest.$ac_ext >&5 |
948 |
|
|
ac_cv_prog_cxx_works=no |
949 |
|
|
fi |
950 |
|
|
rm -fr conftest* |
951 |
|
|
ac_ext=c |
952 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
953 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
954 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
955 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
956 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
957 |
|
|
|
958 |
|
|
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
959 |
|
|
if test $ac_cv_prog_cxx_works = no; then |
960 |
|
|
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
961 |
|
|
fi |
962 |
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
963 |
cebix |
1.11 |
echo "configure:964: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
964 |
cebix |
1.1 |
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
965 |
|
|
cross_compiling=$ac_cv_prog_cxx_cross |
966 |
|
|
|
967 |
|
|
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
968 |
cebix |
1.11 |
echo "configure:969: checking whether we are using GNU C++" >&5 |
969 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
970 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
971 |
|
|
else |
972 |
|
|
cat > conftest.C <<EOF |
973 |
|
|
#ifdef __GNUC__ |
974 |
|
|
yes; |
975 |
|
|
#endif |
976 |
|
|
EOF |
977 |
cebix |
1.11 |
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
978 |
cebix |
1.1 |
ac_cv_prog_gxx=yes |
979 |
|
|
else |
980 |
|
|
ac_cv_prog_gxx=no |
981 |
|
|
fi |
982 |
|
|
fi |
983 |
|
|
|
984 |
|
|
echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
985 |
|
|
|
986 |
|
|
if test $ac_cv_prog_gxx = yes; then |
987 |
|
|
GXX=yes |
988 |
|
|
else |
989 |
|
|
GXX= |
990 |
|
|
fi |
991 |
|
|
|
992 |
|
|
ac_test_CXXFLAGS="${CXXFLAGS+set}" |
993 |
|
|
ac_save_CXXFLAGS="$CXXFLAGS" |
994 |
|
|
CXXFLAGS= |
995 |
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
996 |
cebix |
1.11 |
echo "configure:997: checking whether ${CXX-g++} accepts -g" >&5 |
997 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
998 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
999 |
|
|
else |
1000 |
|
|
echo 'void f(){}' > conftest.cc |
1001 |
|
|
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
1002 |
|
|
ac_cv_prog_cxx_g=yes |
1003 |
|
|
else |
1004 |
|
|
ac_cv_prog_cxx_g=no |
1005 |
|
|
fi |
1006 |
|
|
rm -f conftest* |
1007 |
|
|
|
1008 |
|
|
fi |
1009 |
|
|
|
1010 |
|
|
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
1011 |
|
|
if test "$ac_test_CXXFLAGS" = set; then |
1012 |
|
|
CXXFLAGS="$ac_save_CXXFLAGS" |
1013 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then |
1014 |
|
|
if test "$GXX" = yes; then |
1015 |
|
|
CXXFLAGS="-g -O2" |
1016 |
|
|
else |
1017 |
|
|
CXXFLAGS="-g" |
1018 |
|
|
fi |
1019 |
|
|
else |
1020 |
|
|
if test "$GXX" = yes; then |
1021 |
|
|
CXXFLAGS="-O2" |
1022 |
|
|
else |
1023 |
|
|
CXXFLAGS= |
1024 |
|
|
fi |
1025 |
|
|
fi |
1026 |
|
|
|
1027 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
1028 |
cebix |
1.11 |
echo "configure:1029: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
1029 |
cebix |
1.1 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1030 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
1031 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1032 |
|
|
else |
1033 |
|
|
cat > conftestmake <<\EOF |
1034 |
|
|
all: |
1035 |
|
|
@echo 'ac_maketemp="${MAKE}"' |
1036 |
|
|
EOF |
1037 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1038 |
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
1039 |
|
|
if test -n "$ac_maketemp"; then |
1040 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes |
1041 |
|
|
else |
1042 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no |
1043 |
|
|
fi |
1044 |
|
|
rm -f conftestmake |
1045 |
|
|
fi |
1046 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1047 |
|
|
echo "$ac_t""yes" 1>&6 |
1048 |
|
|
SET_MAKE= |
1049 |
|
|
else |
1050 |
|
|
echo "$ac_t""no" 1>&6 |
1051 |
|
|
SET_MAKE="MAKE=${MAKE-make}" |
1052 |
|
|
fi |
1053 |
|
|
|
1054 |
|
|
ac_aux_dir= |
1055 |
|
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1056 |
|
|
if test -f $ac_dir/install-sh; then |
1057 |
|
|
ac_aux_dir=$ac_dir |
1058 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c" |
1059 |
|
|
break |
1060 |
|
|
elif test -f $ac_dir/install.sh; then |
1061 |
|
|
ac_aux_dir=$ac_dir |
1062 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c" |
1063 |
|
|
break |
1064 |
|
|
fi |
1065 |
|
|
done |
1066 |
|
|
if test -z "$ac_aux_dir"; then |
1067 |
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
1068 |
|
|
fi |
1069 |
|
|
ac_config_guess=$ac_aux_dir/config.guess |
1070 |
|
|
ac_config_sub=$ac_aux_dir/config.sub |
1071 |
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
1072 |
|
|
|
1073 |
|
|
# Find a good install program. We prefer a C program (faster), |
1074 |
|
|
# so one script is as good as another. But avoid the broken or |
1075 |
|
|
# incompatible versions: |
1076 |
|
|
# SysV /etc/install, /usr/sbin/install |
1077 |
|
|
# SunOS /usr/etc/install |
1078 |
|
|
# IRIX /sbin/install |
1079 |
|
|
# AIX /bin/install |
1080 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1081 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1082 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1083 |
|
|
# ./install, which can be erroneously created by make from ./install.sh. |
1084 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
1085 |
cebix |
1.11 |
echo "configure:1086: checking for a BSD compatible install" >&5 |
1086 |
cebix |
1.1 |
if test -z "$INSTALL"; then |
1087 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
1088 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1089 |
|
|
else |
1090 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
1091 |
|
|
for ac_dir in $PATH; do |
1092 |
|
|
# Account for people who put trailing slashes in PATH elements. |
1093 |
|
|
case "$ac_dir/" in |
1094 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
1095 |
|
|
*) |
1096 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install. |
1097 |
|
|
# Don't use installbsd from OSF since it installs stuff as root |
1098 |
|
|
# by default. |
1099 |
|
|
for ac_prog in ginstall scoinst install; do |
1100 |
|
|
if test -f $ac_dir/$ac_prog; then |
1101 |
|
|
if test $ac_prog = install && |
1102 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
1103 |
|
|
# AIX install. It has an incompatible calling convention. |
1104 |
|
|
: |
1105 |
|
|
else |
1106 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c" |
1107 |
|
|
break 2 |
1108 |
|
|
fi |
1109 |
|
|
fi |
1110 |
|
|
done |
1111 |
|
|
;; |
1112 |
|
|
esac |
1113 |
|
|
done |
1114 |
|
|
IFS="$ac_save_IFS" |
1115 |
|
|
|
1116 |
|
|
fi |
1117 |
|
|
if test "${ac_cv_path_install+set}" = set; then |
1118 |
|
|
INSTALL="$ac_cv_path_install" |
1119 |
|
|
else |
1120 |
|
|
# As a last resort, use the slow shell script. We don't cache a |
1121 |
|
|
# path for INSTALL within a source directory, because that will |
1122 |
|
|
# break other packages using the cache if that directory is |
1123 |
|
|
# removed, or if the path is relative. |
1124 |
|
|
INSTALL="$ac_install_sh" |
1125 |
|
|
fi |
1126 |
|
|
fi |
1127 |
|
|
echo "$ac_t""$INSTALL" 1>&6 |
1128 |
|
|
|
1129 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1130 |
|
|
# It thinks the first close brace ends the variable substitution. |
1131 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1132 |
|
|
|
1133 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
1134 |
|
|
|
1135 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1136 |
|
|
|
1137 |
|
|
|
1138 |
cebix |
1.10 |
MONSRCS= |
1139 |
|
|
echo $ac_n "checking for mon""... $ac_c" 1>&6 |
1140 |
cebix |
1.11 |
echo "configure:1141: checking for mon" >&5 |
1141 |
cebix |
1.10 |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
1142 |
|
|
echo "$ac_t""yes" 1>&6 |
1143 |
cebix |
1.11 |
WANT_MON=yes |
1144 |
cebix |
1.10 |
DEFINES="$DEFINES -DENABLE_MON=1" |
1145 |
|
|
MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp" |
1146 |
|
|
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
1147 |
|
|
else |
1148 |
|
|
echo "$ac_t""no" 1>&6 |
1149 |
cebix |
1.11 |
WANT_MON=no |
1150 |
cebix |
1.10 |
DEFINES="$DEFINES -DENABLE_MON=0" |
1151 |
|
|
fi |
1152 |
|
|
|
1153 |
cebix |
1.9 |
echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6 |
1154 |
cebix |
1.11 |
echo "configure:1155: checking for sem_init in -lposix4" >&5 |
1155 |
cebix |
1.9 |
ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'` |
1156 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1157 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1158 |
|
|
else |
1159 |
|
|
ac_save_LIBS="$LIBS" |
1160 |
|
|
LIBS="-lposix4 $LIBS" |
1161 |
|
|
cat > conftest.$ac_ext <<EOF |
1162 |
cebix |
1.11 |
#line 1163 "configure" |
1163 |
cebix |
1.9 |
#include "confdefs.h" |
1164 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1165 |
|
|
/* We use char because int might match the return type of a gcc2 |
1166 |
|
|
builtin and then its argument prototype would still apply. */ |
1167 |
|
|
char sem_init(); |
1168 |
|
|
|
1169 |
|
|
int main() { |
1170 |
|
|
sem_init() |
1171 |
|
|
; return 0; } |
1172 |
|
|
EOF |
1173 |
cebix |
1.11 |
if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1174 |
cebix |
1.9 |
rm -rf conftest* |
1175 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1176 |
|
|
else |
1177 |
|
|
echo "configure: failed program was:" >&5 |
1178 |
|
|
cat conftest.$ac_ext >&5 |
1179 |
|
|
rm -rf conftest* |
1180 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1181 |
|
|
fi |
1182 |
|
|
rm -f conftest* |
1183 |
|
|
LIBS="$ac_save_LIBS" |
1184 |
|
|
|
1185 |
|
|
fi |
1186 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1187 |
|
|
echo "$ac_t""yes" 1>&6 |
1188 |
|
|
ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
1189 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
1190 |
|
|
cat >> confdefs.h <<EOF |
1191 |
|
|
#define $ac_tr_lib 1 |
1192 |
|
|
EOF |
1193 |
|
|
|
1194 |
|
|
LIBS="-lposix4 $LIBS" |
1195 |
|
|
|
1196 |
|
|
else |
1197 |
|
|
echo "$ac_t""no" 1>&6 |
1198 |
|
|
fi |
1199 |
|
|
|
1200 |
|
|
|
1201 |
cebix |
1.1 |
# If we find X, set shell vars x_includes and x_libraries to the |
1202 |
|
|
# paths, otherwise set no_x=yes. |
1203 |
|
|
# Uses ac_ vars as temps to allow command line to override cache and checks. |
1204 |
|
|
# --without-x overrides everything else, but does not touch the cache. |
1205 |
|
|
echo $ac_n "checking for X""... $ac_c" 1>&6 |
1206 |
cebix |
1.11 |
echo "configure:1207: checking for X" >&5 |
1207 |
cebix |
1.1 |
|
1208 |
|
|
# Check whether --with-x or --without-x was given. |
1209 |
|
|
if test "${with_x+set}" = set; then |
1210 |
|
|
withval="$with_x" |
1211 |
|
|
: |
1212 |
|
|
fi |
1213 |
|
|
|
1214 |
|
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
1215 |
|
|
if test "x$with_x" = xno; then |
1216 |
|
|
# The user explicitly disabled X. |
1217 |
|
|
have_x=disabled |
1218 |
|
|
else |
1219 |
|
|
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
1220 |
|
|
# Both variables are already set. |
1221 |
|
|
have_x=yes |
1222 |
|
|
else |
1223 |
|
|
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
1224 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1225 |
|
|
else |
1226 |
|
|
# One or both of the vars are not set, and there is no cached value. |
1227 |
|
|
ac_x_includes=NO ac_x_libraries=NO |
1228 |
|
|
rm -fr conftestdir |
1229 |
|
|
if mkdir conftestdir; then |
1230 |
|
|
cd conftestdir |
1231 |
|
|
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
1232 |
|
|
cat > Imakefile <<'EOF' |
1233 |
|
|
acfindx: |
1234 |
|
|
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
1235 |
|
|
EOF |
1236 |
|
|
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
1237 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1238 |
|
|
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
1239 |
|
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
1240 |
|
|
for ac_extension in a so sl; do |
1241 |
|
|
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
1242 |
|
|
test -f $ac_im_libdir/libX11.$ac_extension; then |
1243 |
|
|
ac_im_usrlibdir=$ac_im_libdir; break |
1244 |
|
|
fi |
1245 |
|
|
done |
1246 |
|
|
# Screen out bogus values from the imake configuration. They are |
1247 |
|
|
# bogus both because they are the default anyway, and because |
1248 |
|
|
# using them would break gcc on systems where it needs fixed includes. |
1249 |
|
|
case "$ac_im_incroot" in |
1250 |
|
|
/usr/include) ;; |
1251 |
|
|
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
1252 |
|
|
esac |
1253 |
|
|
case "$ac_im_usrlibdir" in |
1254 |
|
|
/usr/lib | /lib) ;; |
1255 |
|
|
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
1256 |
|
|
esac |
1257 |
|
|
fi |
1258 |
|
|
cd .. |
1259 |
|
|
rm -fr conftestdir |
1260 |
|
|
fi |
1261 |
|
|
|
1262 |
|
|
if test "$ac_x_includes" = NO; then |
1263 |
|
|
# Guess where to find include files, by looking for this one X11 .h file. |
1264 |
|
|
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
1265 |
|
|
|
1266 |
|
|
# First, try using that file with no special directory specified. |
1267 |
|
|
cat > conftest.$ac_ext <<EOF |
1268 |
cebix |
1.11 |
#line 1269 "configure" |
1269 |
cebix |
1.1 |
#include "confdefs.h" |
1270 |
|
|
#include <$x_direct_test_include> |
1271 |
|
|
EOF |
1272 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1273 |
cebix |
1.11 |
{ (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1274 |
cebix |
1.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1275 |
|
|
if test -z "$ac_err"; then |
1276 |
|
|
rm -rf conftest* |
1277 |
|
|
# We can compile using X headers with no special include directory. |
1278 |
|
|
ac_x_includes= |
1279 |
|
|
else |
1280 |
|
|
echo "$ac_err" >&5 |
1281 |
|
|
echo "configure: failed program was:" >&5 |
1282 |
|
|
cat conftest.$ac_ext >&5 |
1283 |
|
|
rm -rf conftest* |
1284 |
|
|
# Look for the header file in a standard set of common directories. |
1285 |
|
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
1286 |
|
|
for ac_dir in \ |
1287 |
|
|
/usr/X11/include \ |
1288 |
|
|
/usr/X11R6/include \ |
1289 |
|
|
/usr/X11R5/include \ |
1290 |
|
|
/usr/X11R4/include \ |
1291 |
|
|
\ |
1292 |
|
|
/usr/include/X11 \ |
1293 |
|
|
/usr/include/X11R6 \ |
1294 |
|
|
/usr/include/X11R5 \ |
1295 |
|
|
/usr/include/X11R4 \ |
1296 |
|
|
\ |
1297 |
|
|
/usr/local/X11/include \ |
1298 |
|
|
/usr/local/X11R6/include \ |
1299 |
|
|
/usr/local/X11R5/include \ |
1300 |
|
|
/usr/local/X11R4/include \ |
1301 |
|
|
\ |
1302 |
|
|
/usr/local/include/X11 \ |
1303 |
|
|
/usr/local/include/X11R6 \ |
1304 |
|
|
/usr/local/include/X11R5 \ |
1305 |
|
|
/usr/local/include/X11R4 \ |
1306 |
|
|
\ |
1307 |
|
|
/usr/X386/include \ |
1308 |
|
|
/usr/x386/include \ |
1309 |
|
|
/usr/XFree86/include/X11 \ |
1310 |
|
|
\ |
1311 |
|
|
/usr/include \ |
1312 |
|
|
/usr/local/include \ |
1313 |
|
|
/usr/unsupported/include \ |
1314 |
|
|
/usr/athena/include \ |
1315 |
|
|
/usr/local/x11r5/include \ |
1316 |
|
|
/usr/lpp/Xamples/include \ |
1317 |
|
|
\ |
1318 |
|
|
/usr/openwin/include \ |
1319 |
|
|
/usr/openwin/share/include \ |
1320 |
|
|
; \ |
1321 |
|
|
do |
1322 |
|
|
if test -r "$ac_dir/$x_direct_test_include"; then |
1323 |
|
|
ac_x_includes=$ac_dir |
1324 |
|
|
break |
1325 |
|
|
fi |
1326 |
|
|
done |
1327 |
|
|
fi |
1328 |
|
|
rm -f conftest* |
1329 |
|
|
fi # $ac_x_includes = NO |
1330 |
|
|
|
1331 |
|
|
if test "$ac_x_libraries" = NO; then |
1332 |
|
|
# Check for the libraries. |
1333 |
|
|
|
1334 |
|
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
1335 |
|
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
1336 |
|
|
|
1337 |
|
|
# See if we find them without any special options. |
1338 |
|
|
# Don't add to $LIBS permanently. |
1339 |
|
|
ac_save_LIBS="$LIBS" |
1340 |
|
|
LIBS="-l$x_direct_test_library $LIBS" |
1341 |
|
|
cat > conftest.$ac_ext <<EOF |
1342 |
cebix |
1.11 |
#line 1343 "configure" |
1343 |
cebix |
1.1 |
#include "confdefs.h" |
1344 |
|
|
|
1345 |
|
|
int main() { |
1346 |
|
|
${x_direct_test_function}() |
1347 |
|
|
; return 0; } |
1348 |
|
|
EOF |
1349 |
cebix |
1.11 |
if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1350 |
cebix |
1.1 |
rm -rf conftest* |
1351 |
|
|
LIBS="$ac_save_LIBS" |
1352 |
|
|
# We can link X programs with no special library path. |
1353 |
|
|
ac_x_libraries= |
1354 |
|
|
else |
1355 |
|
|
echo "configure: failed program was:" >&5 |
1356 |
|
|
cat conftest.$ac_ext >&5 |
1357 |
|
|
rm -rf conftest* |
1358 |
|
|
LIBS="$ac_save_LIBS" |
1359 |
|
|
# First see if replacing the include by lib works. |
1360 |
|
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
1361 |
|
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
1362 |
|
|
/usr/X11/lib \ |
1363 |
|
|
/usr/X11R6/lib \ |
1364 |
|
|
/usr/X11R5/lib \ |
1365 |
|
|
/usr/X11R4/lib \ |
1366 |
|
|
\ |
1367 |
|
|
/usr/lib/X11 \ |
1368 |
|
|
/usr/lib/X11R6 \ |
1369 |
|
|
/usr/lib/X11R5 \ |
1370 |
|
|
/usr/lib/X11R4 \ |
1371 |
|
|
\ |
1372 |
|
|
/usr/local/X11/lib \ |
1373 |
|
|
/usr/local/X11R6/lib \ |
1374 |
|
|
/usr/local/X11R5/lib \ |
1375 |
|
|
/usr/local/X11R4/lib \ |
1376 |
|
|
\ |
1377 |
|
|
/usr/local/lib/X11 \ |
1378 |
|
|
/usr/local/lib/X11R6 \ |
1379 |
|
|
/usr/local/lib/X11R5 \ |
1380 |
|
|
/usr/local/lib/X11R4 \ |
1381 |
|
|
\ |
1382 |
|
|
/usr/X386/lib \ |
1383 |
|
|
/usr/x386/lib \ |
1384 |
|
|
/usr/XFree86/lib/X11 \ |
1385 |
|
|
\ |
1386 |
|
|
/usr/lib \ |
1387 |
|
|
/usr/local/lib \ |
1388 |
|
|
/usr/unsupported/lib \ |
1389 |
|
|
/usr/athena/lib \ |
1390 |
|
|
/usr/local/x11r5/lib \ |
1391 |
|
|
/usr/lpp/Xamples/lib \ |
1392 |
|
|
/lib/usr/lib/X11 \ |
1393 |
|
|
\ |
1394 |
|
|
/usr/openwin/lib \ |
1395 |
|
|
/usr/openwin/share/lib \ |
1396 |
|
|
; \ |
1397 |
|
|
do |
1398 |
|
|
for ac_extension in a so sl; do |
1399 |
|
|
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
1400 |
|
|
ac_x_libraries=$ac_dir |
1401 |
|
|
break 2 |
1402 |
|
|
fi |
1403 |
|
|
done |
1404 |
|
|
done |
1405 |
|
|
fi |
1406 |
|
|
rm -f conftest* |
1407 |
|
|
fi # $ac_x_libraries = NO |
1408 |
|
|
|
1409 |
|
|
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
1410 |
|
|
# Didn't find X anywhere. Cache the known absence of X. |
1411 |
|
|
ac_cv_have_x="have_x=no" |
1412 |
|
|
else |
1413 |
|
|
# Record where we found X for the cache. |
1414 |
|
|
ac_cv_have_x="have_x=yes \ |
1415 |
|
|
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
1416 |
|
|
fi |
1417 |
|
|
fi |
1418 |
|
|
fi |
1419 |
|
|
eval "$ac_cv_have_x" |
1420 |
|
|
fi # $with_x != no |
1421 |
|
|
|
1422 |
|
|
if test "$have_x" != yes; then |
1423 |
|
|
echo "$ac_t""$have_x" 1>&6 |
1424 |
|
|
no_x=yes |
1425 |
|
|
else |
1426 |
|
|
# If each of the values was on the command line, it overrides each guess. |
1427 |
|
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
1428 |
|
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
1429 |
|
|
# Update the cache value to reflect the command line values. |
1430 |
|
|
ac_cv_have_x="have_x=yes \ |
1431 |
|
|
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
1432 |
|
|
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
1433 |
|
|
fi |
1434 |
|
|
|
1435 |
|
|
if test "$no_x" = yes; then |
1436 |
|
|
# Not all programs may use this symbol, but it does not hurt to define it. |
1437 |
|
|
cat >> confdefs.h <<\EOF |
1438 |
|
|
#define X_DISPLAY_MISSING 1 |
1439 |
|
|
EOF |
1440 |
|
|
|
1441 |
|
|
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
1442 |
|
|
else |
1443 |
|
|
if test -n "$x_includes"; then |
1444 |
|
|
X_CFLAGS="$X_CFLAGS -I$x_includes" |
1445 |
|
|
fi |
1446 |
|
|
|
1447 |
|
|
# It would also be nice to do this for all -L options, not just this one. |
1448 |
|
|
if test -n "$x_libraries"; then |
1449 |
|
|
X_LIBS="$X_LIBS -L$x_libraries" |
1450 |
|
|
# For Solaris; some versions of Sun CC require a space after -R and |
1451 |
|
|
# others require no space. Words are not sufficient . . . . |
1452 |
|
|
case "`(uname -sr) 2>/dev/null`" in |
1453 |
|
|
"SunOS 5"*) |
1454 |
|
|
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
1455 |
cebix |
1.11 |
echo "configure:1456: checking whether -R must be followed by a space" >&5 |
1456 |
cebix |
1.1 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1457 |
|
|
cat > conftest.$ac_ext <<EOF |
1458 |
cebix |
1.11 |
#line 1459 "configure" |
1459 |
cebix |
1.1 |
#include "confdefs.h" |
1460 |
|
|
|
1461 |
|
|
int main() { |
1462 |
|
|
|
1463 |
|
|
; return 0; } |
1464 |
|
|
EOF |
1465 |
cebix |
1.11 |
if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1466 |
cebix |
1.1 |
rm -rf conftest* |
1467 |
|
|
ac_R_nospace=yes |
1468 |
|
|
else |
1469 |
|
|
echo "configure: failed program was:" >&5 |
1470 |
|
|
cat conftest.$ac_ext >&5 |
1471 |
|
|
rm -rf conftest* |
1472 |
|
|
ac_R_nospace=no |
1473 |
|
|
fi |
1474 |
|
|
rm -f conftest* |
1475 |
|
|
if test $ac_R_nospace = yes; then |
1476 |
|
|
echo "$ac_t""no" 1>&6 |
1477 |
|
|
X_LIBS="$X_LIBS -R$x_libraries" |
1478 |
|
|
else |
1479 |
|
|
LIBS="$ac_xsave_LIBS -R $x_libraries" |
1480 |
|
|
cat > conftest.$ac_ext <<EOF |
1481 |
cebix |
1.11 |
#line 1482 "configure" |
1482 |
cebix |
1.1 |
#include "confdefs.h" |
1483 |
|
|
|
1484 |
|
|
int main() { |
1485 |
|
|
|
1486 |
|
|
; return 0; } |
1487 |
|
|
EOF |
1488 |
cebix |
1.11 |
if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1489 |
cebix |
1.1 |
rm -rf conftest* |
1490 |
|
|
ac_R_space=yes |
1491 |
|
|
else |
1492 |
|
|
echo "configure: failed program was:" >&5 |
1493 |
|
|
cat conftest.$ac_ext >&5 |
1494 |
|
|
rm -rf conftest* |
1495 |
|
|
ac_R_space=no |
1496 |
|
|
fi |
1497 |
|
|
rm -f conftest* |
1498 |
|
|
if test $ac_R_space = yes; then |
1499 |
|
|
echo "$ac_t""yes" 1>&6 |
1500 |
|
|
X_LIBS="$X_LIBS -R $x_libraries" |
1501 |
|
|
else |
1502 |
|
|
echo "$ac_t""neither works" 1>&6 |
1503 |
|
|
fi |
1504 |
|
|
fi |
1505 |
|
|
LIBS="$ac_xsave_LIBS" |
1506 |
|
|
esac |
1507 |
|
|
fi |
1508 |
|
|
|
1509 |
|
|
# Check for system-dependent libraries X programs must link with. |
1510 |
|
|
# Do this before checking for the system-independent R6 libraries |
1511 |
|
|
# (-lICE), since we may need -lsocket or whatever for X linking. |
1512 |
|
|
|
1513 |
|
|
if test "$ISC" = yes; then |
1514 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
1515 |
|
|
else |
1516 |
|
|
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
1517 |
|
|
# libraries were built with DECnet support. And karl@cs.umb.edu says |
1518 |
|
|
# the Alpha needs dnet_stub (dnet does not exist). |
1519 |
|
|
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
1520 |
cebix |
1.11 |
echo "configure:1521: checking for dnet_ntoa in -ldnet" >&5 |
1521 |
cebix |
1.1 |
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1522 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1523 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1524 |
|
|
else |
1525 |
|
|
ac_save_LIBS="$LIBS" |
1526 |
|
|
LIBS="-ldnet $LIBS" |
1527 |
|
|
cat > conftest.$ac_ext <<EOF |
1528 |
cebix |
1.11 |
#line 1529 "configure" |
1529 |
cebix |
1.1 |
#include "confdefs.h" |
1530 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1531 |
|
|
/* We use char because int might match the return type of a gcc2 |
1532 |
|
|
builtin and then its argument prototype would still apply. */ |
1533 |
|
|
char dnet_ntoa(); |
1534 |
|
|
|
1535 |
|
|
int main() { |
1536 |
|
|
dnet_ntoa() |
1537 |
|
|
; return 0; } |
1538 |
|
|
EOF |
1539 |
cebix |
1.11 |
if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1540 |
cebix |
1.1 |
rm -rf conftest* |
1541 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1542 |
|
|
else |
1543 |
|
|
echo "configure: failed program was:" >&5 |
1544 |
|
|
cat conftest.$ac_ext >&5 |
1545 |
|
|
rm -rf conftest* |
1546 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1547 |
|
|
fi |
1548 |
|
|
rm -f conftest* |
1549 |
|
|
LIBS="$ac_save_LIBS" |
1550 |
|
|
|
1551 |
|
|
fi |
1552 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1553 |
|
|
echo "$ac_t""yes" 1>&6 |
1554 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
1555 |
|
|
else |
1556 |
|
|
echo "$ac_t""no" 1>&6 |
1557 |
|
|
fi |
1558 |
|
|
|
1559 |
|
|
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
1560 |
|
|
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
1561 |
cebix |
1.11 |
echo "configure:1562: checking for dnet_ntoa in -ldnet_stub" >&5 |
1562 |
cebix |
1.1 |
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1563 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1564 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1565 |
|
|
else |
1566 |
|
|
ac_save_LIBS="$LIBS" |
1567 |
|
|
LIBS="-ldnet_stub $LIBS" |
1568 |
|
|
cat > conftest.$ac_ext <<EOF |
1569 |
cebix |
1.11 |
#line 1570 "configure" |
1570 |
cebix |
1.1 |
#include "confdefs.h" |
1571 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1572 |
|
|
/* We use char because int might match the return type of a gcc2 |
1573 |
|
|
builtin and then its argument prototype would still apply. */ |
1574 |
|
|
char dnet_ntoa(); |
1575 |
|
|
|
1576 |
|
|
int main() { |
1577 |
|
|
dnet_ntoa() |
1578 |
|
|
; return 0; } |
1579 |
|
|
EOF |
1580 |
cebix |
1.11 |
if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1581 |
cebix |
1.1 |
rm -rf conftest* |
1582 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1583 |
|
|
else |
1584 |
|
|
echo "configure: failed program was:" >&5 |
1585 |
|
|
cat conftest.$ac_ext >&5 |
1586 |
|
|
rm -rf conftest* |
1587 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1588 |
|
|
fi |
1589 |
|
|
rm -f conftest* |
1590 |
|
|
LIBS="$ac_save_LIBS" |
1591 |
|
|
|
1592 |
|
|
fi |
1593 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1594 |
|
|
echo "$ac_t""yes" 1>&6 |
1595 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
1596 |
|
|
else |
1597 |
|
|
echo "$ac_t""no" 1>&6 |
1598 |
|
|
fi |
1599 |
|
|
|
1600 |
|
|
fi |
1601 |
|
|
|
1602 |
|
|
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
1603 |
|
|
# to get the SysV transport functions. |
1604 |
|
|
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
1605 |
|
|
# needs -lnsl. |
1606 |
|
|
# The nsl library prevents programs from opening the X display |
1607 |
|
|
# on Irix 5.2, according to dickey@clark.net. |
1608 |
|
|
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
1609 |
cebix |
1.11 |
echo "configure:1610: checking for gethostbyname" >&5 |
1610 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1611 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1612 |
|
|
else |
1613 |
|
|
cat > conftest.$ac_ext <<EOF |
1614 |
cebix |
1.11 |
#line 1615 "configure" |
1615 |
cebix |
1.1 |
#include "confdefs.h" |
1616 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1617 |
|
|
which can conflict with char gethostbyname(); below. */ |
1618 |
|
|
#include <assert.h> |
1619 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1620 |
|
|
/* We use char because int might match the return type of a gcc2 |
1621 |
|
|
builtin and then its argument prototype would still apply. */ |
1622 |
|
|
char gethostbyname(); |
1623 |
|
|
|
1624 |
|
|
int main() { |
1625 |
|
|
|
1626 |
|
|
/* The GNU C library defines this for functions which it implements |
1627 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1628 |
|
|
something starting with __ and the normal name is an alias. */ |
1629 |
|
|
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
1630 |
|
|
choke me |
1631 |
|
|
#else |
1632 |
|
|
gethostbyname(); |
1633 |
|
|
#endif |
1634 |
|
|
|
1635 |
|
|
; return 0; } |
1636 |
|
|
EOF |
1637 |
cebix |
1.11 |
if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1638 |
cebix |
1.1 |
rm -rf conftest* |
1639 |
|
|
eval "ac_cv_func_gethostbyname=yes" |
1640 |
|
|
else |
1641 |
|
|
echo "configure: failed program was:" >&5 |
1642 |
|
|
cat conftest.$ac_ext >&5 |
1643 |
|
|
rm -rf conftest* |
1644 |
|
|
eval "ac_cv_func_gethostbyname=no" |
1645 |
|
|
fi |
1646 |
|
|
rm -f conftest* |
1647 |
|
|
fi |
1648 |
|
|
|
1649 |
|
|
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
1650 |
|
|
echo "$ac_t""yes" 1>&6 |
1651 |
|
|
: |
1652 |
|
|
else |
1653 |
|
|
echo "$ac_t""no" 1>&6 |
1654 |
|
|
fi |
1655 |
|
|
|
1656 |
|
|
if test $ac_cv_func_gethostbyname = no; then |
1657 |
|
|
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
1658 |
cebix |
1.11 |
echo "configure:1659: checking for gethostbyname in -lnsl" >&5 |
1659 |
cebix |
1.1 |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1660 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1661 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1662 |
|
|
else |
1663 |
|
|
ac_save_LIBS="$LIBS" |
1664 |
|
|
LIBS="-lnsl $LIBS" |
1665 |
|
|
cat > conftest.$ac_ext <<EOF |
1666 |
cebix |
1.11 |
#line 1667 "configure" |
1667 |
cebix |
1.1 |
#include "confdefs.h" |
1668 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1669 |
|
|
/* We use char because int might match the return type of a gcc2 |
1670 |
|
|
builtin and then its argument prototype would still apply. */ |
1671 |
|
|
char gethostbyname(); |
1672 |
|
|
|
1673 |
|
|
int main() { |
1674 |
|
|
gethostbyname() |
1675 |
|
|
; return 0; } |
1676 |
|
|
EOF |
1677 |
cebix |
1.11 |
if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1678 |
cebix |
1.1 |
rm -rf conftest* |
1679 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1680 |
|
|
else |
1681 |
|
|
echo "configure: failed program was:" >&5 |
1682 |
|
|
cat conftest.$ac_ext >&5 |
1683 |
|
|
rm -rf conftest* |
1684 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1685 |
|
|
fi |
1686 |
|
|
rm -f conftest* |
1687 |
|
|
LIBS="$ac_save_LIBS" |
1688 |
|
|
|
1689 |
|
|
fi |
1690 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1691 |
|
|
echo "$ac_t""yes" 1>&6 |
1692 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
1693 |
|
|
else |
1694 |
|
|
echo "$ac_t""no" 1>&6 |
1695 |
|
|
fi |
1696 |
|
|
|
1697 |
|
|
fi |
1698 |
|
|
|
1699 |
|
|
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
1700 |
|
|
# socket/setsockopt and other routines are undefined under SCO ODT |
1701 |
|
|
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
1702 |
|
|
# on later versions), says simon@lia.di.epfl.ch: it contains |
1703 |
|
|
# gethostby* variants that don't use the nameserver (or something). |
1704 |
|
|
# -lsocket must be given before -lnsl if both are needed. |
1705 |
|
|
# We assume that if connect needs -lnsl, so does gethostbyname. |
1706 |
|
|
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
1707 |
cebix |
1.11 |
echo "configure:1708: checking for connect" >&5 |
1708 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1709 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1710 |
|
|
else |
1711 |
|
|
cat > conftest.$ac_ext <<EOF |
1712 |
cebix |
1.11 |
#line 1713 "configure" |
1713 |
cebix |
1.1 |
#include "confdefs.h" |
1714 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1715 |
|
|
which can conflict with char connect(); below. */ |
1716 |
|
|
#include <assert.h> |
1717 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1718 |
|
|
/* We use char because int might match the return type of a gcc2 |
1719 |
|
|
builtin and then its argument prototype would still apply. */ |
1720 |
|
|
char connect(); |
1721 |
|
|
|
1722 |
|
|
int main() { |
1723 |
|
|
|
1724 |
|
|
/* The GNU C library defines this for functions which it implements |
1725 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1726 |
|
|
something starting with __ and the normal name is an alias. */ |
1727 |
|
|
#if defined (__stub_connect) || defined (__stub___connect) |
1728 |
|
|
choke me |
1729 |
|
|
#else |
1730 |
|
|
connect(); |
1731 |
|
|
#endif |
1732 |
|
|
|
1733 |
|
|
; return 0; } |
1734 |
|
|
EOF |
1735 |
cebix |
1.11 |
if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1736 |
cebix |
1.1 |
rm -rf conftest* |
1737 |
|
|
eval "ac_cv_func_connect=yes" |
1738 |
|
|
else |
1739 |
|
|
echo "configure: failed program was:" >&5 |
1740 |
|
|
cat conftest.$ac_ext >&5 |
1741 |
|
|
rm -rf conftest* |
1742 |
|
|
eval "ac_cv_func_connect=no" |
1743 |
|
|
fi |
1744 |
|
|
rm -f conftest* |
1745 |
|
|
fi |
1746 |
|
|
|
1747 |
|
|
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
1748 |
|
|
echo "$ac_t""yes" 1>&6 |
1749 |
|
|
: |
1750 |
|
|
else |
1751 |
|
|
echo "$ac_t""no" 1>&6 |
1752 |
|
|
fi |
1753 |
|
|
|
1754 |
|
|
if test $ac_cv_func_connect = no; then |
1755 |
|
|
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
1756 |
cebix |
1.11 |
echo "configure:1757: checking for connect in -lsocket" >&5 |
1757 |
cebix |
1.1 |
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
1758 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1759 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1760 |
|
|
else |
1761 |
|
|
ac_save_LIBS="$LIBS" |
1762 |
|
|
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
1763 |
|
|
cat > conftest.$ac_ext <<EOF |
1764 |
cebix |
1.11 |
#line 1765 "configure" |
1765 |
cebix |
1.1 |
#include "confdefs.h" |
1766 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1767 |
|
|
/* We use char because int might match the return type of a gcc2 |
1768 |
|
|
builtin and then its argument prototype would still apply. */ |
1769 |
|
|
char connect(); |
1770 |
|
|
|
1771 |
|
|
int main() { |
1772 |
|
|
connect() |
1773 |
|
|
; return 0; } |
1774 |
|
|
EOF |
1775 |
cebix |
1.11 |
if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1776 |
cebix |
1.1 |
rm -rf conftest* |
1777 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1778 |
|
|
else |
1779 |
|
|
echo "configure: failed program was:" >&5 |
1780 |
|
|
cat conftest.$ac_ext >&5 |
1781 |
|
|
rm -rf conftest* |
1782 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1783 |
|
|
fi |
1784 |
|
|
rm -f conftest* |
1785 |
|
|
LIBS="$ac_save_LIBS" |
1786 |
|
|
|
1787 |
|
|
fi |
1788 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1789 |
|
|
echo "$ac_t""yes" 1>&6 |
1790 |
|
|
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
1791 |
|
|
else |
1792 |
|
|
echo "$ac_t""no" 1>&6 |
1793 |
|
|
fi |
1794 |
|
|
|
1795 |
|
|
fi |
1796 |
|
|
|
1797 |
|
|
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
1798 |
|
|
echo $ac_n "checking for remove""... $ac_c" 1>&6 |
1799 |
cebix |
1.11 |
echo "configure:1800: checking for remove" >&5 |
1800 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
1801 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1802 |
|
|
else |
1803 |
|
|
cat > conftest.$ac_ext <<EOF |
1804 |
cebix |
1.11 |
#line 1805 "configure" |
1805 |
cebix |
1.1 |
#include "confdefs.h" |
1806 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1807 |
|
|
which can conflict with char remove(); below. */ |
1808 |
|
|
#include <assert.h> |
1809 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1810 |
|
|
/* We use char because int might match the return type of a gcc2 |
1811 |
|
|
builtin and then its argument prototype would still apply. */ |
1812 |
|
|
char remove(); |
1813 |
|
|
|
1814 |
|
|
int main() { |
1815 |
|
|
|
1816 |
|
|
/* The GNU C library defines this for functions which it implements |
1817 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1818 |
|
|
something starting with __ and the normal name is an alias. */ |
1819 |
|
|
#if defined (__stub_remove) || defined (__stub___remove) |
1820 |
|
|
choke me |
1821 |
|
|
#else |
1822 |
|
|
remove(); |
1823 |
|
|
#endif |
1824 |
|
|
|
1825 |
|
|
; return 0; } |
1826 |
|
|
EOF |
1827 |
cebix |
1.11 |
if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1828 |
cebix |
1.1 |
rm -rf conftest* |
1829 |
|
|
eval "ac_cv_func_remove=yes" |
1830 |
|
|
else |
1831 |
|
|
echo "configure: failed program was:" >&5 |
1832 |
|
|
cat conftest.$ac_ext >&5 |
1833 |
|
|
rm -rf conftest* |
1834 |
|
|
eval "ac_cv_func_remove=no" |
1835 |
|
|
fi |
1836 |
|
|
rm -f conftest* |
1837 |
|
|
fi |
1838 |
|
|
|
1839 |
|
|
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
1840 |
|
|
echo "$ac_t""yes" 1>&6 |
1841 |
|
|
: |
1842 |
|
|
else |
1843 |
|
|
echo "$ac_t""no" 1>&6 |
1844 |
|
|
fi |
1845 |
|
|
|
1846 |
|
|
if test $ac_cv_func_remove = no; then |
1847 |
|
|
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
1848 |
cebix |
1.11 |
echo "configure:1849: checking for remove in -lposix" >&5 |
1849 |
cebix |
1.1 |
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
1850 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1851 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1852 |
|
|
else |
1853 |
|
|
ac_save_LIBS="$LIBS" |
1854 |
|
|
LIBS="-lposix $LIBS" |
1855 |
|
|
cat > conftest.$ac_ext <<EOF |
1856 |
cebix |
1.11 |
#line 1857 "configure" |
1857 |
cebix |
1.1 |
#include "confdefs.h" |
1858 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1859 |
|
|
/* We use char because int might match the return type of a gcc2 |
1860 |
|
|
builtin and then its argument prototype would still apply. */ |
1861 |
|
|
char remove(); |
1862 |
|
|
|
1863 |
|
|
int main() { |
1864 |
|
|
remove() |
1865 |
|
|
; return 0; } |
1866 |
|
|
EOF |
1867 |
cebix |
1.11 |
if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1868 |
cebix |
1.1 |
rm -rf conftest* |
1869 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1870 |
|
|
else |
1871 |
|
|
echo "configure: failed program was:" >&5 |
1872 |
|
|
cat conftest.$ac_ext >&5 |
1873 |
|
|
rm -rf conftest* |
1874 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1875 |
|
|
fi |
1876 |
|
|
rm -f conftest* |
1877 |
|
|
LIBS="$ac_save_LIBS" |
1878 |
|
|
|
1879 |
|
|
fi |
1880 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1881 |
|
|
echo "$ac_t""yes" 1>&6 |
1882 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
1883 |
|
|
else |
1884 |
|
|
echo "$ac_t""no" 1>&6 |
1885 |
|
|
fi |
1886 |
|
|
|
1887 |
|
|
fi |
1888 |
|
|
|
1889 |
|
|
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
1890 |
|
|
echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
1891 |
cebix |
1.11 |
echo "configure:1892: checking for shmat" >&5 |
1892 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
1893 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1894 |
|
|
else |
1895 |
|
|
cat > conftest.$ac_ext <<EOF |
1896 |
cebix |
1.11 |
#line 1897 "configure" |
1897 |
cebix |
1.1 |
#include "confdefs.h" |
1898 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1899 |
|
|
which can conflict with char shmat(); below. */ |
1900 |
|
|
#include <assert.h> |
1901 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1902 |
|
|
/* We use char because int might match the return type of a gcc2 |
1903 |
|
|
builtin and then its argument prototype would still apply. */ |
1904 |
|
|
char shmat(); |
1905 |
|
|
|
1906 |
|
|
int main() { |
1907 |
|
|
|
1908 |
|
|
/* The GNU C library defines this for functions which it implements |
1909 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1910 |
|
|
something starting with __ and the normal name is an alias. */ |
1911 |
|
|
#if defined (__stub_shmat) || defined (__stub___shmat) |
1912 |
|
|
choke me |
1913 |
|
|
#else |
1914 |
|
|
shmat(); |
1915 |
|
|
#endif |
1916 |
|
|
|
1917 |
|
|
; return 0; } |
1918 |
|
|
EOF |
1919 |
cebix |
1.11 |
if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1920 |
cebix |
1.1 |
rm -rf conftest* |
1921 |
|
|
eval "ac_cv_func_shmat=yes" |
1922 |
|
|
else |
1923 |
|
|
echo "configure: failed program was:" >&5 |
1924 |
|
|
cat conftest.$ac_ext >&5 |
1925 |
|
|
rm -rf conftest* |
1926 |
|
|
eval "ac_cv_func_shmat=no" |
1927 |
|
|
fi |
1928 |
|
|
rm -f conftest* |
1929 |
|
|
fi |
1930 |
|
|
|
1931 |
|
|
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
1932 |
|
|
echo "$ac_t""yes" 1>&6 |
1933 |
|
|
: |
1934 |
|
|
else |
1935 |
|
|
echo "$ac_t""no" 1>&6 |
1936 |
|
|
fi |
1937 |
|
|
|
1938 |
|
|
if test $ac_cv_func_shmat = no; then |
1939 |
|
|
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
1940 |
cebix |
1.11 |
echo "configure:1941: checking for shmat in -lipc" >&5 |
1941 |
cebix |
1.1 |
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
1942 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1943 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1944 |
|
|
else |
1945 |
|
|
ac_save_LIBS="$LIBS" |
1946 |
|
|
LIBS="-lipc $LIBS" |
1947 |
|
|
cat > conftest.$ac_ext <<EOF |
1948 |
cebix |
1.11 |
#line 1949 "configure" |
1949 |
cebix |
1.1 |
#include "confdefs.h" |
1950 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1951 |
|
|
/* We use char because int might match the return type of a gcc2 |
1952 |
|
|
builtin and then its argument prototype would still apply. */ |
1953 |
|
|
char shmat(); |
1954 |
|
|
|
1955 |
|
|
int main() { |
1956 |
|
|
shmat() |
1957 |
|
|
; return 0; } |
1958 |
|
|
EOF |
1959 |
cebix |
1.11 |
if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1960 |
cebix |
1.1 |
rm -rf conftest* |
1961 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1962 |
|
|
else |
1963 |
|
|
echo "configure: failed program was:" >&5 |
1964 |
|
|
cat conftest.$ac_ext >&5 |
1965 |
|
|
rm -rf conftest* |
1966 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1967 |
|
|
fi |
1968 |
|
|
rm -f conftest* |
1969 |
|
|
LIBS="$ac_save_LIBS" |
1970 |
|
|
|
1971 |
|
|
fi |
1972 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1973 |
|
|
echo "$ac_t""yes" 1>&6 |
1974 |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
1975 |
|
|
else |
1976 |
|
|
echo "$ac_t""no" 1>&6 |
1977 |
|
|
fi |
1978 |
|
|
|
1979 |
|
|
fi |
1980 |
|
|
fi |
1981 |
|
|
|
1982 |
|
|
# Check for libraries that X11R6 Xt/Xaw programs need. |
1983 |
|
|
ac_save_LDFLAGS="$LDFLAGS" |
1984 |
|
|
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
1985 |
|
|
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
1986 |
|
|
# check for ICE first), but we must link in the order -lSM -lICE or |
1987 |
|
|
# we get undefined symbols. So assume we have SM if we have ICE. |
1988 |
|
|
# These have to be linked with before -lX11, unlike the other |
1989 |
|
|
# libraries we check for below, so use a different variable. |
1990 |
|
|
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
1991 |
|
|
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
1992 |
cebix |
1.11 |
echo "configure:1993: checking for IceConnectionNumber in -lICE" >&5 |
1993 |
cebix |
1.1 |
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
1994 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1995 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1996 |
|
|
else |
1997 |
|
|
ac_save_LIBS="$LIBS" |
1998 |
|
|
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
1999 |
|
|
cat > conftest.$ac_ext <<EOF |
2000 |
cebix |
1.11 |
#line 2001 "configure" |
2001 |
cebix |
1.1 |
#include "confdefs.h" |
2002 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2003 |
|
|
/* We use char because int might match the return type of a gcc2 |
2004 |
|
|
builtin and then its argument prototype would still apply. */ |
2005 |
|
|
char IceConnectionNumber(); |
2006 |
|
|
|
2007 |
|
|
int main() { |
2008 |
|
|
IceConnectionNumber() |
2009 |
|
|
; return 0; } |
2010 |
|
|
EOF |
2011 |
cebix |
1.11 |
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2012 |
cebix |
1.1 |
rm -rf conftest* |
2013 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2014 |
|
|
else |
2015 |
|
|
echo "configure: failed program was:" >&5 |
2016 |
|
|
cat conftest.$ac_ext >&5 |
2017 |
|
|
rm -rf conftest* |
2018 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
2019 |
|
|
fi |
2020 |
|
|
rm -f conftest* |
2021 |
|
|
LIBS="$ac_save_LIBS" |
2022 |
|
|
|
2023 |
|
|
fi |
2024 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2025 |
|
|
echo "$ac_t""yes" 1>&6 |
2026 |
|
|
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
2027 |
|
|
else |
2028 |
|
|
echo "$ac_t""no" 1>&6 |
2029 |
|
|
fi |
2030 |
|
|
|
2031 |
|
|
LDFLAGS="$ac_save_LDFLAGS" |
2032 |
|
|
|
2033 |
|
|
fi |
2034 |
|
|
|
2035 |
|
|
if [ "x$no_x" = "xyes" ]; then |
2036 |
|
|
{ echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; } |
2037 |
|
|
fi |
2038 |
|
|
CFLAGS="$CFLAGS $X_CFLAGS" |
2039 |
|
|
CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
2040 |
|
|
LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS" |
2041 |
|
|
|
2042 |
|
|
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
2043 |
cebix |
1.11 |
echo "configure:2044: checking for pthread_create in -lpthread" >&5 |
2044 |
cebix |
1.1 |
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
2045 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2046 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2047 |
|
|
else |
2048 |
|
|
ac_save_LIBS="$LIBS" |
2049 |
|
|
LIBS="-lpthread $LIBS" |
2050 |
|
|
cat > conftest.$ac_ext <<EOF |
2051 |
cebix |
1.11 |
#line 2052 "configure" |
2052 |
cebix |
1.1 |
#include "confdefs.h" |
2053 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2054 |
|
|
/* We use char because int might match the return type of a gcc2 |
2055 |
|
|
builtin and then its argument prototype would still apply. */ |
2056 |
|
|
char pthread_create(); |
2057 |
|
|
|
2058 |
|
|
int main() { |
2059 |
|
|
pthread_create() |
2060 |
|
|
; return 0; } |
2061 |
|
|
EOF |
2062 |
cebix |
1.11 |
if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2063 |
cebix |
1.1 |
rm -rf conftest* |
2064 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2065 |
|
|
else |
2066 |
|
|
echo "configure: failed program was:" >&5 |
2067 |
|
|
cat conftest.$ac_ext >&5 |
2068 |
|
|
rm -rf conftest* |
2069 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
2070 |
|
|
fi |
2071 |
|
|
rm -f conftest* |
2072 |
|
|
LIBS="$ac_save_LIBS" |
2073 |
|
|
|
2074 |
|
|
fi |
2075 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2076 |
|
|
echo "$ac_t""yes" 1>&6 |
2077 |
cebix |
1.9 |
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
2078 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
2079 |
|
|
cat >> confdefs.h <<EOF |
2080 |
|
|
#define $ac_tr_lib 1 |
2081 |
|
|
EOF |
2082 |
|
|
|
2083 |
|
|
LIBS="-lpthread $LIBS" |
2084 |
|
|
|
2085 |
cebix |
1.1 |
else |
2086 |
|
|
echo "$ac_t""no" 1>&6 |
2087 |
|
|
|
2088 |
cebix |
1.9 |
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
2089 |
cebix |
1.11 |
echo "configure:2090: checking for pthread_create in -lc_r" >&5 |
2090 |
cebix |
1.1 |
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
2091 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2092 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2093 |
|
|
else |
2094 |
|
|
ac_save_LIBS="$LIBS" |
2095 |
|
|
LIBS="-lc_r $LIBS" |
2096 |
|
|
cat > conftest.$ac_ext <<EOF |
2097 |
cebix |
1.11 |
#line 2098 "configure" |
2098 |
cebix |
1.1 |
#include "confdefs.h" |
2099 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2100 |
|
|
/* We use char because int might match the return type of a gcc2 |
2101 |
|
|
builtin and then its argument prototype would still apply. */ |
2102 |
|
|
char pthread_create(); |
2103 |
|
|
|
2104 |
|
|
int main() { |
2105 |
|
|
pthread_create() |
2106 |
|
|
; return 0; } |
2107 |
|
|
EOF |
2108 |
cebix |
1.11 |
if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2109 |
cebix |
1.1 |
rm -rf conftest* |
2110 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2111 |
|
|
else |
2112 |
|
|
echo "configure: failed program was:" >&5 |
2113 |
|
|
cat conftest.$ac_ext >&5 |
2114 |
|
|
rm -rf conftest* |
2115 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
2116 |
|
|
fi |
2117 |
|
|
rm -f conftest* |
2118 |
|
|
LIBS="$ac_save_LIBS" |
2119 |
|
|
|
2120 |
|
|
fi |
2121 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2122 |
|
|
echo "$ac_t""yes" 1>&6 |
2123 |
cebix |
1.9 |
ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
2124 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
2125 |
|
|
cat >> confdefs.h <<EOF |
2126 |
|
|
#define $ac_tr_lib 1 |
2127 |
|
|
EOF |
2128 |
|
|
|
2129 |
|
|
LIBS="-lc_r $LIBS" |
2130 |
|
|
|
2131 |
cebix |
1.1 |
else |
2132 |
|
|
echo "$ac_t""no" 1>&6 |
2133 |
|
|
|
2134 |
cebix |
1.9 |
echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6 |
2135 |
cebix |
1.11 |
echo "configure:2136: checking for pthread_create in -lPTL" >&5 |
2136 |
cebix |
1.5 |
ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'` |
2137 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2138 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2139 |
|
|
else |
2140 |
|
|
ac_save_LIBS="$LIBS" |
2141 |
|
|
LIBS="-lPTL $LIBS" |
2142 |
|
|
cat > conftest.$ac_ext <<EOF |
2143 |
cebix |
1.11 |
#line 2144 "configure" |
2144 |
cebix |
1.5 |
#include "confdefs.h" |
2145 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2146 |
|
|
/* We use char because int might match the return type of a gcc2 |
2147 |
|
|
builtin and then its argument prototype would still apply. */ |
2148 |
|
|
char pthread_create(); |
2149 |
|
|
|
2150 |
|
|
int main() { |
2151 |
|
|
pthread_create() |
2152 |
|
|
; return 0; } |
2153 |
|
|
EOF |
2154 |
cebix |
1.11 |
if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2155 |
cebix |
1.5 |
rm -rf conftest* |
2156 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2157 |
|
|
else |
2158 |
|
|
echo "configure: failed program was:" >&5 |
2159 |
|
|
cat conftest.$ac_ext >&5 |
2160 |
|
|
rm -rf conftest* |
2161 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
2162 |
|
|
fi |
2163 |
|
|
rm -f conftest* |
2164 |
|
|
LIBS="$ac_save_LIBS" |
2165 |
|
|
|
2166 |
|
|
fi |
2167 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2168 |
|
|
echo "$ac_t""yes" 1>&6 |
2169 |
cebix |
1.9 |
ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
2170 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
2171 |
|
|
cat >> confdefs.h <<EOF |
2172 |
|
|
#define $ac_tr_lib 1 |
2173 |
|
|
EOF |
2174 |
|
|
|
2175 |
|
|
LIBS="-lPTL $LIBS" |
2176 |
|
|
|
2177 |
cebix |
1.5 |
else |
2178 |
|
|
echo "$ac_t""no" 1>&6 |
2179 |
cebix |
1.9 |
|
2180 |
|
|
{ echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; } |
2181 |
|
|
|
2182 |
cebix |
1.5 |
fi |
2183 |
|
|
|
2184 |
cebix |
1.9 |
|
2185 |
|
|
fi |
2186 |
|
|
|
2187 |
|
|
|
2188 |
cebix |
1.1 |
fi |
2189 |
cebix |
1.9 |
|
2190 |
|
|
|
2191 |
|
|
SEMSRCS= |
2192 |
|
|
for ac_func in sem_init |
2193 |
cebix |
1.1 |
do |
2194 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2195 |
cebix |
1.11 |
echo "configure:2196: checking for $ac_func" >&5 |
2196 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2197 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2198 |
|
|
else |
2199 |
|
|
cat > conftest.$ac_ext <<EOF |
2200 |
cebix |
1.11 |
#line 2201 "configure" |
2201 |
cebix |
1.1 |
#include "confdefs.h" |
2202 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
2203 |
|
|
which can conflict with char $ac_func(); below. */ |
2204 |
|
|
#include <assert.h> |
2205 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2206 |
|
|
/* We use char because int might match the return type of a gcc2 |
2207 |
|
|
builtin and then its argument prototype would still apply. */ |
2208 |
|
|
char $ac_func(); |
2209 |
|
|
|
2210 |
|
|
int main() { |
2211 |
|
|
|
2212 |
|
|
/* The GNU C library defines this for functions which it implements |
2213 |
|
|
to always fail with ENOSYS. Some functions are actually named |
2214 |
|
|
something starting with __ and the normal name is an alias. */ |
2215 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2216 |
|
|
choke me |
2217 |
|
|
#else |
2218 |
|
|
$ac_func(); |
2219 |
|
|
#endif |
2220 |
|
|
|
2221 |
|
|
; return 0; } |
2222 |
|
|
EOF |
2223 |
cebix |
1.11 |
if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2224 |
cebix |
1.1 |
rm -rf conftest* |
2225 |
|
|
eval "ac_cv_func_$ac_func=yes" |
2226 |
|
|
else |
2227 |
|
|
echo "configure: failed program was:" >&5 |
2228 |
|
|
cat conftest.$ac_ext >&5 |
2229 |
|
|
rm -rf conftest* |
2230 |
|
|
eval "ac_cv_func_$ac_func=no" |
2231 |
|
|
fi |
2232 |
|
|
rm -f conftest* |
2233 |
|
|
fi |
2234 |
|
|
|
2235 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2236 |
|
|
echo "$ac_t""yes" 1>&6 |
2237 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2238 |
|
|
cat >> confdefs.h <<EOF |
2239 |
|
|
#define $ac_tr_func 1 |
2240 |
|
|
EOF |
2241 |
|
|
|
2242 |
|
|
else |
2243 |
|
|
echo "$ac_t""no" 1>&6 |
2244 |
cebix |
1.9 |
SEMSRCS=posix_sem.cpp |
2245 |
|
|
|
2246 |
cebix |
1.1 |
fi |
2247 |
|
|
done |
2248 |
|
|
|
2249 |
|
|
|
2250 |
cebix |
1.7 |
if [ "x$WANT_XF86_DGA" = "xyes" ]; then |
2251 |
cebix |
1.1 |
echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
2252 |
cebix |
1.11 |
echo "configure:2253: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
2253 |
cebix |
1.1 |
ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` |
2254 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2255 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2256 |
|
|
else |
2257 |
|
|
ac_save_LIBS="$LIBS" |
2258 |
|
|
LIBS="-lXxf86dga $LIBS" |
2259 |
|
|
cat > conftest.$ac_ext <<EOF |
2260 |
cebix |
1.11 |
#line 2261 "configure" |
2261 |
cebix |
1.1 |
#include "confdefs.h" |
2262 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2263 |
|
|
/* We use char because int might match the return type of a gcc2 |
2264 |
|
|
builtin and then its argument prototype would still apply. */ |
2265 |
|
|
char XF86DGAQueryExtension(); |
2266 |
|
|
|
2267 |
|
|
int main() { |
2268 |
|
|
XF86DGAQueryExtension() |
2269 |
|
|
; return 0; } |
2270 |
|
|
EOF |
2271 |
cebix |
1.11 |
if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2272 |
cebix |
1.1 |
rm -rf conftest* |
2273 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2274 |
|
|
else |
2275 |
|
|
echo "configure: failed program was:" >&5 |
2276 |
|
|
cat conftest.$ac_ext >&5 |
2277 |
|
|
rm -rf conftest* |
2278 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
2279 |
|
|
fi |
2280 |
|
|
rm -f conftest* |
2281 |
|
|
LIBS="$ac_save_LIBS" |
2282 |
|
|
|
2283 |
|
|
fi |
2284 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2285 |
|
|
echo "$ac_t""yes" 1>&6 |
2286 |
cebix |
1.9 |
|
2287 |
cebix |
1.7 |
DEFINES="$DEFINES -DENABLE_XF86_DGA=1" |
2288 |
cebix |
1.1 |
LIBS="$LIBS -lXxf86dga" |
2289 |
cebix |
1.7 |
if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then |
2290 |
|
|
echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2 |
2291 |
|
|
WANT_FBDEV_DGA=no |
2292 |
|
|
fi |
2293 |
cebix |
1.9 |
|
2294 |
|
|
else |
2295 |
|
|
echo "$ac_t""no" 1>&6 |
2296 |
|
|
|
2297 |
|
|
echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2 |
2298 |
cebix |
1.12 |
WANT_XF86_DGA=no |
2299 |
cebix |
1.9 |
DEFINES="$DEFINES -DENABLE_XF86_DGA=0" |
2300 |
|
|
|
2301 |
|
|
fi |
2302 |
|
|
|
2303 |
cebix |
1.7 |
else |
2304 |
|
|
DEFINES="$DEFINES -DENABLE_XF86_DGA=0" |
2305 |
|
|
fi |
2306 |
|
|
if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then |
2307 |
|
|
DEFINES="$DEFINES -DENABLE_FBDEV_DGA=1" |
2308 |
|
|
else |
2309 |
|
|
DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0" |
2310 |
cebix |
1.1 |
fi |
2311 |
|
|
|
2312 |
cebix |
1.9 |
UISRCS=../dummy/prefs_editor_dummy.cpp |
2313 |
cebix |
1.1 |
if [ "x$WANT_UI" = "xyes" ]; then |
2314 |
|
|
# Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
2315 |
|
|
if test "${with_gtk_prefix+set}" = set; then |
2316 |
|
|
withval="$with_gtk_prefix" |
2317 |
|
|
gtk_config_prefix="$withval" |
2318 |
|
|
else |
2319 |
|
|
gtk_config_prefix="" |
2320 |
|
|
fi |
2321 |
|
|
|
2322 |
|
|
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
2323 |
|
|
if test "${with_gtk_exec_prefix+set}" = set; then |
2324 |
|
|
withval="$with_gtk_exec_prefix" |
2325 |
|
|
gtk_config_exec_prefix="$withval" |
2326 |
|
|
else |
2327 |
|
|
gtk_config_exec_prefix="" |
2328 |
|
|
fi |
2329 |
|
|
|
2330 |
|
|
# Check whether --enable-gtktest or --disable-gtktest was given. |
2331 |
|
|
if test "${enable_gtktest+set}" = set; then |
2332 |
|
|
enableval="$enable_gtktest" |
2333 |
|
|
: |
2334 |
|
|
else |
2335 |
|
|
enable_gtktest=yes |
2336 |
|
|
fi |
2337 |
|
|
|
2338 |
|
|
|
2339 |
|
|
if test x$gtk_config_exec_prefix != x ; then |
2340 |
|
|
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
2341 |
|
|
if test x${GTK_CONFIG+set} != xset ; then |
2342 |
|
|
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
2343 |
|
|
fi |
2344 |
|
|
fi |
2345 |
|
|
if test x$gtk_config_prefix != x ; then |
2346 |
|
|
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
2347 |
|
|
if test x${GTK_CONFIG+set} != xset ; then |
2348 |
|
|
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
2349 |
|
|
fi |
2350 |
|
|
fi |
2351 |
|
|
|
2352 |
|
|
# Extract the first word of "gtk-config", so it can be a program name with args. |
2353 |
|
|
set dummy gtk-config; ac_word=$2 |
2354 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2355 |
cebix |
1.12 |
echo "configure:2356: checking for $ac_word" >&5 |
2356 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
2357 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2358 |
|
|
else |
2359 |
|
|
case "$GTK_CONFIG" in |
2360 |
|
|
/*) |
2361 |
|
|
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
2362 |
|
|
;; |
2363 |
|
|
?:/*) |
2364 |
|
|
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
2365 |
|
|
;; |
2366 |
|
|
*) |
2367 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2368 |
|
|
ac_dummy="$PATH" |
2369 |
|
|
for ac_dir in $ac_dummy; do |
2370 |
|
|
test -z "$ac_dir" && ac_dir=. |
2371 |
|
|
if test -f $ac_dir/$ac_word; then |
2372 |
|
|
ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
2373 |
|
|
break |
2374 |
|
|
fi |
2375 |
|
|
done |
2376 |
|
|
IFS="$ac_save_ifs" |
2377 |
|
|
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
2378 |
|
|
;; |
2379 |
|
|
esac |
2380 |
|
|
fi |
2381 |
|
|
GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
2382 |
|
|
if test -n "$GTK_CONFIG"; then |
2383 |
|
|
echo "$ac_t""$GTK_CONFIG" 1>&6 |
2384 |
|
|
else |
2385 |
|
|
echo "$ac_t""no" 1>&6 |
2386 |
|
|
fi |
2387 |
|
|
|
2388 |
|
|
min_gtk_version=1.2.0 |
2389 |
|
|
echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
2390 |
cebix |
1.12 |
echo "configure:2391: checking for GTK - version >= $min_gtk_version" >&5 |
2391 |
cebix |
1.1 |
no_gtk="" |
2392 |
|
|
if test "$GTK_CONFIG" = "no" ; then |
2393 |
|
|
no_gtk=yes |
2394 |
|
|
else |
2395 |
|
|
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
2396 |
|
|
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
2397 |
|
|
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
2398 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
2399 |
|
|
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
2400 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
2401 |
|
|
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
2402 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
2403 |
|
|
if test "x$enable_gtktest" = "xyes" ; then |
2404 |
|
|
ac_save_CFLAGS="$CFLAGS" |
2405 |
|
|
ac_save_LIBS="$LIBS" |
2406 |
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS" |
2407 |
|
|
LIBS="$LIBS $GTK_LIBS" |
2408 |
|
|
rm -f conf.gtktest |
2409 |
|
|
if test "$cross_compiling" = yes; then |
2410 |
|
|
echo $ac_n "cross compiling; assumed OK... $ac_c" |
2411 |
|
|
else |
2412 |
|
|
cat > conftest.$ac_ext <<EOF |
2413 |
cebix |
1.12 |
#line 2414 "configure" |
2414 |
cebix |
1.1 |
#include "confdefs.h" |
2415 |
|
|
|
2416 |
|
|
#include <gtk/gtk.h> |
2417 |
|
|
#include <stdio.h> |
2418 |
|
|
|
2419 |
|
|
int |
2420 |
|
|
main () |
2421 |
|
|
{ |
2422 |
|
|
int major, minor, micro; |
2423 |
|
|
|
2424 |
|
|
system ("touch conf.gtktest"); |
2425 |
|
|
|
2426 |
|
|
if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { |
2427 |
|
|
printf("%s, bad version string\n", "$min_gtk_version"); |
2428 |
|
|
exit(1); |
2429 |
|
|
} |
2430 |
|
|
|
2431 |
|
|
if ((gtk_major_version != $gtk_config_major_version) || |
2432 |
|
|
(gtk_minor_version != $gtk_config_minor_version) || |
2433 |
|
|
(gtk_micro_version != $gtk_config_micro_version)) |
2434 |
|
|
{ |
2435 |
|
|
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
2436 |
|
|
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
2437 |
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version); |
2438 |
|
|
printf ("*** was found! If gtk-config was correct, then it is best\n"); |
2439 |
|
|
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
2440 |
|
|
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
2441 |
|
|
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
2442 |
|
|
printf("*** required on your system.\n"); |
2443 |
|
|
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
2444 |
|
|
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
2445 |
|
|
printf("*** before re-running configure\n"); |
2446 |
|
|
} |
2447 |
|
|
else |
2448 |
|
|
{ |
2449 |
|
|
if ((gtk_major_version > major) || |
2450 |
|
|
((gtk_major_version == major) && (gtk_minor_version > minor)) || |
2451 |
|
|
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
2452 |
|
|
{ |
2453 |
|
|
return 0; |
2454 |
|
|
} |
2455 |
|
|
else |
2456 |
|
|
{ |
2457 |
|
|
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
2458 |
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version); |
2459 |
|
|
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
2460 |
|
|
major, minor, micro); |
2461 |
|
|
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
2462 |
|
|
printf("***\n"); |
2463 |
|
|
printf("*** If you have already installed a sufficiently new version, this error\n"); |
2464 |
|
|
printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
2465 |
|
|
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
2466 |
|
|
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
2467 |
|
|
printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
2468 |
|
|
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
2469 |
|
|
printf("*** so that the correct libraries are found at run-time))\n"); |
2470 |
|
|
} |
2471 |
|
|
} |
2472 |
|
|
return 1; |
2473 |
|
|
} |
2474 |
|
|
|
2475 |
|
|
EOF |
2476 |
cebix |
1.12 |
if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2477 |
cebix |
1.1 |
then |
2478 |
|
|
: |
2479 |
|
|
else |
2480 |
|
|
echo "configure: failed program was:" >&5 |
2481 |
|
|
cat conftest.$ac_ext >&5 |
2482 |
|
|
rm -fr conftest* |
2483 |
|
|
no_gtk=yes |
2484 |
|
|
fi |
2485 |
|
|
rm -fr conftest* |
2486 |
|
|
fi |
2487 |
|
|
|
2488 |
|
|
CFLAGS="$ac_save_CFLAGS" |
2489 |
|
|
LIBS="$ac_save_LIBS" |
2490 |
|
|
fi |
2491 |
|
|
fi |
2492 |
|
|
if test "x$no_gtk" = x ; then |
2493 |
|
|
echo "$ac_t""yes" 1>&6 |
2494 |
cebix |
1.9 |
|
2495 |
|
|
DEFINES="$DEFINES -DENABLE_GTK=1" |
2496 |
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS" |
2497 |
|
|
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS" |
2498 |
|
|
LIBS="$LIBS $GTK_LIBS" |
2499 |
|
|
UISRCS=prefs_editor_gtk.cpp |
2500 |
|
|
|
2501 |
cebix |
1.1 |
else |
2502 |
|
|
echo "$ac_t""no" 1>&6 |
2503 |
|
|
if test "$GTK_CONFIG" = "no" ; then |
2504 |
|
|
echo "*** The gtk-config script installed by GTK could not be found" |
2505 |
|
|
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
2506 |
|
|
echo "*** your path, or set the GTK_CONFIG environment variable to the" |
2507 |
|
|
echo "*** full path to gtk-config." |
2508 |
|
|
else |
2509 |
|
|
if test -f conf.gtktest ; then |
2510 |
|
|
: |
2511 |
|
|
else |
2512 |
|
|
echo "*** Could not run GTK test program, checking why..." |
2513 |
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS" |
2514 |
|
|
LIBS="$LIBS $GTK_LIBS" |
2515 |
|
|
cat > conftest.$ac_ext <<EOF |
2516 |
cebix |
1.12 |
#line 2517 "configure" |
2517 |
cebix |
1.1 |
#include "confdefs.h" |
2518 |
|
|
|
2519 |
|
|
#include <gtk/gtk.h> |
2520 |
|
|
#include <stdio.h> |
2521 |
|
|
|
2522 |
|
|
int main() { |
2523 |
|
|
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
2524 |
|
|
; return 0; } |
2525 |
|
|
EOF |
2526 |
cebix |
1.12 |
if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2527 |
cebix |
1.1 |
rm -rf conftest* |
2528 |
|
|
echo "*** The test program compiled, but did not run. This usually means" |
2529 |
|
|
echo "*** that the run-time linker is not finding GTK or finding the wrong" |
2530 |
|
|
echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
2531 |
|
|
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
2532 |
|
|
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
2533 |
|
|
echo "*** is required on your system" |
2534 |
|
|
echo "***" |
2535 |
|
|
echo "*** If you have an old version installed, it is best to remove it, although" |
2536 |
|
|
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
2537 |
|
|
echo "***" |
2538 |
|
|
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
2539 |
|
|
echo "*** came with the system with the command" |
2540 |
|
|
echo "***" |
2541 |
|
|
echo "*** rpm --erase --nodeps gtk gtk-devel" |
2542 |
|
|
else |
2543 |
|
|
echo "configure: failed program was:" >&5 |
2544 |
|
|
cat conftest.$ac_ext >&5 |
2545 |
|
|
rm -rf conftest* |
2546 |
|
|
echo "*** The test program failed to compile or link. See the file config.log for the" |
2547 |
|
|
echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
2548 |
|
|
echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
2549 |
|
|
echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
2550 |
|
|
fi |
2551 |
|
|
rm -f conftest* |
2552 |
|
|
CFLAGS="$ac_save_CFLAGS" |
2553 |
|
|
LIBS="$ac_save_LIBS" |
2554 |
|
|
fi |
2555 |
|
|
fi |
2556 |
|
|
GTK_CFLAGS="" |
2557 |
|
|
GTK_LIBS="" |
2558 |
cebix |
1.9 |
|
2559 |
|
|
echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2 |
2560 |
|
|
WANT_UI=no |
2561 |
|
|
|
2562 |
cebix |
1.1 |
fi |
2563 |
|
|
|
2564 |
|
|
|
2565 |
|
|
rm -f conf.gtktest |
2566 |
|
|
|
2567 |
cebix |
1.9 |
fi |
2568 |
|
|
|
2569 |
|
|
if [ "x$WANT_ESD" = "xyes" ]; then |
2570 |
|
|
# Check whether --with-esd-prefix or --without-esd-prefix was given. |
2571 |
|
|
if test "${with_esd_prefix+set}" = set; then |
2572 |
|
|
withval="$with_esd_prefix" |
2573 |
|
|
esd_prefix="$withval" |
2574 |
|
|
else |
2575 |
|
|
esd_prefix="" |
2576 |
|
|
fi |
2577 |
|
|
|
2578 |
|
|
# Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given. |
2579 |
|
|
if test "${with_esd_exec_prefix+set}" = set; then |
2580 |
|
|
withval="$with_esd_exec_prefix" |
2581 |
|
|
esd_exec_prefix="$withval" |
2582 |
|
|
else |
2583 |
|
|
esd_exec_prefix="" |
2584 |
|
|
fi |
2585 |
|
|
|
2586 |
|
|
# Check whether --enable-esdtest or --disable-esdtest was given. |
2587 |
|
|
if test "${enable_esdtest+set}" = set; then |
2588 |
|
|
enableval="$enable_esdtest" |
2589 |
|
|
: |
2590 |
|
|
else |
2591 |
|
|
enable_esdtest=yes |
2592 |
|
|
fi |
2593 |
|
|
|
2594 |
|
|
|
2595 |
|
|
if test x$esd_exec_prefix != x ; then |
2596 |
|
|
esd_args="$esd_args --exec-prefix=$esd_exec_prefix" |
2597 |
|
|
if test x${ESD_CONFIG+set} != xset ; then |
2598 |
|
|
ESD_CONFIG=$esd_exec_prefix/bin/esd-config |
2599 |
|
|
fi |
2600 |
|
|
fi |
2601 |
|
|
if test x$esd_prefix != x ; then |
2602 |
|
|
esd_args="$esd_args --prefix=$esd_prefix" |
2603 |
|
|
if test x${ESD_CONFIG+set} != xset ; then |
2604 |
|
|
ESD_CONFIG=$esd_prefix/bin/esd-config |
2605 |
|
|
fi |
2606 |
cebix |
1.1 |
fi |
2607 |
cebix |
1.9 |
|
2608 |
|
|
# Extract the first word of "esd-config", so it can be a program name with args. |
2609 |
|
|
set dummy esd-config; ac_word=$2 |
2610 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2611 |
cebix |
1.12 |
echo "configure:2612: checking for $ac_word" >&5 |
2612 |
cebix |
1.9 |
if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then |
2613 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2614 |
|
|
else |
2615 |
|
|
case "$ESD_CONFIG" in |
2616 |
|
|
/*) |
2617 |
|
|
ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. |
2618 |
|
|
;; |
2619 |
|
|
?:/*) |
2620 |
|
|
ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path. |
2621 |
|
|
;; |
2622 |
|
|
*) |
2623 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2624 |
|
|
ac_dummy="$PATH" |
2625 |
|
|
for ac_dir in $ac_dummy; do |
2626 |
|
|
test -z "$ac_dir" && ac_dir=. |
2627 |
|
|
if test -f $ac_dir/$ac_word; then |
2628 |
|
|
ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word" |
2629 |
|
|
break |
2630 |
|
|
fi |
2631 |
|
|
done |
2632 |
|
|
IFS="$ac_save_ifs" |
2633 |
|
|
test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" |
2634 |
|
|
;; |
2635 |
|
|
esac |
2636 |
|
|
fi |
2637 |
|
|
ESD_CONFIG="$ac_cv_path_ESD_CONFIG" |
2638 |
|
|
if test -n "$ESD_CONFIG"; then |
2639 |
|
|
echo "$ac_t""$ESD_CONFIG" 1>&6 |
2640 |
|
|
else |
2641 |
|
|
echo "$ac_t""no" 1>&6 |
2642 |
cebix |
1.1 |
fi |
2643 |
|
|
|
2644 |
cebix |
1.9 |
min_esd_version=0.2.8 |
2645 |
|
|
echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6 |
2646 |
cebix |
1.12 |
echo "configure:2647: checking for ESD - version >= $min_esd_version" >&5 |
2647 |
cebix |
1.9 |
no_esd="" |
2648 |
|
|
if test "$ESD_CONFIG" = "no" ; then |
2649 |
|
|
no_esd=yes |
2650 |
|
|
else |
2651 |
|
|
ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` |
2652 |
|
|
ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` |
2653 |
|
|
|
2654 |
|
|
esd_major_version=`$ESD_CONFIG $esd_args --version | \ |
2655 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
2656 |
|
|
esd_minor_version=`$ESD_CONFIG $esd_args --version | \ |
2657 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
2658 |
|
|
esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ |
2659 |
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
2660 |
|
|
if test "x$enable_esdtest" = "xyes" ; then |
2661 |
|
|
ac_save_CFLAGS="$CFLAGS" |
2662 |
|
|
ac_save_LIBS="$LIBS" |
2663 |
|
|
CFLAGS="$CFLAGS $ESD_CFLAGS" |
2664 |
|
|
LIBS="$LIBS $ESD_LIBS" |
2665 |
|
|
rm -f conf.esdtest |
2666 |
|
|
if test "$cross_compiling" = yes; then |
2667 |
|
|
echo $ac_n "cross compiling; assumed OK... $ac_c" |
2668 |
cebix |
1.1 |
else |
2669 |
|
|
cat > conftest.$ac_ext <<EOF |
2670 |
cebix |
1.12 |
#line 2671 "configure" |
2671 |
cebix |
1.1 |
#include "confdefs.h" |
2672 |
|
|
|
2673 |
cebix |
1.9 |
#include <stdio.h> |
2674 |
|
|
#include <stdlib.h> |
2675 |
|
|
#include <string.h> |
2676 |
|
|
#include <esd.h> |
2677 |
|
|
|
2678 |
|
|
char* |
2679 |
|
|
my_strdup (char *str) |
2680 |
|
|
{ |
2681 |
|
|
char *new_str; |
2682 |
|
|
|
2683 |
|
|
if (str) |
2684 |
|
|
{ |
2685 |
|
|
new_str = malloc ((strlen (str) + 1) * sizeof(char)); |
2686 |
|
|
strcpy (new_str, str); |
2687 |
|
|
} |
2688 |
|
|
else |
2689 |
|
|
new_str = NULL; |
2690 |
|
|
|
2691 |
|
|
return new_str; |
2692 |
|
|
} |
2693 |
|
|
|
2694 |
|
|
int main () |
2695 |
|
|
{ |
2696 |
|
|
int major, minor, micro; |
2697 |
|
|
char *tmp_version; |
2698 |
|
|
|
2699 |
|
|
system ("touch conf.esdtest"); |
2700 |
|
|
|
2701 |
|
|
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
2702 |
|
|
tmp_version = my_strdup("$min_esd_version"); |
2703 |
|
|
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
2704 |
|
|
printf("%s, bad version string\n", "$min_esd_version"); |
2705 |
|
|
exit(1); |
2706 |
|
|
} |
2707 |
|
|
|
2708 |
|
|
if (($esd_major_version > major) || |
2709 |
|
|
(($esd_major_version == major) && ($esd_minor_version > minor)) || |
2710 |
|
|
(($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) |
2711 |
|
|
{ |
2712 |
|
|
return 0; |
2713 |
|
|
} |
2714 |
|
|
else |
2715 |
|
|
{ |
2716 |
|
|
printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); |
2717 |
|
|
printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); |
2718 |
|
|
printf("*** best to upgrade to the required version.\n"); |
2719 |
|
|
printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); |
2720 |
|
|
printf("*** to point to the correct copy of esd-config, and remove the file\n"); |
2721 |
|
|
printf("*** config.cache before re-running configure\n"); |
2722 |
|
|
return 1; |
2723 |
|
|
} |
2724 |
|
|
} |
2725 |
cebix |
1.1 |
|
2726 |
|
|
|
2727 |
|
|
EOF |
2728 |
cebix |
1.12 |
if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2729 |
cebix |
1.9 |
then |
2730 |
|
|
: |
2731 |
cebix |
1.1 |
else |
2732 |
|
|
echo "configure: failed program was:" >&5 |
2733 |
|
|
cat conftest.$ac_ext >&5 |
2734 |
cebix |
1.9 |
rm -fr conftest* |
2735 |
|
|
no_esd=yes |
2736 |
cebix |
1.1 |
fi |
2737 |
cebix |
1.9 |
rm -fr conftest* |
2738 |
cebix |
1.1 |
fi |
2739 |
|
|
|
2740 |
cebix |
1.9 |
CFLAGS="$ac_save_CFLAGS" |
2741 |
|
|
LIBS="$ac_save_LIBS" |
2742 |
|
|
fi |
2743 |
|
|
fi |
2744 |
|
|
if test "x$no_esd" = x ; then |
2745 |
|
|
echo "$ac_t""yes" 1>&6 |
2746 |
|
|
|
2747 |
|
|
DEFINES="$DEFINES -DENABLE_ESD=1" |
2748 |
|
|
CFLAGS="$CFLAGS $ESD_CFLAGS" |
2749 |
|
|
CXXFLAGS="$CXXFLAGS $ESD_CFLAGS" |
2750 |
|
|
LIBS="$LIBS $ESD_LIBS" |
2751 |
|
|
|
2752 |
|
|
else |
2753 |
|
|
echo "$ac_t""no" 1>&6 |
2754 |
|
|
if test "$ESD_CONFIG" = "no" ; then |
2755 |
|
|
echo "*** The esd-config script installed by ESD could not be found" |
2756 |
|
|
echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" |
2757 |
|
|
echo "*** your path, or set the ESD_CONFIG environment variable to the" |
2758 |
|
|
echo "*** full path to esd-config." |
2759 |
|
|
else |
2760 |
|
|
if test -f conf.esdtest ; then |
2761 |
|
|
: |
2762 |
|
|
else |
2763 |
|
|
echo "*** Could not run ESD test program, checking why..." |
2764 |
|
|
CFLAGS="$CFLAGS $ESD_CFLAGS" |
2765 |
|
|
LIBS="$LIBS $ESD_LIBS" |
2766 |
|
|
cat > conftest.$ac_ext <<EOF |
2767 |
cebix |
1.12 |
#line 2768 "configure" |
2768 |
cebix |
1.9 |
#include "confdefs.h" |
2769 |
cebix |
1.1 |
|
2770 |
cebix |
1.9 |
#include <stdio.h> |
2771 |
|
|
#include <esd.h> |
2772 |
cebix |
1.1 |
|
2773 |
|
|
int main() { |
2774 |
cebix |
1.9 |
return 0; |
2775 |
cebix |
1.1 |
; return 0; } |
2776 |
|
|
EOF |
2777 |
cebix |
1.12 |
if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2778 |
cebix |
1.1 |
rm -rf conftest* |
2779 |
cebix |
1.9 |
echo "*** The test program compiled, but did not run. This usually means" |
2780 |
|
|
echo "*** that the run-time linker is not finding ESD or finding the wrong" |
2781 |
|
|
echo "*** version of ESD. If it is not finding ESD, you'll need to set your" |
2782 |
|
|
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
2783 |
|
|
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
2784 |
|
|
echo "*** is required on your system" |
2785 |
|
|
echo "***" |
2786 |
|
|
echo "*** If you have an old version installed, it is best to remove it, although" |
2787 |
|
|
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
2788 |
cebix |
1.1 |
else |
2789 |
|
|
echo "configure: failed program was:" >&5 |
2790 |
|
|
cat conftest.$ac_ext >&5 |
2791 |
|
|
rm -rf conftest* |
2792 |
cebix |
1.9 |
echo "*** The test program failed to compile or link. See the file config.log for the" |
2793 |
|
|
echo "*** exact error that occured. This usually means ESD was incorrectly installed" |
2794 |
|
|
echo "*** or that you have moved ESD since it was installed. In the latter case, you" |
2795 |
|
|
echo "*** may want to edit the esd-config script: $ESD_CONFIG" |
2796 |
cebix |
1.1 |
fi |
2797 |
|
|
rm -f conftest* |
2798 |
cebix |
1.9 |
CFLAGS="$ac_save_CFLAGS" |
2799 |
|
|
LIBS="$ac_save_LIBS" |
2800 |
|
|
fi |
2801 |
|
|
fi |
2802 |
|
|
ESD_CFLAGS="" |
2803 |
|
|
ESD_LIBS="" |
2804 |
|
|
|
2805 |
|
|
echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2 |
2806 |
|
|
WANT_ESD=no |
2807 |
|
|
|
2808 |
|
|
fi |
2809 |
|
|
|
2810 |
|
|
|
2811 |
|
|
rm -f conf.esdtest |
2812 |
cebix |
1.1 |
|
2813 |
|
|
fi |
2814 |
|
|
|
2815 |
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2816 |
cebix |
1.12 |
echo "configure:2817: checking for ANSI C header files" >&5 |
2817 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2818 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2819 |
|
|
else |
2820 |
|
|
cat > conftest.$ac_ext <<EOF |
2821 |
cebix |
1.12 |
#line 2822 "configure" |
2822 |
cebix |
1.1 |
#include "confdefs.h" |
2823 |
|
|
#include <stdlib.h> |
2824 |
|
|
#include <stdarg.h> |
2825 |
|
|
#include <string.h> |
2826 |
|
|
#include <float.h> |
2827 |
|
|
EOF |
2828 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2829 |
cebix |
1.12 |
{ (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2830 |
cebix |
1.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2831 |
|
|
if test -z "$ac_err"; then |
2832 |
|
|
rm -rf conftest* |
2833 |
|
|
ac_cv_header_stdc=yes |
2834 |
|
|
else |
2835 |
|
|
echo "$ac_err" >&5 |
2836 |
|
|
echo "configure: failed program was:" >&5 |
2837 |
|
|
cat conftest.$ac_ext >&5 |
2838 |
|
|
rm -rf conftest* |
2839 |
|
|
ac_cv_header_stdc=no |
2840 |
|
|
fi |
2841 |
|
|
rm -f conftest* |
2842 |
|
|
|
2843 |
|
|
if test $ac_cv_header_stdc = yes; then |
2844 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2845 |
|
|
cat > conftest.$ac_ext <<EOF |
2846 |
cebix |
1.12 |
#line 2847 "configure" |
2847 |
cebix |
1.1 |
#include "confdefs.h" |
2848 |
|
|
#include <string.h> |
2849 |
|
|
EOF |
2850 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2851 |
|
|
egrep "memchr" >/dev/null 2>&1; then |
2852 |
|
|
: |
2853 |
|
|
else |
2854 |
|
|
rm -rf conftest* |
2855 |
|
|
ac_cv_header_stdc=no |
2856 |
|
|
fi |
2857 |
|
|
rm -f conftest* |
2858 |
|
|
|
2859 |
|
|
fi |
2860 |
|
|
|
2861 |
|
|
if test $ac_cv_header_stdc = yes; then |
2862 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2863 |
|
|
cat > conftest.$ac_ext <<EOF |
2864 |
cebix |
1.12 |
#line 2865 "configure" |
2865 |
cebix |
1.1 |
#include "confdefs.h" |
2866 |
|
|
#include <stdlib.h> |
2867 |
|
|
EOF |
2868 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2869 |
|
|
egrep "free" >/dev/null 2>&1; then |
2870 |
|
|
: |
2871 |
|
|
else |
2872 |
|
|
rm -rf conftest* |
2873 |
|
|
ac_cv_header_stdc=no |
2874 |
|
|
fi |
2875 |
|
|
rm -f conftest* |
2876 |
|
|
|
2877 |
|
|
fi |
2878 |
|
|
|
2879 |
|
|
if test $ac_cv_header_stdc = yes; then |
2880 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2881 |
|
|
if test "$cross_compiling" = yes; then |
2882 |
|
|
: |
2883 |
|
|
else |
2884 |
|
|
cat > conftest.$ac_ext <<EOF |
2885 |
cebix |
1.12 |
#line 2886 "configure" |
2886 |
cebix |
1.1 |
#include "confdefs.h" |
2887 |
|
|
#include <ctype.h> |
2888 |
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2889 |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2890 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2891 |
|
|
int main () { int i; for (i = 0; i < 256; i++) |
2892 |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2893 |
|
|
exit (0); } |
2894 |
|
|
|
2895 |
|
|
EOF |
2896 |
cebix |
1.12 |
if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2897 |
cebix |
1.1 |
then |
2898 |
|
|
: |
2899 |
|
|
else |
2900 |
|
|
echo "configure: failed program was:" >&5 |
2901 |
|
|
cat conftest.$ac_ext >&5 |
2902 |
|
|
rm -fr conftest* |
2903 |
|
|
ac_cv_header_stdc=no |
2904 |
|
|
fi |
2905 |
|
|
rm -fr conftest* |
2906 |
|
|
fi |
2907 |
|
|
|
2908 |
|
|
fi |
2909 |
|
|
fi |
2910 |
|
|
|
2911 |
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
2912 |
|
|
if test $ac_cv_header_stdc = yes; then |
2913 |
|
|
cat >> confdefs.h <<\EOF |
2914 |
|
|
#define STDC_HEADERS 1 |
2915 |
|
|
EOF |
2916 |
|
|
|
2917 |
|
|
fi |
2918 |
|
|
|
2919 |
|
|
for ac_hdr in unistd.h fcntl.h sys/time.h |
2920 |
|
|
do |
2921 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2922 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2923 |
cebix |
1.12 |
echo "configure:2924: checking for $ac_hdr" >&5 |
2924 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2925 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2926 |
|
|
else |
2927 |
|
|
cat > conftest.$ac_ext <<EOF |
2928 |
cebix |
1.12 |
#line 2929 "configure" |
2929 |
cebix |
1.1 |
#include "confdefs.h" |
2930 |
|
|
#include <$ac_hdr> |
2931 |
|
|
EOF |
2932 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2933 |
cebix |
1.12 |
{ (eval echo configure:2934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2934 |
cebix |
1.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2935 |
|
|
if test -z "$ac_err"; then |
2936 |
|
|
rm -rf conftest* |
2937 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
2938 |
|
|
else |
2939 |
|
|
echo "$ac_err" >&5 |
2940 |
|
|
echo "configure: failed program was:" >&5 |
2941 |
|
|
cat conftest.$ac_ext >&5 |
2942 |
|
|
rm -rf conftest* |
2943 |
|
|
eval "ac_cv_header_$ac_safe=no" |
2944 |
|
|
fi |
2945 |
|
|
rm -f conftest* |
2946 |
|
|
fi |
2947 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
2948 |
|
|
echo "$ac_t""yes" 1>&6 |
2949 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2950 |
|
|
cat >> confdefs.h <<EOF |
2951 |
|
|
#define $ac_tr_hdr 1 |
2952 |
|
|
EOF |
2953 |
|
|
|
2954 |
|
|
else |
2955 |
|
|
echo "$ac_t""no" 1>&6 |
2956 |
|
|
fi |
2957 |
|
|
done |
2958 |
|
|
|
2959 |
|
|
|
2960 |
|
|
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
2961 |
cebix |
1.12 |
echo "configure:2962: checking whether byte ordering is bigendian" >&5 |
2962 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
2963 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2964 |
|
|
else |
2965 |
|
|
ac_cv_c_bigendian=unknown |
2966 |
|
|
# See if sys/param.h defines the BYTE_ORDER macro. |
2967 |
|
|
cat > conftest.$ac_ext <<EOF |
2968 |
cebix |
1.12 |
#line 2969 "configure" |
2969 |
cebix |
1.1 |
#include "confdefs.h" |
2970 |
|
|
#include <sys/types.h> |
2971 |
|
|
#include <sys/param.h> |
2972 |
|
|
int main() { |
2973 |
|
|
|
2974 |
|
|
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
2975 |
|
|
bogus endian macros |
2976 |
|
|
#endif |
2977 |
|
|
; return 0; } |
2978 |
|
|
EOF |
2979 |
cebix |
1.12 |
if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2980 |
cebix |
1.1 |
rm -rf conftest* |
2981 |
|
|
# It does; now see whether it defined to BIG_ENDIAN or not. |
2982 |
|
|
cat > conftest.$ac_ext <<EOF |
2983 |
cebix |
1.12 |
#line 2984 "configure" |
2984 |
cebix |
1.1 |
#include "confdefs.h" |
2985 |
|
|
#include <sys/types.h> |
2986 |
|
|
#include <sys/param.h> |
2987 |
|
|
int main() { |
2988 |
|
|
|
2989 |
|
|
#if BYTE_ORDER != BIG_ENDIAN |
2990 |
|
|
not big endian |
2991 |
|
|
#endif |
2992 |
|
|
; return 0; } |
2993 |
|
|
EOF |
2994 |
cebix |
1.12 |
if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2995 |
cebix |
1.1 |
rm -rf conftest* |
2996 |
|
|
ac_cv_c_bigendian=yes |
2997 |
|
|
else |
2998 |
|
|
echo "configure: failed program was:" >&5 |
2999 |
|
|
cat conftest.$ac_ext >&5 |
3000 |
|
|
rm -rf conftest* |
3001 |
|
|
ac_cv_c_bigendian=no |
3002 |
|
|
fi |
3003 |
|
|
rm -f conftest* |
3004 |
|
|
else |
3005 |
|
|
echo "configure: failed program was:" >&5 |
3006 |
|
|
cat conftest.$ac_ext >&5 |
3007 |
|
|
fi |
3008 |
|
|
rm -f conftest* |
3009 |
|
|
if test $ac_cv_c_bigendian = unknown; then |
3010 |
|
|
if test "$cross_compiling" = yes; then |
3011 |
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
3012 |
|
|
else |
3013 |
|
|
cat > conftest.$ac_ext <<EOF |
3014 |
cebix |
1.12 |
#line 3015 "configure" |
3015 |
cebix |
1.1 |
#include "confdefs.h" |
3016 |
|
|
main () { |
3017 |
|
|
/* Are we little or big endian? From Harbison&Steele. */ |
3018 |
|
|
union |
3019 |
|
|
{ |
3020 |
|
|
long l; |
3021 |
|
|
char c[sizeof (long)]; |
3022 |
|
|
} u; |
3023 |
|
|
u.l = 1; |
3024 |
|
|
exit (u.c[sizeof (long) - 1] == 1); |
3025 |
|
|
} |
3026 |
|
|
EOF |
3027 |
cebix |
1.12 |
if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3028 |
cebix |
1.1 |
then |
3029 |
|
|
ac_cv_c_bigendian=no |
3030 |
|
|
else |
3031 |
|
|
echo "configure: failed program was:" >&5 |
3032 |
|
|
cat conftest.$ac_ext >&5 |
3033 |
|
|
rm -fr conftest* |
3034 |
|
|
ac_cv_c_bigendian=yes |
3035 |
|
|
fi |
3036 |
|
|
rm -fr conftest* |
3037 |
|
|
fi |
3038 |
|
|
|
3039 |
|
|
fi |
3040 |
|
|
fi |
3041 |
|
|
|
3042 |
|
|
echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
3043 |
|
|
if test $ac_cv_c_bigendian = yes; then |
3044 |
|
|
cat >> confdefs.h <<\EOF |
3045 |
|
|
#define WORDS_BIGENDIAN 1 |
3046 |
|
|
EOF |
3047 |
|
|
|
3048 |
|
|
fi |
3049 |
|
|
|
3050 |
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3051 |
cebix |
1.12 |
echo "configure:3052: checking for working const" >&5 |
3052 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3053 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3054 |
|
|
else |
3055 |
|
|
cat > conftest.$ac_ext <<EOF |
3056 |
cebix |
1.12 |
#line 3057 "configure" |
3057 |
cebix |
1.1 |
#include "confdefs.h" |
3058 |
|
|
|
3059 |
|
|
int main() { |
3060 |
|
|
|
3061 |
|
|
/* Ultrix mips cc rejects this. */ |
3062 |
|
|
typedef int charset[2]; const charset x; |
3063 |
|
|
/* SunOS 4.1.1 cc rejects this. */ |
3064 |
|
|
char const *const *ccp; |
3065 |
|
|
char **p; |
3066 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */ |
3067 |
|
|
struct point {int x, y;}; |
3068 |
|
|
static struct point const zero = {0,0}; |
3069 |
|
|
/* AIX XL C 1.02.0.0 rejects this. |
3070 |
|
|
It does not let you subtract one const X* pointer from another in an arm |
3071 |
|
|
of an if-expression whose if-part is not a constant expression */ |
3072 |
|
|
const char *g = "string"; |
3073 |
|
|
ccp = &g + (g ? g-g : 0); |
3074 |
|
|
/* HPUX 7.0 cc rejects these. */ |
3075 |
|
|
++ccp; |
3076 |
|
|
p = (char**) ccp; |
3077 |
|
|
ccp = (char const *const *) p; |
3078 |
|
|
{ /* SCO 3.2v4 cc rejects this. */ |
3079 |
|
|
char *t; |
3080 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0; |
3081 |
|
|
|
3082 |
|
|
*t++ = 0; |
3083 |
|
|
} |
3084 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
3085 |
|
|
int x[] = {25, 17}; |
3086 |
|
|
const int *foo = &x[0]; |
3087 |
|
|
++foo; |
3088 |
|
|
} |
3089 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
3090 |
|
|
typedef const int *iptr; |
3091 |
|
|
iptr p = 0; |
3092 |
|
|
++p; |
3093 |
|
|
} |
3094 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying |
3095 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
3096 |
|
|
struct s { int j; const int *ap[3]; }; |
3097 |
|
|
struct s *b; b->j = 5; |
3098 |
|
|
} |
3099 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
3100 |
|
|
const int foo = 10; |
3101 |
|
|
} |
3102 |
|
|
|
3103 |
|
|
; return 0; } |
3104 |
|
|
EOF |
3105 |
cebix |
1.12 |
if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3106 |
cebix |
1.1 |
rm -rf conftest* |
3107 |
|
|
ac_cv_c_const=yes |
3108 |
|
|
else |
3109 |
|
|
echo "configure: failed program was:" >&5 |
3110 |
|
|
cat conftest.$ac_ext >&5 |
3111 |
|
|
rm -rf conftest* |
3112 |
|
|
ac_cv_c_const=no |
3113 |
|
|
fi |
3114 |
|
|
rm -f conftest* |
3115 |
|
|
fi |
3116 |
|
|
|
3117 |
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6 |
3118 |
|
|
if test $ac_cv_c_const = no; then |
3119 |
|
|
cat >> confdefs.h <<\EOF |
3120 |
|
|
#define const |
3121 |
|
|
EOF |
3122 |
|
|
|
3123 |
|
|
fi |
3124 |
|
|
|
3125 |
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3126 |
cebix |
1.12 |
echo "configure:3127: checking for inline" >&5 |
3127 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
3128 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3129 |
|
|
else |
3130 |
|
|
ac_cv_c_inline=no |
3131 |
|
|
for ac_kw in inline __inline__ __inline; do |
3132 |
|
|
cat > conftest.$ac_ext <<EOF |
3133 |
cebix |
1.12 |
#line 3134 "configure" |
3134 |
cebix |
1.1 |
#include "confdefs.h" |
3135 |
|
|
|
3136 |
|
|
int main() { |
3137 |
|
|
} $ac_kw foo() { |
3138 |
|
|
; return 0; } |
3139 |
|
|
EOF |
3140 |
cebix |
1.12 |
if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3141 |
cebix |
1.1 |
rm -rf conftest* |
3142 |
|
|
ac_cv_c_inline=$ac_kw; break |
3143 |
|
|
else |
3144 |
|
|
echo "configure: failed program was:" >&5 |
3145 |
|
|
cat conftest.$ac_ext >&5 |
3146 |
|
|
fi |
3147 |
|
|
rm -f conftest* |
3148 |
|
|
done |
3149 |
|
|
|
3150 |
|
|
fi |
3151 |
|
|
|
3152 |
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6 |
3153 |
|
|
case "$ac_cv_c_inline" in |
3154 |
|
|
inline | yes) ;; |
3155 |
|
|
no) cat >> confdefs.h <<\EOF |
3156 |
|
|
#define inline |
3157 |
|
|
EOF |
3158 |
|
|
;; |
3159 |
|
|
*) cat >> confdefs.h <<EOF |
3160 |
|
|
#define inline $ac_cv_c_inline |
3161 |
|
|
EOF |
3162 |
|
|
;; |
3163 |
|
|
esac |
3164 |
|
|
|
3165 |
|
|
echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3166 |
cebix |
1.12 |
echo "configure:3167: checking size of short" >&5 |
3167 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
3168 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3169 |
|
|
else |
3170 |
|
|
if test "$cross_compiling" = yes; then |
3171 |
|
|
ac_cv_sizeof_short=2 |
3172 |
|
|
else |
3173 |
|
|
cat > conftest.$ac_ext <<EOF |
3174 |
cebix |
1.12 |
#line 3175 "configure" |
3175 |
cebix |
1.1 |
#include "confdefs.h" |
3176 |
|
|
#include <stdio.h> |
3177 |
|
|
main() |
3178 |
|
|
{ |
3179 |
|
|
FILE *f=fopen("conftestval", "w"); |
3180 |
|
|
if (!f) exit(1); |
3181 |
|
|
fprintf(f, "%d\n", sizeof(short)); |
3182 |
|
|
exit(0); |
3183 |
|
|
} |
3184 |
|
|
EOF |
3185 |
cebix |
1.12 |
if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3186 |
cebix |
1.1 |
then |
3187 |
|
|
ac_cv_sizeof_short=`cat conftestval` |
3188 |
|
|
else |
3189 |
|
|
echo "configure: failed program was:" >&5 |
3190 |
|
|
cat conftest.$ac_ext >&5 |
3191 |
|
|
rm -fr conftest* |
3192 |
|
|
ac_cv_sizeof_short=0 |
3193 |
|
|
fi |
3194 |
|
|
rm -fr conftest* |
3195 |
|
|
fi |
3196 |
|
|
|
3197 |
|
|
fi |
3198 |
|
|
echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
3199 |
|
|
cat >> confdefs.h <<EOF |
3200 |
|
|
#define SIZEOF_SHORT $ac_cv_sizeof_short |
3201 |
|
|
EOF |
3202 |
|
|
|
3203 |
|
|
|
3204 |
|
|
echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3205 |
cebix |
1.12 |
echo "configure:3206: checking size of int" >&5 |
3206 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
3207 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3208 |
|
|
else |
3209 |
|
|
if test "$cross_compiling" = yes; then |
3210 |
|
|
ac_cv_sizeof_int=4 |
3211 |
|
|
else |
3212 |
|
|
cat > conftest.$ac_ext <<EOF |
3213 |
cebix |
1.12 |
#line 3214 "configure" |
3214 |
cebix |
1.1 |
#include "confdefs.h" |
3215 |
|
|
#include <stdio.h> |
3216 |
|
|
main() |
3217 |
|
|
{ |
3218 |
|
|
FILE *f=fopen("conftestval", "w"); |
3219 |
|
|
if (!f) exit(1); |
3220 |
|
|
fprintf(f, "%d\n", sizeof(int)); |
3221 |
|
|
exit(0); |
3222 |
|
|
} |
3223 |
|
|
EOF |
3224 |
cebix |
1.12 |
if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3225 |
cebix |
1.1 |
then |
3226 |
|
|
ac_cv_sizeof_int=`cat conftestval` |
3227 |
|
|
else |
3228 |
|
|
echo "configure: failed program was:" >&5 |
3229 |
|
|
cat conftest.$ac_ext >&5 |
3230 |
|
|
rm -fr conftest* |
3231 |
|
|
ac_cv_sizeof_int=0 |
3232 |
|
|
fi |
3233 |
|
|
rm -fr conftest* |
3234 |
|
|
fi |
3235 |
|
|
|
3236 |
|
|
fi |
3237 |
|
|
echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
3238 |
|
|
cat >> confdefs.h <<EOF |
3239 |
|
|
#define SIZEOF_INT $ac_cv_sizeof_int |
3240 |
|
|
EOF |
3241 |
|
|
|
3242 |
|
|
|
3243 |
|
|
echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3244 |
cebix |
1.12 |
echo "configure:3245: checking size of long" >&5 |
3245 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3246 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3247 |
|
|
else |
3248 |
|
|
if test "$cross_compiling" = yes; then |
3249 |
|
|
ac_cv_sizeof_long=4 |
3250 |
|
|
else |
3251 |
|
|
cat > conftest.$ac_ext <<EOF |
3252 |
cebix |
1.12 |
#line 3253 "configure" |
3253 |
cebix |
1.1 |
#include "confdefs.h" |
3254 |
|
|
#include <stdio.h> |
3255 |
|
|
main() |
3256 |
|
|
{ |
3257 |
|
|
FILE *f=fopen("conftestval", "w"); |
3258 |
|
|
if (!f) exit(1); |
3259 |
|
|
fprintf(f, "%d\n", sizeof(long)); |
3260 |
|
|
exit(0); |
3261 |
|
|
} |
3262 |
|
|
EOF |
3263 |
cebix |
1.12 |
if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3264 |
cebix |
1.1 |
then |
3265 |
|
|
ac_cv_sizeof_long=`cat conftestval` |
3266 |
|
|
else |
3267 |
|
|
echo "configure: failed program was:" >&5 |
3268 |
|
|
cat conftest.$ac_ext >&5 |
3269 |
|
|
rm -fr conftest* |
3270 |
|
|
ac_cv_sizeof_long=0 |
3271 |
|
|
fi |
3272 |
|
|
rm -fr conftest* |
3273 |
|
|
fi |
3274 |
|
|
|
3275 |
|
|
fi |
3276 |
|
|
echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
3277 |
|
|
cat >> confdefs.h <<EOF |
3278 |
|
|
#define SIZEOF_LONG $ac_cv_sizeof_long |
3279 |
|
|
EOF |
3280 |
|
|
|
3281 |
|
|
|
3282 |
|
|
echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3283 |
cebix |
1.12 |
echo "configure:3284: checking size of long long" >&5 |
3284 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
3285 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3286 |
|
|
else |
3287 |
|
|
if test "$cross_compiling" = yes; then |
3288 |
|
|
ac_cv_sizeof_long_long=8 |
3289 |
|
|
else |
3290 |
|
|
cat > conftest.$ac_ext <<EOF |
3291 |
cebix |
1.12 |
#line 3292 "configure" |
3292 |
cebix |
1.1 |
#include "confdefs.h" |
3293 |
|
|
#include <stdio.h> |
3294 |
|
|
main() |
3295 |
|
|
{ |
3296 |
|
|
FILE *f=fopen("conftestval", "w"); |
3297 |
|
|
if (!f) exit(1); |
3298 |
|
|
fprintf(f, "%d\n", sizeof(long long)); |
3299 |
|
|
exit(0); |
3300 |
|
|
} |
3301 |
|
|
EOF |
3302 |
cebix |
1.12 |
if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3303 |
cebix |
1.1 |
then |
3304 |
|
|
ac_cv_sizeof_long_long=`cat conftestval` |
3305 |
|
|
else |
3306 |
|
|
echo "configure: failed program was:" >&5 |
3307 |
|
|
cat conftest.$ac_ext >&5 |
3308 |
|
|
rm -fr conftest* |
3309 |
|
|
ac_cv_sizeof_long_long=0 |
3310 |
|
|
fi |
3311 |
|
|
rm -fr conftest* |
3312 |
|
|
fi |
3313 |
|
|
|
3314 |
|
|
fi |
3315 |
|
|
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
3316 |
|
|
cat >> confdefs.h <<EOF |
3317 |
|
|
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
3318 |
|
|
EOF |
3319 |
|
|
|
3320 |
|
|
|
3321 |
|
|
echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3322 |
cebix |
1.12 |
echo "configure:3323: checking for off_t" >&5 |
3323 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
3324 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3325 |
|
|
else |
3326 |
|
|
cat > conftest.$ac_ext <<EOF |
3327 |
cebix |
1.12 |
#line 3328 "configure" |
3328 |
cebix |
1.1 |
#include "confdefs.h" |
3329 |
|
|
#include <sys/types.h> |
3330 |
|
|
#if STDC_HEADERS |
3331 |
|
|
#include <stdlib.h> |
3332 |
|
|
#include <stddef.h> |
3333 |
|
|
#endif |
3334 |
|
|
EOF |
3335 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3336 |
|
|
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
3337 |
|
|
rm -rf conftest* |
3338 |
|
|
ac_cv_type_off_t=yes |
3339 |
|
|
else |
3340 |
|
|
rm -rf conftest* |
3341 |
|
|
ac_cv_type_off_t=no |
3342 |
|
|
fi |
3343 |
|
|
rm -f conftest* |
3344 |
|
|
|
3345 |
|
|
fi |
3346 |
|
|
echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
3347 |
|
|
if test $ac_cv_type_off_t = no; then |
3348 |
|
|
cat >> confdefs.h <<\EOF |
3349 |
|
|
#define off_t long |
3350 |
|
|
EOF |
3351 |
|
|
|
3352 |
|
|
fi |
3353 |
|
|
|
3354 |
|
|
echo $ac_n "checking for loff_t""... $ac_c" 1>&6 |
3355 |
cebix |
1.12 |
echo "configure:3356: checking for loff_t" >&5 |
3356 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then |
3357 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3358 |
|
|
else |
3359 |
|
|
cat > conftest.$ac_ext <<EOF |
3360 |
cebix |
1.12 |
#line 3361 "configure" |
3361 |
cebix |
1.1 |
#include "confdefs.h" |
3362 |
|
|
#include <sys/types.h> |
3363 |
|
|
#if STDC_HEADERS |
3364 |
|
|
#include <stdlib.h> |
3365 |
|
|
#include <stddef.h> |
3366 |
|
|
#endif |
3367 |
|
|
EOF |
3368 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3369 |
|
|
egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
3370 |
|
|
rm -rf conftest* |
3371 |
|
|
ac_cv_type_loff_t=yes |
3372 |
|
|
else |
3373 |
|
|
rm -rf conftest* |
3374 |
|
|
ac_cv_type_loff_t=no |
3375 |
|
|
fi |
3376 |
|
|
rm -f conftest* |
3377 |
|
|
|
3378 |
|
|
fi |
3379 |
|
|
echo "$ac_t""$ac_cv_type_loff_t" 1>&6 |
3380 |
|
|
if test $ac_cv_type_loff_t = no; then |
3381 |
|
|
cat >> confdefs.h <<\EOF |
3382 |
|
|
#define loff_t off_t |
3383 |
|
|
EOF |
3384 |
|
|
|
3385 |
|
|
fi |
3386 |
|
|
|
3387 |
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3388 |
cebix |
1.12 |
echo "configure:3389: checking for size_t" >&5 |
3389 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
3390 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3391 |
|
|
else |
3392 |
|
|
cat > conftest.$ac_ext <<EOF |
3393 |
cebix |
1.12 |
#line 3394 "configure" |
3394 |
cebix |
1.1 |
#include "confdefs.h" |
3395 |
|
|
#include <sys/types.h> |
3396 |
|
|
#if STDC_HEADERS |
3397 |
|
|
#include <stdlib.h> |
3398 |
|
|
#include <stddef.h> |
3399 |
|
|
#endif |
3400 |
|
|
EOF |
3401 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3402 |
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
3403 |
|
|
rm -rf conftest* |
3404 |
|
|
ac_cv_type_size_t=yes |
3405 |
|
|
else |
3406 |
|
|
rm -rf conftest* |
3407 |
|
|
ac_cv_type_size_t=no |
3408 |
|
|
fi |
3409 |
|
|
rm -f conftest* |
3410 |
|
|
|
3411 |
|
|
fi |
3412 |
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
3413 |
|
|
if test $ac_cv_type_size_t = no; then |
3414 |
|
|
cat >> confdefs.h <<\EOF |
3415 |
|
|
#define size_t unsigned |
3416 |
|
|
EOF |
3417 |
|
|
|
3418 |
|
|
fi |
3419 |
|
|
|
3420 |
|
|
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
3421 |
cebix |
1.12 |
echo "configure:3422: checking whether time.h and sys/time.h may both be included" >&5 |
3422 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
3423 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3424 |
|
|
else |
3425 |
|
|
cat > conftest.$ac_ext <<EOF |
3426 |
cebix |
1.12 |
#line 3427 "configure" |
3427 |
cebix |
1.1 |
#include "confdefs.h" |
3428 |
|
|
#include <sys/types.h> |
3429 |
|
|
#include <sys/time.h> |
3430 |
|
|
#include <time.h> |
3431 |
|
|
int main() { |
3432 |
|
|
struct tm *tp; |
3433 |
|
|
; return 0; } |
3434 |
|
|
EOF |
3435 |
cebix |
1.12 |
if { (eval echo configure:3436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3436 |
cebix |
1.1 |
rm -rf conftest* |
3437 |
|
|
ac_cv_header_time=yes |
3438 |
|
|
else |
3439 |
|
|
echo "configure: failed program was:" >&5 |
3440 |
|
|
cat conftest.$ac_ext >&5 |
3441 |
|
|
rm -rf conftest* |
3442 |
|
|
ac_cv_header_time=no |
3443 |
|
|
fi |
3444 |
|
|
rm -f conftest* |
3445 |
|
|
fi |
3446 |
|
|
|
3447 |
|
|
echo "$ac_t""$ac_cv_header_time" 1>&6 |
3448 |
|
|
if test $ac_cv_header_time = yes; then |
3449 |
|
|
cat >> confdefs.h <<\EOF |
3450 |
|
|
#define TIME_WITH_SYS_TIME 1 |
3451 |
|
|
EOF |
3452 |
|
|
|
3453 |
|
|
fi |
3454 |
|
|
|
3455 |
|
|
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
3456 |
cebix |
1.12 |
echo "configure:3457: checking whether struct tm is in sys/time.h or time.h" >&5 |
3457 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3458 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3459 |
|
|
else |
3460 |
|
|
cat > conftest.$ac_ext <<EOF |
3461 |
cebix |
1.12 |
#line 3462 "configure" |
3462 |
cebix |
1.1 |
#include "confdefs.h" |
3463 |
|
|
#include <sys/types.h> |
3464 |
|
|
#include <time.h> |
3465 |
|
|
int main() { |
3466 |
|
|
struct tm *tp; tp->tm_sec; |
3467 |
|
|
; return 0; } |
3468 |
|
|
EOF |
3469 |
cebix |
1.12 |
if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3470 |
cebix |
1.1 |
rm -rf conftest* |
3471 |
|
|
ac_cv_struct_tm=time.h |
3472 |
|
|
else |
3473 |
|
|
echo "configure: failed program was:" >&5 |
3474 |
|
|
cat conftest.$ac_ext >&5 |
3475 |
|
|
rm -rf conftest* |
3476 |
|
|
ac_cv_struct_tm=sys/time.h |
3477 |
|
|
fi |
3478 |
|
|
rm -f conftest* |
3479 |
|
|
fi |
3480 |
|
|
|
3481 |
|
|
echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
3482 |
|
|
if test $ac_cv_struct_tm = sys/time.h; then |
3483 |
|
|
cat >> confdefs.h <<\EOF |
3484 |
|
|
#define TM_IN_SYS_TIME 1 |
3485 |
|
|
EOF |
3486 |
|
|
|
3487 |
|
|
fi |
3488 |
|
|
|
3489 |
|
|
|
3490 |
|
|
for ac_func in strdup cfmakeraw |
3491 |
|
|
do |
3492 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3493 |
cebix |
1.12 |
echo "configure:3494: checking for $ac_func" >&5 |
3494 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3495 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3496 |
|
|
else |
3497 |
|
|
cat > conftest.$ac_ext <<EOF |
3498 |
cebix |
1.12 |
#line 3499 "configure" |
3499 |
cebix |
1.1 |
#include "confdefs.h" |
3500 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
3501 |
|
|
which can conflict with char $ac_func(); below. */ |
3502 |
|
|
#include <assert.h> |
3503 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3504 |
|
|
/* We use char because int might match the return type of a gcc2 |
3505 |
|
|
builtin and then its argument prototype would still apply. */ |
3506 |
|
|
char $ac_func(); |
3507 |
|
|
|
3508 |
|
|
int main() { |
3509 |
|
|
|
3510 |
|
|
/* The GNU C library defines this for functions which it implements |
3511 |
|
|
to always fail with ENOSYS. Some functions are actually named |
3512 |
|
|
something starting with __ and the normal name is an alias. */ |
3513 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3514 |
|
|
choke me |
3515 |
|
|
#else |
3516 |
|
|
$ac_func(); |
3517 |
|
|
#endif |
3518 |
|
|
|
3519 |
|
|
; return 0; } |
3520 |
|
|
EOF |
3521 |
cebix |
1.12 |
if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3522 |
cebix |
1.1 |
rm -rf conftest* |
3523 |
|
|
eval "ac_cv_func_$ac_func=yes" |
3524 |
|
|
else |
3525 |
|
|
echo "configure: failed program was:" >&5 |
3526 |
|
|
cat conftest.$ac_ext >&5 |
3527 |
|
|
rm -rf conftest* |
3528 |
|
|
eval "ac_cv_func_$ac_func=no" |
3529 |
|
|
fi |
3530 |
|
|
rm -f conftest* |
3531 |
|
|
fi |
3532 |
|
|
|
3533 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3534 |
|
|
echo "$ac_t""yes" 1>&6 |
3535 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3536 |
|
|
cat >> confdefs.h <<EOF |
3537 |
|
|
#define $ac_tr_func 1 |
3538 |
|
|
EOF |
3539 |
|
|
|
3540 |
|
|
else |
3541 |
|
|
echo "$ac_t""no" 1>&6 |
3542 |
|
|
fi |
3543 |
|
|
done |
3544 |
|
|
|
3545 |
|
|
for ac_func in nanosleep clock_gettime timer_create |
3546 |
|
|
do |
3547 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3548 |
cebix |
1.12 |
echo "configure:3549: checking for $ac_func" >&5 |
3549 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3550 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3551 |
|
|
else |
3552 |
|
|
cat > conftest.$ac_ext <<EOF |
3553 |
cebix |
1.12 |
#line 3554 "configure" |
3554 |
cebix |
1.1 |
#include "confdefs.h" |
3555 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
3556 |
|
|
which can conflict with char $ac_func(); below. */ |
3557 |
|
|
#include <assert.h> |
3558 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3559 |
|
|
/* We use char because int might match the return type of a gcc2 |
3560 |
|
|
builtin and then its argument prototype would still apply. */ |
3561 |
|
|
char $ac_func(); |
3562 |
|
|
|
3563 |
|
|
int main() { |
3564 |
|
|
|
3565 |
|
|
/* The GNU C library defines this for functions which it implements |
3566 |
|
|
to always fail with ENOSYS. Some functions are actually named |
3567 |
|
|
something starting with __ and the normal name is an alias. */ |
3568 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3569 |
|
|
choke me |
3570 |
|
|
#else |
3571 |
|
|
$ac_func(); |
3572 |
|
|
#endif |
3573 |
|
|
|
3574 |
|
|
; return 0; } |
3575 |
|
|
EOF |
3576 |
cebix |
1.12 |
if { (eval echo configure:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3577 |
cebix |
1.9 |
rm -rf conftest* |
3578 |
|
|
eval "ac_cv_func_$ac_func=yes" |
3579 |
|
|
else |
3580 |
|
|
echo "configure: failed program was:" >&5 |
3581 |
|
|
cat conftest.$ac_ext >&5 |
3582 |
|
|
rm -rf conftest* |
3583 |
|
|
eval "ac_cv_func_$ac_func=no" |
3584 |
|
|
fi |
3585 |
|
|
rm -f conftest* |
3586 |
|
|
fi |
3587 |
|
|
|
3588 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3589 |
|
|
echo "$ac_t""yes" 1>&6 |
3590 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3591 |
|
|
cat >> confdefs.h <<EOF |
3592 |
|
|
#define $ac_tr_func 1 |
3593 |
|
|
EOF |
3594 |
|
|
|
3595 |
|
|
else |
3596 |
|
|
echo "$ac_t""no" 1>&6 |
3597 |
|
|
fi |
3598 |
|
|
done |
3599 |
|
|
|
3600 |
|
|
for ac_func in pthread_cancel |
3601 |
|
|
do |
3602 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3603 |
cebix |
1.12 |
echo "configure:3604: checking for $ac_func" >&5 |
3604 |
cebix |
1.9 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3605 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3606 |
|
|
else |
3607 |
|
|
cat > conftest.$ac_ext <<EOF |
3608 |
cebix |
1.12 |
#line 3609 "configure" |
3609 |
cebix |
1.9 |
#include "confdefs.h" |
3610 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
3611 |
|
|
which can conflict with char $ac_func(); below. */ |
3612 |
|
|
#include <assert.h> |
3613 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3614 |
|
|
/* We use char because int might match the return type of a gcc2 |
3615 |
|
|
builtin and then its argument prototype would still apply. */ |
3616 |
|
|
char $ac_func(); |
3617 |
|
|
|
3618 |
|
|
int main() { |
3619 |
|
|
|
3620 |
|
|
/* The GNU C library defines this for functions which it implements |
3621 |
|
|
to always fail with ENOSYS. Some functions are actually named |
3622 |
|
|
something starting with __ and the normal name is an alias. */ |
3623 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3624 |
|
|
choke me |
3625 |
|
|
#else |
3626 |
|
|
$ac_func(); |
3627 |
|
|
#endif |
3628 |
|
|
|
3629 |
|
|
; return 0; } |
3630 |
|
|
EOF |
3631 |
cebix |
1.12 |
if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3632 |
cebix |
1.1 |
rm -rf conftest* |
3633 |
|
|
eval "ac_cv_func_$ac_func=yes" |
3634 |
|
|
else |
3635 |
|
|
echo "configure: failed program was:" >&5 |
3636 |
|
|
cat conftest.$ac_ext >&5 |
3637 |
|
|
rm -rf conftest* |
3638 |
|
|
eval "ac_cv_func_$ac_func=no" |
3639 |
|
|
fi |
3640 |
|
|
rm -f conftest* |
3641 |
|
|
fi |
3642 |
|
|
|
3643 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3644 |
|
|
echo "$ac_t""yes" 1>&6 |
3645 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3646 |
|
|
cat >> confdefs.h <<EOF |
3647 |
|
|
#define $ac_tr_func 1 |
3648 |
|
|
EOF |
3649 |
|
|
|
3650 |
|
|
else |
3651 |
|
|
echo "$ac_t""no" 1>&6 |
3652 |
|
|
fi |
3653 |
|
|
done |
3654 |
|
|
|
3655 |
|
|
|
3656 |
|
|
SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp" |
3657 |
|
|
if MACHINE=`uname -a 2>/dev/null`; then |
3658 |
|
|
case "$MACHINE" in |
3659 |
|
|
Linux*) |
3660 |
cebix |
1.9 |
SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp" |
3661 |
cebix |
1.1 |
;; |
3662 |
|
|
FreeBSD*3.*) |
3663 |
|
|
echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6 |
3664 |
cebix |
1.12 |
echo "configure:3665: checking for cam_open_btl in -lcam" >&5 |
3665 |
cebix |
1.1 |
ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'` |
3666 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3667 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3668 |
|
|
else |
3669 |
|
|
ac_save_LIBS="$LIBS" |
3670 |
|
|
LIBS="-lcam $LIBS" |
3671 |
|
|
cat > conftest.$ac_ext <<EOF |
3672 |
cebix |
1.12 |
#line 3673 "configure" |
3673 |
cebix |
1.1 |
#include "confdefs.h" |
3674 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3675 |
|
|
/* We use char because int might match the return type of a gcc2 |
3676 |
|
|
builtin and then its argument prototype would still apply. */ |
3677 |
|
|
char cam_open_btl(); |
3678 |
|
|
|
3679 |
|
|
int main() { |
3680 |
|
|
cam_open_btl() |
3681 |
|
|
; return 0; } |
3682 |
|
|
EOF |
3683 |
cebix |
1.12 |
if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3684 |
cebix |
1.1 |
rm -rf conftest* |
3685 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3686 |
|
|
else |
3687 |
|
|
echo "configure: failed program was:" >&5 |
3688 |
|
|
cat conftest.$ac_ext >&5 |
3689 |
|
|
rm -rf conftest* |
3690 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
3691 |
|
|
fi |
3692 |
|
|
rm -f conftest* |
3693 |
|
|
LIBS="$ac_save_LIBS" |
3694 |
|
|
|
3695 |
|
|
fi |
3696 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3697 |
|
|
echo "$ac_t""yes" 1>&6 |
3698 |
|
|
HAVE_LIBCAM=yes |
3699 |
|
|
else |
3700 |
|
|
echo "$ac_t""no" 1>&6 |
3701 |
|
|
HAVE_LIBCAM=no |
3702 |
|
|
fi |
3703 |
|
|
|
3704 |
|
|
if [ "x$HAVE_LIBCAM" = "xno" ]; then |
3705 |
|
|
{ echo "configure: error: Cannot find libcam for SCSI management." 1>&2; exit 1; } |
3706 |
|
|
else |
3707 |
|
|
ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'` |
3708 |
|
|
echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6 |
3709 |
cebix |
1.12 |
echo "configure:3710: checking for /sys/cam/cam.h" >&5 |
3710 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3711 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3712 |
|
|
else |
3713 |
|
|
cat > conftest.$ac_ext <<EOF |
3714 |
cebix |
1.12 |
#line 3715 "configure" |
3715 |
cebix |
1.1 |
#include "confdefs.h" |
3716 |
|
|
#include </sys/cam/cam.h> |
3717 |
|
|
EOF |
3718 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3719 |
cebix |
1.12 |
{ (eval echo configure:3720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3720 |
cebix |
1.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3721 |
|
|
if test -z "$ac_err"; then |
3722 |
|
|
rm -rf conftest* |
3723 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
3724 |
|
|
else |
3725 |
|
|
echo "$ac_err" >&5 |
3726 |
|
|
echo "configure: failed program was:" >&5 |
3727 |
|
|
cat conftest.$ac_ext >&5 |
3728 |
|
|
rm -rf conftest* |
3729 |
|
|
eval "ac_cv_header_$ac_safe=no" |
3730 |
|
|
fi |
3731 |
|
|
rm -f conftest* |
3732 |
|
|
fi |
3733 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3734 |
|
|
echo "$ac_t""yes" 1>&6 |
3735 |
|
|
: |
3736 |
|
|
else |
3737 |
|
|
echo "$ac_t""no" 1>&6 |
3738 |
|
|
fi |
3739 |
|
|
|
3740 |
|
|
if [ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]; then |
3741 |
|
|
{ echo "configure: error: Cannot find kernel includes for CAM library." 1>&2; exit 1; } |
3742 |
|
|
fi |
3743 |
cebix |
1.9 |
SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp audio_oss_esd.cpp" |
3744 |
cebix |
1.1 |
CXXFLAGS="$CXXFLAGS -I/sys" |
3745 |
|
|
CFLAGS="$CFLAGS -I/sys" |
3746 |
|
|
LIBS="$LIBS -lcam" |
3747 |
|
|
DEFINES="$DEFINES -DBSD_COMP -DCAM" |
3748 |
|
|
fi |
3749 |
|
|
;; |
3750 |
|
|
FreeBSD*) |
3751 |
|
|
echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6 |
3752 |
cebix |
1.12 |
echo "configure:3753: checking for scsi_open in -lscsi" >&5 |
3753 |
cebix |
1.1 |
ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'` |
3754 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3755 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3756 |
|
|
else |
3757 |
|
|
ac_save_LIBS="$LIBS" |
3758 |
|
|
LIBS="-lscsi $LIBS" |
3759 |
|
|
cat > conftest.$ac_ext <<EOF |
3760 |
cebix |
1.12 |
#line 3761 "configure" |
3761 |
cebix |
1.1 |
#include "confdefs.h" |
3762 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3763 |
|
|
/* We use char because int might match the return type of a gcc2 |
3764 |
|
|
builtin and then its argument prototype would still apply. */ |
3765 |
|
|
char scsi_open(); |
3766 |
|
|
|
3767 |
|
|
int main() { |
3768 |
|
|
scsi_open() |
3769 |
|
|
; return 0; } |
3770 |
|
|
EOF |
3771 |
cebix |
1.12 |
if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3772 |
cebix |
1.1 |
rm -rf conftest* |
3773 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3774 |
|
|
else |
3775 |
|
|
echo "configure: failed program was:" >&5 |
3776 |
|
|
cat conftest.$ac_ext >&5 |
3777 |
|
|
rm -rf conftest* |
3778 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
3779 |
|
|
fi |
3780 |
|
|
rm -f conftest* |
3781 |
|
|
LIBS="$ac_save_LIBS" |
3782 |
|
|
|
3783 |
|
|
fi |
3784 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3785 |
|
|
echo "$ac_t""yes" 1>&6 |
3786 |
|
|
HAVE_LIBSCSI=yes |
3787 |
|
|
else |
3788 |
|
|
echo "$ac_t""no" 1>&6 |
3789 |
|
|
HAVE_LIBSCSI=no |
3790 |
|
|
fi |
3791 |
|
|
|
3792 |
|
|
if [ "x$HAVE_LIBSCSI" = "xno" ]; then |
3793 |
|
|
{ echo "configure: error: Cannot find libscsi for SCSI management." 1>&2; exit 1; } |
3794 |
|
|
else |
3795 |
|
|
ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'` |
3796 |
|
|
echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6 |
3797 |
cebix |
1.12 |
echo "configure:3798: checking for scsi.h sys/scsiio.h" >&5 |
3798 |
cebix |
1.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3799 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3800 |
|
|
else |
3801 |
|
|
cat > conftest.$ac_ext <<EOF |
3802 |
cebix |
1.12 |
#line 3803 "configure" |
3803 |
cebix |
1.1 |
#include "confdefs.h" |
3804 |
|
|
#include <scsi.h sys/scsiio.h> |
3805 |
|
|
EOF |
3806 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3807 |
cebix |
1.12 |
{ (eval echo configure:3808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3808 |
cebix |
1.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3809 |
|
|
if test -z "$ac_err"; then |
3810 |
|
|
rm -rf conftest* |
3811 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
3812 |
|
|
else |
3813 |
|
|
echo "$ac_err" >&5 |
3814 |
|
|
echo "configure: failed program was:" >&5 |
3815 |
|
|
cat conftest.$ac_ext >&5 |
3816 |
|
|
rm -rf conftest* |
3817 |
|
|
eval "ac_cv_header_$ac_safe=no" |
3818 |
|
|
fi |
3819 |
|
|
rm -f conftest* |
3820 |
|
|
fi |
3821 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3822 |
|
|
echo "$ac_t""yes" 1>&6 |
3823 |
|
|
: |
3824 |
|
|
else |
3825 |
|
|
echo "$ac_t""no" 1>&6 |
3826 |
|
|
fi |
3827 |
|
|
|
3828 |
|
|
if [ "x$ac_cv_header_scsi_h" = "xno" ]; then |
3829 |
|
|
{ echo "configure: error: Cannot find includes for the SCSI library." 1>&2; exit 1; } |
3830 |
|
|
fi |
3831 |
|
|
SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp ../dummy/audio_dummy.cpp" |
3832 |
|
|
LIBS="$LIBS -lscsi" |
3833 |
|
|
DEFINES="$DEFINES -DBSD_COMP" |
3834 |
|
|
fi |
3835 |
|
|
;; |
3836 |
|
|
SunOS*) |
3837 |
|
|
SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp Solaris/audio_solaris.cpp" |
3838 |
|
|
DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS" |
3839 |
|
|
;; |
3840 |
|
|
IRIX*) |
3841 |
|
|
SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp Irix/unaligned.c" |
3842 |
|
|
DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200" |
3843 |
|
|
LIBS="$LIBS -lm" |
3844 |
|
|
;; |
3845 |
|
|
esac |
3846 |
cebix |
1.7 |
fi |
3847 |
cebix |
1.10 |
SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS" |
3848 |
cebix |
1.1 |
|
3849 |
|
|
HAVE_I386=no |
3850 |
|
|
echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6 |
3851 |
cebix |
1.12 |
echo "configure:3852: checking for x86 target CPU" >&5 |
3852 |
cebix |
1.1 |
cat > conftest.$ac_ext <<EOF |
3853 |
cebix |
1.12 |
#line 3854 "configure" |
3854 |
cebix |
1.1 |
#include "confdefs.h" |
3855 |
|
|
|
3856 |
|
|
#ifdef __i386__ |
3857 |
|
|
yes |
3858 |
|
|
#endif |
3859 |
|
|
|
3860 |
|
|
EOF |
3861 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3862 |
|
|
egrep "yes" >/dev/null 2>&1; then |
3863 |
|
|
rm -rf conftest* |
3864 |
|
|
echo "$ac_t""yes" 1>&6; HAVE_I386=yes |
3865 |
|
|
else |
3866 |
|
|
rm -rf conftest* |
3867 |
|
|
echo "$ac_t""no" 1>&6 |
3868 |
|
|
fi |
3869 |
|
|
rm -f conftest* |
3870 |
|
|
|
3871 |
|
|
|
3872 |
cebix |
1.8 |
HAVE_SPARC=no |
3873 |
|
|
echo $ac_n "checking for SPARC target CPU""... $ac_c" 1>&6 |
3874 |
cebix |
1.12 |
echo "configure:3875: checking for SPARC target CPU" >&5 |
3875 |
cebix |
1.8 |
cat > conftest.$ac_ext <<EOF |
3876 |
cebix |
1.12 |
#line 3877 "configure" |
3877 |
cebix |
1.8 |
#include "confdefs.h" |
3878 |
|
|
|
3879 |
|
|
#ifdef __sparc__ |
3880 |
|
|
yes |
3881 |
|
|
#endif |
3882 |
|
|
|
3883 |
|
|
EOF |
3884 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3885 |
|
|
egrep "yes" >/dev/null 2>&1; then |
3886 |
|
|
rm -rf conftest* |
3887 |
|
|
echo "$ac_t""yes" 1>&6; HAVE_SPARC=yes |
3888 |
|
|
else |
3889 |
|
|
rm -rf conftest* |
3890 |
|
|
echo "$ac_t""no" 1>&6 |
3891 |
|
|
fi |
3892 |
|
|
rm -f conftest* |
3893 |
|
|
|
3894 |
|
|
|
3895 |
cebix |
1.1 |
HAVE_GAS=no |
3896 |
|
|
echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6 |
3897 |
cebix |
1.12 |
echo "configure:3898: checking for GAS .p2align feature" >&5 |
3898 |
cebix |
1.1 |
cat >conftest.S << EOF |
3899 |
|
|
.text |
3900 |
|
|
.p2align 5 |
3901 |
|
|
EOF |
3902 |
|
|
if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi |
3903 |
|
|
echo "$ac_t""$HAVE_GAS" 1>&6 |
3904 |
|
|
|
3905 |
|
|
HAVE_GCC27=no |
3906 |
|
|
echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6 |
3907 |
cebix |
1.12 |
echo "configure:3908: checking for GCC 2.7 or higher" >&5 |
3908 |
cebix |
1.1 |
cat > conftest.$ac_ext <<EOF |
3909 |
cebix |
1.12 |
#line 3910 "configure" |
3910 |
cebix |
1.1 |
#include "confdefs.h" |
3911 |
|
|
#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5 |
3912 |
|
|
yes |
3913 |
|
|
#endif |
3914 |
|
|
|
3915 |
|
|
EOF |
3916 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3917 |
|
|
egrep "yes" >/dev/null 2>&1; then |
3918 |
|
|
rm -rf conftest* |
3919 |
|
|
echo "$ac_t""yes" 1>&6; HAVE_GCC27=yes |
3920 |
|
|
else |
3921 |
|
|
rm -rf conftest* |
3922 |
|
|
echo "$ac_t""no" 1>&6 |
3923 |
|
|
fi |
3924 |
|
|
rm -f conftest* |
3925 |
|
|
|
3926 |
|
|
|
3927 |
|
|
if [ "x$HAVE_GCC27" = "xyes" ]; then |
3928 |
|
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
3929 |
|
|
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" |
3930 |
|
|
fi |
3931 |
|
|
|
3932 |
cebix |
1.11 |
WANT_X86_ASSEMBLY=no |
3933 |
|
|
WANT_SPARC_V8_ASSEMBLY=no |
3934 |
|
|
WANT_SPARC_V9_ASSEMBLY=no |
3935 |
cebix |
1.8 |
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |
3936 |
cebix |
1.1 |
if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then |
3937 |
cebix |
1.8 |
DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\"" |
3938 |
cebix |
1.1 |
if [ "x$HAVE_GAS" = "xyes" ]; then |
3939 |
cebix |
1.11 |
WANT_X86_ASSEMBLY=yes |
3940 |
cebix |
1.1 |
DEFINES="$DEFINES -DX86_ASSEMBLY" |
3941 |
cebix |
1.8 |
CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s" |
3942 |
cebix |
1.1 |
fi |
3943 |
cebix |
1.8 |
elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then |
3944 |
|
|
case "$MACHINE" in |
3945 |
|
|
SunOS*) |
3946 |
|
|
echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6 |
3947 |
cebix |
1.12 |
echo "configure:3948: checking SPARC CPU architecture" >&5 |
3948 |
cebix |
1.8 |
SPARC_TYPE=`Solaris/which_sparc` |
3949 |
|
|
echo "$ac_t""$SPARC_TYPE" 1>&6 |
3950 |
|
|
case "$SPARC_TYPE" in |
3951 |
|
|
SPARC_V8) |
3952 |
cebix |
1.11 |
WANT_SPARC_V8_ASSEMBLY=yes |
3953 |
cebix |
1.8 |
DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY" |
3954 |
|
|
CFLAGS="$CFLAGS -Wa,-Av8" |
3955 |
|
|
CXXFLAGS="$CXXFLAGS -Wa,-Av8" |
3956 |
|
|
;; |
3957 |
|
|
SPARC_V9) |
3958 |
cebix |
1.11 |
WANT_SPARC_V9_ASSEMBLY=yes |
3959 |
cebix |
1.8 |
DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY" |
3960 |
|
|
CFLAGS="$CFLAGS -Wa,-Av9" |
3961 |
|
|
CXXFLAGS="$CXXFLAGS -Wa,-Av9" |
3962 |
|
|
;; |
3963 |
|
|
esac |
3964 |
|
|
;; |
3965 |
|
|
esac |
3966 |
cebix |
1.1 |
fi |
3967 |
cebix |
1.8 |
|
3968 |
|
|
CPUINCLUDES="-I../uae_cpu" |
3969 |
|
|
CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp $CPUSRCS" |
3970 |
cebix |
1.1 |
|
3971 |
|
|
|
3972 |
|
|
|
3973 |
|
|
|
3974 |
|
|
|
3975 |
|
|
trap '' 1 2 15 |
3976 |
|
|
cat > confcache <<\EOF |
3977 |
|
|
# This file is a shell script that caches the results of configure |
3978 |
|
|
# tests run on this system so they can be shared between configure |
3979 |
|
|
# scripts and configure runs. It is not useful on other systems. |
3980 |
|
|
# If it contains results you don't want to keep, you may remove or edit it. |
3981 |
|
|
# |
3982 |
|
|
# By default, configure uses ./config.cache as the cache file, |
3983 |
|
|
# creating it if it does not exist already. You can give configure |
3984 |
|
|
# the --cache-file=FILE option to use a different cache file; that is |
3985 |
|
|
# what configure does when it calls configure scripts in |
3986 |
|
|
# subdirectories, so they share the cache. |
3987 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
3988 |
|
|
# config.status only pays attention to the cache file if you give it the |
3989 |
|
|
# --recheck option to rerun configure. |
3990 |
|
|
# |
3991 |
|
|
EOF |
3992 |
|
|
# The following way of writing the cache mishandles newlines in values, |
3993 |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
3994 |
|
|
# So, don't put newlines in cache variables' values. |
3995 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
3996 |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
3997 |
|
|
(set) 2>&1 | |
3998 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
3999 |
|
|
*ac_space=\ *) |
4000 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution |
4001 |
|
|
# turns \\\\ into \\, and sed turns \\ into \). |
4002 |
|
|
sed -n \ |
4003 |
|
|
-e "s/'/'\\\\''/g" \ |
4004 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
4005 |
|
|
;; |
4006 |
|
|
*) |
4007 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4008 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
4009 |
|
|
;; |
4010 |
|
|
esac >> confcache |
4011 |
|
|
if cmp -s $cache_file confcache; then |
4012 |
|
|
: |
4013 |
|
|
else |
4014 |
|
|
if test -w $cache_file; then |
4015 |
|
|
echo "updating cache $cache_file" |
4016 |
|
|
cat confcache > $cache_file |
4017 |
|
|
else |
4018 |
|
|
echo "not updating unwritable cache $cache_file" |
4019 |
|
|
fi |
4020 |
|
|
fi |
4021 |
|
|
rm -f confcache |
4022 |
|
|
|
4023 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
4024 |
|
|
|
4025 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4026 |
|
|
# Let make expand exec_prefix. |
4027 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
4028 |
|
|
|
4029 |
|
|
# Any assignment to VPATH causes Sun make to only execute |
4030 |
|
|
# the first set of double-colon rules, so remove it if not needed. |
4031 |
|
|
# If there is a colon in the path, we need to keep it. |
4032 |
|
|
if test "x$srcdir" = x.; then |
4033 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
4034 |
|
|
fi |
4035 |
|
|
|
4036 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
4037 |
|
|
|
4038 |
|
|
DEFS=-DHAVE_CONFIG_H |
4039 |
|
|
|
4040 |
|
|
# Without the "./", some shells look in PATH for config.status. |
4041 |
|
|
: ${CONFIG_STATUS=./config.status} |
4042 |
|
|
|
4043 |
|
|
echo creating $CONFIG_STATUS |
4044 |
|
|
rm -f $CONFIG_STATUS |
4045 |
|
|
cat > $CONFIG_STATUS <<EOF |
4046 |
|
|
#! /bin/sh |
4047 |
|
|
# Generated automatically by configure. |
4048 |
|
|
# Run this file to recreate the current configuration. |
4049 |
|
|
# This directory was configured as follows, |
4050 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
4051 |
|
|
# |
4052 |
|
|
# $0 $ac_configure_args |
4053 |
|
|
# |
4054 |
|
|
# Compiler output produced by configure, useful for debugging |
4055 |
|
|
# configure, is in ./config.log if it exists. |
4056 |
|
|
|
4057 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
4058 |
|
|
for ac_option |
4059 |
|
|
do |
4060 |
|
|
case "\$ac_option" in |
4061 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4062 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
4063 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
4064 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
4065 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
4066 |
|
|
exit 0 ;; |
4067 |
|
|
-help | --help | --hel | --he | --h) |
4068 |
|
|
echo "\$ac_cs_usage"; exit 0 ;; |
4069 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;; |
4070 |
|
|
esac |
4071 |
|
|
done |
4072 |
|
|
|
4073 |
|
|
ac_given_srcdir=$srcdir |
4074 |
|
|
ac_given_INSTALL="$INSTALL" |
4075 |
|
|
|
4076 |
|
|
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
4077 |
|
|
EOF |
4078 |
|
|
cat >> $CONFIG_STATUS <<EOF |
4079 |
|
|
|
4080 |
|
|
# Protect against being on the right side of a sed subst in config.status. |
4081 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
4082 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
4083 |
|
|
$ac_vpsub |
4084 |
|
|
$extrasub |
4085 |
|
|
s%@SHELL@%$SHELL%g |
4086 |
|
|
s%@CFLAGS@%$CFLAGS%g |
4087 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g |
4088 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g |
4089 |
|
|
s%@FFLAGS@%$FFLAGS%g |
4090 |
|
|
s%@DEFS@%$DEFS%g |
4091 |
|
|
s%@LDFLAGS@%$LDFLAGS%g |
4092 |
|
|
s%@LIBS@%$LIBS%g |
4093 |
|
|
s%@exec_prefix@%$exec_prefix%g |
4094 |
|
|
s%@prefix@%$prefix%g |
4095 |
|
|
s%@program_transform_name@%$program_transform_name%g |
4096 |
|
|
s%@bindir@%$bindir%g |
4097 |
|
|
s%@sbindir@%$sbindir%g |
4098 |
|
|
s%@libexecdir@%$libexecdir%g |
4099 |
|
|
s%@datadir@%$datadir%g |
4100 |
|
|
s%@sysconfdir@%$sysconfdir%g |
4101 |
|
|
s%@sharedstatedir@%$sharedstatedir%g |
4102 |
|
|
s%@localstatedir@%$localstatedir%g |
4103 |
|
|
s%@libdir@%$libdir%g |
4104 |
|
|
s%@includedir@%$includedir%g |
4105 |
|
|
s%@oldincludedir@%$oldincludedir%g |
4106 |
|
|
s%@infodir@%$infodir%g |
4107 |
|
|
s%@mandir@%$mandir%g |
4108 |
|
|
s%@CC@%$CC%g |
4109 |
cebix |
1.3 |
s%@CPP@%$CPP%g |
4110 |
cebix |
1.1 |
s%@CXX@%$CXX%g |
4111 |
|
|
s%@SET_MAKE@%$SET_MAKE%g |
4112 |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
4113 |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
4114 |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g |
4115 |
|
|
s%@X_CFLAGS@%$X_CFLAGS%g |
4116 |
|
|
s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
4117 |
|
|
s%@X_LIBS@%$X_LIBS%g |
4118 |
|
|
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
4119 |
|
|
s%@GTK_CONFIG@%$GTK_CONFIG%g |
4120 |
|
|
s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
4121 |
|
|
s%@GTK_LIBS@%$GTK_LIBS%g |
4122 |
cebix |
1.9 |
s%@ESD_CONFIG@%$ESD_CONFIG%g |
4123 |
|
|
s%@ESD_CFLAGS@%$ESD_CFLAGS%g |
4124 |
|
|
s%@ESD_LIBS@%$ESD_LIBS%g |
4125 |
cebix |
1.1 |
s%@DEFINES@%$DEFINES%g |
4126 |
|
|
s%@SYSSRCS@%$SYSSRCS%g |
4127 |
|
|
s%@CPUINCLUDES@%$CPUINCLUDES%g |
4128 |
|
|
s%@CPUSRCS@%$CPUSRCS%g |
4129 |
|
|
|
4130 |
|
|
CEOF |
4131 |
|
|
EOF |
4132 |
|
|
|
4133 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
4134 |
|
|
|
4135 |
|
|
# Split the substitutions into bite-sized pieces for seds with |
4136 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX. |
4137 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
4138 |
|
|
ac_file=1 # Number of current file. |
4139 |
|
|
ac_beg=1 # First line for current file. |
4140 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
4141 |
|
|
ac_more_lines=: |
4142 |
|
|
ac_sed_cmds="" |
4143 |
|
|
while $ac_more_lines; do |
4144 |
|
|
if test $ac_beg -gt 1; then |
4145 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
4146 |
|
|
else |
4147 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
4148 |
|
|
fi |
4149 |
|
|
if test ! -s conftest.s$ac_file; then |
4150 |
|
|
ac_more_lines=false |
4151 |
|
|
rm -f conftest.s$ac_file |
4152 |
|
|
else |
4153 |
|
|
if test -z "$ac_sed_cmds"; then |
4154 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
4155 |
|
|
else |
4156 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
4157 |
|
|
fi |
4158 |
|
|
ac_file=`expr $ac_file + 1` |
4159 |
|
|
ac_beg=$ac_end |
4160 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
4161 |
|
|
fi |
4162 |
|
|
done |
4163 |
|
|
if test -z "$ac_sed_cmds"; then |
4164 |
|
|
ac_sed_cmds=cat |
4165 |
|
|
fi |
4166 |
|
|
EOF |
4167 |
|
|
|
4168 |
|
|
cat >> $CONFIG_STATUS <<EOF |
4169 |
|
|
|
4170 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
4171 |
|
|
EOF |
4172 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
4173 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
4174 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
4175 |
|
|
case "$ac_file" in |
4176 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
4177 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
4178 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
4179 |
|
|
esac |
4180 |
|
|
|
4181 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
4182 |
|
|
|
4183 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname. |
4184 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
4185 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
4186 |
|
|
# The file is in a subdirectory. |
4187 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
4188 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
4189 |
|
|
# A "../" for each directory in $ac_dir_suffix. |
4190 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
4191 |
|
|
else |
4192 |
|
|
ac_dir_suffix= ac_dots= |
4193 |
|
|
fi |
4194 |
|
|
|
4195 |
|
|
case "$ac_given_srcdir" in |
4196 |
|
|
.) srcdir=. |
4197 |
|
|
if test -z "$ac_dots"; then top_srcdir=. |
4198 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
4199 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
4200 |
|
|
*) # Relative path. |
4201 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
4202 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
4203 |
|
|
esac |
4204 |
|
|
|
4205 |
|
|
case "$ac_given_INSTALL" in |
4206 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
4207 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
4208 |
|
|
esac |
4209 |
|
|
|
4210 |
|
|
echo creating "$ac_file" |
4211 |
|
|
rm -f "$ac_file" |
4212 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
4213 |
|
|
case "$ac_file" in |
4214 |
|
|
*Makefile*) ac_comsub="1i\\ |
4215 |
|
|
# $configure_input" ;; |
4216 |
|
|
*) ac_comsub= ;; |
4217 |
|
|
esac |
4218 |
|
|
|
4219 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
4220 |
|
|
sed -e "$ac_comsub |
4221 |
|
|
s%@configure_input@%$configure_input%g |
4222 |
|
|
s%@srcdir@%$srcdir%g |
4223 |
|
|
s%@top_srcdir@%$top_srcdir%g |
4224 |
|
|
s%@INSTALL@%$INSTALL%g |
4225 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
4226 |
|
|
fi; done |
4227 |
|
|
rm -f conftest.s* |
4228 |
|
|
|
4229 |
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
4230 |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
4231 |
|
|
# |
4232 |
|
|
# ac_d sets the value in "#define NAME VALUE" lines. |
4233 |
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
4234 |
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
4235 |
|
|
ac_dC='\3' |
4236 |
|
|
ac_dD='%g' |
4237 |
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
4238 |
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
4239 |
|
|
ac_uB='\([ ]\)%\1#\2define\3' |
4240 |
|
|
ac_uC=' ' |
4241 |
|
|
ac_uD='\4%g' |
4242 |
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
4243 |
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
4244 |
|
|
ac_eB='$%\1#\2define\3' |
4245 |
|
|
ac_eC=' ' |
4246 |
|
|
ac_eD='%g' |
4247 |
|
|
|
4248 |
|
|
if test "${CONFIG_HEADERS+set}" != set; then |
4249 |
|
|
EOF |
4250 |
|
|
cat >> $CONFIG_STATUS <<EOF |
4251 |
|
|
CONFIG_HEADERS="config.h" |
4252 |
|
|
EOF |
4253 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
4254 |
|
|
fi |
4255 |
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
4256 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
4257 |
|
|
case "$ac_file" in |
4258 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
4259 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
4260 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
4261 |
|
|
esac |
4262 |
|
|
|
4263 |
|
|
echo creating $ac_file |
4264 |
|
|
|
4265 |
|
|
rm -f conftest.frag conftest.in conftest.out |
4266 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
4267 |
|
|
cat $ac_file_inputs > conftest.in |
4268 |
|
|
|
4269 |
|
|
EOF |
4270 |
|
|
|
4271 |
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes |
4272 |
|
|
# the proper values into config.h.in to produce config.h. And first: |
4273 |
|
|
# Protect against being on the right side of a sed subst in config.status. |
4274 |
|
|
# Protect against being in an unquoted here document in config.status. |
4275 |
|
|
rm -f conftest.vals |
4276 |
|
|
cat > conftest.hdr <<\EOF |
4277 |
|
|
s/[\\&%]/\\&/g |
4278 |
|
|
s%[\\$`]%\\&%g |
4279 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
4280 |
|
|
s%ac_d%ac_u%gp |
4281 |
|
|
s%ac_u%ac_e%gp |
4282 |
|
|
EOF |
4283 |
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals |
4284 |
|
|
rm -f conftest.hdr |
4285 |
|
|
|
4286 |
|
|
# This sed command replaces #undef with comments. This is necessary, for |
4287 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
4288 |
|
|
# on some systems where configure will not decide to define it. |
4289 |
|
|
cat >> conftest.vals <<\EOF |
4290 |
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
4291 |
|
|
EOF |
4292 |
|
|
|
4293 |
|
|
# Break up conftest.vals because some shells have a limit on |
4294 |
|
|
# the size of here documents, and old seds have small limits too. |
4295 |
|
|
|
4296 |
|
|
rm -f conftest.tail |
4297 |
|
|
while : |
4298 |
|
|
do |
4299 |
|
|
ac_lines=`grep -c . conftest.vals` |
4300 |
|
|
# grep -c gives empty output for an empty file on some AIX systems. |
4301 |
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
4302 |
|
|
# Write a limited-size here document to conftest.frag. |
4303 |
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
4304 |
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
4305 |
|
|
echo 'CEOF |
4306 |
|
|
sed -f conftest.frag conftest.in > conftest.out |
4307 |
|
|
rm -f conftest.in |
4308 |
|
|
mv conftest.out conftest.in |
4309 |
|
|
' >> $CONFIG_STATUS |
4310 |
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
4311 |
|
|
rm -f conftest.vals |
4312 |
|
|
mv conftest.tail conftest.vals |
4313 |
|
|
done |
4314 |
|
|
rm -f conftest.vals |
4315 |
|
|
|
4316 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
4317 |
|
|
rm -f conftest.frag conftest.h |
4318 |
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
4319 |
|
|
cat conftest.in >> conftest.h |
4320 |
|
|
rm -f conftest.in |
4321 |
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then |
4322 |
|
|
echo "$ac_file is unchanged" |
4323 |
|
|
rm -f conftest.h |
4324 |
|
|
else |
4325 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname. |
4326 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
4327 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
4328 |
|
|
# The file is in a subdirectory. |
4329 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
4330 |
|
|
fi |
4331 |
|
|
rm -f $ac_file |
4332 |
|
|
mv conftest.h $ac_file |
4333 |
|
|
fi |
4334 |
|
|
fi; done |
4335 |
|
|
|
4336 |
|
|
EOF |
4337 |
|
|
cat >> $CONFIG_STATUS <<EOF |
4338 |
|
|
|
4339 |
|
|
EOF |
4340 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
4341 |
|
|
|
4342 |
|
|
exit 0 |
4343 |
|
|
EOF |
4344 |
|
|
chmod +x $CONFIG_STATUS |
4345 |
|
|
rm -fr confdefs* $ac_clean_files |
4346 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
4347 |
|
|
|
4348 |
cebix |
1.11 |
|
4349 |
|
|
echo |
4350 |
|
|
echo Basilisk II configuration summary: |
4351 |
|
|
echo |
4352 |
|
|
echo XFree86 DGA support .............. : $WANT_XF86_DGA |
4353 |
|
|
echo fbdev DGA support ................ : $WANT_FBDEV_DGA |
4354 |
|
|
echo ESD sound support ................ : $WANT_ESD |
4355 |
|
|
echo GTK user interface ............... : $WANT_UI |
4356 |
|
|
echo mon debugger support ............. : $WANT_MON |
4357 |
|
|
echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY |
4358 |
|
|
echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY |
4359 |
|
|
echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY |
4360 |
|
|
echo |
4361 |
cebix |
1.1 |
echo "Configuration done. Now type \"make\"." |