7
|
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 --disable-darwin Disable Darwin (Mac OS X) support."
|
|
16 ac_help="$ac_help
|
|
17 --with-vim-name=NAME what to call the Vim executable"
|
|
18 ac_help="$ac_help
|
|
19 --with-ex-name=NAME what to call the Ex executable"
|
|
20 ac_help="$ac_help
|
|
21 --with-view-name=NAME what to call the View executable"
|
|
22 ac_help="$ac_help
|
|
23 --with-global-runtime=DIR global runtime directory in 'runtimepath'"
|
|
24 ac_help="$ac_help
|
|
25 --with-modified-by=NAME name of who modified a release version"
|
|
26 ac_help="$ac_help
|
|
27 --with-features=TYPE tiny, small, normal, big or huge (default: normal)"
|
|
28 ac_help="$ac_help
|
|
29 --with-compiledby=NAME name to show in :version message"
|
|
30 ac_help="$ac_help
|
|
31 --disable-xsmp Disable XSMP session management"
|
|
32 ac_help="$ac_help
|
|
33 --disable-xsmp-interact Disable XSMP interaction"
|
|
34 ac_help="$ac_help
|
14
|
35 --enable-mzschemeinterp Include MzScheme interpreter."
|
|
36 ac_help="$ac_help
|
|
37 --with-plthome=PLTHOME Use PLTHOME."
|
|
38 ac_help="$ac_help
|
7
|
39 --enable-perlinterp Include Perl interpreter."
|
|
40 ac_help="$ac_help
|
|
41 --enable-pythoninterp Include Python interpreter."
|
|
42 ac_help="$ac_help
|
|
43 --with-python-config-dir=PATH Python's config directory"
|
|
44 ac_help="$ac_help
|
|
45 --enable-tclinterp Include Tcl interpreter."
|
|
46 ac_help="$ac_help
|
|
47 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)"
|
|
48 ac_help="$ac_help
|
|
49 --enable-rubyinterp Include Ruby interpreter."
|
|
50 ac_help="$ac_help
|
|
51 --enable-cscope Include cscope interface."
|
|
52 ac_help="$ac_help
|
|
53 --enable-workshop Include Sun Visual Workshop support."
|
|
54 ac_help="$ac_help
|
|
55 --disable-netbeans Disable NetBeans integration support."
|
|
56 ac_help="$ac_help
|
|
57 --enable-sniff Include Sniff interface."
|
|
58 ac_help="$ac_help
|
|
59 --enable-multibyte Include multibyte editing support."
|
|
60 ac_help="$ac_help
|
|
61 --enable-hangulinput Include Hangul input support."
|
|
62 ac_help="$ac_help
|
|
63 --enable-xim Include XIM input support."
|
|
64 ac_help="$ac_help
|
|
65 --enable-fontset Include X fontset output support."
|
|
66 ac_help="$ac_help
|
|
67 --with-x use the X Window System"
|
|
68 ac_help="$ac_help
|
11
|
69 --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon]"
|
|
70 ac_help="$ac_help
|
|
71 --enable-kde-check If auto-select GUI, check for KDE [default=no]"
|
7
|
72 ac_help="$ac_help
|
|
73 --enable-gtk-check If auto-select GUI, check for GTK [default=yes]"
|
|
74 ac_help="$ac_help
|
|
75 --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]"
|
|
76 ac_help="$ac_help
|
|
77 --enable-gnome-check If GTK GUI, check for GNOME [default=no]"
|
|
78 ac_help="$ac_help
|
|
79 --enable-motif-check If auto-select GUI, check for Motif [default=yes]"
|
|
80 ac_help="$ac_help
|
|
81 --enable-athena-check If auto-select GUI, check for Athena [default=yes]"
|
|
82 ac_help="$ac_help
|
|
83 --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]"
|
|
84 ac_help="$ac_help
|
|
85 --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]"
|
|
86 ac_help="$ac_help
|
11
|
87 --with-qt-dir=DIR Specify prefix of QT files"
|
|
88 ac_help="$ac_help
|
|
89 --with-qt-includes=DIR Specify location of Qt headers"
|
|
90 ac_help="$ac_help
|
|
91 --with-qt-libs=DIR Specify location of Qt libraries"
|
|
92 ac_help="$ac_help
|
|
93 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar [default=no]"
|
|
94 ac_help="$ac_help
|
|
95 --disable-rpath Disable rpath."
|
|
96 ac_help="$ac_help
|
|
97 --with-kde-prefix=PFX Prefix where KDE is installed (optional)"
|
|
98 ac_help="$ac_help
|
|
99 --with-kde-includes=DIR Specify location of KDE headers"
|
|
100 ac_help="$ac_help
|
|
101 --with-kde-libs=DIR Specify location of KDE libraries"
|
|
102 ac_help="$ac_help
|
|
103 --disable-kdetest Do not try to compile and run a test KDE program"
|
|
104 ac_help="$ac_help
|
7
|
105 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
|
|
106 ac_help="$ac_help
|
|
107 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
|
|
108 ac_help="$ac_help
|
|
109 --disable-gtktest Do not try to compile and run a test GTK program"
|
|
110 ac_help="$ac_help
|
|
111 --with-gnome-includes=DIR Specify location of GNOME headers"
|
|
112 ac_help="$ac_help
|
|
113 --with-gnome-libs=DIR Specify location of GNOME libs"
|
|
114 ac_help="$ac_help
|
|
115 --with-gnome Specify prefix for GNOME files"
|
|
116 ac_help="$ac_help
|
|
117 --with-motif-lib=STRING Library for Motif "
|
|
118 ac_help="$ac_help
|
|
119 --with-tlib=library terminal library to be used "
|
|
120 ac_help="$ac_help
|
|
121 --disable-acl Don't check for ACL support."
|
|
122 ac_help="$ac_help
|
|
123 --disable-gpm Don't use gpm (Linux mouse daemon)."
|
|
124 ac_help="$ac_help
|
|
125 --disable-nls Don't support NLS (gettext())."
|
|
126
|
|
127 # Initialize some variables set by options.
|
|
128 # The variables have the same names as the options, with
|
|
129 # dashes changed to underlines.
|
|
130 build=NONE
|
|
131 cache_file=./config.cache
|
|
132 exec_prefix=NONE
|
|
133 host=NONE
|
|
134 no_create=
|
|
135 nonopt=NONE
|
|
136 no_recursion=
|
|
137 prefix=NONE
|
|
138 program_prefix=NONE
|
|
139 program_suffix=NONE
|
|
140 program_transform_name=s,x,x,
|
|
141 silent=
|
|
142 site=
|
|
143 srcdir=
|
|
144 target=NONE
|
|
145 verbose=
|
|
146 x_includes=NONE
|
|
147 x_libraries=NONE
|
|
148 bindir='${exec_prefix}/bin'
|
|
149 sbindir='${exec_prefix}/sbin'
|
|
150 libexecdir='${exec_prefix}/libexec'
|
|
151 datadir='${prefix}/share'
|
|
152 sysconfdir='${prefix}/etc'
|
|
153 sharedstatedir='${prefix}/com'
|
|
154 localstatedir='${prefix}/var'
|
|
155 libdir='${exec_prefix}/lib'
|
|
156 includedir='${prefix}/include'
|
|
157 oldincludedir='/usr/include'
|
|
158 infodir='${prefix}/info'
|
|
159 mandir='${prefix}/man'
|
|
160
|
|
161 # Initialize some other variables.
|
|
162 subdirs=
|
|
163 MFLAGS= MAKEFLAGS=
|
|
164 SHELL=${CONFIG_SHELL-/bin/sh}
|
|
165 # Maximum number of lines to put in a shell here document.
|
|
166 ac_max_here_lines=12
|
|
167
|
|
168 ac_prev=
|
|
169 for ac_option
|
|
170 do
|
|
171
|
|
172 # If the previous option needs an argument, assign it.
|
|
173 if test -n "$ac_prev"; then
|
|
174 eval "$ac_prev=\$ac_option"
|
|
175 ac_prev=
|
|
176 continue
|
|
177 fi
|
|
178
|
|
179 case "$ac_option" in
|
|
180 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
181 *) ac_optarg= ;;
|
|
182 esac
|
|
183
|
|
184 # Accept the important Cygnus configure options, so we can diagnose typos.
|
|
185
|
|
186 case "$ac_option" in
|
|
187
|
|
188 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
189 ac_prev=bindir ;;
|
|
190 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
191 bindir="$ac_optarg" ;;
|
|
192
|
|
193 -build | --build | --buil | --bui | --bu)
|
|
194 ac_prev=build ;;
|
|
195 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
196 build="$ac_optarg" ;;
|
|
197
|
|
198 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
199 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
200 ac_prev=cache_file ;;
|
|
201 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
202 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
203 cache_file="$ac_optarg" ;;
|
|
204
|
|
205 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
206 ac_prev=datadir ;;
|
|
207 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
208 | --da=*)
|
|
209 datadir="$ac_optarg" ;;
|
|
210
|
|
211 -disable-* | --disable-*)
|
|
212 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
213 # Reject names that are not valid shell variable names.
|
|
214 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
216 fi
|
|
217 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
218 eval "enable_${ac_feature}=no" ;;
|
|
219
|
|
220 -enable-* | --enable-*)
|
|
221 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
222 # Reject names that are not valid shell variable names.
|
|
223 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
224 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
225 fi
|
|
226 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
227 case "$ac_option" in
|
|
228 *=*) ;;
|
|
229 *) ac_optarg=yes ;;
|
|
230 esac
|
|
231 eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
232
|
|
233 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
234 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
235 | --exec | --exe | --ex)
|
|
236 ac_prev=exec_prefix ;;
|
|
237 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
238 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
239 | --exec=* | --exe=* | --ex=*)
|
|
240 exec_prefix="$ac_optarg" ;;
|
|
241
|
|
242 -gas | --gas | --ga | --g)
|
|
243 # Obsolete; use --with-gas.
|
|
244 with_gas=yes ;;
|
|
245
|
|
246 -help | --help | --hel | --he)
|
|
247 # Omit some internal or obsolete options to make the list less imposing.
|
|
248 # This message is too long to be a string in the A/UX 3.1 sh.
|
|
249 cat << EOF
|
|
250 Usage: configure [options] [host]
|
|
251 Options: [defaults in brackets after descriptions]
|
|
252 Configuration:
|
|
253 --cache-file=FILE cache test results in FILE
|
|
254 --help print this message
|
|
255 --no-create do not create output files
|
|
256 --quiet, --silent do not print \`checking...' messages
|
|
257 --version print the version of autoconf that created configure
|
|
258 Directory and file names:
|
|
259 --prefix=PREFIX install architecture-independent files in PREFIX
|
|
260 [$ac_default_prefix]
|
|
261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
262 [same as prefix]
|
|
263 --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|
264 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|
265 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|
266 --datadir=DIR read-only architecture-independent data in DIR
|
|
267 [PREFIX/share]
|
|
268 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|
269 --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|
270 [PREFIX/com]
|
|
271 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|
272 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|
273 --includedir=DIR C header files in DIR [PREFIX/include]
|
|
274 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|
275 --infodir=DIR info documentation in DIR [PREFIX/info]
|
|
276 --mandir=DIR man documentation in DIR [PREFIX/man]
|
|
277 --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|
278 --program-prefix=PREFIX prepend PREFIX to installed program names
|
|
279 --program-suffix=SUFFIX append SUFFIX to installed program names
|
|
280 --program-transform-name=PROGRAM
|
|
281 run sed PROGRAM on installed program names
|
|
282 EOF
|
|
283 cat << EOF
|
|
284 Host type:
|
|
285 --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|
286 --host=HOST configure for HOST [guessed]
|
|
287 --target=TARGET configure for TARGET [TARGET=HOST]
|
|
288 Features and packages:
|
|
289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
291 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
292 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
293 --x-includes=DIR X include files are in DIR
|
|
294 --x-libraries=DIR X library files are in DIR
|
|
295 EOF
|
|
296 if test -n "$ac_help"; then
|
|
297 echo "--enable and --with options recognized:$ac_help"
|
|
298 fi
|
|
299 exit 0 ;;
|
|
300
|
|
301 -host | --host | --hos | --ho)
|
|
302 ac_prev=host ;;
|
|
303 -host=* | --host=* | --hos=* | --ho=*)
|
|
304 host="$ac_optarg" ;;
|
|
305
|
|
306 -includedir | --includedir | --includedi | --included | --include \
|
|
307 | --includ | --inclu | --incl | --inc)
|
|
308 ac_prev=includedir ;;
|
|
309 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
310 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
311 includedir="$ac_optarg" ;;
|
|
312
|
|
313 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
314 ac_prev=infodir ;;
|
|
315 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
316 infodir="$ac_optarg" ;;
|
|
317
|
|
318 -libdir | --libdir | --libdi | --libd)
|
|
319 ac_prev=libdir ;;
|
|
320 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
321 libdir="$ac_optarg" ;;
|
|
322
|
|
323 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
324 | --libexe | --libex | --libe)
|
|
325 ac_prev=libexecdir ;;
|
|
326 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
327 | --libexe=* | --libex=* | --libe=*)
|
|
328 libexecdir="$ac_optarg" ;;
|
|
329
|
|
330 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
331 | --localstate | --localstat | --localsta | --localst \
|
|
332 | --locals | --local | --loca | --loc | --lo)
|
|
333 ac_prev=localstatedir ;;
|
|
334 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
335 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
336 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|
337 localstatedir="$ac_optarg" ;;
|
|
338
|
|
339 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
340 ac_prev=mandir ;;
|
|
341 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
342 mandir="$ac_optarg" ;;
|
|
343
|
|
344 -nfp | --nfp | --nf)
|
|
345 # Obsolete; use --without-fp.
|
|
346 with_fp=no ;;
|
|
347
|
|
348 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
349 | --no-cr | --no-c)
|
|
350 no_create=yes ;;
|
|
351
|
|
352 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
353 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
354 no_recursion=yes ;;
|
|
355
|
|
356 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
357 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
358 | --oldin | --oldi | --old | --ol | --o)
|
|
359 ac_prev=oldincludedir ;;
|
|
360 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
361 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
362 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
363 oldincludedir="$ac_optarg" ;;
|
|
364
|
|
365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
366 ac_prev=prefix ;;
|
|
367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
368 prefix="$ac_optarg" ;;
|
|
369
|
|
370 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
371 | --program-pre | --program-pr | --program-p)
|
|
372 ac_prev=program_prefix ;;
|
|
373 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
374 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
375 program_prefix="$ac_optarg" ;;
|
|
376
|
|
377 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
378 | --program-suf | --program-su | --program-s)
|
|
379 ac_prev=program_suffix ;;
|
|
380 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
381 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
382 program_suffix="$ac_optarg" ;;
|
|
383
|
|
384 -program-transform-name | --program-transform-name \
|
|
385 | --program-transform-nam | --program-transform-na \
|
|
386 | --program-transform-n | --program-transform- \
|
|
387 | --program-transform | --program-transfor \
|
|
388 | --program-transfo | --program-transf \
|
|
389 | --program-trans | --program-tran \
|
|
390 | --progr-tra | --program-tr | --program-t)
|
|
391 ac_prev=program_transform_name ;;
|
|
392 -program-transform-name=* | --program-transform-name=* \
|
|
393 | --program-transform-nam=* | --program-transform-na=* \
|
|
394 | --program-transform-n=* | --program-transform-=* \
|
|
395 | --program-transform=* | --program-transfor=* \
|
|
396 | --program-transfo=* | --program-transf=* \
|
|
397 | --program-trans=* | --program-tran=* \
|
|
398 | --progr-tra=* | --program-tr=* | --program-t=*)
|
|
399 program_transform_name="$ac_optarg" ;;
|
|
400
|
|
401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
402 | -silent | --silent | --silen | --sile | --sil)
|
|
403 silent=yes ;;
|
|
404
|
|
405 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
406 ac_prev=sbindir ;;
|
|
407 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
408 | --sbi=* | --sb=*)
|
|
409 sbindir="$ac_optarg" ;;
|
|
410
|
|
411 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
412 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
413 | --sharedst | --shareds | --shared | --share | --shar \
|
|
414 | --sha | --sh)
|
|
415 ac_prev=sharedstatedir ;;
|
|
416 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
417 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
418 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
419 | --sha=* | --sh=*)
|
|
420 sharedstatedir="$ac_optarg" ;;
|
|
421
|
|
422 -site | --site | --sit)
|
|
423 ac_prev=site ;;
|
|
424 -site=* | --site=* | --sit=*)
|
|
425 site="$ac_optarg" ;;
|
|
426
|
|
427 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
428 ac_prev=srcdir ;;
|
|
429 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
430 srcdir="$ac_optarg" ;;
|
|
431
|
|
432 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
433 | --syscon | --sysco | --sysc | --sys | --sy)
|
|
434 ac_prev=sysconfdir ;;
|
|
435 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
436 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
437 sysconfdir="$ac_optarg" ;;
|
|
438
|
|
439 -target | --target | --targe | --targ | --tar | --ta | --t)
|
|
440 ac_prev=target ;;
|
|
441 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
442 target="$ac_optarg" ;;
|
|
443
|
|
444 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
445 verbose=yes ;;
|
|
446
|
|
447 -version | --version | --versio | --versi | --vers)
|
|
448 echo "configure generated by autoconf version 2.13"
|
|
449 exit 0 ;;
|
|
450
|
|
451 -with-* | --with-*)
|
|
452 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
453 # Reject names that are not valid shell variable names.
|
|
454 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
456 fi
|
|
457 ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
458 case "$ac_option" in
|
|
459 *=*) ;;
|
|
460 *) ac_optarg=yes ;;
|
|
461 esac
|
|
462 eval "with_${ac_package}='$ac_optarg'" ;;
|
|
463
|
|
464 -without-* | --without-*)
|
|
465 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
466 # Reject names that are not valid shell variable names.
|
|
467 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
469 fi
|
|
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
471 eval "with_${ac_package}=no" ;;
|
|
472
|
|
473 --x)
|
|
474 # Obsolete; use --with-x.
|
|
475 with_x=yes ;;
|
|
476
|
|
477 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
478 | --x-incl | --x-inc | --x-in | --x-i)
|
|
479 ac_prev=x_includes ;;
|
|
480 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
481 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
482 x_includes="$ac_optarg" ;;
|
|
483
|
|
484 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
485 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
486 ac_prev=x_libraries ;;
|
|
487 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
488 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
489 x_libraries="$ac_optarg" ;;
|
|
490
|
|
491 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
492 ;;
|
|
493
|
|
494 *)
|
|
495 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
496 echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
497 fi
|
|
498 if test "x$nonopt" != xNONE; then
|
|
499 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
500 fi
|
|
501 nonopt="$ac_option"
|
|
502 ;;
|
|
503
|
|
504 esac
|
|
505 done
|
|
506
|
|
507 if test -n "$ac_prev"; then
|
|
508 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
509 fi
|
|
510
|
|
511 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
512
|
|
513 # File descriptor usage:
|
|
514 # 0 standard input
|
|
515 # 1 file creation
|
|
516 # 2 errors and warnings
|
|
517 # 3 some systems may open it to /dev/tty
|
|
518 # 4 used on the Kubota Titan
|
|
519 # 6 checking for... messages and results
|
|
520 # 5 compiler messages saved in config.log
|
|
521 if test "$silent" = yes; then
|
|
522 exec 6>/dev/null
|
|
523 else
|
|
524 exec 6>&1
|
|
525 fi
|
|
526 exec 5>auto/config.log
|
|
527
|
|
528 echo "\
|
|
529 This file contains any messages produced by compilers while
|
|
530 running configure, to aid debugging if configure makes a mistake.
|
|
531 " 1>&5
|
|
532
|
|
533 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
534 # Also quote any args containing shell metacharacters.
|
|
535 ac_configure_args=
|
|
536 for ac_arg
|
|
537 do
|
|
538 case "$ac_arg" in
|
|
539 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
540 | --no-cr | --no-c) ;;
|
|
541 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
542 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
543 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
544 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
545 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
546 esac
|
|
547 done
|
|
548
|
|
549 # NLS nuisances.
|
|
550 # Only set these to C if already set. These must not be set unconditionally
|
|
551 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
552 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
553 # Non-C LC_CTYPE values break the ctype check.
|
|
554 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
555 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
556 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
557 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
558
|
|
559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
560 rm -rf conftest* confdefs.h
|
|
561 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
562 echo > confdefs.h
|
|
563
|
|
564 # A filename unique to this package, relative to the directory that
|
|
565 # configure is in, which we can look for to find out if srcdir is correct.
|
|
566 ac_unique_file=vim.h
|
|
567
|
|
568 # Find the source files, if location was not specified.
|
|
569 if test -z "$srcdir"; then
|
|
570 ac_srcdir_defaulted=yes
|
|
571 # Try the directory containing this script, then its parent.
|
|
572 ac_prog=$0
|
|
573 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
574 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
575 srcdir=$ac_confdir
|
|
576 if test ! -r $srcdir/$ac_unique_file; then
|
|
577 srcdir=..
|
|
578 fi
|
|
579 else
|
|
580 ac_srcdir_defaulted=no
|
|
581 fi
|
|
582 if test ! -r $srcdir/$ac_unique_file; then
|
|
583 if test "$ac_srcdir_defaulted" = yes; then
|
|
584 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
585 else
|
|
586 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
587 fi
|
|
588 fi
|
|
589 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
590
|
|
591 # Prefer explicitly selected file to automatically selected ones.
|
|
592 if test -z "$CONFIG_SITE"; then
|
|
593 if test "x$prefix" != xNONE; then
|
|
594 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
595 else
|
|
596 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
597 fi
|
|
598 fi
|
|
599 for ac_site_file in $CONFIG_SITE; do
|
|
600 if test -r "$ac_site_file"; then
|
|
601 echo "loading site script $ac_site_file"
|
|
602 . "$ac_site_file"
|
|
603 fi
|
|
604 done
|
|
605
|
|
606 if test -r "$cache_file"; then
|
|
607 echo "loading cache $cache_file"
|
|
608 . $cache_file
|
|
609 else
|
|
610 echo "creating cache $cache_file"
|
|
611 > $cache_file
|
|
612 fi
|
|
613
|
|
614 ac_ext=c
|
|
615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
616 ac_cpp='$CPP $CPPFLAGS'
|
|
617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
619 cross_compiling=$ac_cv_prog_cc_cross
|
|
620
|
|
621 ac_exeext=
|
|
622 ac_objext=o
|
|
623 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
624 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
625 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
626 ac_n= ac_c='
|
|
627 ' ac_t=' '
|
|
628 else
|
|
629 ac_n=-n ac_c= ac_t=
|
|
630 fi
|
|
631 else
|
|
632 ac_n= ac_c='\c' ac_t=
|
|
633 fi
|
|
634
|
|
635
|
|
636
|
|
637
|
|
638 cat >> confdefs.h <<\EOF
|
|
639 #define UNIX 1
|
|
640 EOF
|
|
641
|
|
642 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
14
|
643 echo "configure:644: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
7
|
644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
645 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|
646 echo $ac_n "(cached) $ac_c" 1>&6
|
|
647 else
|
|
648 cat > conftestmake <<\EOF
|
|
649 all:
|
|
650 @echo 'ac_maketemp="${MAKE}"'
|
|
651 EOF
|
|
652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
653 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
654 if test -n "$ac_maketemp"; then
|
|
655 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
656 else
|
|
657 eval ac_cv_prog_make_${ac_make}_set=no
|
|
658 fi
|
|
659 rm -f conftestmake
|
|
660 fi
|
|
661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
662 echo "$ac_t""yes" 1>&6
|
|
663 SET_MAKE=
|
|
664 else
|
|
665 echo "$ac_t""no" 1>&6
|
|
666 SET_MAKE="MAKE=${MAKE-make}"
|
|
667 fi
|
|
668
|
|
669
|
|
670 # Extract the first word of "gcc", so it can be a program name with args.
|
|
671 set dummy gcc; ac_word=$2
|
|
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
14
|
673 echo "configure:674: checking for $ac_word" >&5
|
7
|
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
675 echo $ac_n "(cached) $ac_c" 1>&6
|
|
676 else
|
|
677 if test -n "$CC"; then
|
|
678 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
679 else
|
|
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
681 ac_dummy="$PATH"
|
|
682 for ac_dir in $ac_dummy; do
|
|
683 test -z "$ac_dir" && ac_dir=.
|
|
684 if test -f $ac_dir/$ac_word; then
|
|
685 ac_cv_prog_CC="gcc"
|
|
686 break
|
|
687 fi
|
|
688 done
|
|
689 IFS="$ac_save_ifs"
|
|
690 fi
|
|
691 fi
|
|
692 CC="$ac_cv_prog_CC"
|
|
693 if test -n "$CC"; then
|
|
694 echo "$ac_t""$CC" 1>&6
|
|
695 else
|
|
696 echo "$ac_t""no" 1>&6
|
|
697 fi
|
|
698
|
|
699 if test -z "$CC"; then
|
|
700 # Extract the first word of "cc", so it can be a program name with args.
|
|
701 set dummy cc; ac_word=$2
|
|
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
14
|
703 echo "configure:704: checking for $ac_word" >&5
|
7
|
704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
705 echo $ac_n "(cached) $ac_c" 1>&6
|
|
706 else
|
|
707 if test -n "$CC"; then
|
|
708 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
709 else
|
|
710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
711 ac_prog_rejected=no
|
|
712 ac_dummy="$PATH"
|
|
713 for ac_dir in $ac_dummy; do
|
|
714 test -z "$ac_dir" && ac_dir=.
|
|
715 if test -f $ac_dir/$ac_word; then
|
|
716 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
717 ac_prog_rejected=yes
|
|
718 continue
|
|
719 fi
|
|
720 ac_cv_prog_CC="cc"
|
|
721 break
|
|
722 fi
|
|
723 done
|
|
724 IFS="$ac_save_ifs"
|
|
725 if test $ac_prog_rejected = yes; then
|
|
726 # We found a bogon in the path, so make sure we never use it.
|
|
727 set dummy $ac_cv_prog_CC
|
|
728 shift
|
|
729 if test $# -gt 0; then
|
|
730 # We chose a different compiler from the bogus one.
|
|
731 # However, it has the same basename, so the bogon will be chosen
|
|
732 # first if we set CC to just the basename; use the full file name.
|
|
733 shift
|
|
734 set dummy "$ac_dir/$ac_word" "$@"
|
|
735 shift
|
|
736 ac_cv_prog_CC="$@"
|
|
737 fi
|
|
738 fi
|
|
739 fi
|
|
740 fi
|
|
741 CC="$ac_cv_prog_CC"
|
|
742 if test -n "$CC"; then
|
|
743 echo "$ac_t""$CC" 1>&6
|
|
744 else
|
|
745 echo "$ac_t""no" 1>&6
|
|
746 fi
|
|
747
|
|
748 if test -z "$CC"; then
|
|
749 case "`uname -s`" in
|
|
750 *win32* | *WIN32*)
|
|
751 # Extract the first word of "cl", so it can be a program name with args.
|
|
752 set dummy cl; ac_word=$2
|
|
753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
14
|
754 echo "configure:755: checking for $ac_word" >&5
|
7
|
755 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
756 echo $ac_n "(cached) $ac_c" 1>&6
|
|
757 else
|
|
758 if test -n "$CC"; then
|
|
759 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
760 else
|
|
761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
762 ac_dummy="$PATH"
|
|
763 for ac_dir in $ac_dummy; do
|
|
764 test -z "$ac_dir" && ac_dir=.
|
|
765 if test -f $ac_dir/$ac_word; then
|
|
766 ac_cv_prog_CC="cl"
|
|
767 break
|
|
768 fi
|
|
769 done
|
|
770 IFS="$ac_save_ifs"
|
|
771 fi
|
|
772 fi
|
|
773 CC="$ac_cv_prog_CC"
|
|
774 if test -n "$CC"; then
|
|
775 echo "$ac_t""$CC" 1>&6
|
|
776 else
|
|
777 echo "$ac_t""no" 1>&6
|
|
778 fi
|
|
779 ;;
|
|
780 esac
|
|
781 fi
|
|
782 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
783 fi
|
|
784
|
|
785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
14
|
786 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
7
|
787
|
|
788 ac_ext=c
|
|
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
790 ac_cpp='$CPP $CPPFLAGS'
|
|
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
793 cross_compiling=$ac_cv_prog_cc_cross
|
|
794
|
|
795 cat > conftest.$ac_ext << EOF
|
|
796
|
14
|
797 #line 798 "configure"
|
7
|
798 #include "confdefs.h"
|
|
799
|
|
800 main(){return(0);}
|
|
801 EOF
|
14
|
802 if { (eval echo configure:803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
803 ac_cv_prog_cc_works=yes
|
|
804 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
805 if (./conftest; exit) 2>/dev/null; then
|
|
806 ac_cv_prog_cc_cross=no
|
|
807 else
|
|
808 ac_cv_prog_cc_cross=yes
|
|
809 fi
|
|
810 else
|
|
811 echo "configure: failed program was:" >&5
|
|
812 cat conftest.$ac_ext >&5
|
|
813 ac_cv_prog_cc_works=no
|
|
814 fi
|
|
815 rm -fr conftest*
|
|
816 ac_ext=c
|
|
817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
818 ac_cpp='$CPP $CPPFLAGS'
|
|
819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
821 cross_compiling=$ac_cv_prog_cc_cross
|
|
822
|
|
823 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
824 if test $ac_cv_prog_cc_works = no; then
|
|
825 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
826 fi
|
|
827 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
14
|
828 echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
7
|
829 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
830 cross_compiling=$ac_cv_prog_cc_cross
|
|
831
|
|
832 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
14
|
833 echo "configure:834: checking whether we are using GNU C" >&5
|
7
|
834 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
835 echo $ac_n "(cached) $ac_c" 1>&6
|
|
836 else
|
|
837 cat > conftest.c <<EOF
|
|
838 #ifdef __GNUC__
|
|
839 yes;
|
|
840 #endif
|
|
841 EOF
|
14
|
842 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
7
|
843 ac_cv_prog_gcc=yes
|
|
844 else
|
|
845 ac_cv_prog_gcc=no
|
|
846 fi
|
|
847 fi
|
|
848
|
|
849 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
850
|
|
851 if test $ac_cv_prog_gcc = yes; then
|
|
852 GCC=yes
|
|
853 else
|
|
854 GCC=
|
|
855 fi
|
|
856
|
|
857 ac_test_CFLAGS="${CFLAGS+set}"
|
|
858 ac_save_CFLAGS="$CFLAGS"
|
|
859 CFLAGS=
|
|
860 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
14
|
861 echo "configure:862: checking whether ${CC-cc} accepts -g" >&5
|
7
|
862 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
863 echo $ac_n "(cached) $ac_c" 1>&6
|
|
864 else
|
|
865 echo 'void f(){}' > conftest.c
|
|
866 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
867 ac_cv_prog_cc_g=yes
|
|
868 else
|
|
869 ac_cv_prog_cc_g=no
|
|
870 fi
|
|
871 rm -f conftest*
|
|
872
|
|
873 fi
|
|
874
|
|
875 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
876 if test "$ac_test_CFLAGS" = set; then
|
|
877 CFLAGS="$ac_save_CFLAGS"
|
|
878 elif test $ac_cv_prog_cc_g = yes; then
|
|
879 if test "$GCC" = yes; then
|
|
880 CFLAGS="-g -O2"
|
|
881 else
|
|
882 CFLAGS="-g"
|
|
883 fi
|
|
884 else
|
|
885 if test "$GCC" = yes; then
|
|
886 CFLAGS="-O2"
|
|
887 else
|
|
888 CFLAGS=
|
|
889 fi
|
|
890 fi
|
|
891 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
14
|
892 echo "configure:893: checking how to run the C preprocessor" >&5
|
7
|
893 # On Suns, sometimes $CPP names a directory.
|
|
894 if test -n "$CPP" && test -d "$CPP"; then
|
|
895 CPP=
|
|
896 fi
|
|
897 if test -z "$CPP"; then
|
|
898 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
899 echo $ac_n "(cached) $ac_c" 1>&6
|
|
900 else
|
|
901 # This must be in double quotes, not single quotes, because CPP may get
|
|
902 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
903 CPP="${CC-cc} -E"
|
|
904 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
905 # not just through cpp.
|
|
906 cat > conftest.$ac_ext <<EOF
|
14
|
907 #line 908 "configure"
|
7
|
908 #include "confdefs.h"
|
|
909 #include <assert.h>
|
|
910 Syntax Error
|
|
911 EOF
|
|
912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
14
|
913 { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
915 if test -z "$ac_err"; then
|
|
916 :
|
|
917 else
|
|
918 echo "$ac_err" >&5
|
|
919 echo "configure: failed program was:" >&5
|
|
920 cat conftest.$ac_ext >&5
|
|
921 rm -rf conftest*
|
|
922 CPP="${CC-cc} -E -traditional-cpp"
|
|
923 cat > conftest.$ac_ext <<EOF
|
14
|
924 #line 925 "configure"
|
7
|
925 #include "confdefs.h"
|
|
926 #include <assert.h>
|
|
927 Syntax Error
|
|
928 EOF
|
|
929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
14
|
930 { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
932 if test -z "$ac_err"; then
|
|
933 :
|
|
934 else
|
|
935 echo "$ac_err" >&5
|
|
936 echo "configure: failed program was:" >&5
|
|
937 cat conftest.$ac_ext >&5
|
|
938 rm -rf conftest*
|
|
939 CPP="${CC-cc} -nologo -E"
|
|
940 cat > conftest.$ac_ext <<EOF
|
14
|
941 #line 942 "configure"
|
7
|
942 #include "confdefs.h"
|
|
943 #include <assert.h>
|
|
944 Syntax Error
|
|
945 EOF
|
|
946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
14
|
947 { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
949 if test -z "$ac_err"; then
|
|
950 :
|
|
951 else
|
|
952 echo "$ac_err" >&5
|
|
953 echo "configure: failed program was:" >&5
|
|
954 cat conftest.$ac_ext >&5
|
|
955 rm -rf conftest*
|
|
956 CPP=/lib/cpp
|
|
957 fi
|
|
958 rm -f conftest*
|
|
959 fi
|
|
960 rm -f conftest*
|
|
961 fi
|
|
962 rm -f conftest*
|
|
963 ac_cv_prog_CPP="$CPP"
|
|
964 fi
|
|
965 CPP="$ac_cv_prog_CPP"
|
|
966 else
|
|
967 ac_cv_prog_CPP="$CPP"
|
|
968 fi
|
|
969 echo "$ac_t""$CPP" 1>&6
|
|
970 cat > conftest.$ac_ext <<EOF
|
14
|
971 #line 972 "configure"
|
7
|
972 #include "confdefs.h"
|
|
973
|
|
974 EOF
|
|
975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
976 egrep "" >/dev/null 2>&1; then
|
|
977 :
|
|
978 fi
|
|
979 rm -f conftest*
|
|
980 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
14
|
981 echo "configure:982: checking for POSIXized ISC" >&5
|
7
|
982 if test -d /etc/conf/kconfig.d &&
|
|
983 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|
984 then
|
|
985 echo "$ac_t""yes" 1>&6
|
|
986 ISC=yes # If later tests want to check for ISC.
|
|
987 cat >> confdefs.h <<\EOF
|
|
988 #define _POSIX_SOURCE 1
|
|
989 EOF
|
|
990
|
|
991 if test "$GCC" = yes; then
|
|
992 CC="$CC -posix"
|
|
993 else
|
|
994 CC="$CC -Xp"
|
|
995 fi
|
|
996 else
|
|
997 echo "$ac_t""no" 1>&6
|
|
998 ISC=
|
|
999 fi
|
|
1000 for ac_prog in mawk gawk nawk awk
|
|
1001 do
|
|
1002 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
1003 set dummy $ac_prog; ac_word=$2
|
|
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
14
|
1005 echo "configure:1006: checking for $ac_word" >&5
|
7
|
1006 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
|
1007 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1008 else
|
|
1009 if test -n "$AWK"; then
|
|
1010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
1011 else
|
|
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1013 ac_dummy="$PATH"
|
|
1014 for ac_dir in $ac_dummy; do
|
|
1015 test -z "$ac_dir" && ac_dir=.
|
|
1016 if test -f $ac_dir/$ac_word; then
|
|
1017 ac_cv_prog_AWK="$ac_prog"
|
|
1018 break
|
|
1019 fi
|
|
1020 done
|
|
1021 IFS="$ac_save_ifs"
|
|
1022 fi
|
|
1023 fi
|
|
1024 AWK="$ac_cv_prog_AWK"
|
|
1025 if test -n "$AWK"; then
|
|
1026 echo "$ac_t""$AWK" 1>&6
|
|
1027 else
|
|
1028 echo "$ac_t""no" 1>&6
|
|
1029 fi
|
|
1030
|
|
1031 test -n "$AWK" && break
|
|
1032 done
|
|
1033
|
|
1034 # Extract the first word of "strip", so it can be a program name with args.
|
|
1035 set dummy strip; ac_word=$2
|
|
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
14
|
1037 echo "configure:1038: checking for $ac_word" >&5
|
7
|
1038 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|
1039 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1040 else
|
|
1041 if test -n "$STRIP"; then
|
|
1042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
1043 else
|
|
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1045 ac_dummy="$PATH"
|
|
1046 for ac_dir in $ac_dummy; do
|
|
1047 test -z "$ac_dir" && ac_dir=.
|
|
1048 if test -f $ac_dir/$ac_word; then
|
|
1049 ac_cv_prog_STRIP="strip"
|
|
1050 break
|
|
1051 fi
|
|
1052 done
|
|
1053 IFS="$ac_save_ifs"
|
|
1054 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|
1055 fi
|
|
1056 fi
|
|
1057 STRIP="$ac_cv_prog_STRIP"
|
|
1058 if test -n "$STRIP"; then
|
|
1059 echo "$ac_t""$STRIP" 1>&6
|
|
1060 else
|
|
1061 echo "$ac_t""no" 1>&6
|
|
1062 fi
|
|
1063
|
|
1064
|
|
1065 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
14
|
1066 echo "configure:1067: checking for Cygwin environment" >&5
|
7
|
1067 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|
1068 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1069 else
|
|
1070 cat > conftest.$ac_ext <<EOF
|
14
|
1071 #line 1072 "configure"
|
7
|
1072 #include "confdefs.h"
|
|
1073
|
|
1074 int main() {
|
|
1075
|
|
1076 #ifndef __CYGWIN__
|
|
1077 #define __CYGWIN__ __CYGWIN32__
|
|
1078 #endif
|
|
1079 return __CYGWIN__;
|
|
1080 ; return 0; }
|
|
1081 EOF
|
14
|
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
1083 rm -rf conftest*
|
|
1084 ac_cv_cygwin=yes
|
|
1085 else
|
|
1086 echo "configure: failed program was:" >&5
|
|
1087 cat conftest.$ac_ext >&5
|
|
1088 rm -rf conftest*
|
|
1089 ac_cv_cygwin=no
|
|
1090 fi
|
|
1091 rm -f conftest*
|
|
1092 rm -f conftest*
|
|
1093 fi
|
|
1094
|
|
1095 echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|
1096 CYGWIN=
|
|
1097 test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|
1098 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
14
|
1099 echo "configure:1100: checking for mingw32 environment" >&5
|
7
|
1100 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|
1101 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1102 else
|
|
1103 cat > conftest.$ac_ext <<EOF
|
14
|
1104 #line 1105 "configure"
|
7
|
1105 #include "confdefs.h"
|
|
1106
|
|
1107 int main() {
|
|
1108 return __MINGW32__;
|
|
1109 ; return 0; }
|
|
1110 EOF
|
14
|
1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
1112 rm -rf conftest*
|
|
1113 ac_cv_mingw32=yes
|
|
1114 else
|
|
1115 echo "configure: failed program was:" >&5
|
|
1116 cat conftest.$ac_ext >&5
|
|
1117 rm -rf conftest*
|
|
1118 ac_cv_mingw32=no
|
|
1119 fi
|
|
1120 rm -f conftest*
|
|
1121 rm -f conftest*
|
|
1122 fi
|
|
1123
|
|
1124 echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|
1125 MINGW32=
|
|
1126 test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|
1127
|
|
1128
|
|
1129 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
14
|
1130 echo "configure:1131: checking for executable suffix" >&5
|
7
|
1131 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|
1132 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1133 else
|
|
1134 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
|
1135 ac_cv_exeext=.exe
|
|
1136 else
|
|
1137 rm -f conftest*
|
|
1138 echo 'int main () { return 0; }' > conftest.$ac_ext
|
|
1139 ac_cv_exeext=
|
14
|
1140 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
7
|
1141 for file in conftest.*; do
|
|
1142 case $file in
|
|
1143 *.c | *.o | *.obj) ;;
|
|
1144 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|
1145 esac
|
|
1146 done
|
|
1147 else
|
|
1148 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|
1149 fi
|
|
1150 rm -f conftest*
|
|
1151 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|
1152 fi
|
|
1153 fi
|
|
1154
|
|
1155 EXEEXT=""
|
|
1156 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|
1157 echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|
1158 ac_exeext=$EXEEXT
|
|
1159
|
|
1160
|
|
1161 if test -z "$CFLAGS"; then
|
|
1162 CFLAGS="-O"
|
|
1163 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
|
|
1164 fi
|
|
1165 if test "$GCC" = yes; then
|
|
1166 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
|
|
1167 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
|
|
1168 echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
|
|
1169 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
|
|
1170 else
|
|
1171 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
|
|
1172 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
|
|
1173 CFLAGS="$CFLAGS -fno-strength-reduce"
|
|
1174 fi
|
|
1175 fi
|
|
1176 fi
|
|
1177
|
|
1178 if test "$cross_compiling" = yes; then
|
|
1179 { echo "configure: error: cannot compile a simple program, check CC and CFLAGS
|
|
1180 (cross compiling doesn't work)" 1>&2; exit 1; }
|
|
1181 fi
|
|
1182
|
|
1183 test "$GCC" = yes && CPP_MM=M;
|
|
1184
|
|
1185 if test -f ./toolcheck; then
|
|
1186 echo "checking for buggy tools" 1>&6
|
14
|
1187 echo "configure:1188: checking for buggy tools" >&5
|
7
|
1188 sh ./toolcheck 1>&6
|
|
1189 fi
|
|
1190
|
|
1191 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
|
|
1192
|
|
1193 echo $ac_n "checking for BeOS""... $ac_c" 1>&6
|
14
|
1194 echo "configure:1195: checking for BeOS" >&5
|
7
|
1195 case `uname` in
|
|
1196 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
|
|
1197 BEOS=yes; echo "$ac_t""yes" 1>&6;;
|
|
1198 *) BEOS=no; echo "$ac_t""no" 1>&6;;
|
|
1199 esac
|
|
1200
|
|
1201 echo $ac_n "checking for QNX""... $ac_c" 1>&6
|
14
|
1202 echo "configure:1203: checking for QNX" >&5
|
7
|
1203 case `uname` in
|
|
1204 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
|
|
1205 test -z "$with_x" && with_x=no
|
|
1206 QNX=yes; echo "$ac_t""yes" 1>&6;;
|
|
1207 *) QNX=no; echo "$ac_t""no" 1>&6;;
|
|
1208 esac
|
|
1209
|
|
1210 DEFAULT_VIMNAME=vim
|
|
1211 echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6
|
14
|
1212 echo "configure:1213: checking for Darwin (Mac OS X)" >&5
|
7
|
1213 if test "`(uname) 2>/dev/null`" = Darwin; then
|
|
1214 echo "$ac_t""yes" 1>&6
|
|
1215
|
|
1216 echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6
|
14
|
1217 echo "configure:1218: checking --disable-darwin argument" >&5
|
7
|
1218 # Check whether --enable-darwin or --disable-darwin was given.
|
|
1219 if test "${enable_darwin+set}" = set; then
|
|
1220 enableval="$enable_darwin"
|
|
1221 :
|
|
1222 else
|
|
1223 enable_darwin="yes"
|
|
1224 fi
|
|
1225
|
|
1226 if test "$enable_darwin" = "yes"; then
|
|
1227 echo "$ac_t""no" 1>&6
|
|
1228 echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6
|
14
|
1229 echo "configure:1230: checking if Darwin files are there" >&5
|
7
|
1230 if test -f os_macosx.c; then
|
|
1231 echo "$ac_t""yes" 1>&6
|
|
1232 else
|
|
1233 echo "$ac_t""no, Darwin support disabled" 1>&6
|
|
1234 enable_darwin=no
|
|
1235 fi
|
|
1236 else
|
|
1237 echo "$ac_t""yes, Darwin support excluded" 1>&6
|
|
1238 fi
|
|
1239
|
|
1240 if test "$enable_darwin" = "yes"; then
|
|
1241 MACOSX=yes
|
|
1242 OS_EXTRA_SCR="os_macosx.c";
|
|
1243 OS_EXTRA_OBJ="objects/os_macosx.o"
|
|
1244 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
|
|
1245
|
|
1246 ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'`
|
|
1247 echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6
|
14
|
1248 echo "configure:1249: checking for Carbon/Carbon.h" >&5
|
7
|
1249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
1250 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1251 else
|
|
1252 cat > conftest.$ac_ext <<EOF
|
14
|
1253 #line 1254 "configure"
|
7
|
1254 #include "confdefs.h"
|
|
1255 #include <Carbon/Carbon.h>
|
|
1256 EOF
|
|
1257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
14
|
1258 { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
1259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1260 if test -z "$ac_err"; then
|
|
1261 rm -rf conftest*
|
|
1262 eval "ac_cv_header_$ac_safe=yes"
|
|
1263 else
|
|
1264 echo "$ac_err" >&5
|
|
1265 echo "configure: failed program was:" >&5
|
|
1266 cat conftest.$ac_ext >&5
|
|
1267 rm -rf conftest*
|
|
1268 eval "ac_cv_header_$ac_safe=no"
|
|
1269 fi
|
|
1270 rm -f conftest*
|
|
1271 fi
|
|
1272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
1273 echo "$ac_t""yes" 1>&6
|
|
1274 CARBON=yes
|
|
1275 else
|
|
1276 echo "$ac_t""no" 1>&6
|
|
1277 fi
|
|
1278
|
|
1279 if test "x$CARBON" = "xyes"; then
|
|
1280 if test -z "$with_x"; then
|
|
1281 with_x=no
|
|
1282 DEFAULT_VIMNAME=Vim
|
|
1283 fi
|
|
1284 fi
|
|
1285 fi
|
|
1286 else
|
|
1287 echo "$ac_t""no" 1>&6
|
|
1288 fi
|
|
1289
|
|
1290
|
|
1291
|
|
1292
|
|
1293 have_local_include=''
|
|
1294 have_local_lib=''
|
|
1295 if test "$GCC" = yes; then
|
|
1296 echo 'void f(){}' > conftest.c
|
|
1297 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
|
|
1298 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
|
|
1299 rm -f conftest.c conftest.o
|
|
1300 fi
|
|
1301 if test -z "$have_local_lib" -a -d /usr/local/lib; then
|
|
1302 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
|
|
1303 if test "$tt" = "$LDFLAGS"; then
|
|
1304 LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
|
1305 fi
|
|
1306 fi
|
|
1307 if test -z "$have_local_include" -a -d /usr/local/include; then
|
|
1308 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
|
|
1309 if test "$tt" = "$CPPFLAGS"; then
|
|
1310 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
|
1311 fi
|
|
1312 fi
|
|
1313
|
|
1314 echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6
|
14
|
1315 echo "configure:1316: checking --with-vim-name argument" >&5
|
7
|
1316 # Check whether --with-vim-name or --without-vim-name was given.
|
|
1317 if test "${with_vim_name+set}" = set; then
|
|
1318 withval="$with_vim_name"
|
|
1319 VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6
|
|
1320 else
|
|
1321 VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6
|
|
1322 fi
|
|
1323
|
|
1324
|
|
1325 echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6
|
14
|
1326 echo "configure:1327: checking --with-ex-name argument" >&5
|
7
|
1327 # Check whether --with-ex-name or --without-ex-name was given.
|
|
1328 if test "${with_ex_name+set}" = set; then
|
|
1329 withval="$with_ex_name"
|
|
1330 EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6
|
|
1331 else
|
|
1332 EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6
|
|
1333 fi
|
|
1334
|
|
1335
|
|
1336 echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6
|
14
|
1337 echo "configure:1338: checking --with-view-name argument" >&5
|
7
|
1338 # Check whether --with-view-name or --without-view-name was given.
|
|
1339 if test "${with_view_name+set}" = set; then
|
|
1340 withval="$with_view_name"
|
|
1341 VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6
|
|
1342 else
|
|
1343 VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6
|
|
1344 fi
|
|
1345
|
|
1346
|
|
1347
|
|
1348 echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6
|
14
|
1349 echo "configure:1350: checking --with-global-runtime argument" >&5
|
7
|
1350 # Check whether --with-global-runtime or --without-global-runtime was given.
|
|
1351 if test "${with_global_runtime+set}" = set; then
|
|
1352 withval="$with_global_runtime"
|
|
1353 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
|
|
1354 #define RUNTIME_GLOBAL "$withval"
|
|
1355 EOF
|
|
1356
|
|
1357 else
|
|
1358 echo "$ac_t""no" 1>&6
|
|
1359 fi
|
|
1360
|
|
1361
|
|
1362 echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6
|
14
|
1363 echo "configure:1364: checking --with-modified-by argument" >&5
|
7
|
1364 # Check whether --with-modified-by or --without-modified-by was given.
|
|
1365 if test "${with_modified_by+set}" = set; then
|
|
1366 withval="$with_modified_by"
|
|
1367 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
|
|
1368 #define MODIFIED_BY "$withval"
|
|
1369 EOF
|
|
1370
|
|
1371 else
|
|
1372 echo "$ac_t""no" 1>&6
|
|
1373 fi
|
|
1374
|
|
1375
|
|
1376 echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
|
14
|
1377 echo "configure:1378: checking if character set is EBCDIC" >&5
|
7
|
1378 cat > conftest.$ac_ext <<EOF
|
14
|
1379 #line 1380 "configure"
|
7
|
1380 #include "confdefs.h"
|
|
1381
|
|
1382 int main() {
|
|
1383 /* TryCompile function for CharSet.
|
|
1384 Treat any failure as ASCII for compatibility with existing art.
|
|
1385 Use compile-time rather than run-time tests for cross-compiler
|
|
1386 tolerance. */
|
|
1387 #if '0'!=240
|
|
1388 make an error "Character set is not EBCDIC"
|
|
1389 #endif
|
|
1390 ; return 0; }
|
|
1391 EOF
|
14
|
1392 if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
1393 rm -rf conftest*
|
|
1394 # TryCompile action if true
|
|
1395 cf_cv_ebcdic=yes
|
|
1396 else
|
|
1397 echo "configure: failed program was:" >&5
|
|
1398 cat conftest.$ac_ext >&5
|
|
1399 rm -rf conftest*
|
|
1400 # TryCompile action if false
|
|
1401 cf_cv_ebcdic=no
|
|
1402 fi
|
|
1403 rm -f conftest*
|
|
1404 # end of TryCompile ])
|
|
1405 # end of CacheVal CvEbcdic
|
|
1406 echo "$ac_t""$cf_cv_ebcdic" 1>&6
|
|
1407 case "$cf_cv_ebcdic" in #(vi
|
|
1408 yes) cat >> confdefs.h <<\EOF
|
|
1409 #define EBCDIC 1
|
|
1410 EOF
|
|
1411
|
|
1412 line_break='"\\n"'
|
|
1413 ;;
|
|
1414 *) line_break='"\\012"';;
|
|
1415 esac
|
|
1416
|
|
1417
|
|
1418 if test "$cf_cv_ebcdic" = "yes"; then
|
|
1419 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
|
14
|
1420 echo "configure:1421: checking for OS/390 Unix" >&5
|
7
|
1421 case `uname` in
|
|
1422 OS/390) OS390Unix="yes";
|
|
1423 if test "$CC" = "cc"; then
|
|
1424 ccm="$_CC_CCMODE"
|
|
1425 ccn="CC"
|
|
1426 else
|
|
1427 if test "$CC" = "c89"; then
|
|
1428 ccm="$_CC_C89MODE"
|
|
1429 ccn="C89"
|
|
1430 else
|
|
1431 ccm=1
|
|
1432 fi
|
|
1433 fi
|
|
1434 if test "$ccm" != "1"; then
|
|
1435 echo ""
|
|
1436 echo "------------------------------------------"
|
|
1437 echo " On OS/390 Unix, the environment variable"
|
|
1438 echo " __CC_${ccn}MODE must be set to \"1\"!"
|
|
1439 echo " Do:"
|
|
1440 echo " export _CC_${ccn}MODE=1"
|
|
1441 echo " and then call configure again."
|
|
1442 echo "------------------------------------------"
|
|
1443 exit 1
|
|
1444 fi
|
|
1445 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
|
|
1446 echo "$ac_t""yes" 1>&6
|
|
1447 ;;
|
|
1448 *) OS390Unix="no";
|
|
1449 echo "$ac_t""no" 1>&6
|
|
1450 ;;
|
|
1451 esac
|
|
1452 fi
|
|
1453
|
|
1454
|
|
1455
|
|
1456 echo $ac_n "checking --with-features argument""... $ac_c" 1>&6
|
14
|
1457 echo "configure:1458: checking --with-features argument" >&5
|
7
|
1458 # Check whether --with-features or --without-features was given.
|
|
1459 if test "${with_features+set}" = set; then
|
|
1460 withval="$with_features"
|
|
1461 features="$withval"; echo "$ac_t""$features" 1>&6
|
|
1462 else
|
|
1463 features="normal"; echo "$ac_t""Defaulting to normal" 1>&6
|
|
1464 fi
|
|
1465
|
|
1466
|
|
1467 dovimdiff=""
|
|
1468 dogvimdiff=""
|
|
1469 case "$features" in
|
|
1470 tiny) cat >> confdefs.h <<\EOF
|
|
1471 #define FEAT_TINY 1
|
|
1472 EOF
|
|
1473 ;;
|
|
1474 small) cat >> confdefs.h <<\EOF
|
|
1475 #define FEAT_SMALL 1
|
|
1476 EOF
|
|
1477 ;;
|
|
1478 normal) cat >> confdefs.h <<\EOF
|
|
1479 #define FEAT_NORMAL 1
|
|
1480 EOF
|
|
1481 dovimdiff="installvimdiff";
|
|
1482 dogvimdiff="installgvimdiff" ;;
|
|
1483 big) cat >> confdefs.h <<\EOF
|
|
1484 #define FEAT_BIG 1
|
|
1485 EOF
|
|
1486 dovimdiff="installvimdiff";
|
|
1487 dogvimdiff="installgvimdiff" ;;
|
|
1488 huge) cat >> confdefs.h <<\EOF
|
|
1489 #define FEAT_HUGE 1
|
|
1490 EOF
|
|
1491 dovimdiff="installvimdiff";
|
|
1492 dogvimdiff="installgvimdiff" ;;
|
|
1493 *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;;
|
|
1494 esac
|
|
1495
|
|
1496
|
|
1497
|
|
1498
|
|
1499 echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6
|
14
|
1500 echo "configure:1501: checking --with-compiledby argument" >&5
|
7
|
1501 # Check whether --with-compiledby or --without-compiledby was given.
|
|
1502 if test "${with_compiledby+set}" = set; then
|
|
1503 withval="$with_compiledby"
|
|
1504 compiledby="$withval"; echo "$ac_t""$withval" 1>&6
|
|
1505 else
|
|
1506 compiledby=""; echo "$ac_t""no" 1>&6
|
|
1507 fi
|
|
1508
|
|
1509
|
|
1510
|
|
1511 echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6
|
14
|
1512 echo "configure:1513: checking --disable-xsmp argument" >&5
|
7
|
1513 # Check whether --enable-xsmp or --disable-xsmp was given.
|
|
1514 if test "${enable_xsmp+set}" = set; then
|
|
1515 enableval="$enable_xsmp"
|
|
1516 :
|
|
1517 else
|
|
1518 enable_xsmp="yes"
|
|
1519 fi
|
|
1520
|
|
1521
|
|
1522 if test "$enable_xsmp" = "yes"; then
|
|
1523 echo "$ac_t""no" 1>&6
|
|
1524 echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6
|
14
|
1525 echo "configure:1526: checking --disable-xsmp-interact argument" >&5
|
7
|
1526 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
|
|
1527 if test "${enable_xsmp_interact+set}" = set; then
|
|
1528 enableval="$enable_xsmp_interact"
|
|
1529 :
|
|
1530 else
|
|
1531 enable_xsmp_interact="yes"
|
|
1532 fi
|
|
1533
|
|
1534 if test "$enable_xsmp_interact" = "yes"; then
|
|
1535 echo "$ac_t""no" 1>&6
|
|
1536 cat >> confdefs.h <<\EOF
|
|
1537 #define USE_XSMP_INTERACT 1
|
|
1538 EOF
|
|
1539
|
|
1540 else
|
|
1541 echo "$ac_t""yes" 1>&6
|
|
1542 fi
|
|
1543 else
|
|
1544 echo "$ac_t""yes" 1>&6
|
|
1545 fi
|
|
1546
|
14
|
1547 echo $ac_n "checking --enable-mzschemeinterp argument""... $ac_c" 1>&6
|
|
1548 echo "configure:1549: checking --enable-mzschemeinterp argument" >&5
|
|
1549 # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
|
|
1550 if test "${enable_mzschemeinterp+set}" = set; then
|
|
1551 enableval="$enable_mzschemeinterp"
|
|
1552 :
|
|
1553 else
|
|
1554 enable_mzschemeinterp="no"
|
|
1555 fi
|
|
1556
|
|
1557 echo "$ac_t""$enable_mzschemeinterp" 1>&6
|
|
1558
|
|
1559 if test "$enable_mzschemeinterp" = "yes"; then
|
|
1560
|
|
1561
|
|
1562 echo $ac_n "checking --with-plthome argument""... $ac_c" 1>&6
|
|
1563 echo "configure:1564: checking --with-plthome argument" >&5
|
|
1564 # Check whether --with-plthome or --without-plthome was given.
|
|
1565 if test "${with_plthome+set}" = set; then
|
|
1566 withval="$with_plthome"
|
|
1567 with_plthome="$withval"; echo "$ac_t""$with_plthome" 1>&6
|
|
1568 else
|
|
1569 with_plthome="";echo "$ac_t"""no"" 1>&6
|
|
1570 fi
|
|
1571
|
|
1572
|
|
1573 if test "X$with_plthome" != "X"; then
|
|
1574 vi_cv_path_mzscheme_pfx="$with_plthome"
|
|
1575 else
|
|
1576 echo $ac_n "checking PLTHOME environment var""... $ac_c" 1>&6
|
|
1577 echo "configure:1578: checking PLTHOME environment var" >&5
|
|
1578 if test "X$PLTHOME" != "X"; then
|
|
1579 echo "$ac_t"""$PLTHOME"" 1>&6
|
|
1580 vi_cv_path_mzscheme_pfx="$PLTHOME"
|
|
1581 else
|
|
1582 echo "$ac_t"""not set"" 1>&6
|
|
1583 # Extract the first word of "mzscheme", so it can be a program name with args.
|
|
1584 set dummy mzscheme; ac_word=$2
|
|
1585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
1586 echo "configure:1587: checking for $ac_word" >&5
|
|
1587 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_mzscheme'+set}'`\" = set"; then
|
|
1588 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1589 else
|
|
1590 case "$vi_cv_path_mzscheme" in
|
|
1591 /*)
|
|
1592 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
|
|
1593 ;;
|
|
1594 ?:/*)
|
|
1595 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a dos path.
|
|
1596 ;;
|
|
1597 *)
|
|
1598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1599 ac_dummy="$PATH"
|
|
1600 for ac_dir in $ac_dummy; do
|
|
1601 test -z "$ac_dir" && ac_dir=.
|
|
1602 if test -f $ac_dir/$ac_word; then
|
|
1603 ac_cv_path_vi_cv_path_mzscheme="$ac_dir/$ac_word"
|
|
1604 break
|
|
1605 fi
|
|
1606 done
|
|
1607 IFS="$ac_save_ifs"
|
|
1608 ;;
|
|
1609 esac
|
|
1610 fi
|
|
1611 vi_cv_path_mzscheme="$ac_cv_path_vi_cv_path_mzscheme"
|
|
1612 if test -n "$vi_cv_path_mzscheme"; then
|
|
1613 echo "$ac_t""$vi_cv_path_mzscheme" 1>&6
|
|
1614 else
|
|
1615 echo "$ac_t""no" 1>&6
|
|
1616 fi
|
|
1617
|
|
1618
|
|
1619 if test "X$vi_cv_path_mzscheme" != "X"; then
|
|
1620 lsout=`ls -l $vi_cv_path_mzscheme`
|
|
1621 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
|
|
1622 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
|
|
1623 fi
|
|
1624 fi
|
|
1625
|
|
1626 if test "X$vi_cv_path_mzscheme" != "X"; then
|
|
1627 echo $ac_n "checking MzScheme install prefix""... $ac_c" 1>&6
|
|
1628 echo "configure:1629: checking MzScheme install prefix" >&5
|
|
1629 if eval "test \"`echo '$''{'vi_cv_path_mzscheme_pfx'+set}'`\" = set"; then
|
|
1630 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1631 else
|
|
1632 vi_cv_path_mzscheme_pfx=`
|
|
1633 ${vi_cv_path_mzscheme} -evm \
|
|
1634 "(display (simplify-path \
|
|
1635 (build-path (call-with-values \
|
|
1636 (lambda () (split-path (find-system-path (quote exec-file)))) \
|
|
1637 (lambda (base name must-be-dir?) base)) (quote up))))"`
|
|
1638 fi
|
|
1639
|
|
1640 echo "$ac_t""$vi_cv_path_mzscheme_pfx" 1>&6
|
|
1641 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
|
|
1642 fi
|
|
1643 fi
|
|
1644 fi
|
|
1645
|
|
1646 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
|
|
1647 echo $ac_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include""... $ac_c" 1>&6
|
|
1648 echo "configure:1649: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
|
|
1649 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
|
|
1650 echo "$ac_t"""yes"" 1>&6
|
|
1651 else
|
|
1652 echo "$ac_t"""no"" 1>&6
|
|
1653 vi_cv_path_mzscheme_pfx=
|
|
1654 fi
|
|
1655 fi
|
|
1656
|
|
1657 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
|
|
1658 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
|
|
1659 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
|
|
1660 else
|
|
1661 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
|
16
|
1662 if test "$GCC" = yes; then
|
|
1663 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
|
17
|
1664 elif test "`(uname) 2>/dev/null`" = SunOS &&
|
|
1665 uname -r | grep '^5' >/dev/null; then
|
|
1666 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
|
16
|
1667 fi
|
14
|
1668 fi
|
|
1669 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
|
|
1670 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
|
|
1671 MZSCHEME_SRC="if_mzsch.c"
|
|
1672 MZSCHEME_OBJ="objects/if_mzsch.o"
|
|
1673 MZSCHEME_PRO="if_mzsch.pro"
|
|
1674 cat >> confdefs.h <<\EOF
|
|
1675 #define FEAT_MZSCHEME 1
|
|
1676 EOF
|
|
1677
|
|
1678 fi
|
|
1679
|
|
1680
|
|
1681
|
|
1682
|
|
1683
|
|
1684 fi
|
|
1685
|
|
1686
|
7
|
1687 echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6
|
17
|
1688 echo "configure:1689: checking --enable-perlinterp argument" >&5
|
7
|
1689 # Check whether --enable-perlinterp or --disable-perlinterp was given.
|
|
1690 if test "${enable_perlinterp+set}" = set; then
|
|
1691 enableval="$enable_perlinterp"
|
|
1692 :
|
|
1693 else
|
|
1694 enable_perlinterp="no"
|
|
1695 fi
|
|
1696
|
|
1697 echo "$ac_t""$enable_perlinterp" 1>&6
|
|
1698 if test "$enable_perlinterp" = "yes"; then
|
|
1699
|
|
1700 # Extract the first word of "perl", so it can be a program name with args.
|
|
1701 set dummy perl; ac_word=$2
|
|
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
1703 echo "configure:1704: checking for $ac_word" >&5
|
7
|
1704 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then
|
|
1705 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1706 else
|
|
1707 case "$vi_cv_path_perl" in
|
|
1708 /*)
|
|
1709 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
|
|
1710 ;;
|
|
1711 ?:/*)
|
|
1712 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path.
|
|
1713 ;;
|
|
1714 *)
|
|
1715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1716 ac_dummy="$PATH"
|
|
1717 for ac_dir in $ac_dummy; do
|
|
1718 test -z "$ac_dir" && ac_dir=.
|
|
1719 if test -f $ac_dir/$ac_word; then
|
|
1720 ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word"
|
|
1721 break
|
|
1722 fi
|
|
1723 done
|
|
1724 IFS="$ac_save_ifs"
|
|
1725 ;;
|
|
1726 esac
|
|
1727 fi
|
|
1728 vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl"
|
|
1729 if test -n "$vi_cv_path_perl"; then
|
|
1730 echo "$ac_t""$vi_cv_path_perl" 1>&6
|
|
1731 else
|
|
1732 echo "$ac_t""no" 1>&6
|
|
1733 fi
|
|
1734
|
|
1735 if test "X$vi_cv_path_perl" != "X"; then
|
|
1736 echo $ac_n "checking Perl version""... $ac_c" 1>&6
|
17
|
1737 echo "configure:1738: checking Perl version" >&5
|
7
|
1738 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
|
|
1739 eval `$vi_cv_path_perl -V:usethreads`
|
|
1740 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
|
|
1741 badthreads=no
|
|
1742 else
|
|
1743 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
|
|
1744 eval `$vi_cv_path_perl -V:use5005threads`
|
|
1745 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
|
|
1746 badthreads=no
|
|
1747 else
|
|
1748 badthreads=yes
|
|
1749 echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6
|
|
1750 fi
|
|
1751 else
|
|
1752 badthreads=yes
|
|
1753 echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6
|
|
1754 fi
|
|
1755 fi
|
|
1756 if test $badthreads = no; then
|
|
1757 echo "$ac_t""OK" 1>&6
|
|
1758 eval `$vi_cv_path_perl -V:shrpenv`
|
|
1759 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
|
|
1760 shrpenv=""
|
|
1761 fi
|
|
1762 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
|
|
1763
|
|
1764 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
|
|
1765 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
|
|
1766 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
|
|
1767 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
|
|
1768 -e 's/-bE:perl.exp//' -e 's/-lc //'`
|
|
1769 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
|
|
1770 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
|
|
1771
|
|
1772 echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6
|
17
|
1773 echo "configure:1774: checking if compile and link flags for Perl are sane" >&5
|
7
|
1774 cflags_save=$CFLAGS
|
|
1775 libs_save=$LIBS
|
|
1776 ldflags_save=$LDFLAGS
|
|
1777 CFLAGS="$CFLAGS $perlcppflags"
|
|
1778 LIBS="$LIBS $perllibs"
|
|
1779 LDFLAGS="$perlldflags $LDFLAGS"
|
|
1780 cat > conftest.$ac_ext <<EOF
|
17
|
1781 #line 1782 "configure"
|
7
|
1782 #include "confdefs.h"
|
|
1783
|
|
1784 int main() {
|
|
1785
|
|
1786 ; return 0; }
|
|
1787 EOF
|
17
|
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
1789 rm -rf conftest*
|
|
1790 echo "$ac_t""yes" 1>&6; perl_ok=yes
|
|
1791 else
|
|
1792 echo "configure: failed program was:" >&5
|
|
1793 cat conftest.$ac_ext >&5
|
|
1794 rm -rf conftest*
|
|
1795 echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no
|
|
1796 fi
|
|
1797 rm -f conftest*
|
|
1798 CFLAGS=$cflags_save
|
|
1799 LIBS=$libs_save
|
|
1800 LDFLAGS=$ldflags_save
|
|
1801 if test $perl_ok = yes; then
|
|
1802 if test "X$perlcppflags" != "X"; then
|
|
1803 PERL_CFLAGS="$perlcppflags"
|
|
1804 fi
|
|
1805 if test "X$perlldflags" != "X"; then
|
|
1806 LDFLAGS="$perlldflags $LDFLAGS"
|
|
1807 fi
|
|
1808 PERL_LIBS=$perllibs
|
|
1809 PERL_SRC="auto/if_perl.c if_perlsfio.c"
|
|
1810 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
|
|
1811 PERL_PRO="if_perl.pro if_perlsfio.pro"
|
|
1812 cat >> confdefs.h <<\EOF
|
|
1813 #define FEAT_PERL 1
|
|
1814 EOF
|
|
1815
|
|
1816 fi
|
|
1817 fi
|
|
1818 else
|
|
1819 echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6
|
|
1820 fi
|
|
1821 fi
|
|
1822
|
|
1823 if test "x$MACOSX" = "xyes"; then
|
|
1824 dir=/System/Library/Perl
|
|
1825 darwindir=$dir/darwin
|
|
1826 if test -d $darwindir; then
|
|
1827 PERL=/usr/bin/perl
|
|
1828 else
|
|
1829 dir=/System/Library/Perl/5.8.1
|
|
1830 darwindir=$dir/darwin-thread-multi-2level
|
|
1831 if test -d $darwindir; then
|
|
1832 PERL=/usr/bin/perl
|
|
1833 fi
|
|
1834 fi
|
|
1835 if test -n "$PERL"; then
|
|
1836 PERL_DIR="$dir"
|
|
1837 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
|
|
1838 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
|
|
1839 PERL_LIBS="-L$darwindir/CORE -lperl"
|
|
1840 fi
|
|
1841 fi
|
|
1842 fi
|
|
1843
|
|
1844
|
|
1845
|
|
1846
|
|
1847
|
|
1848
|
|
1849
|
|
1850 echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6
|
17
|
1851 echo "configure:1852: checking --enable-pythoninterp argument" >&5
|
7
|
1852 # Check whether --enable-pythoninterp or --disable-pythoninterp was given.
|
|
1853 if test "${enable_pythoninterp+set}" = set; then
|
|
1854 enableval="$enable_pythoninterp"
|
|
1855 :
|
|
1856 else
|
|
1857 enable_pythoninterp="no"
|
|
1858 fi
|
|
1859
|
|
1860 echo "$ac_t""$enable_pythoninterp" 1>&6
|
|
1861 if test "$enable_pythoninterp" = "yes"; then
|
|
1862 # Extract the first word of "python", so it can be a program name with args.
|
|
1863 set dummy python; ac_word=$2
|
|
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
1865 echo "configure:1866: checking for $ac_word" >&5
|
7
|
1866 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then
|
|
1867 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1868 else
|
|
1869 case "$vi_cv_path_python" in
|
|
1870 /*)
|
|
1871 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
|
|
1872 ;;
|
|
1873 ?:/*)
|
|
1874 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path.
|
|
1875 ;;
|
|
1876 *)
|
|
1877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1878 ac_dummy="$PATH"
|
|
1879 for ac_dir in $ac_dummy; do
|
|
1880 test -z "$ac_dir" && ac_dir=.
|
|
1881 if test -f $ac_dir/$ac_word; then
|
|
1882 ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word"
|
|
1883 break
|
|
1884 fi
|
|
1885 done
|
|
1886 IFS="$ac_save_ifs"
|
|
1887 ;;
|
|
1888 esac
|
|
1889 fi
|
|
1890 vi_cv_path_python="$ac_cv_path_vi_cv_path_python"
|
|
1891 if test -n "$vi_cv_path_python"; then
|
|
1892 echo "$ac_t""$vi_cv_path_python" 1>&6
|
|
1893 else
|
|
1894 echo "$ac_t""no" 1>&6
|
|
1895 fi
|
|
1896
|
|
1897 if test "X$vi_cv_path_python" != "X"; then
|
|
1898
|
|
1899 echo $ac_n "checking Python version""... $ac_c" 1>&6
|
17
|
1900 echo "configure:1901: checking Python version" >&5
|
7
|
1901 if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then
|
|
1902 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1903 else
|
|
1904 vi_cv_var_python_version=`
|
|
1905 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
|
|
1906
|
|
1907 fi
|
|
1908
|
|
1909 echo "$ac_t""$vi_cv_var_python_version" 1>&6
|
|
1910
|
|
1911 echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6
|
17
|
1912 echo "configure:1913: checking Python is 1.4 or better" >&5
|
7
|
1913 if ${vi_cv_path_python} -c \
|
|
1914 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
|
|
1915 then
|
|
1916 echo "$ac_t""yep" 1>&6
|
|
1917
|
|
1918 echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6
|
17
|
1919 echo "configure:1920: checking Python's install prefix" >&5
|
7
|
1920 if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then
|
|
1921 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1922 else
|
|
1923 vi_cv_path_python_pfx=`
|
|
1924 ${vi_cv_path_python} -c \
|
|
1925 "import sys; print sys.prefix"`
|
|
1926 fi
|
|
1927
|
|
1928 echo "$ac_t""$vi_cv_path_python_pfx" 1>&6
|
|
1929
|
|
1930 echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6
|
17
|
1931 echo "configure:1932: checking Python's execution prefix" >&5
|
7
|
1932 if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then
|
|
1933 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1934 else
|
|
1935 vi_cv_path_python_epfx=`
|
|
1936 ${vi_cv_path_python} -c \
|
|
1937 "import sys; print sys.exec_prefix"`
|
|
1938 fi
|
|
1939
|
|
1940 echo "$ac_t""$vi_cv_path_python_epfx" 1>&6
|
|
1941
|
|
1942
|
|
1943 if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then
|
|
1944 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1945 else
|
|
1946 vi_cv_path_pythonpath=`
|
|
1947 unset PYTHONPATH;
|
|
1948 ${vi_cv_path_python} -c \
|
|
1949 "import sys, string; print string.join(sys.path,':')"`
|
|
1950 fi
|
|
1951
|
|
1952
|
|
1953
|
|
1954 # Check whether --with-python-config-dir or --without-python-config-dir was given.
|
|
1955 if test "${with_python_config_dir+set}" = set; then
|
|
1956 withval="$with_python_config_dir"
|
|
1957 vi_cv_path_python_conf="${withval}"
|
|
1958 fi
|
|
1959
|
|
1960
|
|
1961 echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6
|
17
|
1962 echo "configure:1963: checking Python's configuration directory" >&5
|
7
|
1963 if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then
|
|
1964 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1965 else
|
|
1966
|
|
1967 vi_cv_path_python_conf=
|
|
1968 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
|
|
1969 for subdir in lib share; do
|
|
1970 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
|
|
1971 if test -d "$d" && test -f "$d/config.c"; then
|
|
1972 vi_cv_path_python_conf="$d"
|
|
1973 fi
|
|
1974 done
|
|
1975 done
|
|
1976
|
|
1977 fi
|
|
1978
|
|
1979 echo "$ac_t""$vi_cv_path_python_conf" 1>&6
|
|
1980
|
|
1981 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
|
|
1982
|
|
1983 if test "X$PYTHON_CONFDIR" = "X"; then
|
|
1984 echo "$ac_t""can't find it!" 1>&6
|
|
1985 else
|
|
1986
|
|
1987 if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then
|
|
1988 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1989 else
|
|
1990
|
|
1991 tmp_mkf="/tmp/Makefile-conf$$"
|
|
1992 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
|
|
1993 __:
|
|
1994 @echo "python_MODLIBS='$(MODLIBS)'"
|
|
1995 @echo "python_LIBS='$(LIBS)'"
|
|
1996 @echo "python_SYSLIBS='$(SYSLIBS)'"
|
|
1997 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
|
|
1998 eof
|
|
1999 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
|
|
2000 rm -f ${tmp_mkf}
|
|
2001 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
|
|
2002 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
|
|
2003 vi_cv_path_python_plibs="-framework Python"
|
|
2004 else
|
|
2005 if test "${vi_cv_var_python_version}" = "1.4"; then
|
|
2006 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
|
|
2007 else
|
|
2008 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
|
|
2009 fi
|
|
2010 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
|
|
2011 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
|
|
2012 fi
|
|
2013
|
|
2014 fi
|
|
2015
|
|
2016
|
|
2017 PYTHON_LIBS="${vi_cv_path_python_plibs}"
|
|
2018 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
|
|
2019 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
|
|
2020 else
|
|
2021 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
|
|
2022 fi
|
|
2023 PYTHON_SRC="if_python.c"
|
|
2024 if test "x$MACOSX" = "xyes"; then
|
|
2025 PYTHON_OBJ="objects/if_python.o"
|
|
2026 else
|
|
2027 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
|
|
2028 fi
|
|
2029 if test "${vi_cv_var_python_version}" = "1.4"; then
|
|
2030 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
|
|
2031 fi
|
|
2032 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
|
|
2033
|
|
2034 echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6
|
17
|
2035 echo "configure:2036: checking if -pthread should be used" >&5
|
7
|
2036 threadsafe_flag=
|
|
2037 thread_lib=
|
|
2038 if test "x$MACOSX" != "xyes"; then
|
|
2039 test "$GCC" = yes && threadsafe_flag="-pthread"
|
|
2040 if test "`(uname) 2>/dev/null`" = FreeBSD; then
|
|
2041 threadsafe_flag="-D_THREAD_SAFE"
|
|
2042 thread_lib="-pthread"
|
|
2043 fi
|
|
2044 fi
|
|
2045 libs_save_old=$LIBS
|
|
2046 if test -n "$threadsafe_flag"; then
|
|
2047 cflags_save=$CFLAGS
|
|
2048 CFLAGS="$CFLAGS $threadsafe_flag"
|
|
2049 LIBS="$LIBS $thread_lib"
|
|
2050 cat > conftest.$ac_ext <<EOF
|
17
|
2051 #line 2052 "configure"
|
7
|
2052 #include "confdefs.h"
|
|
2053
|
|
2054 int main() {
|
|
2055
|
|
2056 ; return 0; }
|
|
2057 EOF
|
17
|
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2059 rm -rf conftest*
|
|
2060 echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
|
|
2061 else
|
|
2062 echo "configure: failed program was:" >&5
|
|
2063 cat conftest.$ac_ext >&5
|
|
2064 rm -rf conftest*
|
|
2065 echo "$ac_t""no" 1>&6; LIBS=$libs_save_old
|
|
2066
|
|
2067 fi
|
|
2068 rm -f conftest*
|
|
2069 CFLAGS=$cflags_save
|
|
2070 else
|
|
2071 echo "$ac_t""no" 1>&6
|
|
2072 fi
|
|
2073
|
|
2074 echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6
|
17
|
2075 echo "configure:2076: checking if compile and link flags for Python are sane" >&5
|
7
|
2076 cflags_save=$CFLAGS
|
|
2077 libs_save=$LIBS
|
|
2078 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
|
|
2079 LIBS="$LIBS $PYTHON_LIBS"
|
|
2080 cat > conftest.$ac_ext <<EOF
|
17
|
2081 #line 2082 "configure"
|
7
|
2082 #include "confdefs.h"
|
|
2083
|
|
2084 int main() {
|
|
2085
|
|
2086 ; return 0; }
|
|
2087 EOF
|
17
|
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2089 rm -rf conftest*
|
|
2090 echo "$ac_t""yes" 1>&6; python_ok=yes
|
|
2091 else
|
|
2092 echo "configure: failed program was:" >&5
|
|
2093 cat conftest.$ac_ext >&5
|
|
2094 rm -rf conftest*
|
|
2095 echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no
|
|
2096 fi
|
|
2097 rm -f conftest*
|
|
2098 CFLAGS=$cflags_save
|
|
2099 LIBS=$libs_save
|
|
2100 if test $python_ok = yes; then
|
|
2101 cat >> confdefs.h <<\EOF
|
|
2102 #define FEAT_PYTHON 1
|
|
2103 EOF
|
|
2104
|
|
2105 else
|
|
2106 LIBS=$libs_save_old
|
|
2107 PYTHON_SRC=
|
|
2108 PYTHON_OBJ=
|
|
2109 PYTHON_LIBS=
|
|
2110 PYTHON_CFLAGS=
|
|
2111 fi
|
|
2112
|
|
2113 fi
|
|
2114 else
|
|
2115 echo "$ac_t""too old" 1>&6
|
|
2116 fi
|
|
2117 fi
|
|
2118 fi
|
|
2119
|
|
2120
|
|
2121
|
|
2122
|
|
2123
|
|
2124
|
|
2125
|
|
2126 echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6
|
17
|
2127 echo "configure:2128: checking --enable-tclinterp argument" >&5
|
7
|
2128 # Check whether --enable-tclinterp or --disable-tclinterp was given.
|
|
2129 if test "${enable_tclinterp+set}" = set; then
|
|
2130 enableval="$enable_tclinterp"
|
|
2131 :
|
|
2132 else
|
|
2133 enable_tclinterp="no"
|
|
2134 fi
|
|
2135
|
|
2136 echo "$ac_t""$enable_tclinterp" 1>&6
|
|
2137
|
|
2138 if test "$enable_tclinterp" = "yes"; then
|
|
2139
|
|
2140 echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6
|
17
|
2141 echo "configure:2142: checking --with-tclsh argument" >&5
|
7
|
2142 # Check whether --with-tclsh or --without-tclsh was given.
|
|
2143 if test "${with_tclsh+set}" = set; then
|
|
2144 withval="$with_tclsh"
|
|
2145 tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6
|
|
2146 else
|
|
2147 tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6
|
|
2148 fi
|
|
2149
|
|
2150 # Extract the first word of "$tclsh_name", so it can be a program name with args.
|
|
2151 set dummy $tclsh_name; ac_word=$2
|
|
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
2153 echo "configure:2154: checking for $ac_word" >&5
|
7
|
2154 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
|
|
2155 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2156 else
|
|
2157 case "$vi_cv_path_tcl" in
|
|
2158 /*)
|
|
2159 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
|
|
2160 ;;
|
|
2161 ?:/*)
|
|
2162 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
|
|
2163 ;;
|
|
2164 *)
|
|
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2166 ac_dummy="$PATH"
|
|
2167 for ac_dir in $ac_dummy; do
|
|
2168 test -z "$ac_dir" && ac_dir=.
|
|
2169 if test -f $ac_dir/$ac_word; then
|
|
2170 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
|
|
2171 break
|
|
2172 fi
|
|
2173 done
|
|
2174 IFS="$ac_save_ifs"
|
|
2175 ;;
|
|
2176 esac
|
|
2177 fi
|
|
2178 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
|
|
2179 if test -n "$vi_cv_path_tcl"; then
|
|
2180 echo "$ac_t""$vi_cv_path_tcl" 1>&6
|
|
2181 else
|
|
2182 echo "$ac_t""no" 1>&6
|
|
2183 fi
|
|
2184
|
|
2185
|
|
2186
|
|
2187 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then
|
|
2188 tclsh_name="tclsh8.2"
|
|
2189 # Extract the first word of "$tclsh_name", so it can be a program name with args.
|
|
2190 set dummy $tclsh_name; ac_word=$2
|
|
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
2192 echo "configure:2193: checking for $ac_word" >&5
|
7
|
2193 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
|
|
2194 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2195 else
|
|
2196 case "$vi_cv_path_tcl" in
|
|
2197 /*)
|
|
2198 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
|
|
2199 ;;
|
|
2200 ?:/*)
|
|
2201 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
|
|
2202 ;;
|
|
2203 *)
|
|
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2205 ac_dummy="$PATH"
|
|
2206 for ac_dir in $ac_dummy; do
|
|
2207 test -z "$ac_dir" && ac_dir=.
|
|
2208 if test -f $ac_dir/$ac_word; then
|
|
2209 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
|
|
2210 break
|
|
2211 fi
|
|
2212 done
|
|
2213 IFS="$ac_save_ifs"
|
|
2214 ;;
|
|
2215 esac
|
|
2216 fi
|
|
2217 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
|
|
2218 if test -n "$vi_cv_path_tcl"; then
|
|
2219 echo "$ac_t""$vi_cv_path_tcl" 1>&6
|
|
2220 else
|
|
2221 echo "$ac_t""no" 1>&6
|
|
2222 fi
|
|
2223
|
|
2224 fi
|
|
2225 if test "X$vi_cv_path_tcl" = "X"; then
|
|
2226 tclsh_name="tclsh"
|
|
2227 # Extract the first word of "$tclsh_name", so it can be a program name with args.
|
|
2228 set dummy $tclsh_name; ac_word=$2
|
|
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
2230 echo "configure:2231: checking for $ac_word" >&5
|
7
|
2231 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
|
|
2232 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2233 else
|
|
2234 case "$vi_cv_path_tcl" in
|
|
2235 /*)
|
|
2236 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
|
|
2237 ;;
|
|
2238 ?:/*)
|
|
2239 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
|
|
2240 ;;
|
|
2241 *)
|
|
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2243 ac_dummy="$PATH"
|
|
2244 for ac_dir in $ac_dummy; do
|
|
2245 test -z "$ac_dir" && ac_dir=.
|
|
2246 if test -f $ac_dir/$ac_word; then
|
|
2247 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
|
|
2248 break
|
|
2249 fi
|
|
2250 done
|
|
2251 IFS="$ac_save_ifs"
|
|
2252 ;;
|
|
2253 esac
|
|
2254 fi
|
|
2255 vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
|
|
2256 if test -n "$vi_cv_path_tcl"; then
|
|
2257 echo "$ac_t""$vi_cv_path_tcl" 1>&6
|
|
2258 else
|
|
2259 echo "$ac_t""no" 1>&6
|
|
2260 fi
|
|
2261
|
|
2262 fi
|
|
2263 if test "X$vi_cv_path_tcl" != "X"; then
|
|
2264 echo $ac_n "checking Tcl version""... $ac_c" 1>&6
|
17
|
2265 echo "configure:2266: checking Tcl version" >&5
|
7
|
2266 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
|
|
2267 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
|
|
2268 echo "$ac_t""$tclver - OK" 1>&6;
|
|
2269 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
|
|
2270
|
|
2271 echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6
|
17
|
2272 echo "configure:2273: checking for location of Tcl include" >&5
|
7
|
2273 if test "x$MACOSX" != "xyes"; then
|
|
2274 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include"
|
|
2275 else
|
|
2276 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
|
|
2277 fi
|
|
2278 for try in $tclinc; do
|
|
2279 if test -f "$try/tcl.h"; then
|
|
2280 echo "$ac_t""$try/tcl.h" 1>&6
|
|
2281 TCL_INC=$try
|
|
2282 break
|
|
2283 fi
|
|
2284 done
|
|
2285 if test -z "$TCL_INC"; then
|
|
2286 echo "$ac_t""<not found>" 1>&6
|
|
2287 SKIP_TCL=YES
|
|
2288 fi
|
|
2289 if test -z "$SKIP_TCL"; then
|
|
2290 echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6
|
17
|
2291 echo "configure:2292: checking for location of tclConfig.sh script" >&5
|
7
|
2292 if test "x$MACOSX" != "xyes"; then
|
|
2293 tclcnf=`echo $tclinc | sed s/include/lib/g`
|
|
2294 else
|
|
2295 tclcnf="/System/Library/Frameworks/Tcl.framework"
|
|
2296 fi
|
|
2297 for try in $tclcnf; do
|
|
2298 if test -f $try/tclConfig.sh; then
|
|
2299 echo "$ac_t""$try/tclConfig.sh" 1>&6
|
|
2300 . $try/tclConfig.sh
|
|
2301 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
|
|
2302 TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
|
|
2303 break
|
|
2304 fi
|
|
2305 done
|
|
2306 if test -z "$TCL_LIBS"; then
|
|
2307 echo "$ac_t""<not found>" 1>&6
|
|
2308 echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6
|
17
|
2309 echo "configure:2310: checking for Tcl library by myself" >&5
|
7
|
2310 tcllib=`echo $tclinc | sed s/include/lib/g`
|
|
2311 for ext in .so .a ; do
|
|
2312 for ver in "" $tclver ; do
|
|
2313 for try in $tcllib ; do
|
|
2314 trylib=tcl$ver$ext
|
|
2315 if test -f $try/lib$trylib ; then
|
|
2316 echo "$ac_t""$try/lib$trylib" 1>&6
|
|
2317 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
|
|
2318 if test "`(uname) 2>/dev/null`" = SunOS &&
|
|
2319 uname -r | grep '^5' >/dev/null; then
|
|
2320 TCL_LIBS="$TCL_LIBS -R $try"
|
|
2321 fi
|
|
2322 break 3
|
|
2323 fi
|
|
2324 done
|
|
2325 done
|
|
2326 done
|
|
2327 if test -z "$TCL_LIBS"; then
|
|
2328 echo "$ac_t""<not found>" 1>&6
|
|
2329 SKIP_TCL=YES
|
|
2330 fi
|
|
2331 fi
|
|
2332 if test -z "$SKIP_TCL"; then
|
|
2333 cat >> confdefs.h <<\EOF
|
|
2334 #define FEAT_TCL 1
|
|
2335 EOF
|
|
2336
|
|
2337 TCL_SRC=if_tcl.c
|
|
2338 TCL_OBJ=objects/if_tcl.o
|
|
2339 TCL_PRO=if_tcl.pro
|
|
2340 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
|
|
2341 fi
|
|
2342 fi
|
|
2343 else
|
|
2344 echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6
|
|
2345 fi
|
|
2346 fi
|
|
2347 fi
|
|
2348
|
|
2349
|
|
2350
|
|
2351
|
|
2352
|
|
2353
|
|
2354 echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6
|
17
|
2355 echo "configure:2356: checking --enable-rubyinterp argument" >&5
|
7
|
2356 # Check whether --enable-rubyinterp or --disable-rubyinterp was given.
|
|
2357 if test "${enable_rubyinterp+set}" = set; then
|
|
2358 enableval="$enable_rubyinterp"
|
|
2359 :
|
|
2360 else
|
|
2361 enable_rubyinterp="no"
|
|
2362 fi
|
|
2363
|
|
2364 echo "$ac_t""$enable_rubyinterp" 1>&6
|
|
2365 if test "$enable_rubyinterp" = "yes"; then
|
|
2366
|
|
2367 # Extract the first word of "ruby", so it can be a program name with args.
|
|
2368 set dummy ruby; ac_word=$2
|
|
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
2370 echo "configure:2371: checking for $ac_word" >&5
|
7
|
2371 if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then
|
|
2372 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2373 else
|
|
2374 case "$vi_cv_path_ruby" in
|
|
2375 /*)
|
|
2376 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
|
|
2377 ;;
|
|
2378 ?:/*)
|
|
2379 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path.
|
|
2380 ;;
|
|
2381 *)
|
|
2382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2383 ac_dummy="$PATH"
|
|
2384 for ac_dir in $ac_dummy; do
|
|
2385 test -z "$ac_dir" && ac_dir=.
|
|
2386 if test -f $ac_dir/$ac_word; then
|
|
2387 ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word"
|
|
2388 break
|
|
2389 fi
|
|
2390 done
|
|
2391 IFS="$ac_save_ifs"
|
|
2392 ;;
|
|
2393 esac
|
|
2394 fi
|
|
2395 vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby"
|
|
2396 if test -n "$vi_cv_path_ruby"; then
|
|
2397 echo "$ac_t""$vi_cv_path_ruby" 1>&6
|
|
2398 else
|
|
2399 echo "$ac_t""no" 1>&6
|
|
2400 fi
|
|
2401
|
|
2402 if test "X$vi_cv_path_ruby" != "X"; then
|
|
2403 echo $ac_n "checking Ruby version""... $ac_c" 1>&6
|
17
|
2404 echo "configure:2405: checking Ruby version" >&5
|
7
|
2405 if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
|
|
2406 echo "$ac_t""OK" 1>&6
|
|
2407 echo $ac_n "checking Ruby header files""... $ac_c" 1>&6
|
17
|
2408 echo "configure:2409: checking Ruby header files" >&5
|
7
|
2409 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
|
|
2410 if test "X$rubyhdrdir" != "X"; then
|
|
2411 echo "$ac_t""$rubyhdrdir" 1>&6
|
|
2412 RUBY_CFLAGS="-I$rubyhdrdir"
|
|
2413 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
|
|
2414 if test "X$rubylibs" != "X"; then
|
|
2415 RUBY_LIBS="$rubylibs"
|
|
2416 fi
|
|
2417 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
|
|
2418 if test -f "$rubyhdrdir/$librubyarg"; then
|
|
2419 librubyarg="$rubyhdrdir/$librubyarg"
|
|
2420 else
|
|
2421 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
|
|
2422 if test -f "$rubylibdir/$librubyarg"; then
|
|
2423 librubyarg="$rubylibdir/$librubyarg"
|
|
2424 elif test "$librubyarg" = "libruby.a"; then
|
|
2425 librubyarg="-lruby"
|
|
2426 else
|
|
2427 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
|
|
2428 fi
|
|
2429 fi
|
|
2430
|
|
2431 if test "X$librubyarg" != "X"; then
|
|
2432 RUBY_LIBS="$librubyarg $RUBY_LIBS"
|
|
2433 fi
|
|
2434 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
|
|
2435 if test "X$rubyldflags" != "X"; then
|
|
2436 LDFLAGS="$rubyldflags $LDFLAGS"
|
|
2437 fi
|
|
2438 RUBY_SRC="if_ruby.c"
|
|
2439 RUBY_OBJ="objects/if_ruby.o"
|
|
2440 RUBY_PRO="if_ruby.pro"
|
|
2441 cat >> confdefs.h <<\EOF
|
|
2442 #define FEAT_RUBY 1
|
|
2443 EOF
|
|
2444
|
|
2445 else
|
|
2446 echo "$ac_t""not found" 1>&6
|
|
2447 fi
|
|
2448 else
|
|
2449 echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6
|
|
2450 fi
|
|
2451 fi
|
|
2452 fi
|
|
2453
|
|
2454
|
|
2455
|
|
2456
|
|
2457
|
|
2458
|
|
2459 echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6
|
17
|
2460 echo "configure:2461: checking --enable-cscope argument" >&5
|
7
|
2461 # Check whether --enable-cscope or --disable-cscope was given.
|
|
2462 if test "${enable_cscope+set}" = set; then
|
|
2463 enableval="$enable_cscope"
|
|
2464 :
|
|
2465 else
|
|
2466 enable_cscope="no"
|
|
2467 fi
|
|
2468
|
|
2469 echo "$ac_t""$enable_cscope" 1>&6
|
|
2470 if test "$enable_cscope" = "yes"; then
|
|
2471 cat >> confdefs.h <<\EOF
|
|
2472 #define FEAT_CSCOPE 1
|
|
2473 EOF
|
|
2474
|
|
2475 fi
|
|
2476
|
|
2477 echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6
|
17
|
2478 echo "configure:2479: checking --enable-workshop argument" >&5
|
7
|
2479 # Check whether --enable-workshop or --disable-workshop was given.
|
|
2480 if test "${enable_workshop+set}" = set; then
|
|
2481 enableval="$enable_workshop"
|
|
2482 :
|
|
2483 else
|
|
2484 enable_workshop="no"
|
|
2485 fi
|
|
2486
|
|
2487 echo "$ac_t""$enable_workshop" 1>&6
|
|
2488 if test "$enable_workshop" = "yes"; then
|
|
2489 cat >> confdefs.h <<\EOF
|
|
2490 #define FEAT_SUN_WORKSHOP 1
|
|
2491 EOF
|
|
2492
|
|
2493 WORKSHOP_SRC="workshop.c integration.c"
|
|
2494
|
|
2495 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
|
|
2496
|
|
2497 if test "${enable_gui-xxx}" = xxx; then
|
|
2498 enable_gui=motif
|
|
2499 fi
|
|
2500 fi
|
|
2501
|
|
2502 echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6
|
17
|
2503 echo "configure:2504: checking --disable-netbeans argument" >&5
|
7
|
2504 # Check whether --enable-netbeans or --disable-netbeans was given.
|
|
2505 if test "${enable_netbeans+set}" = set; then
|
|
2506 enableval="$enable_netbeans"
|
|
2507 :
|
|
2508 else
|
|
2509 enable_netbeans="yes"
|
|
2510 fi
|
|
2511
|
|
2512 if test "$enable_netbeans" = "yes"; then
|
|
2513 echo "$ac_t""no" 1>&6
|
|
2514 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
17
|
2515 echo "configure:2516: checking for socket in -lsocket" >&5
|
7
|
2516 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
|
|
2517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
2518 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2519 else
|
|
2520 ac_save_LIBS="$LIBS"
|
|
2521 LIBS="-lsocket $LIBS"
|
|
2522 cat > conftest.$ac_ext <<EOF
|
17
|
2523 #line 2524 "configure"
|
7
|
2524 #include "confdefs.h"
|
|
2525 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2526 /* We use char because int might match the return type of a gcc2
|
|
2527 builtin and then its argument prototype would still apply. */
|
|
2528 char socket();
|
|
2529
|
|
2530 int main() {
|
|
2531 socket()
|
|
2532 ; return 0; }
|
|
2533 EOF
|
17
|
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2535 rm -rf conftest*
|
|
2536 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
2537 else
|
|
2538 echo "configure: failed program was:" >&5
|
|
2539 cat conftest.$ac_ext >&5
|
|
2540 rm -rf conftest*
|
|
2541 eval "ac_cv_lib_$ac_lib_var=no"
|
|
2542 fi
|
|
2543 rm -f conftest*
|
|
2544 LIBS="$ac_save_LIBS"
|
|
2545
|
|
2546 fi
|
|
2547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
2548 echo "$ac_t""yes" 1>&6
|
|
2549 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
2550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
2551 cat >> confdefs.h <<EOF
|
|
2552 #define $ac_tr_lib 1
|
|
2553 EOF
|
|
2554
|
|
2555 LIBS="-lsocket $LIBS"
|
|
2556
|
|
2557 else
|
|
2558 echo "$ac_t""no" 1>&6
|
|
2559 fi
|
|
2560
|
|
2561 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
17
|
2562 echo "configure:2563: checking for gethostbyname in -lnsl" >&5
|
7
|
2563 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
2565 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2566 else
|
|
2567 ac_save_LIBS="$LIBS"
|
|
2568 LIBS="-lnsl $LIBS"
|
|
2569 cat > conftest.$ac_ext <<EOF
|
17
|
2570 #line 2571 "configure"
|
7
|
2571 #include "confdefs.h"
|
|
2572 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2573 /* We use char because int might match the return type of a gcc2
|
|
2574 builtin and then its argument prototype would still apply. */
|
|
2575 char gethostbyname();
|
|
2576
|
|
2577 int main() {
|
|
2578 gethostbyname()
|
|
2579 ; return 0; }
|
|
2580 EOF
|
17
|
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2582 rm -rf conftest*
|
|
2583 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
2584 else
|
|
2585 echo "configure: failed program was:" >&5
|
|
2586 cat conftest.$ac_ext >&5
|
|
2587 rm -rf conftest*
|
|
2588 eval "ac_cv_lib_$ac_lib_var=no"
|
|
2589 fi
|
|
2590 rm -f conftest*
|
|
2591 LIBS="$ac_save_LIBS"
|
|
2592
|
|
2593 fi
|
|
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
2595 echo "$ac_t""yes" 1>&6
|
|
2596 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
2597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
2598 cat >> confdefs.h <<EOF
|
|
2599 #define $ac_tr_lib 1
|
|
2600 EOF
|
|
2601
|
|
2602 LIBS="-lnsl $LIBS"
|
|
2603
|
|
2604 else
|
|
2605 echo "$ac_t""no" 1>&6
|
|
2606 fi
|
|
2607
|
|
2608 echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6
|
17
|
2609 echo "configure:2610: checking whether compiling netbeans integration is possible" >&5
|
7
|
2610 cat > conftest.$ac_ext <<EOF
|
17
|
2611 #line 2612 "configure"
|
7
|
2612 #include "confdefs.h"
|
|
2613
|
|
2614 #include <stdio.h>
|
|
2615 #include <stdlib.h>
|
|
2616 #include <stdarg.h>
|
|
2617 #include <fcntl.h>
|
|
2618 #include <netdb.h>
|
|
2619 #include <netinet/in.h>
|
|
2620 #include <errno.h>
|
|
2621 #include <sys/types.h>
|
|
2622 #include <sys/socket.h>
|
|
2623 /* Check bitfields */
|
|
2624 struct nbbuf {
|
|
2625 unsigned int initDone:1;
|
|
2626 ushort signmaplen;
|
|
2627 };
|
|
2628
|
|
2629 int main() {
|
|
2630
|
|
2631 /* Check creating a socket. */
|
|
2632 struct sockaddr_in server;
|
|
2633 (void)socket(AF_INET, SOCK_STREAM, 0);
|
|
2634 (void)htons(100);
|
|
2635 (void)gethostbyname("microsoft.com");
|
|
2636 if (errno == ECONNREFUSED)
|
|
2637 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
|
|
2638
|
|
2639 ; return 0; }
|
|
2640 EOF
|
17
|
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2642 rm -rf conftest*
|
|
2643 echo "$ac_t""yes" 1>&6
|
|
2644 else
|
|
2645 echo "configure: failed program was:" >&5
|
|
2646 cat conftest.$ac_ext >&5
|
|
2647 rm -rf conftest*
|
|
2648 echo "$ac_t""no" 1>&6; enable_netbeans="no"
|
|
2649 fi
|
|
2650 rm -f conftest*
|
|
2651 else
|
|
2652 echo "$ac_t""yes" 1>&6
|
|
2653 fi
|
|
2654 if test "$enable_netbeans" = "yes"; then
|
|
2655 cat >> confdefs.h <<\EOF
|
|
2656 #define FEAT_NETBEANS_INTG 1
|
|
2657 EOF
|
|
2658
|
|
2659 NETBEANS_SRC="netbeans.c"
|
|
2660
|
|
2661 NETBEANS_OBJ="objects/netbeans.o"
|
|
2662
|
|
2663 fi
|
|
2664
|
|
2665 echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6
|
17
|
2666 echo "configure:2667: checking --enable-sniff argument" >&5
|
7
|
2667 # Check whether --enable-sniff or --disable-sniff was given.
|
|
2668 if test "${enable_sniff+set}" = set; then
|
|
2669 enableval="$enable_sniff"
|
|
2670 :
|
|
2671 else
|
|
2672 enable_sniff="no"
|
|
2673 fi
|
|
2674
|
|
2675 echo "$ac_t""$enable_sniff" 1>&6
|
|
2676 if test "$enable_sniff" = "yes"; then
|
|
2677 cat >> confdefs.h <<\EOF
|
|
2678 #define FEAT_SNIFF 1
|
|
2679 EOF
|
|
2680
|
|
2681 SNIFF_SRC="if_sniff.c"
|
|
2682
|
|
2683 SNIFF_OBJ="objects/if_sniff.o"
|
|
2684
|
|
2685 fi
|
|
2686
|
|
2687 echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6
|
17
|
2688 echo "configure:2689: checking --enable-multibyte argument" >&5
|
7
|
2689 # Check whether --enable-multibyte or --disable-multibyte was given.
|
|
2690 if test "${enable_multibyte+set}" = set; then
|
|
2691 enableval="$enable_multibyte"
|
|
2692 :
|
|
2693 else
|
|
2694 enable_multibyte="no"
|
|
2695 fi
|
|
2696
|
|
2697 echo "$ac_t""$enable_multibyte" 1>&6
|
|
2698 if test "$enable_multibyte" = "yes"; then
|
|
2699 cat >> confdefs.h <<\EOF
|
|
2700 #define FEAT_MBYTE 1
|
|
2701 EOF
|
|
2702
|
|
2703 fi
|
|
2704
|
|
2705 echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6
|
17
|
2706 echo "configure:2707: checking --enable-hangulinput argument" >&5
|
7
|
2707 # Check whether --enable-hangulinput or --disable-hangulinput was given.
|
|
2708 if test "${enable_hangulinput+set}" = set; then
|
|
2709 enableval="$enable_hangulinput"
|
|
2710 :
|
|
2711 else
|
|
2712 enable_hangulinput="no"
|
|
2713 fi
|
|
2714
|
|
2715 echo "$ac_t""$enable_hangulinput" 1>&6
|
|
2716
|
|
2717 echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6
|
17
|
2718 echo "configure:2719: checking --enable-xim argument" >&5
|
7
|
2719 # Check whether --enable-xim or --disable-xim was given.
|
|
2720 if test "${enable_xim+set}" = set; then
|
|
2721 enableval="$enable_xim"
|
|
2722 echo "$ac_t""$enable_xim" 1>&6
|
|
2723 else
|
|
2724 enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6
|
|
2725 fi
|
|
2726
|
|
2727
|
|
2728 echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6
|
17
|
2729 echo "configure:2730: checking --enable-fontset argument" >&5
|
7
|
2730 # Check whether --enable-fontset or --disable-fontset was given.
|
|
2731 if test "${enable_fontset+set}" = set; then
|
|
2732 enableval="$enable_fontset"
|
|
2733 :
|
|
2734 else
|
|
2735 enable_fontset="no"
|
|
2736 fi
|
|
2737
|
|
2738 echo "$ac_t""$enable_fontset" 1>&6
|
|
2739
|
|
2740 test -z "$with_x" && with_x=yes
|
|
2741 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
|
|
2742 if test "$with_x" = no; then
|
|
2743 echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6
|
|
2744 else
|
|
2745
|
|
2746 # Extract the first word of "xmkmf", so it can be a program name with args.
|
|
2747 set dummy xmkmf; ac_word=$2
|
|
2748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
2749 echo "configure:2750: checking for $ac_word" >&5
|
7
|
2750 if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then
|
|
2751 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2752 else
|
|
2753 case "$xmkmfpath" in
|
|
2754 /*)
|
|
2755 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
|
|
2756 ;;
|
|
2757 ?:/*)
|
|
2758 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path.
|
|
2759 ;;
|
|
2760 *)
|
|
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2762 ac_dummy="$PATH"
|
|
2763 for ac_dir in $ac_dummy; do
|
|
2764 test -z "$ac_dir" && ac_dir=.
|
|
2765 if test -f $ac_dir/$ac_word; then
|
|
2766 ac_cv_path_xmkmfpath="$ac_dir/$ac_word"
|
|
2767 break
|
|
2768 fi
|
|
2769 done
|
|
2770 IFS="$ac_save_ifs"
|
|
2771 ;;
|
|
2772 esac
|
|
2773 fi
|
|
2774 xmkmfpath="$ac_cv_path_xmkmfpath"
|
|
2775 if test -n "$xmkmfpath"; then
|
|
2776 echo "$ac_t""$xmkmfpath" 1>&6
|
|
2777 else
|
|
2778 echo "$ac_t""no" 1>&6
|
|
2779 fi
|
|
2780
|
|
2781
|
|
2782 # If we find X, set shell vars x_includes and x_libraries to the
|
|
2783 # paths, otherwise set no_x=yes.
|
|
2784 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
2785 # --without-x overrides everything else, but does not touch the cache.
|
|
2786 echo $ac_n "checking for X""... $ac_c" 1>&6
|
17
|
2787 echo "configure:2788: checking for X" >&5
|
7
|
2788
|
|
2789 # Check whether --with-x or --without-x was given.
|
|
2790 if test "${with_x+set}" = set; then
|
|
2791 withval="$with_x"
|
|
2792 :
|
|
2793 fi
|
|
2794
|
|
2795 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
2796 if test "x$with_x" = xno; then
|
|
2797 # The user explicitly disabled X.
|
|
2798 have_x=disabled
|
|
2799 else
|
|
2800 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
2801 # Both variables are already set.
|
|
2802 have_x=yes
|
|
2803 else
|
|
2804 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
|
2805 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2806 else
|
|
2807 # One or both of the vars are not set, and there is no cached value.
|
|
2808 ac_x_includes=NO ac_x_libraries=NO
|
|
2809 rm -fr conftestdir
|
|
2810 if mkdir conftestdir; then
|
|
2811 cd conftestdir
|
|
2812 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
2813 cat > Imakefile <<'EOF'
|
|
2814 acfindx:
|
|
2815 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
2816 EOF
|
|
2817 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
2818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
2819 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
2820 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
2821 for ac_extension in a so sl; do
|
|
2822 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
2823 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
2824 ac_im_usrlibdir=$ac_im_libdir; break
|
|
2825 fi
|
|
2826 done
|
|
2827 # Screen out bogus values from the imake configuration. They are
|
|
2828 # bogus both because they are the default anyway, and because
|
|
2829 # using them would break gcc on systems where it needs fixed includes.
|
|
2830 case "$ac_im_incroot" in
|
|
2831 /usr/include) ;;
|
|
2832 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|
2833 esac
|
|
2834 case "$ac_im_usrlibdir" in
|
|
2835 /usr/lib | /lib) ;;
|
|
2836 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|
2837 esac
|
|
2838 fi
|
|
2839 cd ..
|
|
2840 rm -fr conftestdir
|
|
2841 fi
|
|
2842
|
|
2843 if test "$ac_x_includes" = NO; then
|
|
2844 # Guess where to find include files, by looking for this one X11 .h file.
|
|
2845 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
2846
|
|
2847 # First, try using that file with no special directory specified.
|
|
2848 cat > conftest.$ac_ext <<EOF
|
17
|
2849 #line 2850 "configure"
|
7
|
2850 #include "confdefs.h"
|
|
2851 #include <$x_direct_test_include>
|
|
2852 EOF
|
|
2853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
2854 { (eval echo configure:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
2855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2856 if test -z "$ac_err"; then
|
|
2857 rm -rf conftest*
|
|
2858 # We can compile using X headers with no special include directory.
|
|
2859 ac_x_includes=
|
|
2860 else
|
|
2861 echo "$ac_err" >&5
|
|
2862 echo "configure: failed program was:" >&5
|
|
2863 cat conftest.$ac_ext >&5
|
|
2864 rm -rf conftest*
|
|
2865 # Look for the header file in a standard set of common directories.
|
|
2866 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
2867 for ac_dir in \
|
|
2868 /usr/X11/include \
|
|
2869 /usr/X11R6/include \
|
|
2870 /usr/X11R5/include \
|
|
2871 /usr/X11R4/include \
|
|
2872 \
|
|
2873 /usr/include/X11 \
|
|
2874 /usr/include/X11R6 \
|
|
2875 /usr/include/X11R5 \
|
|
2876 /usr/include/X11R4 \
|
|
2877 \
|
|
2878 /usr/local/X11/include \
|
|
2879 /usr/local/X11R6/include \
|
|
2880 /usr/local/X11R5/include \
|
|
2881 /usr/local/X11R4/include \
|
|
2882 \
|
|
2883 /usr/local/include/X11 \
|
|
2884 /usr/local/include/X11R6 \
|
|
2885 /usr/local/include/X11R5 \
|
|
2886 /usr/local/include/X11R4 \
|
|
2887 \
|
|
2888 /usr/X386/include \
|
|
2889 /usr/x386/include \
|
|
2890 /usr/XFree86/include/X11 \
|
|
2891 \
|
|
2892 /usr/include \
|
|
2893 /usr/local/include \
|
|
2894 /usr/unsupported/include \
|
|
2895 /usr/athena/include \
|
|
2896 /usr/local/x11r5/include \
|
|
2897 /usr/lpp/Xamples/include \
|
|
2898 \
|
|
2899 /usr/openwin/include \
|
|
2900 /usr/openwin/share/include \
|
|
2901 ; \
|
|
2902 do
|
|
2903 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
2904 ac_x_includes=$ac_dir
|
|
2905 break
|
|
2906 fi
|
|
2907 done
|
|
2908 fi
|
|
2909 rm -f conftest*
|
|
2910 fi # $ac_x_includes = NO
|
|
2911
|
|
2912 if test "$ac_x_libraries" = NO; then
|
|
2913 # Check for the libraries.
|
|
2914
|
|
2915 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
2916 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
2917
|
|
2918 # See if we find them without any special options.
|
|
2919 # Don't add to $LIBS permanently.
|
|
2920 ac_save_LIBS="$LIBS"
|
|
2921 LIBS="-l$x_direct_test_library $LIBS"
|
|
2922 cat > conftest.$ac_ext <<EOF
|
17
|
2923 #line 2924 "configure"
|
7
|
2924 #include "confdefs.h"
|
|
2925
|
|
2926 int main() {
|
|
2927 ${x_direct_test_function}()
|
|
2928 ; return 0; }
|
|
2929 EOF
|
17
|
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
2931 rm -rf conftest*
|
|
2932 LIBS="$ac_save_LIBS"
|
|
2933 # We can link X programs with no special library path.
|
|
2934 ac_x_libraries=
|
|
2935 else
|
|
2936 echo "configure: failed program was:" >&5
|
|
2937 cat conftest.$ac_ext >&5
|
|
2938 rm -rf conftest*
|
|
2939 LIBS="$ac_save_LIBS"
|
|
2940 # First see if replacing the include by lib works.
|
|
2941 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
2942 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
2943 /usr/X11/lib \
|
|
2944 /usr/X11R6/lib \
|
|
2945 /usr/X11R5/lib \
|
|
2946 /usr/X11R4/lib \
|
|
2947 \
|
|
2948 /usr/lib/X11 \
|
|
2949 /usr/lib/X11R6 \
|
|
2950 /usr/lib/X11R5 \
|
|
2951 /usr/lib/X11R4 \
|
|
2952 \
|
|
2953 /usr/local/X11/lib \
|
|
2954 /usr/local/X11R6/lib \
|
|
2955 /usr/local/X11R5/lib \
|
|
2956 /usr/local/X11R4/lib \
|
|
2957 \
|
|
2958 /usr/local/lib/X11 \
|
|
2959 /usr/local/lib/X11R6 \
|
|
2960 /usr/local/lib/X11R5 \
|
|
2961 /usr/local/lib/X11R4 \
|
|
2962 \
|
|
2963 /usr/X386/lib \
|
|
2964 /usr/x386/lib \
|
|
2965 /usr/XFree86/lib/X11 \
|
|
2966 \
|
|
2967 /usr/lib \
|
|
2968 /usr/local/lib \
|
|
2969 /usr/unsupported/lib \
|
|
2970 /usr/athena/lib \
|
|
2971 /usr/local/x11r5/lib \
|
|
2972 /usr/lpp/Xamples/lib \
|
|
2973 /lib/usr/lib/X11 \
|
|
2974 \
|
|
2975 /usr/openwin/lib \
|
|
2976 /usr/openwin/share/lib \
|
|
2977 ; \
|
|
2978 do
|
|
2979 for ac_extension in a so sl; do
|
|
2980 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
2981 ac_x_libraries=$ac_dir
|
|
2982 break 2
|
|
2983 fi
|
|
2984 done
|
|
2985 done
|
|
2986 fi
|
|
2987 rm -f conftest*
|
|
2988 fi # $ac_x_libraries = NO
|
|
2989
|
|
2990 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
2991 # Didn't find X anywhere. Cache the known absence of X.
|
|
2992 ac_cv_have_x="have_x=no"
|
|
2993 else
|
|
2994 # Record where we found X for the cache.
|
|
2995 ac_cv_have_x="have_x=yes \
|
|
2996 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
2997 fi
|
|
2998 fi
|
|
2999 fi
|
|
3000 eval "$ac_cv_have_x"
|
|
3001 fi # $with_x != no
|
|
3002
|
|
3003 if test "$have_x" != yes; then
|
|
3004 echo "$ac_t""$have_x" 1>&6
|
|
3005 no_x=yes
|
|
3006 else
|
|
3007 # If each of the values was on the command line, it overrides each guess.
|
|
3008 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
3009 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
3010 # Update the cache value to reflect the command line values.
|
|
3011 ac_cv_have_x="have_x=yes \
|
|
3012 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
3013 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
3014 fi
|
|
3015
|
|
3016 if test "$no_x" = yes; then
|
|
3017 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
3018 cat >> confdefs.h <<\EOF
|
|
3019 #define X_DISPLAY_MISSING 1
|
|
3020 EOF
|
|
3021
|
|
3022 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
3023 else
|
|
3024 if test -n "$x_includes"; then
|
|
3025 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
3026 fi
|
|
3027
|
|
3028 # It would also be nice to do this for all -L options, not just this one.
|
|
3029 if test -n "$x_libraries"; then
|
|
3030 X_LIBS="$X_LIBS -L$x_libraries"
|
|
3031 # For Solaris; some versions of Sun CC require a space after -R and
|
|
3032 # others require no space. Words are not sufficient . . . .
|
|
3033 case "`(uname -sr) 2>/dev/null`" in
|
|
3034 "SunOS 5"*)
|
|
3035 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
17
|
3036 echo "configure:3037: checking whether -R must be followed by a space" >&5
|
7
|
3037 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
3038 cat > conftest.$ac_ext <<EOF
|
17
|
3039 #line 3040 "configure"
|
7
|
3040 #include "confdefs.h"
|
|
3041
|
|
3042 int main() {
|
|
3043
|
|
3044 ; return 0; }
|
|
3045 EOF
|
17
|
3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3047 rm -rf conftest*
|
|
3048 ac_R_nospace=yes
|
|
3049 else
|
|
3050 echo "configure: failed program was:" >&5
|
|
3051 cat conftest.$ac_ext >&5
|
|
3052 rm -rf conftest*
|
|
3053 ac_R_nospace=no
|
|
3054 fi
|
|
3055 rm -f conftest*
|
|
3056 if test $ac_R_nospace = yes; then
|
|
3057 echo "$ac_t""no" 1>&6
|
|
3058 X_LIBS="$X_LIBS -R$x_libraries"
|
|
3059 else
|
|
3060 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
3061 cat > conftest.$ac_ext <<EOF
|
17
|
3062 #line 3063 "configure"
|
7
|
3063 #include "confdefs.h"
|
|
3064
|
|
3065 int main() {
|
|
3066
|
|
3067 ; return 0; }
|
|
3068 EOF
|
17
|
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3070 rm -rf conftest*
|
|
3071 ac_R_space=yes
|
|
3072 else
|
|
3073 echo "configure: failed program was:" >&5
|
|
3074 cat conftest.$ac_ext >&5
|
|
3075 rm -rf conftest*
|
|
3076 ac_R_space=no
|
|
3077 fi
|
|
3078 rm -f conftest*
|
|
3079 if test $ac_R_space = yes; then
|
|
3080 echo "$ac_t""yes" 1>&6
|
|
3081 X_LIBS="$X_LIBS -R $x_libraries"
|
|
3082 else
|
|
3083 echo "$ac_t""neither works" 1>&6
|
|
3084 fi
|
|
3085 fi
|
|
3086 LIBS="$ac_xsave_LIBS"
|
|
3087 esac
|
|
3088 fi
|
|
3089
|
|
3090 # Check for system-dependent libraries X programs must link with.
|
|
3091 # Do this before checking for the system-independent R6 libraries
|
|
3092 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
3093
|
|
3094 if test "$ISC" = yes; then
|
|
3095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
3096 else
|
|
3097 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
3098 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
3099 # the Alpha needs dnet_stub (dnet does not exist).
|
|
3100 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
17
|
3101 echo "configure:3102: checking for dnet_ntoa in -ldnet" >&5
|
7
|
3102 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
3103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3104 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3105 else
|
|
3106 ac_save_LIBS="$LIBS"
|
|
3107 LIBS="-ldnet $LIBS"
|
|
3108 cat > conftest.$ac_ext <<EOF
|
17
|
3109 #line 3110 "configure"
|
7
|
3110 #include "confdefs.h"
|
|
3111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3112 /* We use char because int might match the return type of a gcc2
|
|
3113 builtin and then its argument prototype would still apply. */
|
|
3114 char dnet_ntoa();
|
|
3115
|
|
3116 int main() {
|
|
3117 dnet_ntoa()
|
|
3118 ; return 0; }
|
|
3119 EOF
|
17
|
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3121 rm -rf conftest*
|
|
3122 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3123 else
|
|
3124 echo "configure: failed program was:" >&5
|
|
3125 cat conftest.$ac_ext >&5
|
|
3126 rm -rf conftest*
|
|
3127 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3128 fi
|
|
3129 rm -f conftest*
|
|
3130 LIBS="$ac_save_LIBS"
|
|
3131
|
|
3132 fi
|
|
3133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3134 echo "$ac_t""yes" 1>&6
|
|
3135 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
3136 else
|
|
3137 echo "$ac_t""no" 1>&6
|
|
3138 fi
|
|
3139
|
|
3140 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
3141 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
17
|
3142 echo "configure:3143: checking for dnet_ntoa in -ldnet_stub" >&5
|
7
|
3143 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
3144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3145 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3146 else
|
|
3147 ac_save_LIBS="$LIBS"
|
|
3148 LIBS="-ldnet_stub $LIBS"
|
|
3149 cat > conftest.$ac_ext <<EOF
|
17
|
3150 #line 3151 "configure"
|
7
|
3151 #include "confdefs.h"
|
|
3152 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3153 /* We use char because int might match the return type of a gcc2
|
|
3154 builtin and then its argument prototype would still apply. */
|
|
3155 char dnet_ntoa();
|
|
3156
|
|
3157 int main() {
|
|
3158 dnet_ntoa()
|
|
3159 ; return 0; }
|
|
3160 EOF
|
17
|
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3162 rm -rf conftest*
|
|
3163 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3164 else
|
|
3165 echo "configure: failed program was:" >&5
|
|
3166 cat conftest.$ac_ext >&5
|
|
3167 rm -rf conftest*
|
|
3168 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3169 fi
|
|
3170 rm -f conftest*
|
|
3171 LIBS="$ac_save_LIBS"
|
|
3172
|
|
3173 fi
|
|
3174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3175 echo "$ac_t""yes" 1>&6
|
|
3176 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
3177 else
|
|
3178 echo "$ac_t""no" 1>&6
|
|
3179 fi
|
|
3180
|
|
3181 fi
|
|
3182
|
|
3183 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
3184 # to get the SysV transport functions.
|
|
3185 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
3186 # needs -lnsl.
|
|
3187 # The nsl library prevents programs from opening the X display
|
|
3188 # on Irix 5.2, according to dickey@clark.net.
|
|
3189 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
17
|
3190 echo "configure:3191: checking for gethostbyname" >&5
|
7
|
3191 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
|
3192 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3193 else
|
|
3194 cat > conftest.$ac_ext <<EOF
|
17
|
3195 #line 3196 "configure"
|
7
|
3196 #include "confdefs.h"
|
|
3197 /* System header to define __stub macros and hopefully few prototypes,
|
|
3198 which can conflict with char gethostbyname(); below. */
|
|
3199 #include <assert.h>
|
|
3200 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3201 /* We use char because int might match the return type of a gcc2
|
|
3202 builtin and then its argument prototype would still apply. */
|
|
3203 char gethostbyname();
|
|
3204
|
|
3205 int main() {
|
|
3206
|
|
3207 /* The GNU C library defines this for functions which it implements
|
|
3208 to always fail with ENOSYS. Some functions are actually named
|
|
3209 something starting with __ and the normal name is an alias. */
|
|
3210 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
3211 choke me
|
|
3212 #else
|
|
3213 gethostbyname();
|
|
3214 #endif
|
|
3215
|
|
3216 ; return 0; }
|
|
3217 EOF
|
17
|
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3219 rm -rf conftest*
|
|
3220 eval "ac_cv_func_gethostbyname=yes"
|
|
3221 else
|
|
3222 echo "configure: failed program was:" >&5
|
|
3223 cat conftest.$ac_ext >&5
|
|
3224 rm -rf conftest*
|
|
3225 eval "ac_cv_func_gethostbyname=no"
|
|
3226 fi
|
|
3227 rm -f conftest*
|
|
3228 fi
|
|
3229
|
|
3230 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
3231 echo "$ac_t""yes" 1>&6
|
|
3232 :
|
|
3233 else
|
|
3234 echo "$ac_t""no" 1>&6
|
|
3235 fi
|
|
3236
|
|
3237 if test $ac_cv_func_gethostbyname = no; then
|
|
3238 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
17
|
3239 echo "configure:3240: checking for gethostbyname in -lnsl" >&5
|
7
|
3240 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
3241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3242 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3243 else
|
|
3244 ac_save_LIBS="$LIBS"
|
|
3245 LIBS="-lnsl $LIBS"
|
|
3246 cat > conftest.$ac_ext <<EOF
|
17
|
3247 #line 3248 "configure"
|
7
|
3248 #include "confdefs.h"
|
|
3249 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3250 /* We use char because int might match the return type of a gcc2
|
|
3251 builtin and then its argument prototype would still apply. */
|
|
3252 char gethostbyname();
|
|
3253
|
|
3254 int main() {
|
|
3255 gethostbyname()
|
|
3256 ; return 0; }
|
|
3257 EOF
|
17
|
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3259 rm -rf conftest*
|
|
3260 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3261 else
|
|
3262 echo "configure: failed program was:" >&5
|
|
3263 cat conftest.$ac_ext >&5
|
|
3264 rm -rf conftest*
|
|
3265 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3266 fi
|
|
3267 rm -f conftest*
|
|
3268 LIBS="$ac_save_LIBS"
|
|
3269
|
|
3270 fi
|
|
3271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3272 echo "$ac_t""yes" 1>&6
|
|
3273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
3274 else
|
|
3275 echo "$ac_t""no" 1>&6
|
|
3276 fi
|
|
3277
|
|
3278 fi
|
|
3279
|
|
3280 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
3281 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
3282 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
3283 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
3284 # gethostby* variants that don't use the nameserver (or something).
|
|
3285 # -lsocket must be given before -lnsl if both are needed.
|
|
3286 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
3287 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
17
|
3288 echo "configure:3289: checking for connect" >&5
|
7
|
3289 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
|
3290 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3291 else
|
|
3292 cat > conftest.$ac_ext <<EOF
|
17
|
3293 #line 3294 "configure"
|
7
|
3294 #include "confdefs.h"
|
|
3295 /* System header to define __stub macros and hopefully few prototypes,
|
|
3296 which can conflict with char connect(); below. */
|
|
3297 #include <assert.h>
|
|
3298 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3299 /* We use char because int might match the return type of a gcc2
|
|
3300 builtin and then its argument prototype would still apply. */
|
|
3301 char connect();
|
|
3302
|
|
3303 int main() {
|
|
3304
|
|
3305 /* The GNU C library defines this for functions which it implements
|
|
3306 to always fail with ENOSYS. Some functions are actually named
|
|
3307 something starting with __ and the normal name is an alias. */
|
|
3308 #if defined (__stub_connect) || defined (__stub___connect)
|
|
3309 choke me
|
|
3310 #else
|
|
3311 connect();
|
|
3312 #endif
|
|
3313
|
|
3314 ; return 0; }
|
|
3315 EOF
|
17
|
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3317 rm -rf conftest*
|
|
3318 eval "ac_cv_func_connect=yes"
|
|
3319 else
|
|
3320 echo "configure: failed program was:" >&5
|
|
3321 cat conftest.$ac_ext >&5
|
|
3322 rm -rf conftest*
|
|
3323 eval "ac_cv_func_connect=no"
|
|
3324 fi
|
|
3325 rm -f conftest*
|
|
3326 fi
|
|
3327
|
|
3328 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
3329 echo "$ac_t""yes" 1>&6
|
|
3330 :
|
|
3331 else
|
|
3332 echo "$ac_t""no" 1>&6
|
|
3333 fi
|
|
3334
|
|
3335 if test $ac_cv_func_connect = no; then
|
|
3336 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
17
|
3337 echo "configure:3338: checking for connect in -lsocket" >&5
|
7
|
3338 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
3339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3340 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3341 else
|
|
3342 ac_save_LIBS="$LIBS"
|
|
3343 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
|
3344 cat > conftest.$ac_ext <<EOF
|
17
|
3345 #line 3346 "configure"
|
7
|
3346 #include "confdefs.h"
|
|
3347 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3348 /* We use char because int might match the return type of a gcc2
|
|
3349 builtin and then its argument prototype would still apply. */
|
|
3350 char connect();
|
|
3351
|
|
3352 int main() {
|
|
3353 connect()
|
|
3354 ; return 0; }
|
|
3355 EOF
|
17
|
3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3357 rm -rf conftest*
|
|
3358 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3359 else
|
|
3360 echo "configure: failed program was:" >&5
|
|
3361 cat conftest.$ac_ext >&5
|
|
3362 rm -rf conftest*
|
|
3363 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3364 fi
|
|
3365 rm -f conftest*
|
|
3366 LIBS="$ac_save_LIBS"
|
|
3367
|
|
3368 fi
|
|
3369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3370 echo "$ac_t""yes" 1>&6
|
|
3371 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
3372 else
|
|
3373 echo "$ac_t""no" 1>&6
|
|
3374 fi
|
|
3375
|
|
3376 fi
|
|
3377
|
|
3378 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
3379 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
17
|
3380 echo "configure:3381: checking for remove" >&5
|
7
|
3381 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
|
|
3382 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3383 else
|
|
3384 cat > conftest.$ac_ext <<EOF
|
17
|
3385 #line 3386 "configure"
|
7
|
3386 #include "confdefs.h"
|
|
3387 /* System header to define __stub macros and hopefully few prototypes,
|
|
3388 which can conflict with char remove(); below. */
|
|
3389 #include <assert.h>
|
|
3390 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3391 /* We use char because int might match the return type of a gcc2
|
|
3392 builtin and then its argument prototype would still apply. */
|
|
3393 char remove();
|
|
3394
|
|
3395 int main() {
|
|
3396
|
|
3397 /* The GNU C library defines this for functions which it implements
|
|
3398 to always fail with ENOSYS. Some functions are actually named
|
|
3399 something starting with __ and the normal name is an alias. */
|
|
3400 #if defined (__stub_remove) || defined (__stub___remove)
|
|
3401 choke me
|
|
3402 #else
|
|
3403 remove();
|
|
3404 #endif
|
|
3405
|
|
3406 ; return 0; }
|
|
3407 EOF
|
17
|
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3409 rm -rf conftest*
|
|
3410 eval "ac_cv_func_remove=yes"
|
|
3411 else
|
|
3412 echo "configure: failed program was:" >&5
|
|
3413 cat conftest.$ac_ext >&5
|
|
3414 rm -rf conftest*
|
|
3415 eval "ac_cv_func_remove=no"
|
|
3416 fi
|
|
3417 rm -f conftest*
|
|
3418 fi
|
|
3419
|
|
3420 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
3421 echo "$ac_t""yes" 1>&6
|
|
3422 :
|
|
3423 else
|
|
3424 echo "$ac_t""no" 1>&6
|
|
3425 fi
|
|
3426
|
|
3427 if test $ac_cv_func_remove = no; then
|
|
3428 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
17
|
3429 echo "configure:3430: checking for remove in -lposix" >&5
|
7
|
3430 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
3431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3432 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3433 else
|
|
3434 ac_save_LIBS="$LIBS"
|
|
3435 LIBS="-lposix $LIBS"
|
|
3436 cat > conftest.$ac_ext <<EOF
|
17
|
3437 #line 3438 "configure"
|
7
|
3438 #include "confdefs.h"
|
|
3439 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3440 /* We use char because int might match the return type of a gcc2
|
|
3441 builtin and then its argument prototype would still apply. */
|
|
3442 char remove();
|
|
3443
|
|
3444 int main() {
|
|
3445 remove()
|
|
3446 ; return 0; }
|
|
3447 EOF
|
17
|
3448 if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3449 rm -rf conftest*
|
|
3450 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3451 else
|
|
3452 echo "configure: failed program was:" >&5
|
|
3453 cat conftest.$ac_ext >&5
|
|
3454 rm -rf conftest*
|
|
3455 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3456 fi
|
|
3457 rm -f conftest*
|
|
3458 LIBS="$ac_save_LIBS"
|
|
3459
|
|
3460 fi
|
|
3461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3462 echo "$ac_t""yes" 1>&6
|
|
3463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
3464 else
|
|
3465 echo "$ac_t""no" 1>&6
|
|
3466 fi
|
|
3467
|
|
3468 fi
|
|
3469
|
|
3470 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
3471 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
17
|
3472 echo "configure:3473: checking for shmat" >&5
|
7
|
3473 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
|
|
3474 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3475 else
|
|
3476 cat > conftest.$ac_ext <<EOF
|
17
|
3477 #line 3478 "configure"
|
7
|
3478 #include "confdefs.h"
|
|
3479 /* System header to define __stub macros and hopefully few prototypes,
|
|
3480 which can conflict with char shmat(); below. */
|
|
3481 #include <assert.h>
|
|
3482 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3483 /* We use char because int might match the return type of a gcc2
|
|
3484 builtin and then its argument prototype would still apply. */
|
|
3485 char shmat();
|
|
3486
|
|
3487 int main() {
|
|
3488
|
|
3489 /* The GNU C library defines this for functions which it implements
|
|
3490 to always fail with ENOSYS. Some functions are actually named
|
|
3491 something starting with __ and the normal name is an alias. */
|
|
3492 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
3493 choke me
|
|
3494 #else
|
|
3495 shmat();
|
|
3496 #endif
|
|
3497
|
|
3498 ; return 0; }
|
|
3499 EOF
|
17
|
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3501 rm -rf conftest*
|
|
3502 eval "ac_cv_func_shmat=yes"
|
|
3503 else
|
|
3504 echo "configure: failed program was:" >&5
|
|
3505 cat conftest.$ac_ext >&5
|
|
3506 rm -rf conftest*
|
|
3507 eval "ac_cv_func_shmat=no"
|
|
3508 fi
|
|
3509 rm -f conftest*
|
|
3510 fi
|
|
3511
|
|
3512 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
3513 echo "$ac_t""yes" 1>&6
|
|
3514 :
|
|
3515 else
|
|
3516 echo "$ac_t""no" 1>&6
|
|
3517 fi
|
|
3518
|
|
3519 if test $ac_cv_func_shmat = no; then
|
|
3520 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
17
|
3521 echo "configure:3522: checking for shmat in -lipc" >&5
|
7
|
3522 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
3523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3524 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3525 else
|
|
3526 ac_save_LIBS="$LIBS"
|
|
3527 LIBS="-lipc $LIBS"
|
|
3528 cat > conftest.$ac_ext <<EOF
|
17
|
3529 #line 3530 "configure"
|
7
|
3530 #include "confdefs.h"
|
|
3531 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3532 /* We use char because int might match the return type of a gcc2
|
|
3533 builtin and then its argument prototype would still apply. */
|
|
3534 char shmat();
|
|
3535
|
|
3536 int main() {
|
|
3537 shmat()
|
|
3538 ; return 0; }
|
|
3539 EOF
|
17
|
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3541 rm -rf conftest*
|
|
3542 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3543 else
|
|
3544 echo "configure: failed program was:" >&5
|
|
3545 cat conftest.$ac_ext >&5
|
|
3546 rm -rf conftest*
|
|
3547 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3548 fi
|
|
3549 rm -f conftest*
|
|
3550 LIBS="$ac_save_LIBS"
|
|
3551
|
|
3552 fi
|
|
3553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3554 echo "$ac_t""yes" 1>&6
|
|
3555 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
3556 else
|
|
3557 echo "$ac_t""no" 1>&6
|
|
3558 fi
|
|
3559
|
|
3560 fi
|
|
3561 fi
|
|
3562
|
|
3563 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
3564 ac_save_LDFLAGS="$LDFLAGS"
|
|
3565 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
3566 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
3567 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
3568 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
3569 # These have to be linked with before -lX11, unlike the other
|
|
3570 # libraries we check for below, so use a different variable.
|
|
3571 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
3572 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
17
|
3573 echo "configure:3574: checking for IceConnectionNumber in -lICE" >&5
|
7
|
3574 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3576 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3577 else
|
|
3578 ac_save_LIBS="$LIBS"
|
|
3579 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
|
3580 cat > conftest.$ac_ext <<EOF
|
17
|
3581 #line 3582 "configure"
|
7
|
3582 #include "confdefs.h"
|
|
3583 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3584 /* We use char because int might match the return type of a gcc2
|
|
3585 builtin and then its argument prototype would still apply. */
|
|
3586 char IceConnectionNumber();
|
|
3587
|
|
3588 int main() {
|
|
3589 IceConnectionNumber()
|
|
3590 ; return 0; }
|
|
3591 EOF
|
17
|
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3593 rm -rf conftest*
|
|
3594 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3595 else
|
|
3596 echo "configure: failed program was:" >&5
|
|
3597 cat conftest.$ac_ext >&5
|
|
3598 rm -rf conftest*
|
|
3599 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3600 fi
|
|
3601 rm -f conftest*
|
|
3602 LIBS="$ac_save_LIBS"
|
|
3603
|
|
3604 fi
|
|
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3606 echo "$ac_t""yes" 1>&6
|
|
3607 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
3608 else
|
|
3609 echo "$ac_t""no" 1>&6
|
|
3610 fi
|
|
3611
|
|
3612 LDFLAGS="$ac_save_LDFLAGS"
|
|
3613
|
|
3614 fi
|
|
3615
|
|
3616
|
|
3617 if test "$OS390Unix" = "yes"; then
|
|
3618 CFLAGS="$CFLAGS -W c,dll"
|
|
3619 LDFLAGS="$LDFLAGS -W l,dll"
|
|
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
|
|
3621 fi
|
|
3622
|
|
3623
|
|
3624 if test -d "$x_includes" && test ! -d "$x_libraries"; then
|
|
3625 x_libraries=`echo "$x_includes" | sed s/include/lib/`
|
|
3626 echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6
|
|
3627 X_LIBS="$X_LIBS -L$x_libraries"
|
|
3628 if test "`(uname) 2>/dev/null`" = SunOS &&
|
|
3629 uname -r | grep '^5' >/dev/null; then
|
|
3630 X_LIBS="$X_LIBS -R $x_libraries"
|
|
3631 fi
|
|
3632 fi
|
|
3633
|
|
3634 if test -d "$x_libraries" && test ! -d "$x_includes"; then
|
|
3635 x_includes=`echo "$x_libraries" | sed s/lib/include/`
|
|
3636 echo "$ac_t""Corrected X includes to $x_includes" 1>&6
|
|
3637 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
3638 fi
|
|
3639
|
|
3640 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
|
|
3641 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
|
|
3642 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
|
|
3643
|
|
3644
|
|
3645 echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6
|
17
|
3646 echo "configure:3647: checking if X11 header files can be found" >&5
|
7
|
3647 cflags_save=$CFLAGS
|
|
3648 CFLAGS="$CFLAGS $X_CFLAGS"
|
|
3649 cat > conftest.$ac_ext <<EOF
|
17
|
3650 #line 3651 "configure"
|
7
|
3651 #include "confdefs.h"
|
|
3652 #include <X11/Xlib.h>
|
|
3653 int main() {
|
|
3654
|
|
3655 ; return 0; }
|
|
3656 EOF
|
17
|
3657 if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
3658 rm -rf conftest*
|
|
3659 echo "$ac_t""yes" 1>&6
|
|
3660 else
|
|
3661 echo "configure: failed program was:" >&5
|
|
3662 cat conftest.$ac_ext >&5
|
|
3663 rm -rf conftest*
|
|
3664 echo "$ac_t""no" 1>&6; no_x=yes
|
|
3665 fi
|
|
3666 rm -f conftest*
|
|
3667 CFLAGS=$cflags_save
|
|
3668
|
|
3669 if test "${no_x-no}" = yes; then
|
|
3670 with_x=no
|
|
3671 else
|
|
3672 cat >> confdefs.h <<\EOF
|
|
3673 #define HAVE_X11 1
|
|
3674 EOF
|
|
3675
|
|
3676 X_LIB="-lXt -lX11";
|
|
3677
|
|
3678
|
|
3679 ac_save_LDFLAGS="$LDFLAGS"
|
|
3680 LDFLAGS="-L$x_libraries $LDFLAGS"
|
|
3681
|
|
3682 echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6
|
17
|
3683 echo "configure:3684: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
|
7
|
3684 ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'`
|
|
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3686 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3687 else
|
|
3688 ac_save_LIBS="$LIBS"
|
|
3689 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
|
|
3690 cat > conftest.$ac_ext <<EOF
|
17
|
3691 #line 3692 "configure"
|
7
|
3692 #include "confdefs.h"
|
|
3693 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3694 /* We use char because int might match the return type of a gcc2
|
|
3695 builtin and then its argument prototype would still apply. */
|
|
3696 char _XdmcpAuthDoIt();
|
|
3697
|
|
3698 int main() {
|
|
3699 _XdmcpAuthDoIt()
|
|
3700 ; return 0; }
|
|
3701 EOF
|
17
|
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3703 rm -rf conftest*
|
|
3704 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3705 else
|
|
3706 echo "configure: failed program was:" >&5
|
|
3707 cat conftest.$ac_ext >&5
|
|
3708 rm -rf conftest*
|
|
3709 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3710 fi
|
|
3711 rm -f conftest*
|
|
3712 LIBS="$ac_save_LIBS"
|
|
3713
|
|
3714 fi
|
|
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3716 echo "$ac_t""yes" 1>&6
|
|
3717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
|
|
3718 else
|
|
3719 echo "$ac_t""no" 1>&6
|
|
3720 fi
|
|
3721
|
|
3722
|
|
3723 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6
|
17
|
3724 echo "configure:3725: checking for IceOpenConnection in -lICE" >&5
|
7
|
3725 ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'`
|
|
3726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3727 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3728 else
|
|
3729 ac_save_LIBS="$LIBS"
|
|
3730 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
|
3731 cat > conftest.$ac_ext <<EOF
|
17
|
3732 #line 3733 "configure"
|
7
|
3733 #include "confdefs.h"
|
|
3734 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3735 /* We use char because int might match the return type of a gcc2
|
|
3736 builtin and then its argument prototype would still apply. */
|
|
3737 char IceOpenConnection();
|
|
3738
|
|
3739 int main() {
|
|
3740 IceOpenConnection()
|
|
3741 ; return 0; }
|
|
3742 EOF
|
17
|
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3744 rm -rf conftest*
|
|
3745 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3746 else
|
|
3747 echo "configure: failed program was:" >&5
|
|
3748 cat conftest.$ac_ext >&5
|
|
3749 rm -rf conftest*
|
|
3750 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3751 fi
|
|
3752 rm -f conftest*
|
|
3753 LIBS="$ac_save_LIBS"
|
|
3754
|
|
3755 fi
|
|
3756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3757 echo "$ac_t""yes" 1>&6
|
|
3758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
|
|
3759 else
|
|
3760 echo "$ac_t""no" 1>&6
|
|
3761 fi
|
|
3762
|
|
3763
|
|
3764 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
|
|
3765 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
|
17
|
3766 echo "configure:3767: checking for XpmCreatePixmapFromData in -lXpm" >&5
|
7
|
3767 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
|
|
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3769 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3770 else
|
|
3771 ac_save_LIBS="$LIBS"
|
|
3772 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
|
|
3773 cat > conftest.$ac_ext <<EOF
|
17
|
3774 #line 3775 "configure"
|
7
|
3775 #include "confdefs.h"
|
|
3776 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3777 /* We use char because int might match the return type of a gcc2
|
|
3778 builtin and then its argument prototype would still apply. */
|
|
3779 char XpmCreatePixmapFromData();
|
|
3780
|
|
3781 int main() {
|
|
3782 XpmCreatePixmapFromData()
|
|
3783 ; return 0; }
|
|
3784 EOF
|
17
|
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
3786 rm -rf conftest*
|
|
3787 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3788 else
|
|
3789 echo "configure: failed program was:" >&5
|
|
3790 cat conftest.$ac_ext >&5
|
|
3791 rm -rf conftest*
|
|
3792 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3793 fi
|
|
3794 rm -f conftest*
|
|
3795 LIBS="$ac_save_LIBS"
|
|
3796
|
|
3797 fi
|
|
3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3799 echo "$ac_t""yes" 1>&6
|
|
3800 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
|
|
3801 else
|
|
3802 echo "$ac_t""no" 1>&6
|
|
3803 fi
|
|
3804
|
|
3805
|
|
3806 echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6
|
17
|
3807 echo "configure:3808: checking if X11 header files implicitly declare return values" >&5
|
7
|
3808 cflags_save=$CFLAGS
|
|
3809 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
|
|
3810 cat > conftest.$ac_ext <<EOF
|
17
|
3811 #line 3812 "configure"
|
7
|
3812 #include "confdefs.h"
|
|
3813 #include <X11/Xlib.h>
|
|
3814 int main() {
|
|
3815
|
|
3816 ; return 0; }
|
|
3817 EOF
|
17
|
3818 if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
3819 rm -rf conftest*
|
|
3820 echo "$ac_t""no" 1>&6
|
|
3821 else
|
|
3822 echo "configure: failed program was:" >&5
|
|
3823 cat conftest.$ac_ext >&5
|
|
3824 rm -rf conftest*
|
|
3825 CFLAGS="$CFLAGS -Wno-implicit-int"
|
|
3826 cat > conftest.$ac_ext <<EOF
|
17
|
3827 #line 3828 "configure"
|
7
|
3828 #include "confdefs.h"
|
|
3829 #include <X11/Xlib.h>
|
|
3830 int main() {
|
|
3831
|
|
3832 ; return 0; }
|
|
3833 EOF
|
17
|
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
3835 rm -rf conftest*
|
|
3836 echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int"
|
|
3837 else
|
|
3838 echo "configure: failed program was:" >&5
|
|
3839 cat conftest.$ac_ext >&5
|
|
3840 rm -rf conftest*
|
|
3841 echo "$ac_t""test failed" 1>&6
|
|
3842
|
|
3843 fi
|
|
3844 rm -f conftest*
|
|
3845
|
|
3846 fi
|
|
3847 rm -f conftest*
|
|
3848 CFLAGS=$cflags_save
|
|
3849
|
|
3850 LDFLAGS="$ac_save_LDFLAGS"
|
|
3851
|
|
3852 fi
|
|
3853 fi
|
|
3854
|
|
3855 test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
|
|
3856
|
|
3857 echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6
|
17
|
3858 echo "configure:3859: checking --enable-gui argument" >&5
|
7
|
3859 # Check whether --enable-gui or --disable-gui was given.
|
|
3860 if test "${enable_gui+set}" = set; then
|
|
3861 enableval="$enable_gui"
|
|
3862 :
|
|
3863 else
|
|
3864 enable_gui="auto"
|
|
3865 fi
|
|
3866
|
|
3867
|
|
3868 enable_gui_canon=`echo "_$enable_gui" | \
|
|
3869 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
3870
|
|
3871 SKIP_GTK=YES
|
|
3872 SKIP_GTK2=YES
|
|
3873 SKIP_GNOME=YES
|
13
|
3874 SKIP_KDE=YES
|
7
|
3875 SKIP_MOTIF=YES
|
|
3876 SKIP_ATHENA=YES
|
|
3877 SKIP_NEXTAW=YES
|
|
3878 SKIP_PHOTON=YES
|
|
3879 SKIP_BEOS=YES
|
|
3880 SKIP_CARBON=YES
|
|
3881 GUITYPE=NONE
|
|
3882
|
|
3883 if test "x$BEOS" = "xyes"; then
|
|
3884 SKIP_BEOS=
|
|
3885 case "$enable_gui_canon" in
|
|
3886 no) echo "$ac_t""no GUI support" 1>&6
|
|
3887 SKIP_BEOS=YES ;;
|
|
3888 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
|
|
3889 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
|
|
3890 beos) echo "$ac_t""BeOS GUI support" 1>&6 ;;
|
|
3891 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
|
|
3892 SKIP_BEOS=YES ;;
|
|
3893 esac
|
|
3894
|
|
3895 elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
|
|
3896 SKIP_PHOTON=
|
|
3897 case "$enable_gui_canon" in
|
|
3898 no) echo "$ac_t""no GUI support" 1>&6
|
|
3899 SKIP_PHOTON=YES ;;
|
|
3900 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
|
|
3901 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
|
|
3902 photon) echo "$ac_t""Photon GUI support" 1>&6 ;;
|
|
3903 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
|
|
3904 SKIP_PHOTON=YES ;;
|
|
3905 esac
|
|
3906
|
|
3907 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
|
|
3908 SKIP_CARBON=
|
|
3909 case "$enable_gui_canon" in
|
|
3910 no) echo "$ac_t""no GUI support" 1>&6
|
|
3911 SKIP_CARBON=YES ;;
|
|
3912 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
|
|
3913 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
|
|
3914 carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;;
|
|
3915 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
|
|
3916 SKIP_CARBON=YES ;;
|
|
3917 esac
|
|
3918
|
|
3919 else
|
|
3920
|
|
3921 case "$enable_gui_canon" in
|
|
3922 no|none) echo "$ac_t""no GUI support" 1>&6 ;;
|
|
3923 yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6
|
|
3924 SKIP_GTK=
|
|
3925 SKIP_GTK2=
|
|
3926 SKIP_GNOME=
|
|
3927 SKIP_MOTIF=
|
|
3928 SKIP_ATHENA=
|
|
3929 SKIP_NEXTAW=
|
|
3930 SKIP_CARBON=;;
|
11
|
3931 kde|Kde|KDE) echo "$ac_t""KDE 2.x or 3.x GUI support" 1>&6
|
|
3932 SKIP_KDE=;;
|
7
|
3933 gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6
|
|
3934 SKIP_GTK=;;
|
|
3935 gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6
|
|
3936 SKIP_GTK=
|
|
3937 SKIP_GTK2=;;
|
|
3938 gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6
|
|
3939 SKIP_GNOME=
|
|
3940 SKIP_GTK=;;
|
|
3941 gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6
|
|
3942 SKIP_GNOME=
|
|
3943 SKIP_GTK=
|
|
3944 SKIP_GTK2=;;
|
|
3945 motif) echo "$ac_t""Motif GUI support" 1>&6
|
|
3946 SKIP_MOTIF=;;
|
|
3947 athena) echo "$ac_t""Athena GUI support" 1>&6
|
|
3948 SKIP_ATHENA=;;
|
|
3949 nextaw) echo "$ac_t""neXtaw GUI support" 1>&6
|
|
3950 SKIP_NEXTAW=;;
|
|
3951 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;;
|
|
3952 esac
|
|
3953
|
|
3954 fi
|
|
3955
|
11
|
3956 if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then
|
|
3957 echo $ac_n "checking whether or not to look for KDE""... $ac_c" 1>&6
|
17
|
3958 echo "configure:3959: checking whether or not to look for KDE" >&5
|
11
|
3959 # Check whether --enable-kde-check or --disable-kde-check was given.
|
|
3960 if test "${enable_kde_check+set}" = set; then
|
|
3961 enableval="$enable_kde_check"
|
|
3962 :
|
|
3963 else
|
|
3964 enable_kde_check="no"
|
|
3965 fi
|
|
3966
|
|
3967 echo "$ac_t""$enable_kde_check" 1>&6;
|
|
3968 if test "x$enable_kde_check" = "xno"; then
|
|
3969 SKIP_KDE=YES
|
|
3970 fi
|
|
3971 fi
|
|
3972
|
7
|
3973 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
|
|
3974 echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6
|
17
|
3975 echo "configure:3976: checking whether or not to look for GTK" >&5
|
7
|
3976 # Check whether --enable-gtk-check or --disable-gtk-check was given.
|
|
3977 if test "${enable_gtk_check+set}" = set; then
|
|
3978 enableval="$enable_gtk_check"
|
|
3979 :
|
|
3980 else
|
|
3981 enable_gtk_check="yes"
|
|
3982 fi
|
|
3983
|
|
3984 echo "$ac_t""$enable_gtk_check" 1>&6
|
|
3985 if test "x$enable_gtk_check" = "xno"; then
|
|
3986 SKIP_GTK=YES
|
|
3987 SKIP_GNOME=YES
|
|
3988 fi
|
|
3989 fi
|
|
3990
|
|
3991 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
|
|
3992 -a "$enable_gui_canon" != "gnome2"; then
|
|
3993 echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6
|
17
|
3994 echo "configure:3995: checking whether or not to look for GTK+ 2" >&5
|
7
|
3995 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
|
|
3996 if test "${enable_gtk2_check+set}" = set; then
|
|
3997 enableval="$enable_gtk2_check"
|
|
3998 :
|
|
3999 else
|
|
4000 enable_gtk2_check="yes"
|
|
4001 fi
|
|
4002
|
|
4003 echo "$ac_t""$enable_gtk2_check" 1>&6
|
|
4004 if test "x$enable_gtk2_check" = "xno"; then
|
|
4005 SKIP_GTK2=YES
|
|
4006 fi
|
|
4007 fi
|
|
4008
|
|
4009 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
|
|
4010 -a "$enable_gui_canon" != "gnome2"; then
|
|
4011 echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6
|
17
|
4012 echo "configure:4013: checking whether or not to look for GNOME" >&5
|
7
|
4013 # Check whether --enable-gnome-check or --disable-gnome-check was given.
|
|
4014 if test "${enable_gnome_check+set}" = set; then
|
|
4015 enableval="$enable_gnome_check"
|
|
4016 :
|
|
4017 else
|
|
4018 enable_gnome_check="no"
|
|
4019 fi
|
|
4020
|
|
4021 echo "$ac_t""$enable_gnome_check" 1>&6
|
|
4022 if test "x$enable_gnome_check" = "xno"; then
|
|
4023 SKIP_GNOME=YES
|
|
4024 fi
|
|
4025 fi
|
|
4026
|
|
4027 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
|
|
4028 echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6
|
17
|
4029 echo "configure:4030: checking whether or not to look for Motif" >&5
|
7
|
4030 # Check whether --enable-motif-check or --disable-motif-check was given.
|
|
4031 if test "${enable_motif_check+set}" = set; then
|
|
4032 enableval="$enable_motif_check"
|
|
4033 :
|
|
4034 else
|
|
4035 enable_motif_check="yes"
|
|
4036 fi
|
|
4037
|
|
4038 echo "$ac_t""$enable_motif_check" 1>&6
|
|
4039 if test "x$enable_motif_check" = "xno"; then
|
|
4040 SKIP_MOTIF=YES
|
|
4041 fi
|
|
4042 fi
|
|
4043
|
|
4044 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
|
|
4045 echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6
|
17
|
4046 echo "configure:4047: checking whether or not to look for Athena" >&5
|
7
|
4047 # Check whether --enable-athena-check or --disable-athena-check was given.
|
|
4048 if test "${enable_athena_check+set}" = set; then
|
|
4049 enableval="$enable_athena_check"
|
|
4050 :
|
|
4051 else
|
|
4052 enable_athena_check="yes"
|
|
4053 fi
|
|
4054
|
|
4055 echo "$ac_t""$enable_athena_check" 1>&6
|
|
4056 if test "x$enable_athena_check" = "xno"; then
|
|
4057 SKIP_ATHENA=YES
|
|
4058 fi
|
|
4059 fi
|
|
4060
|
|
4061 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
|
|
4062 echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6
|
17
|
4063 echo "configure:4064: checking whether or not to look for neXtaw" >&5
|
7
|
4064 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
|
|
4065 if test "${enable_nextaw_check+set}" = set; then
|
|
4066 enableval="$enable_nextaw_check"
|
|
4067 :
|
|
4068 else
|
|
4069 enable_nextaw_check="yes"
|
|
4070 fi
|
|
4071
|
|
4072 echo "$ac_t""$enable_nextaw_check" 1>&6;
|
|
4073 if test "x$enable_nextaw_check" = "xno"; then
|
|
4074 SKIP_NEXTAW=YES
|
|
4075 fi
|
|
4076 fi
|
|
4077
|
|
4078 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
|
|
4079 echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6
|
17
|
4080 echo "configure:4081: checking whether or not to look for Carbon" >&5
|
7
|
4081 # Check whether --enable-carbon-check or --disable-carbon-check was given.
|
|
4082 if test "${enable_carbon_check+set}" = set; then
|
|
4083 enableval="$enable_carbon_check"
|
|
4084 :
|
|
4085 else
|
|
4086 enable_carbon_check="yes"
|
|
4087 fi
|
|
4088
|
|
4089 echo "$ac_t""$enable_carbon_check" 1>&6;
|
|
4090 if test "x$enable_carbon_check" = "xno"; then
|
|
4091 SKIP_CARBON=YES
|
|
4092 fi
|
|
4093 fi
|
|
4094
|
11
|
4095
|
|
4096 if test -z "$SKIP_KDE"; then
|
|
4097 # Check whether --with-qt-dir or --without-qt-dir was given.
|
|
4098 if test "${with_qt_dir+set}" = set; then
|
|
4099 withval="$with_qt_dir"
|
|
4100
|
|
4101 ROOTQT="$withval"
|
|
4102 MOC="$withval"/bin/moc
|
|
4103 QT_INCLUDES="$withval"/include
|
|
4104 QT_LIBS="$withval"/lib
|
|
4105
|
|
4106 fi
|
|
4107
|
|
4108
|
|
4109 if test "x$ROOTQT" = "x"; then
|
14
|
4110 if test -z "$QTDIR"; then
|
|
4111 # Extract the first word of "moc", so it can be a program name with args.
|
11
|
4112 set dummy moc; ac_word=$2
|
|
4113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
4114 echo "configure:4115: checking for $ac_word" >&5
|
11
|
4115 if eval "test \"`echo '$''{'ac_cv_path_MOC'+set}'`\" = set"; then
|
|
4116 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4117 else
|
|
4118 case "$MOC" in
|
|
4119 /*)
|
|
4120 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
|
|
4121 ;;
|
|
4122 ?:/*)
|
|
4123 ac_cv_path_MOC="$MOC" # Let the user override the test with a dos path.
|
|
4124 ;;
|
|
4125 *)
|
|
4126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4127 ac_dummy="$PATH"
|
|
4128 for ac_dir in $ac_dummy; do
|
|
4129 test -z "$ac_dir" && ac_dir=.
|
|
4130 if test -f $ac_dir/$ac_word; then
|
|
4131 ac_cv_path_MOC="$ac_dir/$ac_word"
|
|
4132 break
|
|
4133 fi
|
|
4134 done
|
|
4135 IFS="$ac_save_ifs"
|
|
4136 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
|
|
4137 ;;
|
|
4138 esac
|
|
4139 fi
|
|
4140 MOC="$ac_cv_path_MOC"
|
|
4141 if test -n "$MOC"; then
|
|
4142 echo "$ac_t""$MOC" 1>&6
|
|
4143 else
|
|
4144 echo "$ac_t""no" 1>&6
|
|
4145 fi
|
|
4146
|
14
|
4147 if test "x$MOC" = "xno"; then
|
|
4148 { echo "configure: error: could not find Qt directory" 1>&2; exit 1; }
|
|
4149 else
|
|
4150 ROOTQT=`echo $MOC | sed 's+/bin/moc++'`
|
|
4151 fi
|
|
4152 else
|
|
4153 ROOTQT="$QTDIR"
|
|
4154 fi
|
11
|
4155 fi
|
|
4156 MOC="$ROOTQT"/bin/moc
|
|
4157 QT_INCLUDES="$ROOTQT"/include
|
|
4158 QT_LIBS="$ROOTQT"/lib
|
|
4159
|
|
4160 # Check whether --with-qt-includes or --without-qt-includes was given.
|
|
4161 if test "${with_qt_includes+set}" = set; then
|
|
4162 withval="$with_qt_includes"
|
|
4163 QT_INCLUDES="$withval"
|
|
4164
|
|
4165 fi
|
|
4166
|
|
4167
|
|
4168 # Check whether --with-qt-libraries or --without-qt-libraries was given.
|
|
4169 if test "${with_qt_libraries+set}" = set; then
|
|
4170 withval="$with_qt_libraries"
|
|
4171 QT_LIBS="$withval"
|
|
4172
|
|
4173 fi
|
|
4174
|
|
4175
|
|
4176 if test "x$QT_LIBS" = "x" ; then
|
|
4177 QT_LIBS="$ROOTQT"/lib
|
|
4178 fi
|
|
4179 if test "x$QT_INCLUDES" = "x" ; then
|
|
4180 QT_INCLUDES="$ROOTQT"/include
|
|
4181 fi
|
|
4182
|
|
4183 echo $ac_n "checking whether or not to use a KDE Toolbar in KVim""... $ac_c" 1>&6
|
17
|
4184 echo "configure:4185: checking whether or not to use a KDE Toolbar in KVim" >&5
|
11
|
4185 # Check whether --enable-kde-toolbar or --disable-kde-toolbar was given.
|
|
4186 if test "${enable_kde_toolbar+set}" = set; then
|
|
4187 enableval="$enable_kde_toolbar"
|
|
4188 :
|
|
4189 else
|
|
4190 enable_kde_toolbar="no"
|
|
4191 fi
|
|
4192
|
|
4193 if test "x$enable_kde_toolbar" != "xno"; then
|
|
4194 cat >> confdefs.h <<\EOF
|
|
4195 #define FEAT_KDETOOLBAR 1
|
|
4196 EOF
|
|
4197
|
|
4198 fi
|
|
4199 echo "$ac_t""$enable_kde_toolbar" 1>&6;
|
|
4200 fi
|
|
4201
|
|
4202
|
|
4203 if test -z "$SKIP_KDE"; then
|
|
4204
|
|
4205
|
14
|
4206
|
|
4207
|
11
|
4208 echo $ac_n "checking --disable-rpath argument""... $ac_c" 1>&6
|
17
|
4209 echo "configure:4210: checking --disable-rpath argument" >&5
|
11
|
4210 # Check whether --enable-rpath or --disable-rpath was given.
|
|
4211 if test "${enable_rpath+set}" = set; then
|
|
4212 enableval="$enable_rpath"
|
|
4213 :
|
|
4214 else
|
|
4215 enable_rpath="yes"
|
|
4216 fi
|
|
4217
|
|
4218 if test "$enable_rpath" = "yes"; then
|
|
4219 echo "$ac_t""no" 1>&6
|
|
4220 else
|
|
4221 echo "$ac_t""yes" 1>&6
|
|
4222 fi
|
|
4223
|
|
4224 echo $ac_n "checking --with-kde-prefix argument""... $ac_c" 1>&6
|
17
|
4225 echo "configure:4226: checking --with-kde-prefix argument" >&5
|
11
|
4226 # Check whether --with-kde-prefix or --without-kde-prefix was given.
|
|
4227 if test "${with_kde_prefix+set}" = set; then
|
|
4228 withval="$with_kde_prefix"
|
|
4229 kde_config_prefix="$withval";
|
|
4230 echo "$ac_t""$kde_config_prefix" 1>&6
|
|
4231 else
|
|
4232 kde_config_prefix="";echo "$ac_t""no" 1>&6
|
|
4233 fi
|
|
4234
|
|
4235
|
|
4236 # Check whether --with-kde-includes or --without-kde-includes was given.
|
|
4237 if test "${with_kde_includes+set}" = set; then
|
|
4238 withval="$with_kde_includes"
|
|
4239 KDE_INCLUDES="$withval"
|
|
4240
|
|
4241 fi
|
|
4242
|
|
4243
|
|
4244 # Check whether --with-kde-libraries or --without-kde-libraries was given.
|
|
4245 if test "${with_kde_libraries+set}" = set; then
|
|
4246 withval="$with_kde_libraries"
|
|
4247 KDE_LIBS="$withval"
|
|
4248
|
|
4249 fi
|
|
4250
|
|
4251
|
|
4252 echo $ac_n "checking --disable-kdetest argument""... $ac_c" 1>&6
|
17
|
4253 echo "configure:4254: checking --disable-kdetest argument" >&5
|
11
|
4254 # Check whether --enable-kdetest or --disable-kdetest was given.
|
|
4255 if test "${enable_kdetest+set}" = set; then
|
|
4256 enableval="$enable_kdetest"
|
|
4257 enable_kdetest=yes
|
|
4258 fi
|
|
4259
|
|
4260
|
|
4261 if test "x$enable_kdetest" = "xyes" ; then
|
|
4262 echo "$ac_t""kde test enabled" 1>&6
|
|
4263 else
|
|
4264 echo "$ac_t""kde test disabled" 1>&6
|
|
4265 fi
|
|
4266
|
|
4267 if test "x$kde_config_prefix" != "x" ; then
|
|
4268 KDE_CONFIG=$kde_config_prefix/bin/kde-config
|
|
4269 fi
|
|
4270
|
|
4271 if test "X$KDE_CONFIG" = "X"; then
|
|
4272 # Extract the first word of "kde-config", so it can be a program name with args.
|
|
4273 set dummy kde-config; ac_word=$2
|
|
4274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
4275 echo "configure:4276: checking for $ac_word" >&5
|
11
|
4276 if eval "test \"`echo '$''{'ac_cv_path_KDE_CONFIG'+set}'`\" = set"; then
|
|
4277 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4278 else
|
|
4279 case "$KDE_CONFIG" in
|
|
4280 /*)
|
|
4281 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
|
|
4282 ;;
|
|
4283 ?:/*)
|
|
4284 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a dos path.
|
|
4285 ;;
|
|
4286 *)
|
|
4287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4288 ac_dummy="$PATH"
|
|
4289 for ac_dir in $ac_dummy; do
|
|
4290 test -z "$ac_dir" && ac_dir=.
|
|
4291 if test -f $ac_dir/$ac_word; then
|
|
4292 ac_cv_path_KDE_CONFIG="$ac_dir/$ac_word"
|
|
4293 break
|
|
4294 fi
|
|
4295 done
|
|
4296 IFS="$ac_save_ifs"
|
|
4297 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no"
|
|
4298 ;;
|
|
4299 esac
|
|
4300 fi
|
|
4301 KDE_CONFIG="$ac_cv_path_KDE_CONFIG"
|
|
4302 if test -n "$KDE_CONFIG"; then
|
|
4303 echo "$ac_t""$KDE_CONFIG" 1>&6
|
|
4304 else
|
|
4305 echo "$ac_t""no" 1>&6
|
|
4306 fi
|
|
4307
|
|
4308 else
|
|
4309 echo "$ac_t""Using KDE configuration program $KDE_CONFIG" 1>&6
|
|
4310 fi
|
|
4311
|
|
4312 if test "X$KDE_CONFIG" != "X" ; then
|
|
4313
|
|
4314 if test "X$KDE_CONFIG" != "X"; then
|
|
4315 min_kde_version=2.0.0
|
|
4316 echo $ac_n "checking for KDE version >= $min_kde_version""... $ac_c" 1>&6
|
17
|
4317 echo "configure:4318: checking for KDE version >= $min_kde_version" >&5
|
11
|
4318 no_kde=""
|
|
4319 if test "$KDE_CONFIG" = "no" ; then
|
|
4320 no_kde=yes
|
|
4321 else
|
14
|
4322 KDE_PREFIX=`$KDE_CONFIG --prefix`
|
11
|
4323 if test "x$KDE_LIBS" = "x"; then
|
|
4324 KDE_LIBS="$KDE_PREFIX/lib"
|
|
4325 fi
|
|
4326 if test "x$KDE_INCLUDES" = "x"; then
|
13
|
4327 KDE_INCLUDES="$KDE_PREFIX/include"
|
|
4328 if test -d "$KDE_INCLUDES/kde"; then
|
|
4329 KDE_INCLUDES="$KDE_INCLUDES/kde"
|
|
4330 fi
|
11
|
4331 fi
|
|
4332 kde_major_version=`$KDE_CONFIG --version | grep KDE | \
|
|
4333 sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
|
|
4334 kde_minor_version=`$KDE_CONFIG --version | grep KDE | \
|
|
4335 sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
|
14
|
4336
|
11
|
4337 qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \
|
|
4338 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
|
|
4339 qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \
|
|
4340 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
|
14
|
4341
|
11
|
4342 if test "x$enable-kdetest" = "xyes" ; then
|
|
4343 ac_save_LIBS="$LIBS"
|
|
4344 LIBS="$LIBS $KDE_LIBS"
|
|
4345
|
|
4346 if test "$cross_compiling" = yes; then
|
|
4347 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)"
|
|
4348 else
|
|
4349 cat > conftest.$ac_ext <<EOF
|
17
|
4350 #line 4351 "configure"
|
11
|
4351 #include "confdefs.h"
|
|
4352
|
|
4353 #include <stdio.h>
|
|
4354 int
|
|
4355 main()
|
|
4356 { return 0; }
|
|
4357
|
|
4358 EOF
|
17
|
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
11
|
4360 then
|
|
4361 :
|
|
4362 else
|
|
4363 echo "configure: failed program was:" >&5
|
|
4364 cat conftest.$ac_ext >&5
|
|
4365 rm -fr conftest*
|
|
4366 no_kde=yes
|
|
4367 fi
|
|
4368 rm -fr conftest*
|
|
4369 fi
|
|
4370
|
|
4371 LIBS="$ac_save_LIBS"
|
|
4372 fi
|
|
4373 fi
|
|
4374 if test "x$no_kde" = x ; then
|
|
4375 echo "$ac_t""found KDE $kde_major_version.$kde_minor_version" 1>&6
|
|
4376 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP"
|
|
4377 GUI_INC_LOC="-I$KDE_INCLUDES"
|
|
4378 KDEDIR="$KDE_PREFIX"
|
|
4379 else
|
|
4380 echo "$ac_t""no" 1>&6
|
|
4381 KDE_LIBS=""
|
|
4382 :
|
|
4383 fi
|
|
4384 else
|
|
4385 echo "$ac_t""no" 1>&6
|
|
4386 KDE_LIBS=""
|
|
4387 :
|
|
4388 fi
|
|
4389
|
|
4390
|
|
4391
|
|
4392
|
14
|
4393
|
11
|
4394 if test "x$KDE_PREFIX" != "x"; then
|
|
4395 echo $ac_n "checking for QT version $qt_major_version.x""... $ac_c" 1>&6
|
17
|
4396 echo "configure:4397: checking for QT version $qt_major_version.x" >&5
|
11
|
4397 if test "x$ROOTQT" != "x" ; then
|
|
4398 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC"
|
|
4399 if test $qt_major_version -lt 2; then
|
|
4400 { echo "configure: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" 1>&2; exit 1; }
|
|
4401 fi
|
|
4402 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then
|
|
4403 CFLAGS="$CFLAGS -D_THREAD_SAFE"
|
|
4404 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE"
|
|
4405 GUI_LIB_LOC="$GUI_LIB_LOC -pthread"
|
|
4406 LIBS="$LIBS -pthread"
|
|
4407 fi
|
|
4408
|
|
4409 if test "x$enable_rpath" = "xyes"; then
|
|
4410 if test $qt_major_version = 2; then
|
|
4411 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \
|
|
4412 -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
|
|
4413 else
|
|
4414 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \
|
|
4415 -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
|
|
4416 fi
|
|
4417 else
|
|
4418 if test $qt_major_version = 2; then
|
|
4419 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC"
|
|
4420 else
|
|
4421 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC"
|
|
4422 fi
|
|
4423 fi
|
|
4424
|
|
4425 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`"
|
|
4426
|
|
4427 echo "$ac_t""found $qt_major_version.$qt_minor_version in $ROOTQT" 1>&6
|
14
|
4428
|
|
4429
|
|
4430 qt_incdir=NO
|
|
4431 for i in $QT_INCLUDES;
|
|
4432 do
|
|
4433 for j in qstyle.h;
|
|
4434 do
|
17
|
4435 echo "configure: 4436: $i/$j" >&5
|
14
|
4436 if test -r "$i/$j"; then
|
|
4437 echo "taking that" >&5
|
|
4438 qt_incdir=$i
|
|
4439 break 2
|
|
4440 fi
|
|
4441 done
|
|
4442 done
|
|
4443
|
|
4444 if test "x$qt_incdir" = "xNO"; then
|
|
4445 { echo "configure: error: Could not find Qt headers in $QT_INCLUDES" 1>&2; exit 1; }
|
|
4446 fi
|
|
4447
|
|
4448 kde_incdir=NO
|
|
4449 for i in $KDE_INCLUDES;
|
|
4450 do
|
|
4451 for j in kapplication.h;
|
|
4452 do
|
17
|
4453 echo "configure: 4454: $i/$j" >&5
|
14
|
4454 if test -r "$i/$j"; then
|
|
4455 echo "taking that" >&5
|
|
4456 kde_incdir=$i
|
|
4457 break 2
|
|
4458 fi
|
|
4459 done
|
|
4460 done
|
|
4461
|
|
4462 if test "x$kde_incdir" = "xNO"; then
|
|
4463 { echo "configure: error: Could not find KDE headers in $KDE_INCLUDES" 1>&2; exit 1; }
|
|
4464 fi
|
|
4465
|
|
4466
|
|
4467 ac_ext=C
|
|
4468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
4469 ac_cpp='$CXXCPP $CPPFLAGS'
|
|
4470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
4471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
4472 cross_compiling=$ac_cv_prog_cxx_cross
|
|
4473
|
|
4474 ac_save_LIBS="$LIBS"
|
|
4475 LIBS="$GUI_LIB_LOC"
|
|
4476 ac_save_CXXFLAGS="$CXXFLAGS"
|
|
4477 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC"
|
|
4478 echo $ac_n "checking whether Qt libraries are usable""... $ac_c" 1>&6
|
17
|
4479 echo "configure:4480: checking whether Qt libraries are usable" >&5
|
14
|
4480 cat > conftest.$ac_ext <<EOF
|
17
|
4481 #line 4482 "configure"
|
14
|
4482 #include "confdefs.h"
|
|
4483 #include <qapplication.h>
|
|
4484 int main() {
|
|
4485
|
|
4486 int argc;
|
|
4487 char** argv;
|
|
4488 QApplication app(argc, argv);
|
|
4489
|
|
4490 ; return 0; }
|
|
4491 EOF
|
17
|
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
14
|
4493 rm -rf conftest*
|
|
4494 echo "$ac_t""yes" 1>&6
|
|
4495 else
|
|
4496 echo "configure: failed program was:" >&5
|
|
4497 cat conftest.$ac_ext >&5
|
|
4498 rm -rf conftest*
|
|
4499 echo "$ac_t""no" 1>&6;{ echo "configure: error: Qt fails to link a simple application" 1>&2; exit 1; }
|
|
4500 fi
|
|
4501 rm -f conftest*
|
|
4502
|
|
4503 echo $ac_n "checking whether KDE libraries are usable""... $ac_c" 1>&6
|
17
|
4504 echo "configure:4505: checking whether KDE libraries are usable" >&5
|
14
|
4505 cat > conftest.$ac_ext <<EOF
|
17
|
4506 #line 4507 "configure"
|
14
|
4507 #include "confdefs.h"
|
|
4508 #include <kapplication.h>
|
|
4509 int main() {
|
|
4510
|
|
4511 int argc;
|
|
4512 char** argv;
|
|
4513 KApplication app(argc, argv);
|
|
4514
|
|
4515 ; return 0; }
|
|
4516 EOF
|
17
|
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
14
|
4518 rm -rf conftest*
|
|
4519 echo "$ac_t""yes" 1>&6
|
|
4520 else
|
|
4521 echo "configure: failed program was:" >&5
|
|
4522 cat conftest.$ac_ext >&5
|
|
4523 rm -rf conftest*
|
|
4524 echo "$ac_t""no" 1>&6;{ echo "configure: error: KDE fails to link a simple application" 1>&2; exit 1; }
|
|
4525 fi
|
|
4526 rm -f conftest*
|
|
4527
|
|
4528 LIBS="$ac_save_LIBS"
|
|
4529 CXXFLAGS="$ac_save_CXXFLAGS"
|
|
4530 ac_ext=c
|
|
4531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
4532 ac_cpp='$CPP $CPPFLAGS'
|
|
4533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
4534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
4535 cross_compiling=$ac_cv_prog_cc_cross
|
|
4536
|
|
4537
|
|
4538
|
11
|
4539 SKIP_GTK=YES
|
|
4540 SKIP_ATHENA=YES
|
|
4541 SKIP_MOTIF=YES
|
|
4542 GUITYPE=KDE
|
|
4543
|
|
4544
|
|
4545
|
|
4546
|
|
4547
|
|
4548 cat >> confdefs.h <<\EOF
|
|
4549 #define FEAT_GUI_KDE 1
|
|
4550 EOF
|
|
4551
|
|
4552 else
|
|
4553 { echo "configure: error: Detected QT version mismatched" 1>&2; exit 1; }
|
|
4554 fi
|
|
4555 else
|
|
4556 { echo "configure: error: Could not find KDE installation prefix" 1>&2; exit 1; }
|
|
4557 fi
|
|
4558 fi
|
|
4559 fi
|
|
4560
|
7
|
4561 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
|
|
4562 echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6
|
17
|
4563 echo "configure:4564: checking for Carbon GUI" >&5
|
7
|
4564 echo "$ac_t""yes" 1>&6;
|
|
4565 GUITYPE=CARBONGUI
|
|
4566 SKIP_GTK=YES;
|
|
4567 SKIP_GTK2=YES;
|
|
4568 SKIP_GNOME=YES;
|
|
4569 SKIP_MOTIF=YES;
|
|
4570 SKIP_ATHENA=YES;
|
|
4571 SKIP_NEXTAW=YES;
|
|
4572 SKIP_PHOTON=YES;
|
|
4573 SKIP_BEOS=YES;
|
|
4574 SKIP_CARBON=YES
|
|
4575 fi
|
|
4576
|
|
4577
|
|
4578
|
|
4579
|
|
4580
|
|
4581
|
|
4582
|
|
4583
|
|
4584
|
|
4585 if test -z "$SKIP_GTK"; then
|
|
4586
|
|
4587 echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6
|
17
|
4588 echo "configure:4589: checking --with-gtk-prefix argument" >&5
|
7
|
4589 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
|
|
4590 if test "${with_gtk_prefix+set}" = set; then
|
|
4591 withval="$with_gtk_prefix"
|
|
4592 gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
|
|
4593 else
|
|
4594 gtk_config_prefix=""; echo "$ac_t""no" 1>&6
|
|
4595 fi
|
|
4596
|
|
4597
|
|
4598 echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6
|
17
|
4599 echo "configure:4600: checking --with-gtk-exec-prefix argument" >&5
|
7
|
4600 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
|
|
4601 if test "${with_gtk_exec_prefix+set}" = set; then
|
|
4602 withval="$with_gtk_exec_prefix"
|
|
4603 gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
|
|
4604 else
|
|
4605 gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6
|
|
4606 fi
|
|
4607
|
|
4608
|
|
4609 echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6
|
17
|
4610 echo "configure:4611: checking --disable-gtktest argument" >&5
|
7
|
4611 # Check whether --enable-gtktest or --disable-gtktest was given.
|
|
4612 if test "${enable_gtktest+set}" = set; then
|
|
4613 enableval="$enable_gtktest"
|
|
4614 :
|
|
4615 else
|
|
4616 enable_gtktest=yes
|
|
4617 fi
|
|
4618
|
|
4619 if test "x$enable_gtktest" = "xyes" ; then
|
|
4620 echo "$ac_t""gtk test enabled" 1>&6
|
|
4621 else
|
|
4622 echo "$ac_t""gtk test disabled" 1>&6
|
|
4623 fi
|
|
4624
|
|
4625 if test "x$gtk_config_prefix" != "x" ; then
|
|
4626 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
|
|
4627 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
|
|
4628 fi
|
|
4629 if test "x$gtk_config_exec_prefix" != "x" ; then
|
|
4630 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
|
|
4631 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
|
|
4632 fi
|
|
4633 if test "X$GTK_CONFIG" = "X"; then
|
|
4634 # Extract the first word of "gtk-config", so it can be a program name with args.
|
|
4635 set dummy gtk-config; ac_word=$2
|
|
4636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
4637 echo "configure:4638: checking for $ac_word" >&5
|
7
|
4638 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
|
|
4639 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4640 else
|
|
4641 case "$GTK_CONFIG" in
|
|
4642 /*)
|
|
4643 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
|
|
4644 ;;
|
|
4645 ?:/*)
|
|
4646 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
|
|
4647 ;;
|
|
4648 *)
|
|
4649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4650 ac_dummy="$PATH"
|
|
4651 for ac_dir in $ac_dummy; do
|
|
4652 test -z "$ac_dir" && ac_dir=.
|
|
4653 if test -f $ac_dir/$ac_word; then
|
|
4654 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
|
|
4655 break
|
|
4656 fi
|
|
4657 done
|
|
4658 IFS="$ac_save_ifs"
|
|
4659 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
|
|
4660 ;;
|
|
4661 esac
|
|
4662 fi
|
|
4663 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
|
|
4664 if test -n "$GTK_CONFIG"; then
|
|
4665 echo "$ac_t""$GTK_CONFIG" 1>&6
|
|
4666 else
|
|
4667 echo "$ac_t""no" 1>&6
|
|
4668 fi
|
|
4669
|
|
4670 if test "X$GTK_CONFIG" = "Xno"; then
|
|
4671 # Extract the first word of "gtk12-config", so it can be a program name with args.
|
|
4672 set dummy gtk12-config; ac_word=$2
|
|
4673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
4674 echo "configure:4675: checking for $ac_word" >&5
|
7
|
4675 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
|
|
4676 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4677 else
|
|
4678 case "$GTK12_CONFIG" in
|
|
4679 /*)
|
|
4680 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
|
|
4681 ;;
|
|
4682 ?:/*)
|
|
4683 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
|
|
4684 ;;
|
|
4685 *)
|
|
4686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4687 ac_dummy="$PATH"
|
|
4688 for ac_dir in $ac_dummy; do
|
|
4689 test -z "$ac_dir" && ac_dir=.
|
|
4690 if test -f $ac_dir/$ac_word; then
|
|
4691 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
|
|
4692 break
|
|
4693 fi
|
|
4694 done
|
|
4695 IFS="$ac_save_ifs"
|
|
4696 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
|
|
4697 ;;
|
|
4698 esac
|
|
4699 fi
|
|
4700 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
|
|
4701 if test -n "$GTK12_CONFIG"; then
|
|
4702 echo "$ac_t""$GTK12_CONFIG" 1>&6
|
|
4703 else
|
|
4704 echo "$ac_t""no" 1>&6
|
|
4705 fi
|
|
4706
|
|
4707 GTK_CONFIG="$GTK12_CONFIG"
|
|
4708 fi
|
|
4709 else
|
|
4710 echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6
|
|
4711 fi
|
|
4712 if test "X$PKG_CONFIG" = "X"; then
|
|
4713 # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
4714 set dummy pkg-config; ac_word=$2
|
|
4715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
4716 echo "configure:4717: checking for $ac_word" >&5
|
7
|
4717 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
|
|
4718 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4719 else
|
|
4720 case "$PKG_CONFIG" in
|
|
4721 /*)
|
|
4722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
4723 ;;
|
|
4724 ?:/*)
|
|
4725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
|
|
4726 ;;
|
|
4727 *)
|
|
4728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4729 ac_dummy="$PATH"
|
|
4730 for ac_dir in $ac_dummy; do
|
|
4731 test -z "$ac_dir" && ac_dir=.
|
|
4732 if test -f $ac_dir/$ac_word; then
|
|
4733 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
|
|
4734 break
|
|
4735 fi
|
|
4736 done
|
|
4737 IFS="$ac_save_ifs"
|
|
4738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
|
4739 ;;
|
|
4740 esac
|
|
4741 fi
|
|
4742 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
4743 if test -n "$PKG_CONFIG"; then
|
|
4744 echo "$ac_t""$PKG_CONFIG" 1>&6
|
|
4745 else
|
|
4746 echo "$ac_t""no" 1>&6
|
|
4747 fi
|
|
4748
|
|
4749 fi
|
|
4750
|
|
4751 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
|
|
4752 if test "X$SKIP_GTK2" != "XYES"; then
|
|
4753
|
|
4754 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
|
|
4755 {
|
|
4756 min_gtk_version=2.2.0
|
|
4757 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
17
|
4758 echo "configure:4759: checking for GTK - version >= $min_gtk_version" >&5
|
7
|
4759 no_gtk=""
|
|
4760 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
|
|
4761 && $PKG_CONFIG --exists gtk+-2.0; then
|
|
4762 {
|
|
4763 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
4764 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
4765 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4766 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
|
|
4767 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4768 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
|
|
4769 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4770 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
|
|
4771 }
|
|
4772 elif test "X$GTK_CONFIG" != "Xno"; then
|
|
4773 {
|
|
4774 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
|
|
4775 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
|
|
4776 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4777 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
|
|
4778 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4779 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
|
|
4780 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4781 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
|
|
4782 }
|
|
4783 else
|
|
4784 no_gtk=yes
|
|
4785 fi
|
|
4786
|
|
4787 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
|
|
4788 {
|
|
4789 ac_save_CFLAGS="$CFLAGS"
|
|
4790 ac_save_LIBS="$LIBS"
|
|
4791 CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
4792 LIBS="$LIBS $GTK_LIBS"
|
|
4793
|
|
4794 rm -f conf.gtktest
|
|
4795 if test "$cross_compiling" = yes; then
|
|
4796 echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
4797 else
|
|
4798 cat > conftest.$ac_ext <<EOF
|
17
|
4799 #line 4800 "configure"
|
7
|
4800 #include "confdefs.h"
|
|
4801
|
|
4802 #include <gtk/gtk.h>
|
|
4803 #include <stdio.h>
|
|
4804
|
|
4805 int
|
|
4806 main ()
|
|
4807 {
|
|
4808 int major, minor, micro;
|
|
4809 char *tmp_version;
|
|
4810
|
|
4811 system ("touch conf.gtktest");
|
|
4812
|
|
4813 /* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
4814 tmp_version = g_strdup("$min_gtk_version");
|
|
4815 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
4816 printf("%s, bad version string\n", "$min_gtk_version");
|
|
4817 exit(1);
|
|
4818 }
|
|
4819
|
|
4820 if ((gtk_major_version > major) ||
|
|
4821 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
|
4822 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
|
|
4823 (gtk_micro_version >= micro)))
|
|
4824 {
|
|
4825 return 0;
|
|
4826 }
|
|
4827 return 1;
|
|
4828 }
|
|
4829
|
|
4830 EOF
|
17
|
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
4832 then
|
|
4833 :
|
|
4834 else
|
|
4835 echo "configure: failed program was:" >&5
|
|
4836 cat conftest.$ac_ext >&5
|
|
4837 rm -fr conftest*
|
|
4838 no_gtk=yes
|
|
4839 fi
|
|
4840 rm -fr conftest*
|
|
4841 fi
|
|
4842
|
|
4843 CFLAGS="$ac_save_CFLAGS"
|
|
4844 LIBS="$ac_save_LIBS"
|
|
4845 }
|
|
4846 fi
|
|
4847 if test "x$no_gtk" = x ; then
|
|
4848 if test "x$enable_gtktest" = "xyes"; then
|
|
4849 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
|
|
4850 else
|
|
4851 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
|
|
4852 fi
|
|
4853 GTK_LIBNAME="$GTK_LIBS"
|
|
4854 GUI_INC_LOC="$GTK_CFLAGS"
|
|
4855 else
|
|
4856 {
|
|
4857 echo "$ac_t""no" 1>&6
|
|
4858 GTK_CFLAGS=""
|
|
4859 GTK_LIBS=""
|
|
4860 :
|
|
4861 }
|
|
4862 fi
|
|
4863 }
|
|
4864 else
|
|
4865 GTK_CFLAGS=""
|
|
4866 GTK_LIBS=""
|
|
4867 :
|
|
4868 fi
|
|
4869
|
|
4870
|
|
4871 rm -f conf.gtktest
|
|
4872
|
|
4873 if test "x$GTK_CFLAGS" != "x"; then
|
|
4874 SKIP_ATHENA=YES
|
|
4875 SKIP_NEXTAW=YES
|
|
4876 SKIP_MOTIF=YES
|
|
4877 GUITYPE=GTK
|
|
4878
|
|
4879 fi
|
|
4880 fi
|
|
4881
|
|
4882 if test "x$GUITYPE" != "xGTK"; then
|
|
4883 SKIP_GTK2=YES
|
|
4884
|
|
4885 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
|
|
4886 {
|
|
4887 min_gtk_version=1.1.16
|
|
4888 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
17
|
4889 echo "configure:4890: checking for GTK - version >= $min_gtk_version" >&5
|
7
|
4890 no_gtk=""
|
|
4891 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
|
|
4892 && $PKG_CONFIG --exists gtk+-2.0; then
|
|
4893 {
|
|
4894 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
4895 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
4896 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4897 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
|
|
4898 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4899 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
|
|
4900 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
|
|
4901 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
|
|
4902 }
|
|
4903 elif test "X$GTK_CONFIG" != "Xno"; then
|
|
4904 {
|
|
4905 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
|
|
4906 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
|
|
4907 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4908 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
|
|
4909 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4910 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
|
|
4911 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
4912 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
|
|
4913 }
|
|
4914 else
|
|
4915 no_gtk=yes
|
|
4916 fi
|
|
4917
|
|
4918 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
|
|
4919 {
|
|
4920 ac_save_CFLAGS="$CFLAGS"
|
|
4921 ac_save_LIBS="$LIBS"
|
|
4922 CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
4923 LIBS="$LIBS $GTK_LIBS"
|
|
4924
|
|
4925 rm -f conf.gtktest
|
|
4926 if test "$cross_compiling" = yes; then
|
|
4927 echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
4928 else
|
|
4929 cat > conftest.$ac_ext <<EOF
|
17
|
4930 #line 4931 "configure"
|
7
|
4931 #include "confdefs.h"
|
|
4932
|
|
4933 #include <gtk/gtk.h>
|
|
4934 #include <stdio.h>
|
|
4935
|
|
4936 int
|
|
4937 main ()
|
|
4938 {
|
|
4939 int major, minor, micro;
|
|
4940 char *tmp_version;
|
|
4941
|
|
4942 system ("touch conf.gtktest");
|
|
4943
|
|
4944 /* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
4945 tmp_version = g_strdup("$min_gtk_version");
|
|
4946 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
4947 printf("%s, bad version string\n", "$min_gtk_version");
|
|
4948 exit(1);
|
|
4949 }
|
|
4950
|
|
4951 if ((gtk_major_version > major) ||
|
|
4952 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
|
4953 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
|
|
4954 (gtk_micro_version >= micro)))
|
|
4955 {
|
|
4956 return 0;
|
|
4957 }
|
|
4958 return 1;
|
|
4959 }
|
|
4960
|
|
4961 EOF
|
17
|
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
4963 then
|
|
4964 :
|
|
4965 else
|
|
4966 echo "configure: failed program was:" >&5
|
|
4967 cat conftest.$ac_ext >&5
|
|
4968 rm -fr conftest*
|
|
4969 no_gtk=yes
|
|
4970 fi
|
|
4971 rm -fr conftest*
|
|
4972 fi
|
|
4973
|
|
4974 CFLAGS="$ac_save_CFLAGS"
|
|
4975 LIBS="$ac_save_LIBS"
|
|
4976 }
|
|
4977 fi
|
|
4978 if test "x$no_gtk" = x ; then
|
|
4979 if test "x$enable_gtktest" = "xyes"; then
|
|
4980 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
|
|
4981 else
|
|
4982 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
|
|
4983 fi
|
|
4984 GTK_LIBNAME="$GTK_LIBS"
|
|
4985 GUI_INC_LOC="$GTK_CFLAGS"
|
|
4986 else
|
|
4987 {
|
|
4988 echo "$ac_t""no" 1>&6
|
|
4989 GTK_CFLAGS=""
|
|
4990 GTK_LIBS=""
|
|
4991 :
|
|
4992 }
|
|
4993 fi
|
|
4994 }
|
|
4995 else
|
|
4996 GTK_CFLAGS=""
|
|
4997 GTK_LIBS=""
|
|
4998 :
|
|
4999 fi
|
|
5000
|
|
5001
|
|
5002 rm -f conf.gtktest
|
|
5003
|
|
5004 if test "x$GTK_CFLAGS" != "x"; then
|
|
5005 SKIP_ATHENA=YES
|
|
5006 SKIP_NEXTAW=YES
|
|
5007 SKIP_MOTIF=YES
|
|
5008 GUITYPE=GTK
|
|
5009
|
|
5010 fi
|
|
5011 fi
|
|
5012 fi
|
|
5013 if test "x$GUITYPE" = "xGTK"; then
|
|
5014 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
|
|
5015 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
|
|
5016 echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6
|
|
5017 else
|
|
5018 {
|
|
5019 if test "0$gtk_major_version" -ge 2; then
|
|
5020 cat >> confdefs.h <<\EOF
|
|
5021 #define HAVE_GTK2 1
|
|
5022 EOF
|
|
5023
|
|
5024 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
|
|
5025 || test "0$gtk_minor_version" -ge 2 \
|
|
5026 || test "0$gtk_major_version" -gt 2; then
|
|
5027 cat >> confdefs.h <<\EOF
|
|
5028 #define HAVE_GTK_MULTIHEAD 1
|
|
5029 EOF
|
|
5030
|
|
5031 fi
|
|
5032 fi
|
|
5033 if test -z "$SKIP_GNOME"; then
|
|
5034 {
|
|
5035
|
|
5036
|
|
5037
|
|
5038
|
|
5039
|
|
5040 # Check whether --with-gnome-includes or --without-gnome-includes was given.
|
|
5041 if test "${with_gnome_includes+set}" = set; then
|
|
5042 withval="$with_gnome_includes"
|
|
5043 CFLAGS="$CFLAGS -I$withval"
|
|
5044
|
|
5045 fi
|
|
5046
|
|
5047
|
|
5048 # Check whether --with-gnome-libs or --without-gnome-libs was given.
|
|
5049 if test "${with_gnome_libs+set}" = set; then
|
|
5050 withval="$with_gnome_libs"
|
|
5051 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
|
|
5052
|
|
5053 fi
|
|
5054
|
|
5055
|
|
5056 # Check whether --with-gnome or --without-gnome was given.
|
|
5057 if test "${with_gnome+set}" = set; then
|
|
5058 withval="$with_gnome"
|
|
5059 if test x$withval = xyes; then
|
|
5060 want_gnome=yes
|
|
5061 have_gnome=yes
|
|
5062 else
|
|
5063 if test "x$withval" = xno; then
|
|
5064 want_gnome=no
|
|
5065 else
|
|
5066 want_gnome=yes
|
|
5067 LDFLAGS="$LDFLAGS -L$withval/lib"
|
|
5068 CFLAGS="$CFLAGS -I$withval/include"
|
|
5069 gnome_prefix=$withval/lib
|
|
5070 fi
|
|
5071 fi
|
|
5072 else
|
|
5073 want_gnome=yes
|
|
5074 fi
|
|
5075
|
|
5076
|
|
5077 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
|
|
5078 {
|
|
5079 echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6
|
17
|
5080 echo "configure:5081: checking for libgnomeui-2.0" >&5
|
7
|
5081 if $PKG_CONFIG --exists libgnomeui-2.0; then
|
|
5082 echo "$ac_t""yes" 1>&6
|
|
5083 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
|
|
5084 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
|
|
5085 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
|
|
5086 have_gnome=yes
|
|
5087 else
|
|
5088 echo "$ac_t""not found" 1>&6
|
|
5089 if test "x" = xfail; then
|
|
5090 { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; }
|
|
5091 fi
|
|
5092 fi
|
|
5093 }
|
|
5094 elif test "x$want_gnome" = xyes; then
|
|
5095 {
|
|
5096 # Extract the first word of "gnome-config", so it can be a program name with args.
|
|
5097 set dummy gnome-config; ac_word=$2
|
|
5098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
5099 echo "configure:5100: checking for $ac_word" >&5
|
7
|
5100 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
|
|
5101 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5102 else
|
|
5103 case "$GNOME_CONFIG" in
|
|
5104 /*)
|
|
5105 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
|
|
5106 ;;
|
|
5107 ?:/*)
|
|
5108 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
|
|
5109 ;;
|
|
5110 *)
|
|
5111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
5112 ac_dummy="$PATH"
|
|
5113 for ac_dir in $ac_dummy; do
|
|
5114 test -z "$ac_dir" && ac_dir=.
|
|
5115 if test -f $ac_dir/$ac_word; then
|
|
5116 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
|
|
5117 break
|
|
5118 fi
|
|
5119 done
|
|
5120 IFS="$ac_save_ifs"
|
|
5121 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
|
|
5122 ;;
|
|
5123 esac
|
|
5124 fi
|
|
5125 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
|
|
5126 if test -n "$GNOME_CONFIG"; then
|
|
5127 echo "$ac_t""$GNOME_CONFIG" 1>&6
|
|
5128 else
|
|
5129 echo "$ac_t""no" 1>&6
|
|
5130 fi
|
|
5131
|
|
5132 if test "$GNOME_CONFIG" = "no"; then
|
|
5133 no_gnome_config="yes"
|
|
5134 else
|
|
5135 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
|
17
|
5136 echo "configure:5137: checking if $GNOME_CONFIG works" >&5
|
7
|
5137 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
|
|
5138 echo "$ac_t""yes" 1>&6
|
|
5139 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
|
|
5140 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
|
|
5141 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
|
|
5142 have_gnome=yes
|
|
5143 else
|
|
5144 echo "$ac_t""no" 1>&6
|
|
5145 no_gnome_config="yes"
|
|
5146 fi
|
|
5147 fi
|
|
5148
|
|
5149 if test x$exec_prefix = xNONE; then
|
|
5150 if test x$prefix = xNONE; then
|
|
5151 gnome_prefix=$ac_default_prefix/lib
|
|
5152 else
|
|
5153 gnome_prefix=$prefix/lib
|
|
5154 fi
|
|
5155 else
|
|
5156 gnome_prefix=`eval echo \`echo $libdir\``
|
|
5157 fi
|
|
5158
|
|
5159 if test "$no_gnome_config" = "yes"; then
|
|
5160 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
|
17
|
5161 echo "configure:5162: checking for gnomeConf.sh file in $gnome_prefix" >&5
|
7
|
5162 if test -f $gnome_prefix/gnomeConf.sh; then
|
|
5163 echo "$ac_t""found" 1>&6
|
|
5164 echo "loading gnome configuration from" \
|
|
5165 "$gnome_prefix/gnomeConf.sh"
|
|
5166 . $gnome_prefix/gnomeConf.sh
|
|
5167 have_gnome=yes
|
|
5168 else
|
|
5169 echo "$ac_t""not found" 1>&6
|
|
5170 if test x = xfail; then
|
|
5171 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
|
|
5172 fi
|
|
5173 fi
|
|
5174 fi
|
|
5175 }
|
|
5176 fi
|
|
5177
|
|
5178 if test x$have_gnome = xyes ; then
|
|
5179 cat >> confdefs.h <<\EOF
|
|
5180 #define FEAT_GUI_GNOME 1
|
|
5181 EOF
|
|
5182
|
|
5183 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
|
|
5184 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
|
|
5185 fi
|
|
5186 }
|
|
5187 fi
|
|
5188 }
|
|
5189 fi
|
|
5190 fi
|
|
5191 fi
|
|
5192
|
|
5193
|
|
5194 if test -z "$SKIP_MOTIF"; then
|
|
5195 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
|
|
5196 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
|
|
5197
|
|
5198 echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6
|
17
|
5199 echo "configure:5200: checking for location of Motif GUI includes" >&5
|
7
|
5200 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
|
|
5201 GUI_INC_LOC=
|
|
5202 for try in $gui_includes; do
|
|
5203 if test -f "$try/Xm/Xm.h"; then
|
|
5204 GUI_INC_LOC=$try
|
|
5205 fi
|
|
5206 done
|
|
5207 if test -n "$GUI_INC_LOC"; then
|
|
5208 if test "$GUI_INC_LOC" = /usr/include; then
|
|
5209 GUI_INC_LOC=
|
|
5210 echo "$ac_t""in default path" 1>&6
|
|
5211 else
|
|
5212 echo "$ac_t""$GUI_INC_LOC" 1>&6
|
|
5213 fi
|
|
5214 else
|
|
5215 echo "$ac_t""<not found>" 1>&6
|
|
5216 SKIP_MOTIF=YES
|
|
5217 fi
|
|
5218 fi
|
|
5219
|
|
5220
|
|
5221 if test -z "$SKIP_MOTIF"; then
|
|
5222 echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6
|
17
|
5223 echo "configure:5224: checking --with-motif-lib argument" >&5
|
7
|
5224 # Check whether --with-motif-lib or --without-motif-lib was given.
|
|
5225 if test "${with_motif_lib+set}" = set; then
|
|
5226 withval="$with_motif_lib"
|
|
5227 MOTIF_LIBNAME="${withval}"
|
|
5228 fi
|
|
5229
|
|
5230
|
|
5231 if test -n "$MOTIF_LIBNAME"; then
|
|
5232 echo "$ac_t""$MOTIF_LIBNAME" 1>&6
|
|
5233 GUI_LIB_LOC=
|
|
5234 else
|
|
5235 echo "$ac_t""no" 1>&6
|
|
5236
|
|
5237 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
|
|
5238
|
|
5239 echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6
|
17
|
5240 echo "configure:5241: checking for location of Motif GUI libs" >&5
|
7
|
5241 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
|
|
5242 GUI_LIB_LOC=
|
|
5243 for try in $gui_libs; do
|
14
|
5244 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
|
7
|
5245 if test -f "$libtry"; then
|
|
5246 GUI_LIB_LOC=$try
|
|
5247 fi
|
|
5248 done
|
|
5249 done
|
|
5250 if test -n "$GUI_LIB_LOC"; then
|
|
5251 if test "$GUI_LIB_LOC" = /usr/lib; then
|
|
5252 GUI_LIB_LOC=
|
|
5253 echo "$ac_t""in default path" 1>&6
|
|
5254 else
|
|
5255 if test -n "$GUI_LIB_LOC"; then
|
|
5256 echo "$ac_t""$GUI_LIB_LOC" 1>&6
|
|
5257 if test "`(uname) 2>/dev/null`" = SunOS &&
|
|
5258 uname -r | grep '^5' >/dev/null; then
|
|
5259 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
|
|
5260 fi
|
|
5261 fi
|
|
5262 fi
|
|
5263 MOTIF_LIBNAME=-lXm
|
|
5264 else
|
|
5265 echo "$ac_t""<not found>" 1>&6
|
|
5266 SKIP_MOTIF=YES
|
|
5267 fi
|
|
5268 fi
|
|
5269 fi
|
|
5270
|
|
5271 if test -z "$SKIP_MOTIF"; then
|
|
5272 SKIP_ATHENA=YES
|
|
5273 SKIP_NEXTAW=YES
|
|
5274 GUITYPE=MOTIF
|
|
5275
|
|
5276 fi
|
|
5277
|
|
5278
|
|
5279 GUI_X_LIBS=
|
|
5280
|
|
5281 if test -z "$SKIP_ATHENA"; then
|
|
5282 echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6
|
17
|
5283 echo "configure:5284: checking if Athena header files can be found" >&5
|
7
|
5284 cflags_save=$CFLAGS
|
|
5285 CFLAGS="$CFLAGS $X_CFLAGS"
|
|
5286 cat > conftest.$ac_ext <<EOF
|
17
|
5287 #line 5288 "configure"
|
7
|
5288 #include "confdefs.h"
|
|
5289
|
|
5290 #include <X11/Intrinsic.h>
|
|
5291 #include <X11/Xaw/Paned.h>
|
|
5292 int main() {
|
|
5293
|
|
5294 ; return 0; }
|
|
5295 EOF
|
17
|
5296 if { (eval echo configure:5297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
5297 rm -rf conftest*
|
|
5298 echo "$ac_t""yes" 1>&6
|
|
5299 else
|
|
5300 echo "configure: failed program was:" >&5
|
|
5301 cat conftest.$ac_ext >&5
|
|
5302 rm -rf conftest*
|
|
5303 echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES
|
|
5304 fi
|
|
5305 rm -f conftest*
|
|
5306 CFLAGS=$cflags_save
|
|
5307 fi
|
|
5308
|
|
5309 if test -z "$SKIP_ATHENA"; then
|
|
5310 GUITYPE=ATHENA
|
|
5311 fi
|
|
5312
|
|
5313 if test -z "$SKIP_NEXTAW"; then
|
|
5314 echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6
|
17
|
5315 echo "configure:5316: checking if neXtaw header files can be found" >&5
|
7
|
5316 cflags_save=$CFLAGS
|
|
5317 CFLAGS="$CFLAGS $X_CFLAGS"
|
|
5318 cat > conftest.$ac_ext <<EOF
|
17
|
5319 #line 5320 "configure"
|
7
|
5320 #include "confdefs.h"
|
|
5321
|
|
5322 #include <X11/Intrinsic.h>
|
|
5323 #include <X11/neXtaw/Paned.h>
|
|
5324 int main() {
|
|
5325
|
|
5326 ; return 0; }
|
|
5327 EOF
|
17
|
5328 if { (eval echo configure:5329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
5329 rm -rf conftest*
|
|
5330 echo "$ac_t""yes" 1>&6
|
|
5331 else
|
|
5332 echo "configure: failed program was:" >&5
|
|
5333 cat conftest.$ac_ext >&5
|
|
5334 rm -rf conftest*
|
|
5335 echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES
|
|
5336 fi
|
|
5337 rm -f conftest*
|
|
5338 CFLAGS=$cflags_save
|
|
5339 fi
|
|
5340
|
|
5341 if test -z "$SKIP_NEXTAW"; then
|
|
5342 GUITYPE=NEXTAW
|
|
5343 fi
|
|
5344
|
|
5345 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
|
|
5346 if test -n "$GUI_INC_LOC"; then
|
|
5347 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
|
|
5348 fi
|
|
5349 if test -n "$GUI_LIB_LOC"; then
|
|
5350 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
|
|
5351 fi
|
|
5352
|
|
5353 ldflags_save=$LDFLAGS
|
|
5354 LDFLAGS="$X_LIBS $LDFLAGS"
|
|
5355 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
|
17
|
5356 echo "configure:5357: checking for XShapeQueryExtension in -lXext" >&5
|
7
|
5357 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
|
|
5358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5359 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5360 else
|
|
5361 ac_save_LIBS="$LIBS"
|
|
5362 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
5363 cat > conftest.$ac_ext <<EOF
|
17
|
5364 #line 5365 "configure"
|
7
|
5365 #include "confdefs.h"
|
|
5366 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5367 /* We use char because int might match the return type of a gcc2
|
|
5368 builtin and then its argument prototype would still apply. */
|
|
5369 char XShapeQueryExtension();
|
|
5370
|
|
5371 int main() {
|
|
5372 XShapeQueryExtension()
|
|
5373 ; return 0; }
|
|
5374 EOF
|
17
|
5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5376 rm -rf conftest*
|
|
5377 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5378 else
|
|
5379 echo "configure: failed program was:" >&5
|
|
5380 cat conftest.$ac_ext >&5
|
|
5381 rm -rf conftest*
|
|
5382 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5383 fi
|
|
5384 rm -f conftest*
|
|
5385 LIBS="$ac_save_LIBS"
|
|
5386
|
|
5387 fi
|
|
5388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5389 echo "$ac_t""yes" 1>&6
|
|
5390 GUI_X_LIBS="-lXext"
|
|
5391 else
|
|
5392 echo "$ac_t""no" 1>&6
|
|
5393 fi
|
|
5394
|
|
5395 echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6
|
17
|
5396 echo "configure:5397: checking for wslen in -lw" >&5
|
7
|
5397 ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'`
|
|
5398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5399 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5400 else
|
|
5401 ac_save_LIBS="$LIBS"
|
|
5402 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
5403 cat > conftest.$ac_ext <<EOF
|
17
|
5404 #line 5405 "configure"
|
7
|
5405 #include "confdefs.h"
|
|
5406 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5407 /* We use char because int might match the return type of a gcc2
|
|
5408 builtin and then its argument prototype would still apply. */
|
|
5409 char wslen();
|
|
5410
|
|
5411 int main() {
|
|
5412 wslen()
|
|
5413 ; return 0; }
|
|
5414 EOF
|
17
|
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5416 rm -rf conftest*
|
|
5417 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5418 else
|
|
5419 echo "configure: failed program was:" >&5
|
|
5420 cat conftest.$ac_ext >&5
|
|
5421 rm -rf conftest*
|
|
5422 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5423 fi
|
|
5424 rm -f conftest*
|
|
5425 LIBS="$ac_save_LIBS"
|
|
5426
|
|
5427 fi
|
|
5428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5429 echo "$ac_t""yes" 1>&6
|
|
5430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
|
|
5431 else
|
|
5432 echo "$ac_t""no" 1>&6
|
|
5433 fi
|
|
5434
|
|
5435 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
|
17
|
5436 echo "configure:5437: checking for dlsym in -ldl" >&5
|
7
|
5437 ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
|
|
5438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5439 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5440 else
|
|
5441 ac_save_LIBS="$LIBS"
|
|
5442 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
5443 cat > conftest.$ac_ext <<EOF
|
17
|
5444 #line 5445 "configure"
|
7
|
5445 #include "confdefs.h"
|
|
5446 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5447 /* We use char because int might match the return type of a gcc2
|
|
5448 builtin and then its argument prototype would still apply. */
|
|
5449 char dlsym();
|
|
5450
|
|
5451 int main() {
|
|
5452 dlsym()
|
|
5453 ; return 0; }
|
|
5454 EOF
|
17
|
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5456 rm -rf conftest*
|
|
5457 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5458 else
|
|
5459 echo "configure: failed program was:" >&5
|
|
5460 cat conftest.$ac_ext >&5
|
|
5461 rm -rf conftest*
|
|
5462 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5463 fi
|
|
5464 rm -f conftest*
|
|
5465 LIBS="$ac_save_LIBS"
|
|
5466
|
|
5467 fi
|
|
5468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5469 echo "$ac_t""yes" 1>&6
|
|
5470 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
|
|
5471 else
|
|
5472 echo "$ac_t""no" 1>&6
|
|
5473 fi
|
|
5474
|
|
5475 echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6
|
17
|
5476 echo "configure:5477: checking for XmuCreateStippledPixmap in -lXmu" >&5
|
7
|
5477 ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'`
|
|
5478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5479 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5480 else
|
|
5481 ac_save_LIBS="$LIBS"
|
|
5482 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
5483 cat > conftest.$ac_ext <<EOF
|
17
|
5484 #line 5485 "configure"
|
7
|
5485 #include "confdefs.h"
|
|
5486 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5487 /* We use char because int might match the return type of a gcc2
|
|
5488 builtin and then its argument prototype would still apply. */
|
|
5489 char XmuCreateStippledPixmap();
|
|
5490
|
|
5491 int main() {
|
|
5492 XmuCreateStippledPixmap()
|
|
5493 ; return 0; }
|
|
5494 EOF
|
17
|
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5496 rm -rf conftest*
|
|
5497 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5498 else
|
|
5499 echo "configure: failed program was:" >&5
|
|
5500 cat conftest.$ac_ext >&5
|
|
5501 rm -rf conftest*
|
|
5502 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5503 fi
|
|
5504 rm -f conftest*
|
|
5505 LIBS="$ac_save_LIBS"
|
|
5506
|
|
5507 fi
|
|
5508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5509 echo "$ac_t""yes" 1>&6
|
|
5510 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
|
|
5511 else
|
|
5512 echo "$ac_t""no" 1>&6
|
|
5513 fi
|
|
5514
|
|
5515 if test -z "$SKIP_MOTIF"; then
|
|
5516 echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6
|
17
|
5517 echo "configure:5518: checking for XpEndJob in -lXp" >&5
|
7
|
5518 ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'`
|
|
5519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5520 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5521 else
|
|
5522 ac_save_LIBS="$LIBS"
|
|
5523 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
5524 cat > conftest.$ac_ext <<EOF
|
17
|
5525 #line 5526 "configure"
|
7
|
5526 #include "confdefs.h"
|
|
5527 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5528 /* We use char because int might match the return type of a gcc2
|
|
5529 builtin and then its argument prototype would still apply. */
|
|
5530 char XpEndJob();
|
|
5531
|
|
5532 int main() {
|
|
5533 XpEndJob()
|
|
5534 ; return 0; }
|
|
5535 EOF
|
17
|
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5537 rm -rf conftest*
|
|
5538 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5539 else
|
|
5540 echo "configure: failed program was:" >&5
|
|
5541 cat conftest.$ac_ext >&5
|
|
5542 rm -rf conftest*
|
|
5543 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5544 fi
|
|
5545 rm -f conftest*
|
|
5546 LIBS="$ac_save_LIBS"
|
|
5547
|
|
5548 fi
|
|
5549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5550 echo "$ac_t""yes" 1>&6
|
|
5551 GUI_X_LIBS="-lXp $GUI_X_LIBS"
|
|
5552 else
|
|
5553 echo "$ac_t""no" 1>&6
|
|
5554 fi
|
|
5555
|
|
5556 fi
|
|
5557 LDFLAGS=$ldflags_save
|
|
5558
|
|
5559 echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6
|
17
|
5560 echo "configure:5561: checking for extra X11 defines" >&5
|
7
|
5561 NARROW_PROTO=
|
|
5562 rm -fr conftestdir
|
|
5563 if mkdir conftestdir; then
|
|
5564 cd conftestdir
|
|
5565 cat > Imakefile <<'EOF'
|
|
5566 acfindx:
|
|
5567 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
|
|
5568 EOF
|
|
5569 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5570 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
5571 fi
|
|
5572 cd ..
|
|
5573 rm -fr conftestdir
|
|
5574 fi
|
|
5575 if test -z "$NARROW_PROTO"; then
|
|
5576 echo "$ac_t""no" 1>&6
|
|
5577 else
|
|
5578 echo "$ac_t""$NARROW_PROTO" 1>&6
|
|
5579 fi
|
|
5580
|
|
5581 fi
|
|
5582
|
|
5583 if test "$enable_xsmp" = "yes"; then
|
|
5584 cppflags_save=$CPPFLAGS
|
|
5585 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
5586 for ac_hdr in X11/SM/SMlib.h
|
|
5587 do
|
|
5588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
5590 echo "configure:5591: checking for $ac_hdr" >&5
|
7
|
5591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
5592 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5593 else
|
|
5594 cat > conftest.$ac_ext <<EOF
|
17
|
5595 #line 5596 "configure"
|
7
|
5596 #include "confdefs.h"
|
|
5597 #include <$ac_hdr>
|
|
5598 EOF
|
|
5599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
5600 { (eval echo configure:5601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
5601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5602 if test -z "$ac_err"; then
|
|
5603 rm -rf conftest*
|
|
5604 eval "ac_cv_header_$ac_safe=yes"
|
|
5605 else
|
|
5606 echo "$ac_err" >&5
|
|
5607 echo "configure: failed program was:" >&5
|
|
5608 cat conftest.$ac_ext >&5
|
|
5609 rm -rf conftest*
|
|
5610 eval "ac_cv_header_$ac_safe=no"
|
|
5611 fi
|
|
5612 rm -f conftest*
|
|
5613 fi
|
|
5614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5615 echo "$ac_t""yes" 1>&6
|
|
5616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5617 cat >> confdefs.h <<EOF
|
|
5618 #define $ac_tr_hdr 1
|
|
5619 EOF
|
|
5620
|
|
5621 else
|
|
5622 echo "$ac_t""no" 1>&6
|
|
5623 fi
|
|
5624 done
|
|
5625
|
|
5626 CPPFLAGS=$cppflags_save
|
|
5627 fi
|
|
5628
|
|
5629
|
|
5630 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
|
|
5631 cppflags_save=$CPPFLAGS
|
|
5632 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
5633 for ac_hdr in X11/xpm.h X11/Sunkeysym.h
|
|
5634 do
|
|
5635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
5637 echo "configure:5638: checking for $ac_hdr" >&5
|
7
|
5638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
5639 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5640 else
|
|
5641 cat > conftest.$ac_ext <<EOF
|
17
|
5642 #line 5643 "configure"
|
7
|
5643 #include "confdefs.h"
|
|
5644 #include <$ac_hdr>
|
|
5645 EOF
|
|
5646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
5647 { (eval echo configure:5648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
5648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5649 if test -z "$ac_err"; then
|
|
5650 rm -rf conftest*
|
|
5651 eval "ac_cv_header_$ac_safe=yes"
|
|
5652 else
|
|
5653 echo "$ac_err" >&5
|
|
5654 echo "configure: failed program was:" >&5
|
|
5655 cat conftest.$ac_ext >&5
|
|
5656 rm -rf conftest*
|
|
5657 eval "ac_cv_header_$ac_safe=no"
|
|
5658 fi
|
|
5659 rm -f conftest*
|
|
5660 fi
|
|
5661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5662 echo "$ac_t""yes" 1>&6
|
|
5663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5664 cat >> confdefs.h <<EOF
|
|
5665 #define $ac_tr_hdr 1
|
|
5666 EOF
|
|
5667
|
|
5668 else
|
|
5669 echo "$ac_t""no" 1>&6
|
|
5670 fi
|
|
5671 done
|
|
5672
|
|
5673
|
|
5674 if test ! "$enable_xim" = "no"; then
|
|
5675 echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6
|
17
|
5676 echo "configure:5677: checking for XIMText in X11/Xlib.h" >&5
|
7
|
5677 cat > conftest.$ac_ext <<EOF
|
17
|
5678 #line 5679 "configure"
|
7
|
5679 #include "confdefs.h"
|
|
5680 #include <X11/Xlib.h>
|
|
5681 EOF
|
|
5682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5683 egrep "XIMText" >/dev/null 2>&1; then
|
|
5684 rm -rf conftest*
|
|
5685 echo "$ac_t""yes" 1>&6
|
|
5686 else
|
|
5687 rm -rf conftest*
|
|
5688 echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no"
|
|
5689 fi
|
|
5690 rm -f conftest*
|
|
5691
|
|
5692 fi
|
|
5693 CPPFLAGS=$cppflags_save
|
|
5694
|
|
5695 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
|
|
5696 -a "x$GUITYPE" != "xNONE" ; then
|
|
5697 echo "$ac_t""X GUI selected; xim has been enabled" 1>&6
|
|
5698 enable_xim="yes"
|
|
5699 fi
|
|
5700 fi
|
|
5701
|
|
5702 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
|
|
5703 cppflags_save=$CPPFLAGS
|
|
5704 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
5705 for ac_hdr in X11/Xmu/Editres.h
|
|
5706 do
|
|
5707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
5709 echo "configure:5710: checking for $ac_hdr" >&5
|
7
|
5710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
5711 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5712 else
|
|
5713 cat > conftest.$ac_ext <<EOF
|
17
|
5714 #line 5715 "configure"
|
7
|
5715 #include "confdefs.h"
|
|
5716 #include <$ac_hdr>
|
|
5717 EOF
|
|
5718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
5719 { (eval echo configure:5720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
5720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5721 if test -z "$ac_err"; then
|
|
5722 rm -rf conftest*
|
|
5723 eval "ac_cv_header_$ac_safe=yes"
|
|
5724 else
|
|
5725 echo "$ac_err" >&5
|
|
5726 echo "configure: failed program was:" >&5
|
|
5727 cat conftest.$ac_ext >&5
|
|
5728 rm -rf conftest*
|
|
5729 eval "ac_cv_header_$ac_safe=no"
|
|
5730 fi
|
|
5731 rm -f conftest*
|
|
5732 fi
|
|
5733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5734 echo "$ac_t""yes" 1>&6
|
|
5735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5736 cat >> confdefs.h <<EOF
|
|
5737 #define $ac_tr_hdr 1
|
|
5738 EOF
|
|
5739
|
|
5740 else
|
|
5741 echo "$ac_t""no" 1>&6
|
|
5742 fi
|
|
5743 done
|
|
5744
|
|
5745 CPPFLAGS=$cppflags_save
|
|
5746 fi
|
|
5747
|
|
5748 if test -z "$SKIP_MOTIF"; then
|
|
5749 cppflags_save=$CPPFLAGS
|
|
5750 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
5751 for ac_hdr in Xm/Xm.h Xm/XpmP.h
|
|
5752 do
|
|
5753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
5755 echo "configure:5756: checking for $ac_hdr" >&5
|
7
|
5756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
5757 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5758 else
|
|
5759 cat > conftest.$ac_ext <<EOF
|
17
|
5760 #line 5761 "configure"
|
7
|
5761 #include "confdefs.h"
|
|
5762 #include <$ac_hdr>
|
|
5763 EOF
|
|
5764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
5765 { (eval echo configure:5766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
5766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5767 if test -z "$ac_err"; then
|
|
5768 rm -rf conftest*
|
|
5769 eval "ac_cv_header_$ac_safe=yes"
|
|
5770 else
|
|
5771 echo "$ac_err" >&5
|
|
5772 echo "configure: failed program was:" >&5
|
|
5773 cat conftest.$ac_ext >&5
|
|
5774 rm -rf conftest*
|
|
5775 eval "ac_cv_header_$ac_safe=no"
|
|
5776 fi
|
|
5777 rm -f conftest*
|
|
5778 fi
|
|
5779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5780 echo "$ac_t""yes" 1>&6
|
|
5781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5782 cat >> confdefs.h <<EOF
|
|
5783 #define $ac_tr_hdr 1
|
|
5784 EOF
|
|
5785
|
|
5786 else
|
|
5787 echo "$ac_t""no" 1>&6
|
|
5788 fi
|
|
5789 done
|
|
5790
|
|
5791 CPPFLAGS=$cppflags_save
|
|
5792 fi
|
|
5793
|
|
5794 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
|
|
5795 echo "$ac_t""no GUI selected; xim has been disabled" 1>&6
|
|
5796 enable_xim="no"
|
|
5797 fi
|
|
5798 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
|
|
5799 echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6
|
|
5800 enable_fontset="no"
|
|
5801 fi
|
|
5802 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
|
|
5803 echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6
|
|
5804 enable_fontset="no"
|
|
5805 fi
|
|
5806
|
|
5807 if test -z "$SKIP_BEOS"; then
|
|
5808 GUITYPE=BEOSGUI
|
|
5809 fi
|
|
5810
|
|
5811 if test -z "$SKIP_PHOTON"; then
|
|
5812 GUITYPE=PHOTONGUI
|
|
5813 fi
|
|
5814
|
|
5815
|
|
5816
|
|
5817
|
|
5818
|
|
5819
|
|
5820 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
|
|
5821 { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; }
|
|
5822 fi
|
|
5823
|
|
5824 if test "$enable_xim" = "yes"; then
|
|
5825 cat >> confdefs.h <<\EOF
|
|
5826 #define FEAT_XIM 1
|
|
5827 EOF
|
|
5828
|
|
5829 fi
|
|
5830 if test "$enable_fontset" = "yes"; then
|
|
5831 cat >> confdefs.h <<\EOF
|
|
5832 #define FEAT_XFONTSET 1
|
|
5833 EOF
|
|
5834
|
|
5835 fi
|
|
5836
|
|
5837
|
|
5838
|
|
5839
|
|
5840 if test "$enable_hangulinput" = "yes"; then
|
|
5841 if test "x$GUITYPE" = "xNONE"; then
|
|
5842 echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6
|
|
5843 enable_hangulinput=no
|
|
5844 else
|
|
5845 cat >> confdefs.h <<\EOF
|
|
5846 #define FEAT_HANGULIN 1
|
|
5847 EOF
|
|
5848
|
|
5849 HANGULIN_SRC=hangulin.c
|
|
5850
|
|
5851 HANGULIN_OBJ=objects/hangulin.o
|
|
5852
|
|
5853 fi
|
|
5854 fi
|
|
5855
|
|
5856
|
|
5857 echo $ac_n "checking quality of toupper""... $ac_c" 1>&6
|
17
|
5858 echo "configure:5859: checking quality of toupper" >&5
|
7
|
5859 if test "$cross_compiling" = yes; then
|
|
5860 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
5861 else
|
|
5862 cat > conftest.$ac_ext <<EOF
|
17
|
5863 #line 5864 "configure"
|
7
|
5864 #include "confdefs.h"
|
|
5865 #include <ctype.h>
|
|
5866 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
|
|
5867 EOF
|
17
|
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
5869 then
|
|
5870 cat >> confdefs.h <<\EOF
|
|
5871 #define BROKEN_TOUPPER 1
|
|
5872 EOF
|
|
5873 echo "$ac_t""bad" 1>&6
|
|
5874 else
|
|
5875 echo "configure: failed program was:" >&5
|
|
5876 cat conftest.$ac_ext >&5
|
|
5877 rm -fr conftest*
|
|
5878 echo "$ac_t""good" 1>&6
|
|
5879 fi
|
|
5880 rm -fr conftest*
|
|
5881 fi
|
|
5882
|
|
5883
|
|
5884 echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6
|
17
|
5885 echo "configure:5886: checking whether __DATE__ and __TIME__ work" >&5
|
7
|
5886 cat > conftest.$ac_ext <<EOF
|
17
|
5887 #line 5888 "configure"
|
7
|
5888 #include "confdefs.h"
|
|
5889
|
|
5890 int main() {
|
|
5891 printf("(" __DATE__ " " __TIME__ ")");
|
|
5892 ; return 0; }
|
|
5893 EOF
|
17
|
5894 if { (eval echo configure:5895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
5895 rm -rf conftest*
|
|
5896 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
5897 #define HAVE_DATE_TIME 1
|
|
5898 EOF
|
|
5899
|
|
5900 else
|
|
5901 echo "configure: failed program was:" >&5
|
|
5902 cat conftest.$ac_ext >&5
|
|
5903 rm -rf conftest*
|
|
5904 echo "$ac_t""no" 1>&6
|
|
5905 fi
|
|
5906 rm -f conftest*
|
|
5907
|
|
5908 ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'`
|
|
5909 echo $ac_n "checking for elf.h""... $ac_c" 1>&6
|
17
|
5910 echo "configure:5911: checking for elf.h" >&5
|
7
|
5911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
5912 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5913 else
|
|
5914 cat > conftest.$ac_ext <<EOF
|
17
|
5915 #line 5916 "configure"
|
7
|
5916 #include "confdefs.h"
|
|
5917 #include <elf.h>
|
|
5918 EOF
|
|
5919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
5920 { (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
5921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5922 if test -z "$ac_err"; then
|
|
5923 rm -rf conftest*
|
|
5924 eval "ac_cv_header_$ac_safe=yes"
|
|
5925 else
|
|
5926 echo "$ac_err" >&5
|
|
5927 echo "configure: failed program was:" >&5
|
|
5928 cat conftest.$ac_ext >&5
|
|
5929 rm -rf conftest*
|
|
5930 eval "ac_cv_header_$ac_safe=no"
|
|
5931 fi
|
|
5932 rm -f conftest*
|
|
5933 fi
|
|
5934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5935 echo "$ac_t""yes" 1>&6
|
|
5936 HAS_ELF=1
|
|
5937 else
|
|
5938 echo "$ac_t""no" 1>&6
|
|
5939 fi
|
|
5940
|
|
5941 if test "$HAS_ELF" = 1; then
|
|
5942 echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6
|
17
|
5943 echo "configure:5944: checking for main in -lelf" >&5
|
7
|
5944 ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'`
|
|
5945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
5946 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5947 else
|
|
5948 ac_save_LIBS="$LIBS"
|
|
5949 LIBS="-lelf $LIBS"
|
|
5950 cat > conftest.$ac_ext <<EOF
|
17
|
5951 #line 5952 "configure"
|
7
|
5952 #include "confdefs.h"
|
|
5953
|
|
5954 int main() {
|
|
5955 main()
|
|
5956 ; return 0; }
|
|
5957 EOF
|
17
|
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
5959 rm -rf conftest*
|
|
5960 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5961 else
|
|
5962 echo "configure: failed program was:" >&5
|
|
5963 cat conftest.$ac_ext >&5
|
|
5964 rm -rf conftest*
|
|
5965 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5966 fi
|
|
5967 rm -f conftest*
|
|
5968 LIBS="$ac_save_LIBS"
|
|
5969
|
|
5970 fi
|
|
5971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
5972 echo "$ac_t""yes" 1>&6
|
|
5973 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5975 cat >> confdefs.h <<EOF
|
|
5976 #define $ac_tr_lib 1
|
|
5977 EOF
|
|
5978
|
|
5979 LIBS="-lelf $LIBS"
|
|
5980
|
|
5981 else
|
|
5982 echo "$ac_t""no" 1>&6
|
|
5983 fi
|
|
5984
|
|
5985 fi
|
|
5986
|
|
5987 ac_header_dirent=no
|
|
5988 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|
5989 do
|
|
5990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5991 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
17
|
5992 echo "configure:5993: checking for $ac_hdr that defines DIR" >&5
|
7
|
5993 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|
5994 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5995 else
|
|
5996 cat > conftest.$ac_ext <<EOF
|
17
|
5997 #line 5998 "configure"
|
7
|
5998 #include "confdefs.h"
|
|
5999 #include <sys/types.h>
|
|
6000 #include <$ac_hdr>
|
|
6001 int main() {
|
|
6002 DIR *dirp = 0;
|
|
6003 ; return 0; }
|
|
6004 EOF
|
17
|
6005 if { (eval echo configure:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6006 rm -rf conftest*
|
|
6007 eval "ac_cv_header_dirent_$ac_safe=yes"
|
|
6008 else
|
|
6009 echo "configure: failed program was:" >&5
|
|
6010 cat conftest.$ac_ext >&5
|
|
6011 rm -rf conftest*
|
|
6012 eval "ac_cv_header_dirent_$ac_safe=no"
|
|
6013 fi
|
|
6014 rm -f conftest*
|
|
6015 fi
|
|
6016 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|
6017 echo "$ac_t""yes" 1>&6
|
|
6018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6019 cat >> confdefs.h <<EOF
|
|
6020 #define $ac_tr_hdr 1
|
|
6021 EOF
|
|
6022 ac_header_dirent=$ac_hdr; break
|
|
6023 else
|
|
6024 echo "$ac_t""no" 1>&6
|
|
6025 fi
|
|
6026 done
|
|
6027 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
6028 if test $ac_header_dirent = dirent.h; then
|
|
6029 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
17
|
6030 echo "configure:6031: checking for opendir in -ldir" >&5
|
7
|
6031 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|
6032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
6033 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6034 else
|
|
6035 ac_save_LIBS="$LIBS"
|
|
6036 LIBS="-ldir $LIBS"
|
|
6037 cat > conftest.$ac_ext <<EOF
|
17
|
6038 #line 6039 "configure"
|
7
|
6039 #include "confdefs.h"
|
|
6040 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6041 /* We use char because int might match the return type of a gcc2
|
|
6042 builtin and then its argument prototype would still apply. */
|
|
6043 char opendir();
|
|
6044
|
|
6045 int main() {
|
|
6046 opendir()
|
|
6047 ; return 0; }
|
|
6048 EOF
|
17
|
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
6050 rm -rf conftest*
|
|
6051 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6052 else
|
|
6053 echo "configure: failed program was:" >&5
|
|
6054 cat conftest.$ac_ext >&5
|
|
6055 rm -rf conftest*
|
|
6056 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6057 fi
|
|
6058 rm -f conftest*
|
|
6059 LIBS="$ac_save_LIBS"
|
|
6060
|
|
6061 fi
|
|
6062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
6063 echo "$ac_t""yes" 1>&6
|
|
6064 LIBS="$LIBS -ldir"
|
|
6065 else
|
|
6066 echo "$ac_t""no" 1>&6
|
|
6067 fi
|
|
6068
|
|
6069 else
|
|
6070 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
17
|
6071 echo "configure:6072: checking for opendir in -lx" >&5
|
7
|
6072 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|
6073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
6074 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6075 else
|
|
6076 ac_save_LIBS="$LIBS"
|
|
6077 LIBS="-lx $LIBS"
|
|
6078 cat > conftest.$ac_ext <<EOF
|
17
|
6079 #line 6080 "configure"
|
7
|
6080 #include "confdefs.h"
|
|
6081 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6082 /* We use char because int might match the return type of a gcc2
|
|
6083 builtin and then its argument prototype would still apply. */
|
|
6084 char opendir();
|
|
6085
|
|
6086 int main() {
|
|
6087 opendir()
|
|
6088 ; return 0; }
|
|
6089 EOF
|
17
|
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
6091 rm -rf conftest*
|
|
6092 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6093 else
|
|
6094 echo "configure: failed program was:" >&5
|
|
6095 cat conftest.$ac_ext >&5
|
|
6096 rm -rf conftest*
|
|
6097 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6098 fi
|
|
6099 rm -f conftest*
|
|
6100 LIBS="$ac_save_LIBS"
|
|
6101
|
|
6102 fi
|
|
6103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
6104 echo "$ac_t""yes" 1>&6
|
|
6105 LIBS="$LIBS -lx"
|
|
6106 else
|
|
6107 echo "$ac_t""no" 1>&6
|
|
6108 fi
|
|
6109
|
|
6110 fi
|
|
6111
|
|
6112
|
|
6113 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
17
|
6114 echo "configure:6115: checking for ANSI C header files" >&5
|
7
|
6115 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
6116 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6117 else
|
|
6118 cat > conftest.$ac_ext <<EOF
|
17
|
6119 #line 6120 "configure"
|
7
|
6120 #include "confdefs.h"
|
|
6121 #include <stdlib.h>
|
|
6122 #include <stdarg.h>
|
|
6123 #include <string.h>
|
|
6124 #include <float.h>
|
|
6125 EOF
|
|
6126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
6127 { (eval echo configure:6128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
6128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6129 if test -z "$ac_err"; then
|
|
6130 rm -rf conftest*
|
|
6131 ac_cv_header_stdc=yes
|
|
6132 else
|
|
6133 echo "$ac_err" >&5
|
|
6134 echo "configure: failed program was:" >&5
|
|
6135 cat conftest.$ac_ext >&5
|
|
6136 rm -rf conftest*
|
|
6137 ac_cv_header_stdc=no
|
|
6138 fi
|
|
6139 rm -f conftest*
|
|
6140
|
|
6141 if test $ac_cv_header_stdc = yes; then
|
|
6142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
6143 cat > conftest.$ac_ext <<EOF
|
17
|
6144 #line 6145 "configure"
|
7
|
6145 #include "confdefs.h"
|
|
6146 #include <string.h>
|
|
6147 EOF
|
|
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6149 egrep "memchr" >/dev/null 2>&1; then
|
|
6150 :
|
|
6151 else
|
|
6152 rm -rf conftest*
|
|
6153 ac_cv_header_stdc=no
|
|
6154 fi
|
|
6155 rm -f conftest*
|
|
6156
|
|
6157 fi
|
|
6158
|
|
6159 if test $ac_cv_header_stdc = yes; then
|
|
6160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
6161 cat > conftest.$ac_ext <<EOF
|
17
|
6162 #line 6163 "configure"
|
7
|
6163 #include "confdefs.h"
|
|
6164 #include <stdlib.h>
|
|
6165 EOF
|
|
6166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6167 egrep "free" >/dev/null 2>&1; then
|
|
6168 :
|
|
6169 else
|
|
6170 rm -rf conftest*
|
|
6171 ac_cv_header_stdc=no
|
|
6172 fi
|
|
6173 rm -f conftest*
|
|
6174
|
|
6175 fi
|
|
6176
|
|
6177 if test $ac_cv_header_stdc = yes; then
|
|
6178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
6179 if test "$cross_compiling" = yes; then
|
|
6180 :
|
|
6181 else
|
|
6182 cat > conftest.$ac_ext <<EOF
|
17
|
6183 #line 6184 "configure"
|
7
|
6184 #include "confdefs.h"
|
|
6185 #include <ctype.h>
|
|
6186 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
6187 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
6188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
6189 int main () { int i; for (i = 0; i < 256; i++)
|
|
6190 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
6191 exit (0); }
|
|
6192
|
|
6193 EOF
|
17
|
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
6195 then
|
|
6196 :
|
|
6197 else
|
|
6198 echo "configure: failed program was:" >&5
|
|
6199 cat conftest.$ac_ext >&5
|
|
6200 rm -fr conftest*
|
|
6201 ac_cv_header_stdc=no
|
|
6202 fi
|
|
6203 rm -fr conftest*
|
|
6204 fi
|
|
6205
|
|
6206 fi
|
|
6207 fi
|
|
6208
|
|
6209 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
6210 if test $ac_cv_header_stdc = yes; then
|
|
6211 cat >> confdefs.h <<\EOF
|
|
6212 #define STDC_HEADERS 1
|
|
6213 EOF
|
|
6214
|
|
6215 fi
|
|
6216
|
|
6217 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
17
|
6218 echo "configure:6219: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
7
|
6219 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|
6220 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6221 else
|
|
6222 cat > conftest.$ac_ext <<EOF
|
17
|
6223 #line 6224 "configure"
|
7
|
6224 #include "confdefs.h"
|
|
6225 #include <sys/types.h>
|
|
6226 #include <sys/wait.h>
|
|
6227 #ifndef WEXITSTATUS
|
|
6228 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
6229 #endif
|
|
6230 #ifndef WIFEXITED
|
|
6231 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
6232 #endif
|
|
6233 int main() {
|
|
6234 int s;
|
|
6235 wait (&s);
|
|
6236 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
6237 ; return 0; }
|
|
6238 EOF
|
17
|
6239 if { (eval echo configure:6240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6240 rm -rf conftest*
|
|
6241 ac_cv_header_sys_wait_h=yes
|
|
6242 else
|
|
6243 echo "configure: failed program was:" >&5
|
|
6244 cat conftest.$ac_ext >&5
|
|
6245 rm -rf conftest*
|
|
6246 ac_cv_header_sys_wait_h=no
|
|
6247 fi
|
|
6248 rm -f conftest*
|
|
6249 fi
|
|
6250
|
|
6251 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
6252 if test $ac_cv_header_sys_wait_h = yes; then
|
|
6253 cat >> confdefs.h <<\EOF
|
|
6254 #define HAVE_SYS_WAIT_H 1
|
|
6255 EOF
|
|
6256
|
|
6257 fi
|
|
6258
|
|
6259
|
|
6260 if test $ac_cv_header_sys_wait_h = no; then
|
|
6261 echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6
|
17
|
6262 echo "configure:6263: checking for sys/wait.h that defines union wait" >&5
|
7
|
6263 cat > conftest.$ac_ext <<EOF
|
17
|
6264 #line 6265 "configure"
|
7
|
6265 #include "confdefs.h"
|
|
6266 #include <sys/wait.h>
|
|
6267 int main() {
|
|
6268 union wait xx, yy; xx = yy
|
|
6269 ; return 0; }
|
|
6270 EOF
|
17
|
6271 if { (eval echo configure:6272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6272 rm -rf conftest*
|
|
6273 echo "$ac_t""yes" 1>&6
|
|
6274 cat >> confdefs.h <<\EOF
|
|
6275 #define HAVE_SYS_WAIT_H 1
|
|
6276 EOF
|
|
6277
|
|
6278 cat >> confdefs.h <<\EOF
|
|
6279 #define HAVE_UNION_WAIT 1
|
|
6280 EOF
|
|
6281
|
|
6282 else
|
|
6283 echo "configure: failed program was:" >&5
|
|
6284 cat conftest.$ac_ext >&5
|
|
6285 rm -rf conftest*
|
|
6286 echo "$ac_t""no" 1>&6
|
|
6287 fi
|
|
6288 rm -f conftest*
|
|
6289 fi
|
|
6290
|
|
6291 for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
|
|
6292 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
|
|
6293 iconv.h langinfo.h unistd.h stropts.h errno.h \
|
|
6294 sys/resource.h sys/systeminfo.h locale.h \
|
|
6295 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
|
|
6296 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
|
|
6297 libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \
|
|
6298 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h
|
|
6299 do
|
|
6300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
6301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
6302 echo "configure:6303: checking for $ac_hdr" >&5
|
7
|
6303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
6304 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6305 else
|
|
6306 cat > conftest.$ac_ext <<EOF
|
17
|
6307 #line 6308 "configure"
|
7
|
6308 #include "confdefs.h"
|
|
6309 #include <$ac_hdr>
|
|
6310 EOF
|
|
6311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
6312 { (eval echo configure:6313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
6313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6314 if test -z "$ac_err"; then
|
|
6315 rm -rf conftest*
|
|
6316 eval "ac_cv_header_$ac_safe=yes"
|
|
6317 else
|
|
6318 echo "$ac_err" >&5
|
|
6319 echo "configure: failed program was:" >&5
|
|
6320 cat conftest.$ac_ext >&5
|
|
6321 rm -rf conftest*
|
|
6322 eval "ac_cv_header_$ac_safe=no"
|
|
6323 fi
|
|
6324 rm -f conftest*
|
|
6325 fi
|
|
6326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6327 echo "$ac_t""yes" 1>&6
|
|
6328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6329 cat >> confdefs.h <<EOF
|
|
6330 #define $ac_tr_hdr 1
|
|
6331 EOF
|
|
6332
|
|
6333 else
|
|
6334 echo "$ac_t""no" 1>&6
|
|
6335 fi
|
|
6336 done
|
|
6337
|
|
6338
|
|
6339 if test "x$MACOSX" != "xyes"; then
|
|
6340 for ac_hdr in strings.h
|
|
6341 do
|
|
6342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
6343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
6344 echo "configure:6345: checking for $ac_hdr" >&5
|
7
|
6345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
6346 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6347 else
|
|
6348 cat > conftest.$ac_ext <<EOF
|
17
|
6349 #line 6350 "configure"
|
7
|
6350 #include "confdefs.h"
|
|
6351 #include <$ac_hdr>
|
|
6352 EOF
|
|
6353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
6354 { (eval echo configure:6355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
6355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
6356 if test -z "$ac_err"; then
|
|
6357 rm -rf conftest*
|
|
6358 eval "ac_cv_header_$ac_safe=yes"
|
|
6359 else
|
|
6360 echo "$ac_err" >&5
|
|
6361 echo "configure: failed program was:" >&5
|
|
6362 cat conftest.$ac_ext >&5
|
|
6363 rm -rf conftest*
|
|
6364 eval "ac_cv_header_$ac_safe=no"
|
|
6365 fi
|
|
6366 rm -f conftest*
|
|
6367 fi
|
|
6368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6369 echo "$ac_t""yes" 1>&6
|
|
6370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6371 cat >> confdefs.h <<EOF
|
|
6372 #define $ac_tr_hdr 1
|
|
6373 EOF
|
|
6374
|
|
6375 else
|
|
6376 echo "$ac_t""no" 1>&6
|
|
6377 fi
|
|
6378 done
|
|
6379
|
|
6380 fi
|
|
6381
|
|
6382 echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6
|
17
|
6383 echo "configure:6384: checking if strings.h can be included after string.h" >&5
|
7
|
6384 cppflags_save=$CPPFLAGS
|
|
6385 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
6386 cat > conftest.$ac_ext <<EOF
|
17
|
6387 #line 6388 "configure"
|
7
|
6388 #include "confdefs.h"
|
|
6389
|
|
6390 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
|
|
6391 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
|
|
6392 /* but don't do it on AIX 5.1 (Uribarri) */
|
|
6393 #endif
|
|
6394 #ifdef HAVE_XM_XM_H
|
|
6395 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
|
|
6396 #endif
|
|
6397 #ifdef HAVE_STRING_H
|
|
6398 # include <string.h>
|
|
6399 #endif
|
|
6400 #if defined(HAVE_STRINGS_H)
|
|
6401 # include <strings.h>
|
|
6402 #endif
|
|
6403
|
|
6404 int main() {
|
|
6405 int i; i = 0;
|
|
6406 ; return 0; }
|
|
6407 EOF
|
17
|
6408 if { (eval echo configure:6409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6409 rm -rf conftest*
|
|
6410 echo "$ac_t""yes" 1>&6
|
|
6411 else
|
|
6412 echo "configure: failed program was:" >&5
|
|
6413 cat conftest.$ac_ext >&5
|
|
6414 rm -rf conftest*
|
|
6415 cat >> confdefs.h <<\EOF
|
|
6416 #define NO_STRINGS_WITH_STRING_H 1
|
|
6417 EOF
|
|
6418
|
|
6419 echo "$ac_t""no" 1>&6
|
|
6420 fi
|
|
6421 rm -f conftest*
|
|
6422 CPPFLAGS=$cppflags_save
|
|
6423
|
|
6424 if test $ac_cv_prog_gcc = yes; then
|
|
6425 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
17
|
6426 echo "configure:6427: checking whether ${CC-cc} needs -traditional" >&5
|
7
|
6427 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
|
6428 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6429 else
|
|
6430 ac_pattern="Autoconf.*'x'"
|
|
6431 cat > conftest.$ac_ext <<EOF
|
17
|
6432 #line 6433 "configure"
|
7
|
6433 #include "confdefs.h"
|
|
6434 #include <sgtty.h>
|
|
6435 Autoconf TIOCGETP
|
|
6436 EOF
|
|
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6438 egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
6439 rm -rf conftest*
|
|
6440 ac_cv_prog_gcc_traditional=yes
|
|
6441 else
|
|
6442 rm -rf conftest*
|
|
6443 ac_cv_prog_gcc_traditional=no
|
|
6444 fi
|
|
6445 rm -f conftest*
|
|
6446
|
|
6447
|
|
6448 if test $ac_cv_prog_gcc_traditional = no; then
|
|
6449 cat > conftest.$ac_ext <<EOF
|
17
|
6450 #line 6451 "configure"
|
7
|
6451 #include "confdefs.h"
|
|
6452 #include <termio.h>
|
|
6453 Autoconf TCGETA
|
|
6454 EOF
|
|
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6456 egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
6457 rm -rf conftest*
|
|
6458 ac_cv_prog_gcc_traditional=yes
|
|
6459 fi
|
|
6460 rm -f conftest*
|
|
6461
|
|
6462 fi
|
|
6463 fi
|
|
6464
|
|
6465 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
|
6466 if test $ac_cv_prog_gcc_traditional = yes; then
|
|
6467 CC="$CC -traditional"
|
|
6468 fi
|
|
6469 fi
|
|
6470
|
|
6471 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
17
|
6472 echo "configure:6473: checking for working const" >&5
|
7
|
6473 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|
6474 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6475 else
|
|
6476 cat > conftest.$ac_ext <<EOF
|
17
|
6477 #line 6478 "configure"
|
7
|
6478 #include "confdefs.h"
|
|
6479
|
|
6480 int main() {
|
|
6481
|
|
6482 /* Ultrix mips cc rejects this. */
|
|
6483 typedef int charset[2]; const charset x;
|
|
6484 /* SunOS 4.1.1 cc rejects this. */
|
|
6485 char const *const *ccp;
|
|
6486 char **p;
|
|
6487 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
6488 struct point {int x, y;};
|
|
6489 static struct point const zero = {0,0};
|
|
6490 /* AIX XL C 1.02.0.0 rejects this.
|
|
6491 It does not let you subtract one const X* pointer from another in an arm
|
|
6492 of an if-expression whose if-part is not a constant expression */
|
|
6493 const char *g = "string";
|
|
6494 ccp = &g + (g ? g-g : 0);
|
|
6495 /* HPUX 7.0 cc rejects these. */
|
|
6496 ++ccp;
|
|
6497 p = (char**) ccp;
|
|
6498 ccp = (char const *const *) p;
|
|
6499 { /* SCO 3.2v4 cc rejects this. */
|
|
6500 char *t;
|
|
6501 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
6502
|
|
6503 *t++ = 0;
|
|
6504 }
|
|
6505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
6506 int x[] = {25, 17};
|
|
6507 const int *foo = &x[0];
|
|
6508 ++foo;
|
|
6509 }
|
|
6510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
6511 typedef const int *iptr;
|
|
6512 iptr p = 0;
|
|
6513 ++p;
|
|
6514 }
|
|
6515 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
6516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
6517 struct s { int j; const int *ap[3]; };
|
|
6518 struct s *b; b->j = 5;
|
|
6519 }
|
|
6520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
6521 const int foo = 10;
|
|
6522 }
|
|
6523
|
|
6524 ; return 0; }
|
|
6525 EOF
|
17
|
6526 if { (eval echo configure:6527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6527 rm -rf conftest*
|
|
6528 ac_cv_c_const=yes
|
|
6529 else
|
|
6530 echo "configure: failed program was:" >&5
|
|
6531 cat conftest.$ac_ext >&5
|
|
6532 rm -rf conftest*
|
|
6533 ac_cv_c_const=no
|
|
6534 fi
|
|
6535 rm -f conftest*
|
|
6536 fi
|
|
6537
|
|
6538 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
6539 if test $ac_cv_c_const = no; then
|
|
6540 cat >> confdefs.h <<\EOF
|
|
6541 #define const
|
|
6542 EOF
|
|
6543
|
|
6544 fi
|
|
6545
|
|
6546 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
17
|
6547 echo "configure:6548: checking for mode_t" >&5
|
7
|
6548 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
|
6549 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6550 else
|
|
6551 cat > conftest.$ac_ext <<EOF
|
17
|
6552 #line 6553 "configure"
|
7
|
6553 #include "confdefs.h"
|
|
6554 #include <sys/types.h>
|
|
6555 #if STDC_HEADERS
|
|
6556 #include <stdlib.h>
|
|
6557 #include <stddef.h>
|
|
6558 #endif
|
|
6559 EOF
|
|
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6561 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6562 rm -rf conftest*
|
|
6563 ac_cv_type_mode_t=yes
|
|
6564 else
|
|
6565 rm -rf conftest*
|
|
6566 ac_cv_type_mode_t=no
|
|
6567 fi
|
|
6568 rm -f conftest*
|
|
6569
|
|
6570 fi
|
|
6571 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
6572 if test $ac_cv_type_mode_t = no; then
|
|
6573 cat >> confdefs.h <<\EOF
|
|
6574 #define mode_t int
|
|
6575 EOF
|
|
6576
|
|
6577 fi
|
|
6578
|
|
6579 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
17
|
6580 echo "configure:6581: checking for off_t" >&5
|
7
|
6581 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|
6582 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6583 else
|
|
6584 cat > conftest.$ac_ext <<EOF
|
17
|
6585 #line 6586 "configure"
|
7
|
6586 #include "confdefs.h"
|
|
6587 #include <sys/types.h>
|
|
6588 #if STDC_HEADERS
|
|
6589 #include <stdlib.h>
|
|
6590 #include <stddef.h>
|
|
6591 #endif
|
|
6592 EOF
|
|
6593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6594 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6595 rm -rf conftest*
|
|
6596 ac_cv_type_off_t=yes
|
|
6597 else
|
|
6598 rm -rf conftest*
|
|
6599 ac_cv_type_off_t=no
|
|
6600 fi
|
|
6601 rm -f conftest*
|
|
6602
|
|
6603 fi
|
|
6604 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
6605 if test $ac_cv_type_off_t = no; then
|
|
6606 cat >> confdefs.h <<\EOF
|
|
6607 #define off_t long
|
|
6608 EOF
|
|
6609
|
|
6610 fi
|
|
6611
|
|
6612 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
17
|
6613 echo "configure:6614: checking for pid_t" >&5
|
7
|
6614 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
|
6615 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6616 else
|
|
6617 cat > conftest.$ac_ext <<EOF
|
17
|
6618 #line 6619 "configure"
|
7
|
6619 #include "confdefs.h"
|
|
6620 #include <sys/types.h>
|
|
6621 #if STDC_HEADERS
|
|
6622 #include <stdlib.h>
|
|
6623 #include <stddef.h>
|
|
6624 #endif
|
|
6625 EOF
|
|
6626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6627 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6628 rm -rf conftest*
|
|
6629 ac_cv_type_pid_t=yes
|
|
6630 else
|
|
6631 rm -rf conftest*
|
|
6632 ac_cv_type_pid_t=no
|
|
6633 fi
|
|
6634 rm -f conftest*
|
|
6635
|
|
6636 fi
|
|
6637 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
6638 if test $ac_cv_type_pid_t = no; then
|
|
6639 cat >> confdefs.h <<\EOF
|
|
6640 #define pid_t int
|
|
6641 EOF
|
|
6642
|
|
6643 fi
|
|
6644
|
|
6645 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
17
|
6646 echo "configure:6647: checking for size_t" >&5
|
7
|
6647 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|
6648 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6649 else
|
|
6650 cat > conftest.$ac_ext <<EOF
|
17
|
6651 #line 6652 "configure"
|
7
|
6652 #include "confdefs.h"
|
|
6653 #include <sys/types.h>
|
|
6654 #if STDC_HEADERS
|
|
6655 #include <stdlib.h>
|
|
6656 #include <stddef.h>
|
|
6657 #endif
|
|
6658 EOF
|
|
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6660 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6661 rm -rf conftest*
|
|
6662 ac_cv_type_size_t=yes
|
|
6663 else
|
|
6664 rm -rf conftest*
|
|
6665 ac_cv_type_size_t=no
|
|
6666 fi
|
|
6667 rm -f conftest*
|
|
6668
|
|
6669 fi
|
|
6670 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
6671 if test $ac_cv_type_size_t = no; then
|
|
6672 cat >> confdefs.h <<\EOF
|
|
6673 #define size_t unsigned
|
|
6674 EOF
|
|
6675
|
|
6676 fi
|
|
6677
|
|
6678 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
17
|
6679 echo "configure:6680: checking for uid_t in sys/types.h" >&5
|
7
|
6680 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
|
|
6681 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6682 else
|
|
6683 cat > conftest.$ac_ext <<EOF
|
17
|
6684 #line 6685 "configure"
|
7
|
6685 #include "confdefs.h"
|
|
6686 #include <sys/types.h>
|
|
6687 EOF
|
|
6688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6689 egrep "uid_t" >/dev/null 2>&1; then
|
|
6690 rm -rf conftest*
|
|
6691 ac_cv_type_uid_t=yes
|
|
6692 else
|
|
6693 rm -rf conftest*
|
|
6694 ac_cv_type_uid_t=no
|
|
6695 fi
|
|
6696 rm -f conftest*
|
|
6697
|
|
6698 fi
|
|
6699
|
|
6700 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
6701 if test $ac_cv_type_uid_t = no; then
|
|
6702 cat >> confdefs.h <<\EOF
|
|
6703 #define uid_t int
|
|
6704 EOF
|
|
6705
|
|
6706 cat >> confdefs.h <<\EOF
|
|
6707 #define gid_t int
|
|
6708 EOF
|
|
6709
|
|
6710 fi
|
|
6711
|
|
6712 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
17
|
6713 echo "configure:6714: checking whether time.h and sys/time.h may both be included" >&5
|
7
|
6714 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|
6715 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6716 else
|
|
6717 cat > conftest.$ac_ext <<EOF
|
17
|
6718 #line 6719 "configure"
|
7
|
6719 #include "confdefs.h"
|
|
6720 #include <sys/types.h>
|
|
6721 #include <sys/time.h>
|
|
6722 #include <time.h>
|
|
6723 int main() {
|
|
6724 struct tm *tp;
|
|
6725 ; return 0; }
|
|
6726 EOF
|
17
|
6727 if { (eval echo configure:6728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6728 rm -rf conftest*
|
|
6729 ac_cv_header_time=yes
|
|
6730 else
|
|
6731 echo "configure: failed program was:" >&5
|
|
6732 cat conftest.$ac_ext >&5
|
|
6733 rm -rf conftest*
|
|
6734 ac_cv_header_time=no
|
|
6735 fi
|
|
6736 rm -f conftest*
|
|
6737 fi
|
|
6738
|
|
6739 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
6740 if test $ac_cv_header_time = yes; then
|
|
6741 cat >> confdefs.h <<\EOF
|
|
6742 #define TIME_WITH_SYS_TIME 1
|
|
6743 EOF
|
|
6744
|
|
6745 fi
|
|
6746
|
|
6747 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
|
17
|
6748 echo "configure:6749: checking for ino_t" >&5
|
7
|
6749 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
|
|
6750 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6751 else
|
|
6752 cat > conftest.$ac_ext <<EOF
|
17
|
6753 #line 6754 "configure"
|
7
|
6754 #include "confdefs.h"
|
|
6755 #include <sys/types.h>
|
|
6756 #if STDC_HEADERS
|
|
6757 #include <stdlib.h>
|
|
6758 #include <stddef.h>
|
|
6759 #endif
|
|
6760 EOF
|
|
6761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6762 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6763 rm -rf conftest*
|
|
6764 ac_cv_type_ino_t=yes
|
|
6765 else
|
|
6766 rm -rf conftest*
|
|
6767 ac_cv_type_ino_t=no
|
|
6768 fi
|
|
6769 rm -f conftest*
|
|
6770
|
|
6771 fi
|
|
6772 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
|
|
6773 if test $ac_cv_type_ino_t = no; then
|
|
6774 cat >> confdefs.h <<\EOF
|
|
6775 #define ino_t long
|
|
6776 EOF
|
|
6777
|
|
6778 fi
|
|
6779
|
|
6780 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
|
17
|
6781 echo "configure:6782: checking for dev_t" >&5
|
7
|
6782 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
|
|
6783 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6784 else
|
|
6785 cat > conftest.$ac_ext <<EOF
|
17
|
6786 #line 6787 "configure"
|
7
|
6787 #include "confdefs.h"
|
|
6788 #include <sys/types.h>
|
|
6789 #if STDC_HEADERS
|
|
6790 #include <stdlib.h>
|
|
6791 #include <stddef.h>
|
|
6792 #endif
|
|
6793 EOF
|
|
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6795 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6796 rm -rf conftest*
|
|
6797 ac_cv_type_dev_t=yes
|
|
6798 else
|
|
6799 rm -rf conftest*
|
|
6800 ac_cv_type_dev_t=no
|
|
6801 fi
|
|
6802 rm -f conftest*
|
|
6803
|
|
6804 fi
|
|
6805 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
|
|
6806 if test $ac_cv_type_dev_t = no; then
|
|
6807 cat >> confdefs.h <<\EOF
|
|
6808 #define dev_t unsigned
|
|
6809 EOF
|
|
6810
|
|
6811 fi
|
|
6812
|
|
6813
|
|
6814 echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
|
17
|
6815 echo "configure:6816: checking for rlim_t" >&5
|
7
|
6816 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
|
|
6817 echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6
|
|
6818 else
|
|
6819 cat > conftest.$ac_ext <<EOF
|
17
|
6820 #line 6821 "configure"
|
7
|
6821 #include "confdefs.h"
|
|
6822
|
|
6823 #include <sys/types.h>
|
|
6824 #if STDC_HEADERS
|
|
6825 #include <stdlib.h>
|
|
6826 #include <stddef.h>
|
|
6827 #endif
|
|
6828 #ifdef HAVE_SYS_RESOURCE_H
|
|
6829 #include <sys/resource.h>
|
|
6830 #endif
|
|
6831
|
|
6832 EOF
|
|
6833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6834 egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
6835 rm -rf conftest*
|
|
6836 ac_cv_type_rlim_t=yes
|
|
6837 else
|
|
6838 rm -rf conftest*
|
|
6839 ac_cv_type_rlim_t=no
|
|
6840 fi
|
|
6841 rm -f conftest*
|
|
6842
|
|
6843 echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
|
|
6844 fi
|
|
6845 if test $ac_cv_type_rlim_t = no; then
|
|
6846 cat >> confdefs.h <<\EOF
|
|
6847 #define rlim_t unsigned long
|
|
6848 EOF
|
|
6849 fi
|
|
6850
|
|
6851 echo $ac_n "checking for stack_t""... $ac_c" 1>&6
|
17
|
6852 echo "configure:6853: checking for stack_t" >&5
|
7
|
6853 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
|
|
6854 echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6
|
|
6855 else
|
|
6856 cat > conftest.$ac_ext <<EOF
|
17
|
6857 #line 6858 "configure"
|
7
|
6858 #include "confdefs.h"
|
|
6859
|
|
6860 #include <sys/types.h>
|
|
6861 #if STDC_HEADERS
|
|
6862 #include <stdlib.h>
|
|
6863 #include <stddef.h>
|
|
6864 #endif
|
|
6865 #include <signal.h>
|
|
6866
|
|
6867 EOF
|
|
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6869 egrep "stack_t" >/dev/null 2>&1; then
|
|
6870 rm -rf conftest*
|
|
6871 ac_cv_type_stack_t=yes
|
|
6872 else
|
|
6873 rm -rf conftest*
|
|
6874 ac_cv_type_stack_t=no
|
|
6875 fi
|
|
6876 rm -f conftest*
|
|
6877
|
|
6878 echo "$ac_t""$ac_cv_type_stack_t" 1>&6
|
|
6879 fi
|
|
6880 if test $ac_cv_type_stack_t = no; then
|
|
6881 cat >> confdefs.h <<\EOF
|
|
6882 #define stack_t struct sigaltstack
|
|
6883 EOF
|
|
6884 fi
|
|
6885
|
|
6886 echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6
|
17
|
6887 echo "configure:6888: checking whether stack_t has an ss_base field" >&5
|
7
|
6888 cat > conftest.$ac_ext <<EOF
|
17
|
6889 #line 6890 "configure"
|
7
|
6890 #include "confdefs.h"
|
|
6891
|
|
6892 #include <sys/types.h>
|
|
6893 #if STDC_HEADERS
|
|
6894 #include <stdlib.h>
|
|
6895 #include <stddef.h>
|
|
6896 #endif
|
|
6897 #include <signal.h>
|
|
6898 #include "confdefs.h"
|
|
6899
|
|
6900 int main() {
|
|
6901 stack_t sigstk; sigstk.ss_base = 0;
|
|
6902 ; return 0; }
|
|
6903 EOF
|
17
|
6904 if { (eval echo configure:6905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
6905 rm -rf conftest*
|
|
6906 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
6907 #define HAVE_SS_BASE 1
|
|
6908 EOF
|
|
6909
|
|
6910 else
|
|
6911 echo "configure: failed program was:" >&5
|
|
6912 cat conftest.$ac_ext >&5
|
|
6913 rm -rf conftest*
|
|
6914 echo "$ac_t""no" 1>&6
|
|
6915 fi
|
|
6916 rm -f conftest*
|
|
6917
|
|
6918 olibs="$LIBS"
|
|
6919 echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6
|
17
|
6920 echo "configure:6921: checking --with-tlib argument" >&5
|
7
|
6921 # Check whether --with-tlib or --without-tlib was given.
|
|
6922 if test "${with_tlib+set}" = set; then
|
|
6923 withval="$with_tlib"
|
|
6924 :
|
|
6925 fi
|
|
6926
|
|
6927 if test -n "$with_tlib"; then
|
|
6928 echo "$ac_t""$with_tlib" 1>&6
|
|
6929 LIBS="$LIBS -l$with_tlib"
|
|
6930 else
|
|
6931 echo "$ac_t""automatic terminal library selection" 1>&6
|
|
6932 case "`uname -s 2>/dev/null`" in
|
|
6933 OSF1) tlibs="ncurses curses termlib termcap";;
|
|
6934 *) tlibs="ncurses termlib termcap curses";;
|
|
6935 esac
|
|
6936 for libname in $tlibs; do
|
|
6937 echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6
|
17
|
6938 echo "configure:6939: checking for tgetent in -l${libname}" >&5
|
7
|
6939 ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'`
|
|
6940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
6941 echo $ac_n "(cached) $ac_c" 1>&6
|
|
6942 else
|
|
6943 ac_save_LIBS="$LIBS"
|
|
6944 LIBS="-l${libname} $LIBS"
|
|
6945 cat > conftest.$ac_ext <<EOF
|
17
|
6946 #line 6947 "configure"
|
7
|
6947 #include "confdefs.h"
|
|
6948 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6949 /* We use char because int might match the return type of a gcc2
|
|
6950 builtin and then its argument prototype would still apply. */
|
|
6951 char tgetent();
|
|
6952
|
|
6953 int main() {
|
|
6954 tgetent()
|
|
6955 ; return 0; }
|
|
6956 EOF
|
17
|
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
6958 rm -rf conftest*
|
|
6959 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6960 else
|
|
6961 echo "configure: failed program was:" >&5
|
|
6962 cat conftest.$ac_ext >&5
|
|
6963 rm -rf conftest*
|
|
6964 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6965 fi
|
|
6966 rm -f conftest*
|
|
6967 LIBS="$ac_save_LIBS"
|
|
6968
|
|
6969 fi
|
|
6970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
6971 echo "$ac_t""yes" 1>&6
|
|
6972 ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
6973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
6974 cat >> confdefs.h <<EOF
|
|
6975 #define $ac_tr_lib 1
|
|
6976 EOF
|
|
6977
|
|
6978 LIBS="-l${libname} $LIBS"
|
|
6979
|
|
6980 else
|
|
6981 echo "$ac_t""no" 1>&6
|
|
6982 fi
|
|
6983
|
|
6984 if test "x$olibs" != "x$LIBS"; then
|
|
6985 if test "$cross_compiling" = yes; then
|
|
6986 res="FAIL"
|
|
6987 else
|
|
6988 cat > conftest.$ac_ext <<EOF
|
17
|
6989 #line 6990 "configure"
|
7
|
6990 #include "confdefs.h"
|
|
6991
|
|
6992 #ifdef HAVE_TERMCAP_H
|
|
6993 # include <termcap.h>
|
|
6994 #endif
|
|
6995 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
|
|
6996 EOF
|
17
|
6997 if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
6998 then
|
|
6999 res="OK"
|
|
7000 else
|
|
7001 echo "configure: failed program was:" >&5
|
|
7002 cat conftest.$ac_ext >&5
|
|
7003 rm -fr conftest*
|
|
7004 res="FAIL"
|
|
7005 fi
|
|
7006 rm -fr conftest*
|
|
7007 fi
|
|
7008
|
|
7009 if test "$res" = "OK"; then
|
|
7010 break
|
|
7011 fi
|
|
7012 echo "$ac_t""$libname library is not usable" 1>&6
|
|
7013 LIBS="$olibs"
|
|
7014 fi
|
|
7015 done
|
|
7016 fi
|
|
7017 if test "x$olibs" != "x$LIBS"; then
|
|
7018 echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6
|
17
|
7019 echo "configure:7020: checking whether we talk terminfo" >&5
|
7
|
7020 if test "$cross_compiling" = yes; then
|
|
7021 { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
|
|
7022 else
|
|
7023 cat > conftest.$ac_ext <<EOF
|
17
|
7024 #line 7025 "configure"
|
7
|
7025 #include "confdefs.h"
|
|
7026
|
|
7027 #ifdef HAVE_TERMCAP_H
|
|
7028 # include <termcap.h>
|
|
7029 #endif
|
|
7030 main()
|
|
7031 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
|
|
7032 EOF
|
17
|
7033 if { (eval echo configure:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
7034 then
|
|
7035 echo "$ac_t""no -- we are in termcap land" 1>&6
|
|
7036 else
|
|
7037 echo "configure: failed program was:" >&5
|
|
7038 cat conftest.$ac_ext >&5
|
|
7039 rm -fr conftest*
|
|
7040 echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF
|
|
7041 #define TERMINFO 1
|
|
7042 EOF
|
|
7043
|
|
7044 fi
|
|
7045 rm -fr conftest*
|
|
7046 fi
|
|
7047
|
|
7048 else
|
|
7049 echo "$ac_t""none found" 1>&6
|
|
7050 fi
|
|
7051
|
|
7052 if test "x$olibs" != "x$LIBS"; then
|
|
7053 echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6
|
17
|
7054 echo "configure:7055: checking what tgetent() returns for an unknown terminal" >&5
|
7
|
7055 if test "$cross_compiling" = yes; then
|
|
7056 { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
|
|
7057 else
|
|
7058 cat > conftest.$ac_ext <<EOF
|
17
|
7059 #line 7060 "configure"
|
7
|
7060 #include "confdefs.h"
|
|
7061
|
|
7062 #ifdef HAVE_TERMCAP_H
|
|
7063 # include <termcap.h>
|
|
7064 #endif
|
|
7065 main()
|
|
7066 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
|
|
7067 EOF
|
17
|
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
7069 then
|
|
7070 echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF
|
|
7071 #define TGETENT_ZERO_ERR 0
|
|
7072 EOF
|
|
7073
|
|
7074 else
|
|
7075 echo "configure: failed program was:" >&5
|
|
7076 cat conftest.$ac_ext >&5
|
|
7077 rm -fr conftest*
|
|
7078 echo "$ac_t""non-zero" 1>&6
|
|
7079 fi
|
|
7080 rm -fr conftest*
|
|
7081 fi
|
|
7082
|
|
7083 fi
|
|
7084
|
|
7085 echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6
|
17
|
7086 echo "configure:7087: checking whether termcap.h contains ospeed" >&5
|
7
|
7087 cat > conftest.$ac_ext <<EOF
|
17
|
7088 #line 7089 "configure"
|
7
|
7089 #include "confdefs.h"
|
|
7090
|
|
7091 #ifdef HAVE_TERMCAP_H
|
|
7092 # include <termcap.h>
|
|
7093 #endif
|
|
7094
|
|
7095 int main() {
|
|
7096 ospeed = 20000
|
|
7097 ; return 0; }
|
|
7098 EOF
|
17
|
7099 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7100 rm -rf conftest*
|
|
7101 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7102 #define HAVE_OSPEED 1
|
|
7103 EOF
|
|
7104
|
|
7105 else
|
|
7106 echo "configure: failed program was:" >&5
|
|
7107 cat conftest.$ac_ext >&5
|
|
7108 rm -rf conftest*
|
|
7109 echo "$ac_t""no" 1>&6
|
|
7110 echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6
|
17
|
7111 echo "configure:7112: checking whether ospeed can be extern" >&5
|
7
|
7112 cat > conftest.$ac_ext <<EOF
|
17
|
7113 #line 7114 "configure"
|
7
|
7114 #include "confdefs.h"
|
|
7115
|
|
7116 #ifdef HAVE_TERMCAP_H
|
|
7117 # include <termcap.h>
|
|
7118 #endif
|
|
7119 extern short ospeed;
|
|
7120
|
|
7121 int main() {
|
|
7122 ospeed = 20000
|
|
7123 ; return 0; }
|
|
7124 EOF
|
17
|
7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7126 rm -rf conftest*
|
|
7127 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7128 #define OSPEED_EXTERN 1
|
|
7129 EOF
|
|
7130
|
|
7131 else
|
|
7132 echo "configure: failed program was:" >&5
|
|
7133 cat conftest.$ac_ext >&5
|
|
7134 rm -rf conftest*
|
|
7135 echo "$ac_t""no" 1>&6
|
|
7136 fi
|
|
7137 rm -f conftest*
|
|
7138
|
|
7139 fi
|
|
7140 rm -f conftest*
|
|
7141
|
|
7142 echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6
|
17
|
7143 echo "configure:7144: checking whether termcap.h contains UP, BC and PC" >&5
|
7
|
7144 cat > conftest.$ac_ext <<EOF
|
17
|
7145 #line 7146 "configure"
|
7
|
7146 #include "confdefs.h"
|
|
7147
|
|
7148 #ifdef HAVE_TERMCAP_H
|
|
7149 # include <termcap.h>
|
|
7150 #endif
|
|
7151
|
|
7152 int main() {
|
|
7153 if (UP == 0 && BC == 0) PC = 1
|
|
7154 ; return 0; }
|
|
7155 EOF
|
17
|
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7157 rm -rf conftest*
|
|
7158 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7159 #define HAVE_UP_BC_PC 1
|
|
7160 EOF
|
|
7161
|
|
7162 else
|
|
7163 echo "configure: failed program was:" >&5
|
|
7164 cat conftest.$ac_ext >&5
|
|
7165 rm -rf conftest*
|
|
7166 echo "$ac_t""no" 1>&6
|
|
7167 echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6
|
17
|
7168 echo "configure:7169: checking whether UP, BC and PC can be extern" >&5
|
7
|
7169 cat > conftest.$ac_ext <<EOF
|
17
|
7170 #line 7171 "configure"
|
7
|
7171 #include "confdefs.h"
|
|
7172
|
|
7173 #ifdef HAVE_TERMCAP_H
|
|
7174 # include <termcap.h>
|
|
7175 #endif
|
|
7176 extern char *UP, *BC, PC;
|
|
7177
|
|
7178 int main() {
|
|
7179 if (UP == 0 && BC == 0) PC = 1
|
|
7180 ; return 0; }
|
|
7181 EOF
|
17
|
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7183 rm -rf conftest*
|
|
7184 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7185 #define UP_BC_PC_EXTERN 1
|
|
7186 EOF
|
|
7187
|
|
7188 else
|
|
7189 echo "configure: failed program was:" >&5
|
|
7190 cat conftest.$ac_ext >&5
|
|
7191 rm -rf conftest*
|
|
7192 echo "$ac_t""no" 1>&6
|
|
7193 fi
|
|
7194 rm -f conftest*
|
|
7195
|
|
7196 fi
|
|
7197 rm -f conftest*
|
|
7198
|
|
7199 echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6
|
17
|
7200 echo "configure:7201: checking whether tputs() uses outfuntype" >&5
|
7
|
7201 cat > conftest.$ac_ext <<EOF
|
17
|
7202 #line 7203 "configure"
|
7
|
7203 #include "confdefs.h"
|
|
7204
|
|
7205 #ifdef HAVE_TERMCAP_H
|
|
7206 # include <termcap.h>
|
|
7207 #endif
|
|
7208
|
|
7209 int main() {
|
|
7210 extern int xx(); tputs("test", 1, (outfuntype)xx)
|
|
7211 ; return 0; }
|
|
7212 EOF
|
17
|
7213 if { (eval echo configure:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
7214 rm -rf conftest*
|
|
7215 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7216 #define HAVE_OUTFUNTYPE 1
|
|
7217 EOF
|
|
7218
|
|
7219 else
|
|
7220 echo "configure: failed program was:" >&5
|
|
7221 cat conftest.$ac_ext >&5
|
|
7222 rm -rf conftest*
|
|
7223 echo "$ac_t""no" 1>&6
|
|
7224 fi
|
|
7225 rm -f conftest*
|
|
7226
|
|
7227 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
|
17
|
7228 echo "configure:7229: checking whether sys/select.h and sys/time.h may both be included" >&5
|
7
|
7229 cat > conftest.$ac_ext <<EOF
|
17
|
7230 #line 7231 "configure"
|
7
|
7231 #include "confdefs.h"
|
|
7232
|
|
7233 #include <sys/types.h>
|
|
7234 #include <sys/time.h>
|
|
7235 #include <sys/select.h>
|
|
7236 int main() {
|
|
7237
|
|
7238 ; return 0; }
|
|
7239 EOF
|
17
|
7240 if { (eval echo configure:7241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
7241 rm -rf conftest*
|
|
7242 echo "$ac_t""yes" 1>&6
|
|
7243 cat >> confdefs.h <<\EOF
|
|
7244 #define SYS_SELECT_WITH_SYS_TIME 1
|
|
7245 EOF
|
|
7246
|
|
7247 else
|
|
7248 echo "configure: failed program was:" >&5
|
|
7249 cat conftest.$ac_ext >&5
|
|
7250 rm -rf conftest*
|
|
7251 echo "$ac_t""no" 1>&6
|
|
7252 fi
|
|
7253 rm -f conftest*
|
|
7254
|
|
7255
|
|
7256 echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6
|
17
|
7257 echo "configure:7258: checking for /dev/ptc" >&5
|
7
|
7258 if test -r /dev/ptc; then
|
|
7259 cat >> confdefs.h <<\EOF
|
|
7260 #define HAVE_DEV_PTC 1
|
|
7261 EOF
|
|
7262
|
|
7263 echo "$ac_t""yes" 1>&6
|
|
7264 else
|
|
7265 echo "$ac_t""no" 1>&6
|
|
7266 fi
|
|
7267
|
|
7268 echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6
|
17
|
7269 echo "configure:7270: checking for SVR4 ptys" >&5
|
7
|
7270 if test -c /dev/ptmx ; then
|
|
7271 cat > conftest.$ac_ext <<EOF
|
17
|
7272 #line 7273 "configure"
|
7
|
7273 #include "confdefs.h"
|
|
7274
|
|
7275 int main() {
|
|
7276 ptsname(0);grantpt(0);unlockpt(0);
|
|
7277 ; return 0; }
|
|
7278 EOF
|
17
|
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7280 rm -rf conftest*
|
|
7281 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7282 #define HAVE_SVR4_PTYS 1
|
|
7283 EOF
|
|
7284
|
|
7285 else
|
|
7286 echo "configure: failed program was:" >&5
|
|
7287 cat conftest.$ac_ext >&5
|
|
7288 rm -rf conftest*
|
|
7289 echo "$ac_t""no" 1>&6
|
|
7290 fi
|
|
7291 rm -f conftest*
|
|
7292 else
|
|
7293 echo "$ac_t""no" 1>&6
|
|
7294 fi
|
|
7295
|
|
7296 echo $ac_n "checking for ptyranges""... $ac_c" 1>&6
|
17
|
7297 echo "configure:7298: checking for ptyranges" >&5
|
7
|
7298 if test -d /dev/ptym ; then
|
|
7299 pdir='/dev/ptym'
|
|
7300 else
|
|
7301 pdir='/dev'
|
|
7302 fi
|
|
7303 cat > conftest.$ac_ext <<EOF
|
17
|
7304 #line 7305 "configure"
|
7
|
7305 #include "confdefs.h"
|
|
7306 #ifdef M_UNIX
|
|
7307 yes;
|
|
7308 #endif
|
|
7309
|
|
7310 EOF
|
|
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7312 egrep "yes" >/dev/null 2>&1; then
|
|
7313 rm -rf conftest*
|
|
7314 ptys=`echo /dev/ptyp??`
|
|
7315 else
|
|
7316 rm -rf conftest*
|
|
7317 ptys=`echo $pdir/pty??`
|
|
7318 fi
|
|
7319 rm -f conftest*
|
|
7320
|
|
7321 if test "$ptys" != "$pdir/pty??" ; then
|
|
7322 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
|
|
7323 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
|
|
7324 cat >> confdefs.h <<EOF
|
|
7325 #define PTYRANGE0 "$p0"
|
|
7326 EOF
|
|
7327
|
|
7328 cat >> confdefs.h <<EOF
|
|
7329 #define PTYRANGE1 "$p1"
|
|
7330 EOF
|
|
7331
|
|
7332 echo "$ac_t""$p0 / $p1" 1>&6
|
|
7333 else
|
|
7334 echo "$ac_t""don't know" 1>&6
|
|
7335 fi
|
|
7336
|
|
7337 echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6
|
17
|
7338 echo "configure:7339: checking default tty permissions/group" >&5
|
7
|
7339 rm -f conftest_grp
|
|
7340 if test "$cross_compiling" = yes; then
|
|
7341 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
7342 else
|
|
7343 cat > conftest.$ac_ext <<EOF
|
17
|
7344 #line 7345 "configure"
|
7
|
7345 #include "confdefs.h"
|
|
7346
|
|
7347 #include <sys/types.h>
|
|
7348 #include <sys/stat.h>
|
|
7349 #include <stdio.h>
|
|
7350 main()
|
|
7351 {
|
|
7352 struct stat sb;
|
|
7353 char *x,*ttyname();
|
|
7354 int om, m;
|
|
7355 FILE *fp;
|
|
7356
|
|
7357 if (!(x = ttyname(0))) exit(1);
|
|
7358 if (stat(x, &sb)) exit(1);
|
|
7359 om = sb.st_mode;
|
|
7360 if (om & 002) exit(0);
|
|
7361 m = system("mesg y");
|
|
7362 if (m == -1 || m == 127) exit(1);
|
|
7363 if (stat(x, &sb)) exit(1);
|
|
7364 m = sb.st_mode;
|
|
7365 if (chmod(x, om)) exit(1);
|
|
7366 if (m & 002) exit(0);
|
|
7367 if (sb.st_gid == getgid()) exit(1);
|
|
7368 if (!(fp=fopen("conftest_grp", "w")))
|
|
7369 exit(1);
|
|
7370 fprintf(fp, "%d\n", sb.st_gid);
|
|
7371 fclose(fp);
|
|
7372 exit(0);
|
|
7373 }
|
|
7374
|
|
7375 EOF
|
17
|
7376 if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
7377 then
|
|
7378
|
|
7379 if test -f conftest_grp; then
|
|
7380 ptygrp=`cat conftest_grp`
|
|
7381 echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6
|
|
7382 cat >> confdefs.h <<\EOF
|
|
7383 #define PTYMODE 0620
|
|
7384 EOF
|
|
7385
|
|
7386 cat >> confdefs.h <<EOF
|
|
7387 #define PTYGROUP $ptygrp
|
|
7388 EOF
|
|
7389
|
|
7390 else
|
|
7391 echo "$ac_t""ptys are world accessable" 1>&6
|
|
7392 fi
|
|
7393
|
|
7394 else
|
|
7395 echo "configure: failed program was:" >&5
|
|
7396 cat conftest.$ac_ext >&5
|
|
7397 rm -fr conftest*
|
|
7398 echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6
|
|
7399 fi
|
|
7400 rm -fr conftest*
|
|
7401 fi
|
|
7402
|
|
7403 rm -f conftest_grp
|
|
7404
|
|
7405
|
|
7406 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
17
|
7407 echo "configure:7408: checking return type of signal handlers" >&5
|
7
|
7408 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
|
7409 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7410 else
|
|
7411 cat > conftest.$ac_ext <<EOF
|
17
|
7412 #line 7413 "configure"
|
7
|
7413 #include "confdefs.h"
|
|
7414 #include <sys/types.h>
|
|
7415 #include <signal.h>
|
|
7416 #ifdef signal
|
|
7417 #undef signal
|
|
7418 #endif
|
|
7419 #ifdef __cplusplus
|
|
7420 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
7421 #else
|
|
7422 void (*signal ()) ();
|
|
7423 #endif
|
|
7424
|
|
7425 int main() {
|
|
7426 int i;
|
|
7427 ; return 0; }
|
|
7428 EOF
|
17
|
7429 if { (eval echo configure:7430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
7430 rm -rf conftest*
|
|
7431 ac_cv_type_signal=void
|
|
7432 else
|
|
7433 echo "configure: failed program was:" >&5
|
|
7434 cat conftest.$ac_ext >&5
|
|
7435 rm -rf conftest*
|
|
7436 ac_cv_type_signal=int
|
|
7437 fi
|
|
7438 rm -f conftest*
|
|
7439 fi
|
|
7440
|
|
7441 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
7442 cat >> confdefs.h <<EOF
|
|
7443 #define RETSIGTYPE $ac_cv_type_signal
|
|
7444 EOF
|
|
7445
|
|
7446
|
|
7447
|
|
7448 if test $ac_cv_type_signal = void; then
|
|
7449 cat >> confdefs.h <<\EOF
|
|
7450 #define SIGRETURN return
|
|
7451 EOF
|
|
7452
|
|
7453 else
|
|
7454 cat >> confdefs.h <<\EOF
|
|
7455 #define SIGRETURN return 0
|
|
7456 EOF
|
|
7457
|
|
7458 fi
|
|
7459
|
|
7460 echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6
|
17
|
7461 echo "configure:7462: checking for struct sigcontext" >&5
|
7
|
7462 cat > conftest.$ac_ext <<EOF
|
17
|
7463 #line 7464 "configure"
|
7
|
7464 #include "confdefs.h"
|
|
7465
|
|
7466 #include <signal.h>
|
|
7467 test_sig()
|
|
7468 {
|
|
7469 struct sigcontext *scont;
|
|
7470 scont = (struct sigcontext *)0;
|
|
7471 return 1;
|
|
7472 }
|
|
7473 int main() {
|
|
7474
|
|
7475 ; return 0; }
|
|
7476 EOF
|
17
|
7477 if { (eval echo configure:7478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
7478 rm -rf conftest*
|
|
7479 echo "$ac_t""yes" 1>&6
|
|
7480 cat >> confdefs.h <<\EOF
|
|
7481 #define HAVE_SIGCONTEXT 1
|
|
7482 EOF
|
|
7483
|
|
7484 else
|
|
7485 echo "configure: failed program was:" >&5
|
|
7486 cat conftest.$ac_ext >&5
|
|
7487 rm -rf conftest*
|
|
7488 echo "$ac_t""no" 1>&6
|
|
7489 fi
|
|
7490 rm -f conftest*
|
|
7491
|
|
7492 echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6
|
17
|
7493 echo "configure:7494: checking getcwd implementation" >&5
|
7
|
7494 if test "$cross_compiling" = yes; then
|
|
7495 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
7496 else
|
|
7497 cat > conftest.$ac_ext <<EOF
|
17
|
7498 #line 7499 "configure"
|
7
|
7499 #include "confdefs.h"
|
|
7500
|
|
7501 char *dagger[] = { "IFS=pwd", 0 };
|
|
7502 main()
|
|
7503 {
|
|
7504 char buffer[500];
|
|
7505 extern char **environ;
|
|
7506 environ = dagger;
|
|
7507 return getcwd(buffer, 500) ? 0 : 1;
|
|
7508 }
|
|
7509 EOF
|
17
|
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
7511 then
|
|
7512 echo "$ac_t""it is usable" 1>&6
|
|
7513 else
|
|
7514 echo "configure: failed program was:" >&5
|
|
7515 cat conftest.$ac_ext >&5
|
|
7516 rm -fr conftest*
|
|
7517 echo "$ac_t""it stinks" 1>&6
|
|
7518 cat >> confdefs.h <<\EOF
|
|
7519 #define BAD_GETCWD 1
|
|
7520 EOF
|
|
7521
|
|
7522 fi
|
|
7523 rm -fr conftest*
|
|
7524 fi
|
|
7525
|
|
7526
|
|
7527 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
|
|
7528 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
|
|
7529 memset nanosleep opendir putenv qsort readlink select setenv \
|
|
7530 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
|
|
7531 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \
|
|
7532 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes
|
|
7533 do
|
|
7534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
17
|
7535 echo "configure:7536: checking for $ac_func" >&5
|
7
|
7536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
7537 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7538 else
|
|
7539 cat > conftest.$ac_ext <<EOF
|
17
|
7540 #line 7541 "configure"
|
7
|
7541 #include "confdefs.h"
|
|
7542 /* System header to define __stub macros and hopefully few prototypes,
|
|
7543 which can conflict with char $ac_func(); below. */
|
|
7544 #include <assert.h>
|
|
7545 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7546 /* We use char because int might match the return type of a gcc2
|
|
7547 builtin and then its argument prototype would still apply. */
|
|
7548 char $ac_func();
|
|
7549
|
|
7550 int main() {
|
|
7551
|
|
7552 /* The GNU C library defines this for functions which it implements
|
|
7553 to always fail with ENOSYS. Some functions are actually named
|
|
7554 something starting with __ and the normal name is an alias. */
|
|
7555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7556 choke me
|
|
7557 #else
|
|
7558 $ac_func();
|
|
7559 #endif
|
|
7560
|
|
7561 ; return 0; }
|
|
7562 EOF
|
17
|
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7564 rm -rf conftest*
|
|
7565 eval "ac_cv_func_$ac_func=yes"
|
|
7566 else
|
|
7567 echo "configure: failed program was:" >&5
|
|
7568 cat conftest.$ac_ext >&5
|
|
7569 rm -rf conftest*
|
|
7570 eval "ac_cv_func_$ac_func=no"
|
|
7571 fi
|
|
7572 rm -f conftest*
|
|
7573 fi
|
|
7574
|
|
7575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7576 echo "$ac_t""yes" 1>&6
|
|
7577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7578 cat >> confdefs.h <<EOF
|
|
7579 #define $ac_tr_func 1
|
|
7580 EOF
|
|
7581
|
|
7582 else
|
|
7583 echo "$ac_t""no" 1>&6
|
|
7584 fi
|
|
7585 done
|
|
7586
|
|
7587
|
|
7588 echo $ac_n "checking for st_blksize""... $ac_c" 1>&6
|
17
|
7589 echo "configure:7590: checking for st_blksize" >&5
|
7
|
7590 cat > conftest.$ac_ext <<EOF
|
17
|
7591 #line 7592 "configure"
|
7
|
7592 #include "confdefs.h"
|
|
7593 #include <sys/types.h>
|
|
7594 #include <sys/stat.h>
|
|
7595 int main() {
|
|
7596 struct stat st;
|
|
7597 int n;
|
|
7598
|
|
7599 stat("/", &st);
|
|
7600 n = (int)st.st_blksize;
|
|
7601 ; return 0; }
|
|
7602 EOF
|
17
|
7603 if { (eval echo configure:7604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
7604 rm -rf conftest*
|
|
7605 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7606 #define HAVE_ST_BLKSIZE 1
|
|
7607 EOF
|
|
7608
|
|
7609 else
|
|
7610 echo "configure: failed program was:" >&5
|
|
7611 cat conftest.$ac_ext >&5
|
|
7612 rm -rf conftest*
|
|
7613 echo "$ac_t""no" 1>&6
|
|
7614 fi
|
|
7615 rm -f conftest*
|
|
7616
|
|
7617 echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6
|
17
|
7618 echo "configure:7619: checking whether stat() ignores a trailing slash" >&5
|
7
|
7619 if test "$cross_compiling" = yes; then
|
|
7620 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
7621 else
|
|
7622 cat > conftest.$ac_ext <<EOF
|
17
|
7623 #line 7624 "configure"
|
7
|
7624 #include "confdefs.h"
|
|
7625 #include <sys/types.h>
|
|
7626 #include <sys/stat.h>
|
|
7627 main() {struct stat st; exit(stat("configure/", &st) != 0); }
|
|
7628 EOF
|
17
|
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
7630 then
|
|
7631 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7632 #define STAT_IGNORES_SLASH 1
|
|
7633 EOF
|
|
7634
|
|
7635 else
|
|
7636 echo "configure: failed program was:" >&5
|
|
7637 cat conftest.$ac_ext >&5
|
|
7638 rm -fr conftest*
|
|
7639 echo "$ac_t""no" 1>&6
|
|
7640 fi
|
|
7641 rm -fr conftest*
|
|
7642 fi
|
|
7643
|
|
7644
|
|
7645 echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6
|
17
|
7646 echo "configure:7647: checking for iconv_open()" >&5
|
7
|
7647 save_LIBS="$LIBS"
|
|
7648 LIBS="$LIBS -liconv"
|
|
7649 cat > conftest.$ac_ext <<EOF
|
17
|
7650 #line 7651 "configure"
|
7
|
7651 #include "confdefs.h"
|
|
7652
|
|
7653 #ifdef HAVE_ICONV_H
|
|
7654 # include <iconv.h>
|
|
7655 #endif
|
|
7656
|
|
7657 int main() {
|
|
7658 iconv_open("fr", "to");
|
|
7659 ; return 0; }
|
|
7660 EOF
|
17
|
7661 if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7662 rm -rf conftest*
|
|
7663 echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF
|
|
7664 #define HAVE_ICONV 1
|
|
7665 EOF
|
|
7666
|
|
7667 else
|
|
7668 echo "configure: failed program was:" >&5
|
|
7669 cat conftest.$ac_ext >&5
|
|
7670 rm -rf conftest*
|
|
7671 LIBS="$save_LIBS"
|
|
7672 cat > conftest.$ac_ext <<EOF
|
17
|
7673 #line 7674 "configure"
|
7
|
7674 #include "confdefs.h"
|
|
7675
|
|
7676 #ifdef HAVE_ICONV_H
|
|
7677 # include <iconv.h>
|
|
7678 #endif
|
|
7679
|
|
7680 int main() {
|
|
7681 iconv_open("fr", "to");
|
|
7682 ; return 0; }
|
|
7683 EOF
|
17
|
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7685 rm -rf conftest*
|
|
7686 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7687 #define HAVE_ICONV 1
|
|
7688 EOF
|
|
7689
|
|
7690 else
|
|
7691 echo "configure: failed program was:" >&5
|
|
7692 cat conftest.$ac_ext >&5
|
|
7693 rm -rf conftest*
|
|
7694 echo "$ac_t""no" 1>&6
|
|
7695 fi
|
|
7696 rm -f conftest*
|
|
7697 fi
|
|
7698 rm -f conftest*
|
|
7699
|
|
7700
|
|
7701 echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6
|
17
|
7702 echo "configure:7703: checking for nl_langinfo(CODESET)" >&5
|
7
|
7703 cat > conftest.$ac_ext <<EOF
|
17
|
7704 #line 7705 "configure"
|
7
|
7705 #include "confdefs.h"
|
|
7706
|
|
7707 #ifdef HAVE_LANGINFO_H
|
|
7708 # include <langinfo.h>
|
|
7709 #endif
|
|
7710
|
|
7711 int main() {
|
|
7712 char *cs = nl_langinfo(CODESET);
|
|
7713 ; return 0; }
|
|
7714 EOF
|
17
|
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7716 rm -rf conftest*
|
|
7717 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7718 #define HAVE_NL_LANGINFO_CODESET 1
|
|
7719 EOF
|
|
7720
|
|
7721 else
|
|
7722 echo "configure: failed program was:" >&5
|
|
7723 cat conftest.$ac_ext >&5
|
|
7724 rm -rf conftest*
|
|
7725 echo "$ac_t""no" 1>&6
|
|
7726 fi
|
|
7727 rm -f conftest*
|
|
7728
|
|
7729 echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6
|
17
|
7730 echo "configure:7731: checking --disable-acl argument" >&5
|
7
|
7731 # Check whether --enable-acl or --disable-acl was given.
|
|
7732 if test "${enable_acl+set}" = set; then
|
|
7733 enableval="$enable_acl"
|
|
7734 :
|
|
7735 else
|
|
7736 enable_acl="yes"
|
|
7737 fi
|
|
7738
|
|
7739 if test "$enable_acl" = "yes"; then
|
|
7740 echo "$ac_t""no" 1>&6
|
|
7741 echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6
|
17
|
7742 echo "configure:7743: checking for acl_get_file in -lposix1e" >&5
|
7
|
7743 ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'`
|
|
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
7745 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7746 else
|
|
7747 ac_save_LIBS="$LIBS"
|
|
7748 LIBS="-lposix1e $LIBS"
|
|
7749 cat > conftest.$ac_ext <<EOF
|
17
|
7750 #line 7751 "configure"
|
7
|
7751 #include "confdefs.h"
|
|
7752 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7753 /* We use char because int might match the return type of a gcc2
|
|
7754 builtin and then its argument prototype would still apply. */
|
|
7755 char acl_get_file();
|
|
7756
|
|
7757 int main() {
|
|
7758 acl_get_file()
|
|
7759 ; return 0; }
|
|
7760 EOF
|
17
|
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7762 rm -rf conftest*
|
|
7763 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7764 else
|
|
7765 echo "configure: failed program was:" >&5
|
|
7766 cat conftest.$ac_ext >&5
|
|
7767 rm -rf conftest*
|
|
7768 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7769 fi
|
|
7770 rm -f conftest*
|
|
7771 LIBS="$ac_save_LIBS"
|
|
7772
|
|
7773 fi
|
|
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
7775 echo "$ac_t""yes" 1>&6
|
|
7776 LIBS="$LIBS -lposix1e"
|
|
7777 else
|
|
7778 echo "$ac_t""no" 1>&6
|
|
7779 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
|
17
|
7780 echo "configure:7781: checking for acl_get_file in -lacl" >&5
|
7
|
7781 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
|
|
7782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
7783 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7784 else
|
|
7785 ac_save_LIBS="$LIBS"
|
|
7786 LIBS="-lacl $LIBS"
|
|
7787 cat > conftest.$ac_ext <<EOF
|
17
|
7788 #line 7789 "configure"
|
7
|
7789 #include "confdefs.h"
|
|
7790 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7791 /* We use char because int might match the return type of a gcc2
|
|
7792 builtin and then its argument prototype would still apply. */
|
|
7793 char acl_get_file();
|
|
7794
|
|
7795 int main() {
|
|
7796 acl_get_file()
|
|
7797 ; return 0; }
|
|
7798 EOF
|
17
|
7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7800 rm -rf conftest*
|
|
7801 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7802 else
|
|
7803 echo "configure: failed program was:" >&5
|
|
7804 cat conftest.$ac_ext >&5
|
|
7805 rm -rf conftest*
|
|
7806 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7807 fi
|
|
7808 rm -f conftest*
|
|
7809 LIBS="$ac_save_LIBS"
|
|
7810
|
|
7811 fi
|
|
7812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
7813 echo "$ac_t""yes" 1>&6
|
|
7814 LIBS="$LIBS -lacl"
|
|
7815 echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6
|
17
|
7816 echo "configure:7817: checking for fgetxattr in -lattr" >&5
|
7
|
7817 ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'`
|
|
7818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
7819 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7820 else
|
|
7821 ac_save_LIBS="$LIBS"
|
|
7822 LIBS="-lattr $LIBS"
|
|
7823 cat > conftest.$ac_ext <<EOF
|
17
|
7824 #line 7825 "configure"
|
7
|
7825 #include "confdefs.h"
|
|
7826 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7827 /* We use char because int might match the return type of a gcc2
|
|
7828 builtin and then its argument prototype would still apply. */
|
|
7829 char fgetxattr();
|
|
7830
|
|
7831 int main() {
|
|
7832 fgetxattr()
|
|
7833 ; return 0; }
|
|
7834 EOF
|
17
|
7835 if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7836 rm -rf conftest*
|
|
7837 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7838 else
|
|
7839 echo "configure: failed program was:" >&5
|
|
7840 cat conftest.$ac_ext >&5
|
|
7841 rm -rf conftest*
|
|
7842 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7843 fi
|
|
7844 rm -f conftest*
|
|
7845 LIBS="$ac_save_LIBS"
|
|
7846
|
|
7847 fi
|
|
7848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
7849 echo "$ac_t""yes" 1>&6
|
|
7850 LIBS="$LIBS -lattr"
|
|
7851 else
|
|
7852 echo "$ac_t""no" 1>&6
|
|
7853 fi
|
|
7854
|
|
7855 else
|
|
7856 echo "$ac_t""no" 1>&6
|
|
7857 fi
|
|
7858
|
|
7859 fi
|
|
7860
|
|
7861
|
|
7862 echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6
|
17
|
7863 echo "configure:7864: checking for POSIX ACL support" >&5
|
7
|
7864 cat > conftest.$ac_ext <<EOF
|
17
|
7865 #line 7866 "configure"
|
7
|
7866 #include "confdefs.h"
|
|
7867
|
|
7868 #include <sys/types.h>
|
|
7869 #ifdef HAVE_SYS_ACL_H
|
|
7870 # include <sys/acl.h>
|
|
7871 #endif
|
|
7872 acl_t acl;
|
|
7873 int main() {
|
|
7874 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
|
|
7875 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
|
|
7876 acl_free(acl);
|
|
7877 ; return 0; }
|
|
7878 EOF
|
17
|
7879 if { (eval echo configure:7880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7880 rm -rf conftest*
|
|
7881 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7882 #define HAVE_POSIX_ACL 1
|
|
7883 EOF
|
|
7884
|
|
7885 else
|
|
7886 echo "configure: failed program was:" >&5
|
|
7887 cat conftest.$ac_ext >&5
|
|
7888 rm -rf conftest*
|
|
7889 echo "$ac_t""no" 1>&6
|
|
7890 fi
|
|
7891 rm -f conftest*
|
|
7892
|
|
7893 echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6
|
17
|
7894 echo "configure:7895: checking for Solaris ACL support" >&5
|
7
|
7895 cat > conftest.$ac_ext <<EOF
|
17
|
7896 #line 7897 "configure"
|
7
|
7897 #include "confdefs.h"
|
|
7898
|
|
7899 #ifdef HAVE_SYS_ACL_H
|
|
7900 # include <sys/acl.h>
|
|
7901 #endif
|
|
7902 int main() {
|
|
7903 acl("foo", GETACLCNT, 0, NULL);
|
|
7904
|
|
7905 ; return 0; }
|
|
7906 EOF
|
17
|
7907 if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7908 rm -rf conftest*
|
|
7909 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7910 #define HAVE_SOLARIS_ACL 1
|
|
7911 EOF
|
|
7912
|
|
7913 else
|
|
7914 echo "configure: failed program was:" >&5
|
|
7915 cat conftest.$ac_ext >&5
|
|
7916 rm -rf conftest*
|
|
7917 echo "$ac_t""no" 1>&6
|
|
7918 fi
|
|
7919 rm -f conftest*
|
|
7920
|
|
7921 echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6
|
17
|
7922 echo "configure:7923: checking for AIX ACL support" >&5
|
7
|
7923 cat > conftest.$ac_ext <<EOF
|
17
|
7924 #line 7925 "configure"
|
7
|
7925 #include "confdefs.h"
|
|
7926
|
|
7927 #ifdef HAVE_SYS_ACL_H
|
|
7928 # include <sys/acl.h>
|
|
7929 #endif
|
|
7930 #ifdef HAVE_SYS_ACCESS_H
|
|
7931 # include <sys/access.h>
|
|
7932 #endif
|
|
7933 #define _ALL_SOURCE
|
|
7934
|
|
7935 #include <sys/stat.h>
|
|
7936
|
|
7937 int aclsize;
|
|
7938 struct acl *aclent;
|
|
7939 int main() {
|
|
7940 aclsize = sizeof(struct acl);
|
|
7941 aclent = (void *)malloc(aclsize);
|
|
7942 statacl("foo", STX_NORMAL, aclent, aclsize);
|
|
7943
|
|
7944 ; return 0; }
|
|
7945 EOF
|
17
|
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7947 rm -rf conftest*
|
|
7948 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
7949 #define HAVE_AIX_ACL 1
|
|
7950 EOF
|
|
7951
|
|
7952 else
|
|
7953 echo "configure: failed program was:" >&5
|
|
7954 cat conftest.$ac_ext >&5
|
|
7955 rm -rf conftest*
|
|
7956 echo "$ac_t""no" 1>&6
|
|
7957 fi
|
|
7958 rm -f conftest*
|
|
7959 else
|
|
7960 echo "$ac_t""yes" 1>&6
|
|
7961 fi
|
|
7962
|
|
7963 echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6
|
17
|
7964 echo "configure:7965: checking --disable-gpm argument" >&5
|
7
|
7965 # Check whether --enable-gpm or --disable-gpm was given.
|
|
7966 if test "${enable_gpm+set}" = set; then
|
|
7967 enableval="$enable_gpm"
|
|
7968 :
|
|
7969 else
|
|
7970 enable_gpm="yes"
|
|
7971 fi
|
|
7972
|
|
7973
|
|
7974 if test "$enable_gpm" = "yes"; then
|
|
7975 echo "$ac_t""no" 1>&6
|
|
7976 echo $ac_n "checking for gpm""... $ac_c" 1>&6
|
17
|
7977 echo "configure:7978: checking for gpm" >&5
|
7
|
7978 if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then
|
|
7979 echo $ac_n "(cached) $ac_c" 1>&6
|
|
7980 else
|
|
7981 olibs="$LIBS" ; LIBS="-lgpm"
|
|
7982 cat > conftest.$ac_ext <<EOF
|
17
|
7983 #line 7984 "configure"
|
7
|
7984 #include "confdefs.h"
|
|
7985 #include <gpm.h>
|
|
7986 #include <linux/keyboard.h>
|
|
7987 int main() {
|
|
7988 Gpm_GetLibVersion(NULL);
|
|
7989 ; return 0; }
|
|
7990 EOF
|
17
|
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
7992 rm -rf conftest*
|
|
7993 vi_cv_have_gpm=yes
|
|
7994 else
|
|
7995 echo "configure: failed program was:" >&5
|
|
7996 cat conftest.$ac_ext >&5
|
|
7997 rm -rf conftest*
|
|
7998 vi_cv_have_gpm=no
|
|
7999 fi
|
|
8000 rm -f conftest*
|
|
8001 LIBS="$olibs"
|
|
8002
|
|
8003 fi
|
|
8004
|
|
8005 echo "$ac_t""$vi_cv_have_gpm" 1>&6
|
|
8006 if test $vi_cv_have_gpm = yes; then
|
|
8007 LIBS="$LIBS -lgpm"
|
|
8008 cat >> confdefs.h <<\EOF
|
|
8009 #define HAVE_GPM 1
|
|
8010 EOF
|
|
8011
|
|
8012 fi
|
|
8013 else
|
|
8014 echo "$ac_t""yes" 1>&6
|
|
8015 fi
|
|
8016
|
|
8017 echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6
|
17
|
8018 echo "configure:8019: checking for vsnprintf()" >&5
|
7
|
8019 if test "$cross_compiling" = yes; then
|
|
8020 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
8021 else
|
|
8022 cat > conftest.$ac_ext <<EOF
|
17
|
8023 #line 8024 "configure"
|
7
|
8024 #include "confdefs.h"
|
|
8025
|
|
8026 #include <stdio.h>
|
|
8027 #include <stdarg.h>
|
|
8028 /* Check use of vsnprintf() */
|
|
8029 void warn(char *fmt, ...);
|
|
8030 void warn(char *fmt, ...)
|
|
8031 {
|
|
8032 va_list ap; char buf[20];
|
|
8033 va_start(ap, fmt);
|
|
8034 vsnprintf(buf, 20, fmt, ap);
|
|
8035 va_end(ap);
|
|
8036 }
|
|
8037 main()
|
|
8038 {
|
|
8039 warn("testing %s\n", "a very long string that won't fit");
|
|
8040 exit(0);
|
|
8041 }
|
|
8042
|
|
8043 EOF
|
17
|
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
8045 then
|
|
8046 cat >> confdefs.h <<\EOF
|
|
8047 #define HAVE_VSNPRINTF 1
|
|
8048 EOF
|
|
8049 echo "$ac_t""yes" 1>&6
|
|
8050 else
|
|
8051 echo "configure: failed program was:" >&5
|
|
8052 cat conftest.$ac_ext >&5
|
|
8053 rm -fr conftest*
|
|
8054 echo "$ac_t""no" 1>&6
|
|
8055 fi
|
|
8056 rm -fr conftest*
|
|
8057 fi
|
|
8058
|
|
8059
|
|
8060
|
|
8061 echo $ac_n "checking for rename""... $ac_c" 1>&6
|
17
|
8062 echo "configure:8063: checking for rename" >&5
|
7
|
8063 cat > conftest.$ac_ext <<EOF
|
17
|
8064 #line 8065 "configure"
|
7
|
8065 #include "confdefs.h"
|
|
8066 #include <stdio.h>
|
|
8067 int main() {
|
|
8068 rename("this", "that")
|
|
8069 ; return 0; }
|
|
8070 EOF
|
17
|
8071 if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8072 rm -rf conftest*
|
|
8073 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
8074 #define HAVE_RENAME 1
|
|
8075 EOF
|
|
8076
|
|
8077 else
|
|
8078 echo "configure: failed program was:" >&5
|
|
8079 cat conftest.$ac_ext >&5
|
|
8080 rm -rf conftest*
|
|
8081 echo "$ac_t""no" 1>&6
|
|
8082 fi
|
|
8083 rm -f conftest*
|
|
8084
|
|
8085 echo $ac_n "checking for sysctl""... $ac_c" 1>&6
|
17
|
8086 echo "configure:8087: checking for sysctl" >&5
|
7
|
8087 cat > conftest.$ac_ext <<EOF
|
17
|
8088 #line 8089 "configure"
|
7
|
8089 #include "confdefs.h"
|
|
8090 #include <sys/types.h>
|
|
8091 #include <sys/sysctl.h>
|
|
8092 int main() {
|
|
8093 int mib[2], r;
|
|
8094 size_t len;
|
|
8095
|
|
8096 mib[0] = CTL_HW;
|
|
8097 mib[1] = HW_USERMEM;
|
|
8098 len = sizeof(r);
|
|
8099 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
|
|
8100
|
|
8101 ; return 0; }
|
|
8102 EOF
|
17
|
8103 if { (eval echo configure:8104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
8104 rm -rf conftest*
|
|
8105 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
8106 #define HAVE_SYSCTL 1
|
|
8107 EOF
|
|
8108
|
|
8109 else
|
|
8110 echo "configure: failed program was:" >&5
|
|
8111 cat conftest.$ac_ext >&5
|
|
8112 rm -rf conftest*
|
|
8113 echo "$ac_t""not usable" 1>&6
|
|
8114 fi
|
|
8115 rm -f conftest*
|
|
8116
|
|
8117 echo $ac_n "checking for sysinfo""... $ac_c" 1>&6
|
17
|
8118 echo "configure:8119: checking for sysinfo" >&5
|
7
|
8119 cat > conftest.$ac_ext <<EOF
|
17
|
8120 #line 8121 "configure"
|
7
|
8121 #include "confdefs.h"
|
|
8122 #include <sys/types.h>
|
|
8123 #include <sys/sysinfo.h>
|
|
8124 int main() {
|
|
8125 struct sysinfo sinfo;
|
|
8126 int t;
|
|
8127
|
|
8128 (void)sysinfo(&sinfo);
|
|
8129 t = sinfo.totalram;
|
|
8130
|
|
8131 ; return 0; }
|
|
8132 EOF
|
17
|
8133 if { (eval echo configure:8134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
8134 rm -rf conftest*
|
|
8135 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
8136 #define HAVE_SYSINFO 1
|
|
8137 EOF
|
|
8138
|
|
8139 else
|
|
8140 echo "configure: failed program was:" >&5
|
|
8141 cat conftest.$ac_ext >&5
|
|
8142 rm -rf conftest*
|
|
8143 echo "$ac_t""not usable" 1>&6
|
|
8144 fi
|
|
8145 rm -f conftest*
|
|
8146
|
|
8147 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
|
17
|
8148 echo "configure:8149: checking for sysconf" >&5
|
7
|
8149 cat > conftest.$ac_ext <<EOF
|
17
|
8150 #line 8151 "configure"
|
7
|
8151 #include "confdefs.h"
|
|
8152 #include <unistd.h>
|
|
8153 int main() {
|
|
8154 (void)sysconf(_SC_PAGESIZE);
|
|
8155 (void)sysconf(_SC_PHYS_PAGES);
|
|
8156
|
|
8157 ; return 0; }
|
|
8158 EOF
|
17
|
8159 if { (eval echo configure:8160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
8160 rm -rf conftest*
|
|
8161 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
8162 #define HAVE_SYSCONF 1
|
|
8163 EOF
|
|
8164
|
|
8165 else
|
|
8166 echo "configure: failed program was:" >&5
|
|
8167 cat conftest.$ac_ext >&5
|
|
8168 rm -rf conftest*
|
|
8169 echo "$ac_t""not usable" 1>&6
|
|
8170 fi
|
|
8171 rm -f conftest*
|
|
8172
|
|
8173
|
|
8174 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
17
|
8175 echo "configure:8176: checking size of int" >&5
|
7
|
8176 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|
8177 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8178 else
|
|
8179 if test "$cross_compiling" = yes; then
|
|
8180 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
8181 else
|
|
8182 cat > conftest.$ac_ext <<EOF
|
17
|
8183 #line 8184 "configure"
|
7
|
8184 #include "confdefs.h"
|
|
8185 #include <stdio.h>
|
|
8186 main()
|
|
8187 {
|
|
8188 FILE *f=fopen("conftestval", "w");
|
|
8189 if (!f) exit(1);
|
|
8190 fprintf(f, "%d\n", (int)sizeof(int));
|
|
8191 exit(0);
|
|
8192 }
|
|
8193 EOF
|
17
|
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
8195 then
|
|
8196 ac_cv_sizeof_int=`cat conftestval`
|
|
8197 else
|
|
8198 echo "configure: failed program was:" >&5
|
|
8199 cat conftest.$ac_ext >&5
|
|
8200 rm -fr conftest*
|
|
8201 ac_cv_sizeof_int=0
|
|
8202 fi
|
|
8203 rm -fr conftest*
|
|
8204 fi
|
|
8205
|
|
8206 fi
|
|
8207
|
|
8208 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
8209 cat >> confdefs.h <<EOF
|
|
8210 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
8211 EOF
|
|
8212
|
|
8213
|
|
8214 echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6
|
17
|
8215 echo "configure:8216: checking whether memmove/bcopy/memcpy handle overlaps" >&5
|
7
|
8216 bcopy_test_prog='
|
|
8217 main() {
|
|
8218 char buf[10];
|
|
8219 strcpy(buf, "abcdefghi");
|
|
8220 mch_memmove(buf, buf + 2, 3);
|
|
8221 if (strncmp(buf, "ababcf", 6))
|
|
8222 exit(1);
|
|
8223 strcpy(buf, "abcdefghi");
|
|
8224 mch_memmove(buf + 2, buf, 3);
|
|
8225 if (strncmp(buf, "cdedef", 6))
|
|
8226 exit(1);
|
|
8227 exit(0); /* libc version works properly. */
|
|
8228 }'
|
|
8229
|
|
8230
|
|
8231 if test "$cross_compiling" = yes; then
|
|
8232 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
8233 else
|
|
8234 cat > conftest.$ac_ext <<EOF
|
17
|
8235 #line 8236 "configure"
|
7
|
8236 #include "confdefs.h"
|
|
8237 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
|
|
8238 EOF
|
17
|
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
8240 then
|
|
8241 cat >> confdefs.h <<\EOF
|
|
8242 #define USEMEMMOVE 1
|
|
8243 EOF
|
|
8244 echo "$ac_t""memmove does" 1>&6
|
|
8245 else
|
|
8246 echo "configure: failed program was:" >&5
|
|
8247 cat conftest.$ac_ext >&5
|
|
8248 rm -fr conftest*
|
|
8249 if test "$cross_compiling" = yes; then
|
|
8250 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
8251 else
|
|
8252 cat > conftest.$ac_ext <<EOF
|
17
|
8253 #line 8254 "configure"
|
7
|
8254 #include "confdefs.h"
|
|
8255 #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
|
|
8256 EOF
|
17
|
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
8258 then
|
|
8259 cat >> confdefs.h <<\EOF
|
|
8260 #define USEBCOPY 1
|
|
8261 EOF
|
|
8262 echo "$ac_t""bcopy does" 1>&6
|
|
8263 else
|
|
8264 echo "configure: failed program was:" >&5
|
|
8265 cat conftest.$ac_ext >&5
|
|
8266 rm -fr conftest*
|
|
8267 if test "$cross_compiling" = yes; then
|
|
8268 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
|
|
8269 else
|
|
8270 cat > conftest.$ac_ext <<EOF
|
17
|
8271 #line 8272 "configure"
|
7
|
8272 #include "confdefs.h"
|
|
8273 #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
|
|
8274 EOF
|
17
|
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
7
|
8276 then
|
|
8277 cat >> confdefs.h <<\EOF
|
|
8278 #define USEMEMCPY 1
|
|
8279 EOF
|
|
8280 echo "$ac_t""memcpy does" 1>&6
|
|
8281 else
|
|
8282 echo "configure: failed program was:" >&5
|
|
8283 cat conftest.$ac_ext >&5
|
|
8284 rm -fr conftest*
|
|
8285 echo "$ac_t""no" 1>&6
|
|
8286 fi
|
|
8287 rm -fr conftest*
|
|
8288 fi
|
|
8289
|
|
8290 fi
|
|
8291 rm -fr conftest*
|
|
8292 fi
|
|
8293
|
|
8294 fi
|
|
8295 rm -fr conftest*
|
|
8296 fi
|
|
8297
|
|
8298
|
|
8299
|
|
8300 if test "$enable_multibyte" = "yes"; then
|
|
8301 cflags_save=$CFLAGS
|
|
8302 ldflags_save=$LDFLAGS
|
|
8303 if test -n "$x_includes" ; then
|
|
8304 CFLAGS="$CFLAGS -I$x_includes"
|
|
8305 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
|
|
8306 echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6
|
17
|
8307 echo "configure:8308: checking whether X_LOCALE needed" >&5
|
7
|
8308 cat > conftest.$ac_ext <<EOF
|
17
|
8309 #line 8310 "configure"
|
7
|
8310 #include "confdefs.h"
|
|
8311 #include <X11/Xlocale.h>
|
|
8312 int main() {
|
|
8313
|
|
8314 ; return 0; }
|
|
8315 EOF
|
17
|
8316 if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
7
|
8317 rm -rf conftest*
|
|
8318 cat > conftest.$ac_ext <<EOF
|
17
|
8319 #line 8320 "configure"
|
7
|
8320 #include "confdefs.h"
|
|
8321 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8322 /* We use char because int might match the return type of a gcc2
|
|
8323 builtin and then its argument prototype would still apply. */
|
|
8324 char _Xsetlocale();
|
|
8325
|
|
8326 int main() {
|
|
8327 _Xsetlocale()
|
|
8328 ; return 0; }
|
|
8329 EOF
|
17
|
8330 if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8331 rm -rf conftest*
|
|
8332 echo "$ac_t""yes" 1>&6
|
|
8333 cat >> confdefs.h <<\EOF
|
|
8334 #define X_LOCALE 1
|
|
8335 EOF
|
|
8336
|
|
8337 else
|
|
8338 echo "configure: failed program was:" >&5
|
|
8339 cat conftest.$ac_ext >&5
|
|
8340 rm -rf conftest*
|
|
8341 echo "$ac_t""no" 1>&6
|
|
8342 fi
|
|
8343 rm -f conftest*
|
|
8344 else
|
|
8345 echo "configure: failed program was:" >&5
|
|
8346 cat conftest.$ac_ext >&5
|
|
8347 rm -rf conftest*
|
|
8348 echo "$ac_t""no" 1>&6
|
|
8349 fi
|
|
8350 rm -f conftest*
|
|
8351 fi
|
|
8352 CFLAGS=$cflags_save
|
|
8353 LDFLAGS=$ldflags_save
|
|
8354 fi
|
|
8355
|
|
8356 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
|
17
|
8357 echo "configure:8358: checking for _xpg4_setrunelocale in -lxpg4" >&5
|
7
|
8358 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
|
|
8359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
8360 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8361 else
|
|
8362 ac_save_LIBS="$LIBS"
|
|
8363 LIBS="-lxpg4 $LIBS"
|
|
8364 cat > conftest.$ac_ext <<EOF
|
17
|
8365 #line 8366 "configure"
|
7
|
8366 #include "confdefs.h"
|
|
8367 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8368 /* We use char because int might match the return type of a gcc2
|
|
8369 builtin and then its argument prototype would still apply. */
|
|
8370 char _xpg4_setrunelocale();
|
|
8371
|
|
8372 int main() {
|
|
8373 _xpg4_setrunelocale()
|
|
8374 ; return 0; }
|
|
8375 EOF
|
17
|
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8377 rm -rf conftest*
|
|
8378 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8379 else
|
|
8380 echo "configure: failed program was:" >&5
|
|
8381 cat conftest.$ac_ext >&5
|
|
8382 rm -rf conftest*
|
|
8383 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8384 fi
|
|
8385 rm -f conftest*
|
|
8386 LIBS="$ac_save_LIBS"
|
|
8387
|
|
8388 fi
|
|
8389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
8390 echo "$ac_t""yes" 1>&6
|
|
8391 LIBS="$LIBS -lxpg4"
|
|
8392 else
|
|
8393 echo "$ac_t""no" 1>&6
|
|
8394 fi
|
|
8395
|
|
8396
|
|
8397 echo $ac_n "checking how to create tags""... $ac_c" 1>&6
|
17
|
8398 echo "configure:8399: checking how to create tags" >&5
|
7
|
8399 test -f tags && mv tags tags.save
|
|
8400 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
|
|
8401 TAGPRG="ctags"
|
|
8402 else
|
|
8403 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
|
|
8404 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
|
|
8405 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
|
|
8406 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
|
|
8407 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
|
|
8408 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
|
|
8409 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
|
|
8410 fi
|
|
8411 test -f tags.save && mv tags.save tags
|
|
8412 echo "$ac_t""$TAGPRG" 1>&6
|
|
8413
|
|
8414 echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6
|
17
|
8415 echo "configure:8416: checking how to run man with a section nr" >&5
|
7
|
8416 MANDEF="man"
|
|
8417 (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
|
|
8418 echo "$ac_t""$MANDEF" 1>&6
|
|
8419 if test "$MANDEF" = "man -s"; then
|
|
8420 cat >> confdefs.h <<\EOF
|
|
8421 #define USEMAN_S 1
|
|
8422 EOF
|
|
8423
|
|
8424 fi
|
|
8425
|
|
8426 echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6
|
17
|
8427 echo "configure:8428: checking --disable-nls argument" >&5
|
7
|
8428 # Check whether --enable-nls or --disable-nls was given.
|
|
8429 if test "${enable_nls+set}" = set; then
|
|
8430 enableval="$enable_nls"
|
|
8431 :
|
|
8432 else
|
|
8433 enable_nls="yes"
|
|
8434 fi
|
|
8435
|
|
8436
|
|
8437 if test "$enable_nls" = "yes"; then
|
|
8438 echo "$ac_t""no" 1>&6
|
|
8439 # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
8440 set dummy msgfmt; ac_word=$2
|
|
8441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
17
|
8442 echo "configure:8443: checking for $ac_word" >&5
|
7
|
8443 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
|
|
8444 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8445 else
|
|
8446 if test -n "$MSGFMT"; then
|
|
8447 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
|
|
8448 else
|
|
8449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
8450 ac_dummy="$PATH"
|
|
8451 for ac_dir in $ac_dummy; do
|
|
8452 test -z "$ac_dir" && ac_dir=.
|
|
8453 if test -f $ac_dir/$ac_word; then
|
|
8454 ac_cv_prog_MSGFMT="msgfmt"
|
|
8455 break
|
|
8456 fi
|
|
8457 done
|
|
8458 IFS="$ac_save_ifs"
|
|
8459 fi
|
|
8460 fi
|
|
8461 MSGFMT="$ac_cv_prog_MSGFMT"
|
|
8462 if test -n "$MSGFMT"; then
|
|
8463 echo "$ac_t""$MSGFMT" 1>&6
|
|
8464 else
|
|
8465 echo "$ac_t""no" 1>&6
|
|
8466 fi
|
|
8467
|
|
8468 echo $ac_n "checking for NLS""... $ac_c" 1>&6
|
17
|
8469 echo "configure:8470: checking for NLS" >&5
|
7
|
8470 if test -f po/Makefile; then
|
|
8471 have_gettext="no"
|
|
8472 if test -n "$MSGFMT"; then
|
|
8473 cat > conftest.$ac_ext <<EOF
|
17
|
8474 #line 8475 "configure"
|
7
|
8475 #include "confdefs.h"
|
|
8476 #include <libintl.h>
|
|
8477 int main() {
|
|
8478 gettext("Test");
|
|
8479 ; return 0; }
|
|
8480 EOF
|
17
|
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8482 rm -rf conftest*
|
|
8483 echo "$ac_t""gettext() works" 1>&6; have_gettext="yes"
|
|
8484 else
|
|
8485 echo "configure: failed program was:" >&5
|
|
8486 cat conftest.$ac_ext >&5
|
|
8487 rm -rf conftest*
|
|
8488 olibs=$LIBS
|
|
8489 LIBS="$LIBS -lintl"
|
|
8490 cat > conftest.$ac_ext <<EOF
|
17
|
8491 #line 8492 "configure"
|
7
|
8492 #include "confdefs.h"
|
|
8493 #include <libintl.h>
|
|
8494 int main() {
|
|
8495 gettext("Test");
|
|
8496 ; return 0; }
|
|
8497 EOF
|
17
|
8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8499 rm -rf conftest*
|
|
8500 echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes"
|
|
8501 else
|
|
8502 echo "configure: failed program was:" >&5
|
|
8503 cat conftest.$ac_ext >&5
|
|
8504 rm -rf conftest*
|
|
8505 echo "$ac_t""gettext() doesn't work" 1>&6;
|
|
8506 LIBS=$olibs
|
|
8507 fi
|
|
8508 rm -f conftest*
|
|
8509 fi
|
|
8510 rm -f conftest*
|
|
8511 else
|
|
8512 echo "$ac_t""msgfmt not found - disabled" 1>&6;
|
|
8513 fi
|
|
8514 if test $have_gettext = "yes"; then
|
|
8515 cat >> confdefs.h <<\EOF
|
|
8516 #define HAVE_GETTEXT 1
|
|
8517 EOF
|
|
8518
|
|
8519 MAKEMO=yes
|
|
8520
|
|
8521 for ac_func in bind_textdomain_codeset
|
|
8522 do
|
|
8523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
17
|
8524 echo "configure:8525: checking for $ac_func" >&5
|
7
|
8525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
8526 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8527 else
|
|
8528 cat > conftest.$ac_ext <<EOF
|
17
|
8529 #line 8530 "configure"
|
7
|
8530 #include "confdefs.h"
|
|
8531 /* System header to define __stub macros and hopefully few prototypes,
|
|
8532 which can conflict with char $ac_func(); below. */
|
|
8533 #include <assert.h>
|
|
8534 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8535 /* We use char because int might match the return type of a gcc2
|
|
8536 builtin and then its argument prototype would still apply. */
|
|
8537 char $ac_func();
|
|
8538
|
|
8539 int main() {
|
|
8540
|
|
8541 /* The GNU C library defines this for functions which it implements
|
|
8542 to always fail with ENOSYS. Some functions are actually named
|
|
8543 something starting with __ and the normal name is an alias. */
|
|
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8545 choke me
|
|
8546 #else
|
|
8547 $ac_func();
|
|
8548 #endif
|
|
8549
|
|
8550 ; return 0; }
|
|
8551 EOF
|
17
|
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8553 rm -rf conftest*
|
|
8554 eval "ac_cv_func_$ac_func=yes"
|
|
8555 else
|
|
8556 echo "configure: failed program was:" >&5
|
|
8557 cat conftest.$ac_ext >&5
|
|
8558 rm -rf conftest*
|
|
8559 eval "ac_cv_func_$ac_func=no"
|
|
8560 fi
|
|
8561 rm -f conftest*
|
|
8562 fi
|
|
8563
|
|
8564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8565 echo "$ac_t""yes" 1>&6
|
|
8566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8567 cat >> confdefs.h <<EOF
|
|
8568 #define $ac_tr_func 1
|
|
8569 EOF
|
|
8570
|
|
8571 else
|
|
8572 echo "$ac_t""no" 1>&6
|
|
8573 fi
|
|
8574 done
|
|
8575
|
|
8576 echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6
|
17
|
8577 echo "configure:8578: checking for _nl_msg_cat_cntr" >&5
|
7
|
8578 cat > conftest.$ac_ext <<EOF
|
17
|
8579 #line 8580 "configure"
|
7
|
8580 #include "confdefs.h"
|
|
8581 #include <libintl.h>
|
|
8582 extern int _nl_msg_cat_cntr;
|
|
8583 int main() {
|
|
8584 ++_nl_msg_cat_cntr;
|
|
8585 ; return 0; }
|
|
8586 EOF
|
17
|
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8588 rm -rf conftest*
|
|
8589 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
8590 #define HAVE_NL_MSG_CAT_CNTR 1
|
|
8591 EOF
|
|
8592
|
|
8593 else
|
|
8594 echo "configure: failed program was:" >&5
|
|
8595 cat conftest.$ac_ext >&5
|
|
8596 rm -rf conftest*
|
|
8597 echo "$ac_t""no" 1>&6
|
|
8598 fi
|
|
8599 rm -f conftest*
|
|
8600 fi
|
|
8601 else
|
|
8602 echo "$ac_t""no "po/Makefile" - disabled" 1>&6;
|
|
8603 fi
|
|
8604 else
|
|
8605 echo "$ac_t""yes" 1>&6
|
|
8606 fi
|
|
8607
|
|
8608 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
8609 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
17
|
8610 echo "configure:8611: checking for dlfcn.h" >&5
|
7
|
8611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
8612 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8613 else
|
|
8614 cat > conftest.$ac_ext <<EOF
|
17
|
8615 #line 8616 "configure"
|
7
|
8616 #include "confdefs.h"
|
|
8617 #include <dlfcn.h>
|
|
8618 EOF
|
|
8619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
8620 { (eval echo configure:8621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
8621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8622 if test -z "$ac_err"; then
|
|
8623 rm -rf conftest*
|
|
8624 eval "ac_cv_header_$ac_safe=yes"
|
|
8625 else
|
|
8626 echo "$ac_err" >&5
|
|
8627 echo "configure: failed program was:" >&5
|
|
8628 cat conftest.$ac_ext >&5
|
|
8629 rm -rf conftest*
|
|
8630 eval "ac_cv_header_$ac_safe=no"
|
|
8631 fi
|
|
8632 rm -f conftest*
|
|
8633 fi
|
|
8634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8635 echo "$ac_t""yes" 1>&6
|
|
8636 DLL=dlfcn.h
|
|
8637 else
|
|
8638 echo "$ac_t""no" 1>&6
|
|
8639 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
|
|
8640 echo $ac_n "checking for dl.h""... $ac_c" 1>&6
|
17
|
8641 echo "configure:8642: checking for dl.h" >&5
|
7
|
8642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
8643 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8644 else
|
|
8645 cat > conftest.$ac_ext <<EOF
|
17
|
8646 #line 8647 "configure"
|
7
|
8647 #include "confdefs.h"
|
|
8648 #include <dl.h>
|
|
8649 EOF
|
|
8650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
8651 { (eval echo configure:8652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
8652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8653 if test -z "$ac_err"; then
|
|
8654 rm -rf conftest*
|
|
8655 eval "ac_cv_header_$ac_safe=yes"
|
|
8656 else
|
|
8657 echo "$ac_err" >&5
|
|
8658 echo "configure: failed program was:" >&5
|
|
8659 cat conftest.$ac_ext >&5
|
|
8660 rm -rf conftest*
|
|
8661 eval "ac_cv_header_$ac_safe=no"
|
|
8662 fi
|
|
8663 rm -f conftest*
|
|
8664 fi
|
|
8665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8666 echo "$ac_t""yes" 1>&6
|
|
8667 DLL=dl.h
|
|
8668 else
|
|
8669 echo "$ac_t""no" 1>&6
|
|
8670 fi
|
|
8671
|
|
8672 fi
|
|
8673
|
|
8674 if test x${DLL} = xdlfcn.h; then
|
|
8675 cat >> confdefs.h <<\EOF
|
|
8676 #define HAVE_DLFCN_H 1
|
|
8677 EOF
|
|
8678
|
|
8679 echo $ac_n "checking for dlopen()""... $ac_c" 1>&6
|
17
|
8680 echo "configure:8681: checking for dlopen()" >&5
|
7
|
8681 cat > conftest.$ac_ext <<EOF
|
17
|
8682 #line 8683 "configure"
|
7
|
8683 #include "confdefs.h"
|
|
8684
|
|
8685 int main() {
|
|
8686
|
|
8687 extern void* dlopen();
|
|
8688 dlopen();
|
|
8689
|
|
8690 ; return 0; }
|
|
8691 EOF
|
17
|
8692 if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8693 rm -rf conftest*
|
|
8694 echo "$ac_t""yes" 1>&6;
|
|
8695 cat >> confdefs.h <<\EOF
|
|
8696 #define HAVE_DLOPEN 1
|
|
8697 EOF
|
|
8698
|
|
8699 else
|
|
8700 echo "configure: failed program was:" >&5
|
|
8701 cat conftest.$ac_ext >&5
|
|
8702 rm -rf conftest*
|
|
8703 echo "$ac_t""no" 1>&6;
|
|
8704 echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6
|
17
|
8705 echo "configure:8706: checking for dlopen() in -ldl" >&5
|
7
|
8706 olibs=$LIBS
|
|
8707 LIBS="$LIBS -ldl"
|
|
8708 cat > conftest.$ac_ext <<EOF
|
17
|
8709 #line 8710 "configure"
|
7
|
8710 #include "confdefs.h"
|
|
8711
|
|
8712 int main() {
|
|
8713
|
|
8714 extern void* dlopen();
|
|
8715 dlopen();
|
|
8716
|
|
8717 ; return 0; }
|
|
8718 EOF
|
17
|
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8720 rm -rf conftest*
|
|
8721 echo "$ac_t""yes" 1>&6;
|
|
8722 cat >> confdefs.h <<\EOF
|
|
8723 #define HAVE_DLOPEN 1
|
|
8724 EOF
|
|
8725
|
|
8726 else
|
|
8727 echo "configure: failed program was:" >&5
|
|
8728 cat conftest.$ac_ext >&5
|
|
8729 rm -rf conftest*
|
|
8730 echo "$ac_t""no" 1>&6;
|
|
8731 LIBS=$olibs
|
|
8732 fi
|
|
8733 rm -f conftest*
|
|
8734 fi
|
|
8735 rm -f conftest*
|
|
8736 echo $ac_n "checking for dlsym()""... $ac_c" 1>&6
|
17
|
8737 echo "configure:8738: checking for dlsym()" >&5
|
7
|
8738 cat > conftest.$ac_ext <<EOF
|
17
|
8739 #line 8740 "configure"
|
7
|
8740 #include "confdefs.h"
|
|
8741
|
|
8742 int main() {
|
|
8743
|
|
8744 extern void* dlsym();
|
|
8745 dlsym();
|
|
8746
|
|
8747 ; return 0; }
|
|
8748 EOF
|
17
|
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8750 rm -rf conftest*
|
|
8751 echo "$ac_t""yes" 1>&6;
|
|
8752 cat >> confdefs.h <<\EOF
|
|
8753 #define HAVE_DLSYM 1
|
|
8754 EOF
|
|
8755
|
|
8756 else
|
|
8757 echo "configure: failed program was:" >&5
|
|
8758 cat conftest.$ac_ext >&5
|
|
8759 rm -rf conftest*
|
|
8760 echo "$ac_t""no" 1>&6;
|
|
8761 echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6
|
17
|
8762 echo "configure:8763: checking for dlsym() in -ldl" >&5
|
7
|
8763 olibs=$LIBS
|
|
8764 LIBS="$LIBS -ldl"
|
|
8765 cat > conftest.$ac_ext <<EOF
|
17
|
8766 #line 8767 "configure"
|
7
|
8767 #include "confdefs.h"
|
|
8768
|
|
8769 int main() {
|
|
8770
|
|
8771 extern void* dlsym();
|
|
8772 dlsym();
|
|
8773
|
|
8774 ; return 0; }
|
|
8775 EOF
|
17
|
8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8777 rm -rf conftest*
|
|
8778 echo "$ac_t""yes" 1>&6;
|
|
8779 cat >> confdefs.h <<\EOF
|
|
8780 #define HAVE_DLSYM 1
|
|
8781 EOF
|
|
8782
|
|
8783 else
|
|
8784 echo "configure: failed program was:" >&5
|
|
8785 cat conftest.$ac_ext >&5
|
|
8786 rm -rf conftest*
|
|
8787 echo "$ac_t""no" 1>&6;
|
|
8788 LIBS=$olibs
|
|
8789 fi
|
|
8790 rm -f conftest*
|
|
8791 fi
|
|
8792 rm -f conftest*
|
|
8793 elif test x${DLL} = xdl.h; then
|
|
8794 cat >> confdefs.h <<\EOF
|
|
8795 #define HAVE_DL_H 1
|
|
8796 EOF
|
|
8797
|
|
8798 echo $ac_n "checking for shl_load()""... $ac_c" 1>&6
|
17
|
8799 echo "configure:8800: checking for shl_load()" >&5
|
7
|
8800 cat > conftest.$ac_ext <<EOF
|
17
|
8801 #line 8802 "configure"
|
7
|
8802 #include "confdefs.h"
|
|
8803
|
|
8804 int main() {
|
|
8805
|
|
8806 extern void* shl_load();
|
|
8807 shl_load();
|
|
8808
|
|
8809 ; return 0; }
|
|
8810 EOF
|
17
|
8811 if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8812 rm -rf conftest*
|
|
8813 echo "$ac_t""yes" 1>&6;
|
|
8814 cat >> confdefs.h <<\EOF
|
|
8815 #define HAVE_SHL_LOAD 1
|
|
8816 EOF
|
|
8817
|
|
8818 else
|
|
8819 echo "configure: failed program was:" >&5
|
|
8820 cat conftest.$ac_ext >&5
|
|
8821 rm -rf conftest*
|
|
8822 echo "$ac_t""no" 1>&6;
|
|
8823 echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6
|
17
|
8824 echo "configure:8825: checking for shl_load() in -ldld" >&5
|
7
|
8825 olibs=$LIBS
|
|
8826 LIBS="$LIBS -ldld"
|
|
8827 cat > conftest.$ac_ext <<EOF
|
17
|
8828 #line 8829 "configure"
|
7
|
8829 #include "confdefs.h"
|
|
8830
|
|
8831 int main() {
|
|
8832
|
|
8833 extern void* shl_load();
|
|
8834 shl_load();
|
|
8835
|
|
8836 ; return 0; }
|
|
8837 EOF
|
17
|
8838 if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
7
|
8839 rm -rf conftest*
|
|
8840 echo "$ac_t""yes" 1>&6;
|
|
8841 cat >> confdefs.h <<\EOF
|
|
8842 #define HAVE_SHL_LOAD 1
|
|
8843 EOF
|
|
8844
|
|
8845 else
|
|
8846 echo "configure: failed program was:" >&5
|
|
8847 cat conftest.$ac_ext >&5
|
|
8848 rm -rf conftest*
|
|
8849 echo "$ac_t""no" 1>&6;
|
|
8850 LIBS=$olibs
|
|
8851 fi
|
|
8852 rm -f conftest*
|
|
8853 fi
|
|
8854 rm -f conftest*
|
|
8855 fi
|
|
8856 for ac_hdr in setjmp.h
|
|
8857 do
|
|
8858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
8859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
17
|
8860 echo "configure:8861: checking for $ac_hdr" >&5
|
7
|
8861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
8862 echo $ac_n "(cached) $ac_c" 1>&6
|
|
8863 else
|
|
8864 cat > conftest.$ac_ext <<EOF
|
17
|
8865 #line 8866 "configure"
|
7
|
8866 #include "confdefs.h"
|
|
8867 #include <$ac_hdr>
|
|
8868 EOF
|
|
8869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
17
|
8870 { (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7
|
8871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8872 if test -z "$ac_err"; then
|
|
8873 rm -rf conftest*
|
|
8874 eval "ac_cv_header_$ac_safe=yes"
|
|
8875 else
|
|
8876 echo "$ac_err" >&5
|
|
8877 echo "configure: failed program was:" >&5
|
|
8878 cat conftest.$ac_ext >&5
|
|
8879 rm -rf conftest*
|
|
8880 eval "ac_cv_header_$ac_safe=no"
|
|
8881 fi
|
|
8882 rm -f conftest*
|
|
8883 fi
|
|
8884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8885 echo "$ac_t""yes" 1>&6
|
|
8886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
8887 cat >> confdefs.h <<EOF
|
|
8888 #define $ac_tr_hdr 1
|
|
8889 EOF
|
|
8890
|
|
8891 else
|
|
8892 echo "$ac_t""no" 1>&6
|
|
8893 fi
|
|
8894 done
|
|
8895
|
|
8896
|
|
8897 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
|
|
8898 if echo $LIBS | grep -e '-ldl' >/dev/null; then
|
|
8899 LIBS=`echo $LIBS | sed s/-ldl//`
|
|
8900 PERL_LIBS="$PERL_LIBS -ldl"
|
|
8901 fi
|
|
8902 fi
|
|
8903
|
|
8904 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
|
|
8905 && test "x$GUITYPE" != "xCARBONGUI"; then
|
|
8906 echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6
|
17
|
8907 echo "configure:8908: checking whether we need -framework Carbon" >&5
|
7
|
8908 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
|
|
8909 || test "x$features" = "xhuge"; then
|
|
8910 LIBS="$LIBS -framework Carbon"
|
|
8911 echo "$ac_t""yes" 1>&6
|
|
8912 else
|
|
8913 echo "$ac_t""no" 1>&6
|
|
8914 fi
|
|
8915 fi
|
|
8916
|
|
8917
|
|
8918 trap '' 1 2 15
|
|
8919 cat > confcache <<\EOF
|
|
8920 # This file is a shell script that caches the results of configure
|
|
8921 # tests run on this system so they can be shared between configure
|
|
8922 # scripts and configure runs. It is not useful on other systems.
|
|
8923 # If it contains results you don't want to keep, you may remove or edit it.
|
|
8924 #
|
|
8925 # By default, configure uses ./config.cache as the cache file,
|
|
8926 # creating it if it does not exist already. You can give configure
|
|
8927 # the --cache-file=FILE option to use a different cache file; that is
|
|
8928 # what configure does when it calls configure scripts in
|
|
8929 # subdirectories, so they share the cache.
|
|
8930 # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
8931 # config.status only pays attention to the cache file if you give it the
|
|
8932 # --recheck option to rerun configure.
|
|
8933 #
|
|
8934 EOF
|
|
8935 # The following way of writing the cache mishandles newlines in values,
|
|
8936 # but we know of no workaround that is simple, portable, and efficient.
|
|
8937 # So, don't put newlines in cache variables' values.
|
|
8938 # Ultrix sh set writes to stderr and can't be redirected directly,
|
|
8939 # and sets the high bit in the cache file unless we assign to the vars.
|
|
8940 (set) 2>&1 |
|
|
8941 case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
8942 *ac_space=\ *)
|
|
8943 # `set' does not quote correctly, so add quotes (double-quote substitution
|
|
8944 # turns \\\\ into \\, and sed turns \\ into \).
|
|
8945 sed -n \
|
|
8946 -e "s/'/'\\\\''/g" \
|
|
8947 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|
8948 ;;
|
|
8949 *)
|
|
8950 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
8951 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|
8952 ;;
|
|
8953 esac >> confcache
|
|
8954 if cmp -s $cache_file confcache; then
|
|
8955 :
|
|
8956 else
|
|
8957 if test -w $cache_file; then
|
|
8958 echo "updating cache $cache_file"
|
|
8959 cat confcache > $cache_file
|
|
8960 else
|
|
8961 echo "not updating unwritable cache $cache_file"
|
|
8962 fi
|
|
8963 fi
|
|
8964 rm -f confcache
|
|
8965
|
|
8966 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
8967
|
|
8968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
8969 # Let make expand exec_prefix.
|
|
8970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
8971
|
|
8972 # Any assignment to VPATH causes Sun make to only execute
|
|
8973 # the first set of double-colon rules, so remove it if not needed.
|
|
8974 # If there is a colon in the path, we need to keep it.
|
|
8975 if test "x$srcdir" = x.; then
|
|
8976 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
8977 fi
|
|
8978
|
|
8979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
8980
|
|
8981 DEFS=-DHAVE_CONFIG_H
|
|
8982
|
|
8983 # Without the "./", some shells look in PATH for config.status.
|
|
8984 : ${CONFIG_STATUS=./config.status}
|
|
8985
|
|
8986 echo creating $CONFIG_STATUS
|
|
8987 rm -f $CONFIG_STATUS
|
|
8988 cat > $CONFIG_STATUS <<EOF
|
|
8989 #! /bin/sh
|
|
8990 # Generated automatically by configure.
|
|
8991 # Run this file to recreate the current configuration.
|
|
8992 # This directory was configured as follows,
|
|
8993 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
8994 #
|
|
8995 # $0 $ac_configure_args
|
|
8996 #
|
|
8997 # Compiler output produced by configure, useful for debugging
|
|
8998 # configure, is in auto/config.log if it exists.
|
|
8999
|
|
9000 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
9001 for ac_option
|
|
9002 do
|
|
9003 case "\$ac_option" in
|
|
9004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
9005 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
9006 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
9007 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
9008 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|
9009 exit 0 ;;
|
|
9010 -help | --help | --hel | --he | --h)
|
|
9011 echo "\$ac_cs_usage"; exit 0 ;;
|
|
9012 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
9013 esac
|
|
9014 done
|
|
9015
|
|
9016 ac_given_srcdir=$srcdir
|
|
9017
|
|
9018 trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
9019 EOF
|
|
9020 cat >> $CONFIG_STATUS <<EOF
|
|
9021
|
|
9022 # Protect against being on the right side of a sed subst in config.status.
|
|
9023 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
9024 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
9025 $ac_vpsub
|
|
9026 $extrasub
|
|
9027 s%@SHELL@%$SHELL%g
|
|
9028 s%@CFLAGS@%$CFLAGS%g
|
|
9029 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
9030 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
9031 s%@FFLAGS@%$FFLAGS%g
|
|
9032 s%@DEFS@%$DEFS%g
|
|
9033 s%@LDFLAGS@%$LDFLAGS%g
|
|
9034 s%@LIBS@%$LIBS%g
|
|
9035 s%@exec_prefix@%$exec_prefix%g
|
|
9036 s%@prefix@%$prefix%g
|
|
9037 s%@program_transform_name@%$program_transform_name%g
|
|
9038 s%@bindir@%$bindir%g
|
|
9039 s%@sbindir@%$sbindir%g
|
|
9040 s%@libexecdir@%$libexecdir%g
|
|
9041 s%@datadir@%$datadir%g
|
|
9042 s%@sysconfdir@%$sysconfdir%g
|
|
9043 s%@sharedstatedir@%$sharedstatedir%g
|
|
9044 s%@localstatedir@%$localstatedir%g
|
|
9045 s%@libdir@%$libdir%g
|
|
9046 s%@includedir@%$includedir%g
|
|
9047 s%@oldincludedir@%$oldincludedir%g
|
|
9048 s%@infodir@%$infodir%g
|
|
9049 s%@mandir@%$mandir%g
|
|
9050 s%@SET_MAKE@%$SET_MAKE%g
|
|
9051 s%@CC@%$CC%g
|
|
9052 s%@CPP@%$CPP%g
|
|
9053 s%@AWK@%$AWK%g
|
|
9054 s%@STRIP@%$STRIP%g
|
|
9055 s%@EXEEXT@%$EXEEXT%g
|
|
9056 s%@CPP_MM@%$CPP_MM%g
|
|
9057 s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g
|
|
9058 s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g
|
|
9059 s%@VIMNAME@%$VIMNAME%g
|
|
9060 s%@EXNAME@%$EXNAME%g
|
|
9061 s%@VIEWNAME@%$VIEWNAME%g
|
|
9062 s%@line_break@%$line_break%g
|
|
9063 s%@dovimdiff@%$dovimdiff%g
|
|
9064 s%@dogvimdiff@%$dogvimdiff%g
|
|
9065 s%@compiledby@%$compiledby%g
|
14
|
9066 s%@vi_cv_path_mzscheme@%$vi_cv_path_mzscheme%g
|
|
9067 s%@MZSCHEME_SRC@%$MZSCHEME_SRC%g
|
|
9068 s%@MZSCHEME_OBJ@%$MZSCHEME_OBJ%g
|
|
9069 s%@MZSCHEME_PRO@%$MZSCHEME_PRO%g
|
|
9070 s%@MZSCHEME_LIBS@%$MZSCHEME_LIBS%g
|
|
9071 s%@MZSCHEME_CFLAGS@%$MZSCHEME_CFLAGS%g
|
7
|
9072 s%@vi_cv_path_perl@%$vi_cv_path_perl%g
|
|
9073 s%@vi_cv_perllib@%$vi_cv_perllib%g
|
|
9074 s%@shrpenv@%$shrpenv%g
|
|
9075 s%@PERL_SRC@%$PERL_SRC%g
|
|
9076 s%@PERL_OBJ@%$PERL_OBJ%g
|
|
9077 s%@PERL_PRO@%$PERL_PRO%g
|
|
9078 s%@PERL_CFLAGS@%$PERL_CFLAGS%g
|
|
9079 s%@PERL_LIBS@%$PERL_LIBS%g
|
|
9080 s%@vi_cv_path_python@%$vi_cv_path_python%g
|
|
9081 s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g
|
|
9082 s%@PYTHON_LIBS@%$PYTHON_LIBS%g
|
|
9083 s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g
|
|
9084 s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g
|
|
9085 s%@PYTHON_SRC@%$PYTHON_SRC%g
|
|
9086 s%@PYTHON_OBJ@%$PYTHON_OBJ%g
|
|
9087 s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g
|
|
9088 s%@TCL_SRC@%$TCL_SRC%g
|
|
9089 s%@TCL_OBJ@%$TCL_OBJ%g
|
|
9090 s%@TCL_PRO@%$TCL_PRO%g
|
|
9091 s%@TCL_CFLAGS@%$TCL_CFLAGS%g
|
|
9092 s%@TCL_LIBS@%$TCL_LIBS%g
|
|
9093 s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g
|
|
9094 s%@RUBY_SRC@%$RUBY_SRC%g
|
|
9095 s%@RUBY_OBJ@%$RUBY_OBJ%g
|
|
9096 s%@RUBY_PRO@%$RUBY_PRO%g
|
|
9097 s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g
|
|
9098 s%@RUBY_LIBS@%$RUBY_LIBS%g
|
|
9099 s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g
|
|
9100 s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g
|
|
9101 s%@NETBEANS_SRC@%$NETBEANS_SRC%g
|
|
9102 s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g
|
|
9103 s%@SNIFF_SRC@%$SNIFF_SRC%g
|
|
9104 s%@SNIFF_OBJ@%$SNIFF_OBJ%g
|
|
9105 s%@xmkmfpath@%$xmkmfpath%g
|
|
9106 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
9107 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
9108 s%@X_LIBS@%$X_LIBS%g
|
|
9109 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
|
9110 s%@X_LIB@%$X_LIB%g
|
11
|
9111 s%@MOC@%$MOC%g
|
|
9112 s%@KDE_CONFIG@%$KDE_CONFIG%g
|
|
9113 s%@KDE_LIBS@%$KDE_LIBS%g
|
|
9114 s%@KDE_INCLUDES@%$KDE_INCLUDES%g
|
|
9115 s%@KDE_PREFIX@%$KDE_PREFIX%g
|
|
9116 s%@QT_LIBS@%$QT_LIBS%g
|
|
9117 s%@QT_INCLUDES@%$QT_INCLUDES%g
|
|
9118 s%@ROOTQT@%$ROOTQT%g
|
7
|
9119 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
|
9120 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
|
|
9121 s%@PKG_CONFIG@%$PKG_CONFIG%g
|
|
9122 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
|
|
9123 s%@GTK_LIBS@%$GTK_LIBS%g
|
|
9124 s%@GTK_LIBNAME@%$GTK_LIBNAME%g
|
|
9125 s%@GNOME_LIBS@%$GNOME_LIBS%g
|
|
9126 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
|
|
9127 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
|
|
9128 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
|
|
9129 s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g
|
|
9130 s%@NARROW_PROTO@%$NARROW_PROTO%g
|
|
9131 s%@GUI_INC_LOC@%$GUI_INC_LOC%g
|
|
9132 s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g
|
|
9133 s%@GUITYPE@%$GUITYPE%g
|
|
9134 s%@GUI_X_LIBS@%$GUI_X_LIBS%g
|
|
9135 s%@HANGULIN_SRC@%$HANGULIN_SRC%g
|
|
9136 s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g
|
|
9137 s%@TAGPRG@%$TAGPRG%g
|
|
9138 s%@MSGFMT@%$MSGFMT%g
|
|
9139 s%@MAKEMO@%$MAKEMO%g
|
|
9140
|
|
9141 CEOF
|
|
9142 EOF
|
|
9143
|
|
9144 cat >> $CONFIG_STATUS <<\EOF
|
|
9145
|
|
9146 # Split the substitutions into bite-sized pieces for seds with
|
|
9147 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
9148 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
9149 ac_file=1 # Number of current file.
|
|
9150 ac_beg=1 # First line for current file.
|
|
9151 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
9152 ac_more_lines=:
|
|
9153 ac_sed_cmds=""
|
|
9154 while $ac_more_lines; do
|
|
9155 if test $ac_beg -gt 1; then
|
|
9156 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
9157 else
|
|
9158 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
9159 fi
|
|
9160 if test ! -s conftest.s$ac_file; then
|
|
9161 ac_more_lines=false
|
|
9162 rm -f conftest.s$ac_file
|
|
9163 else
|
|
9164 if test -z "$ac_sed_cmds"; then
|
|
9165 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
9166 else
|
|
9167 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
9168 fi
|
|
9169 ac_file=`expr $ac_file + 1`
|
|
9170 ac_beg=$ac_end
|
|
9171 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
9172 fi
|
|
9173 done
|
|
9174 if test -z "$ac_sed_cmds"; then
|
|
9175 ac_sed_cmds=cat
|
|
9176 fi
|
|
9177 EOF
|
|
9178
|
|
9179 cat >> $CONFIG_STATUS <<EOF
|
|
9180
|
|
9181 CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"}
|
|
9182 EOF
|
|
9183 cat >> $CONFIG_STATUS <<\EOF
|
|
9184 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
9185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
9186 case "$ac_file" in
|
|
9187 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
9188 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
9189 *) ac_file_in="${ac_file}.in" ;;
|
|
9190 esac
|
|
9191
|
|
9192 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
9193
|
|
9194 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
9195 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
9196 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
9197 # The file is in a subdirectory.
|
|
9198 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
9199 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
9200 # A "../" for each directory in $ac_dir_suffix.
|
|
9201 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
9202 else
|
|
9203 ac_dir_suffix= ac_dots=
|
|
9204 fi
|
|
9205
|
|
9206 case "$ac_given_srcdir" in
|
|
9207 .) srcdir=.
|
|
9208 if test -z "$ac_dots"; then top_srcdir=.
|
|
9209 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
9210 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
9211 *) # Relative path.
|
|
9212 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
9213 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
9214 esac
|
|
9215
|
|
9216
|
|
9217 echo creating "$ac_file"
|
|
9218 rm -f "$ac_file"
|
|
9219 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
9220 case "$ac_file" in
|
|
9221 *Makefile*) ac_comsub="1i\\
|
|
9222 # $configure_input" ;;
|
|
9223 *) ac_comsub= ;;
|
|
9224 esac
|
|
9225
|
|
9226 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
9227 sed -e "$ac_comsub
|
|
9228 s%@configure_input@%$configure_input%g
|
|
9229 s%@srcdir@%$srcdir%g
|
|
9230 s%@top_srcdir@%$top_srcdir%g
|
|
9231 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
9232 fi; done
|
|
9233 rm -f conftest.s*
|
|
9234
|
|
9235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
9236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
9237 #
|
|
9238 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
9239 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
9240 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
9241 ac_dC='\3'
|
|
9242 ac_dD='%g'
|
|
9243 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
9244 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
9245 ac_uB='\([ ]\)%\1#\2define\3'
|
|
9246 ac_uC=' '
|
|
9247 ac_uD='\4%g'
|
|
9248 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
9249 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
9250 ac_eB='$%\1#\2define\3'
|
|
9251 ac_eC=' '
|
|
9252 ac_eD='%g'
|
|
9253
|
|
9254 if test "${CONFIG_HEADERS+set}" != set; then
|
|
9255 EOF
|
|
9256 cat >> $CONFIG_STATUS <<EOF
|
|
9257 CONFIG_HEADERS="auto/config.h:config.h.in"
|
|
9258 EOF
|
|
9259 cat >> $CONFIG_STATUS <<\EOF
|
|
9260 fi
|
|
9261 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
9262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
9263 case "$ac_file" in
|
|
9264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
9265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
9266 *) ac_file_in="${ac_file}.in" ;;
|
|
9267 esac
|
|
9268
|
|
9269 echo creating $ac_file
|
|
9270
|
|
9271 rm -f conftest.frag conftest.in conftest.out
|
|
9272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
9273 cat $ac_file_inputs > conftest.in
|
|
9274
|
|
9275 EOF
|
|
9276
|
|
9277 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
9278 # the proper values into config.h.in to produce config.h. And first:
|
|
9279 # Protect against being on the right side of a sed subst in config.status.
|
|
9280 # Protect against being in an unquoted here document in config.status.
|
|
9281 rm -f conftest.vals
|
|
9282 cat > conftest.hdr <<\EOF
|
|
9283 s/[\\&%]/\\&/g
|
|
9284 s%[\\$`]%\\&%g
|
|
9285 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
9286 s%ac_d%ac_u%gp
|
|
9287 s%ac_u%ac_e%gp
|
|
9288 EOF
|
|
9289 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
9290 rm -f conftest.hdr
|
|
9291
|
|
9292 # This sed command replaces #undef with comments. This is necessary, for
|
|
9293 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
9294 # on some systems where configure will not decide to define it.
|
|
9295 cat >> conftest.vals <<\EOF
|
|
9296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
9297 EOF
|
|
9298
|
|
9299 # Break up conftest.vals because some shells have a limit on
|
|
9300 # the size of here documents, and old seds have small limits too.
|
|
9301
|
|
9302 rm -f conftest.tail
|
|
9303 while :
|
|
9304 do
|
|
9305 ac_lines=`grep -c . conftest.vals`
|
|
9306 # grep -c gives empty output for an empty file on some AIX systems.
|
|
9307 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
9308 # Write a limited-size here document to conftest.frag.
|
|
9309 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
9310 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
9311 echo 'CEOF
|
|
9312 sed -f conftest.frag conftest.in > conftest.out
|
|
9313 rm -f conftest.in
|
|
9314 mv conftest.out conftest.in
|
|
9315 ' >> $CONFIG_STATUS
|
|
9316 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
9317 rm -f conftest.vals
|
|
9318 mv conftest.tail conftest.vals
|
|
9319 done
|
|
9320 rm -f conftest.vals
|
|
9321
|
|
9322 cat >> $CONFIG_STATUS <<\EOF
|
|
9323 rm -f conftest.frag conftest.h
|
|
9324 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
9325 cat conftest.in >> conftest.h
|
|
9326 rm -f conftest.in
|
|
9327 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
9328 echo "$ac_file is unchanged"
|
|
9329 rm -f conftest.h
|
|
9330 else
|
|
9331 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
9332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
9333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
9334 # The file is in a subdirectory.
|
|
9335 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
9336 fi
|
|
9337 rm -f $ac_file
|
|
9338 mv conftest.h $ac_file
|
|
9339 fi
|
|
9340 fi; done
|
|
9341
|
|
9342 EOF
|
|
9343 cat >> $CONFIG_STATUS <<EOF
|
|
9344
|
|
9345 EOF
|
|
9346 cat >> $CONFIG_STATUS <<\EOF
|
|
9347
|
|
9348 exit 0
|
|
9349 EOF
|
|
9350 chmod +x $CONFIG_STATUS
|
|
9351 rm -fr confdefs* $ac_clean_files
|
|
9352 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
9353
|
|
9354
|