improved doc
[gpiv.git] / configure
blobf36ceb6a8abe4c92c9f26c75fb43a13f83bcafc7
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnome-includes Specify location of GNOME headers"
16 ac_help="$ac_help
17 --with-gnome-libs Specify location of GNOME libs"
18 ac_help="$ac_help
19 --with-gnome Specify prefix for GNOME files"
20 ac_help="$ac_help
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
25 ac_help="$ac_help
26 --enable-iso-c Try to warn if code is not ISO C "
27 ac_help="$ac_help
28 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
29 ac_help="$ac_help
30 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
31 ac_help="$ac_help
32 --disable-gtktest Do not try to compile and run a test GTK program"
33 ac_help="$ac_help
34 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
35 ac_help="$ac_help
36 --disable-nls do not use Native Language Support"
37 ac_help="$ac_help
38 --with-included-gettext use the GNU gettext library included here"
39 ac_help="$ac_help
40 --disable-dac disable data acquisition module"
41 ac_help="$ac_help
42 --enable-rta=RTA_DIR place where the RTAI code resides
43 (default /usr/realtime)"
44 ac_help="$ac_help
45 --enable-k=K_DIR place where the installed kernel \
46 headers resides (default /usr/src/kernel-headers-2.4.27-adeos)"
47 ac_help="$ac_help
48 --enable-img-width=WIDTH maximum image width to \
49 be used (default SVGA)"
50 ac_help="$ac_help
51 --enable-img-height=HEIGHT maximum image height to \
52 be used (default SVGA)"
53 ac_help="$ac_help
54 --enable-debug debug version (more verbose)"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
59 build=NONE
60 cache_file=./config.cache
61 exec_prefix=NONE
62 host=NONE
63 no_create=
64 nonopt=NONE
65 no_recursion=
66 prefix=NONE
67 program_prefix=NONE
68 program_suffix=NONE
69 program_transform_name=s,x,x,
70 silent=
71 site=
72 srcdir=
73 target=NONE
74 verbose=
75 x_includes=NONE
76 x_libraries=NONE
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
91 subdirs=
92 MFLAGS= MAKEFLAGS=
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
95 ac_max_here_lines=12
97 ac_prev=
98 for ac_option
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
104 ac_prev=
105 continue
108 case "$ac_option" in
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 *) ac_optarg= ;;
111 esac
113 # Accept the important Cygnus configure options, so we can diagnose typos.
115 case "$ac_option" in
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 ac_prev=bindir ;;
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
123 ac_prev=build ;;
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
127 -cache-file | --cache-file | --cache-fil | --cache-fi \
128 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129 ac_prev=cache_file ;;
130 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132 cache_file="$ac_optarg" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 ac_prev=datadir ;;
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 | --da=*)
138 datadir="$ac_optarg" ;;
140 -disable-* | --disable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* | --enable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 case "$ac_option" in
157 *=*) ;;
158 *) ac_optarg=yes ;;
159 esac
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164 | --exec | --exe | --ex)
165 ac_prev=exec_prefix ;;
166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168 | --exec=* | --exe=* | --ex=*)
169 exec_prefix="$ac_optarg" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
173 with_gas=yes ;;
175 -help | --help | --hel | --he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
178 cat << EOF
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
181 Configuration:
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
189 [$ac_default_prefix]
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 [same as prefix]
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
196 [PREFIX/share]
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 [PREFIX/com]
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
212 cat << EOF
213 Host type:
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
228 exit 0 ;;
230 -host | --host | --hos | --ho)
231 ac_prev=host ;;
232 -host=* | --host=* | --hos=* | --ho=*)
233 host="$ac_optarg" ;;
235 -includedir | --includedir | --includedi | --included | --include \
236 | --includ | --inclu | --incl | --inc)
237 ac_prev=includedir ;;
238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239 | --includ=* | --inclu=* | --incl=* | --inc=*)
240 includedir="$ac_optarg" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 ac_prev=infodir ;;
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
248 ac_prev=libdir ;;
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253 | --libexe | --libex | --libe)
254 ac_prev=libexecdir ;;
255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256 | --libexe=* | --libex=* | --libe=*)
257 libexecdir="$ac_optarg" ;;
259 -localstatedir | --localstatedir | --localstatedi | --localstated \
260 | --localstate | --localstat | --localsta | --localst \
261 | --locals | --local | --loca | --loc | --lo)
262 ac_prev=localstatedir ;;
263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266 localstatedir="$ac_optarg" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 ac_prev=mandir ;;
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
273 -nfp | --nfp | --nf)
274 # Obsolete; use --without-fp.
275 with_fp=no ;;
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c)
279 no_create=yes ;;
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283 no_recursion=yes ;;
285 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287 | --oldin | --oldi | --old | --ol | --o)
288 ac_prev=oldincludedir ;;
289 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292 oldincludedir="$ac_optarg" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 ac_prev=prefix ;;
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
299 -program-prefix | --program-prefix | --program-prefi | --program-pref \
300 | --program-pre | --program-pr | --program-p)
301 ac_prev=program_prefix ;;
302 -program-prefix=* | --program-prefix=* | --program-prefi=* \
303 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304 program_prefix="$ac_optarg" ;;
306 -program-suffix | --program-suffix | --program-suffi | --program-suff \
307 | --program-suf | --program-su | --program-s)
308 ac_prev=program_suffix ;;
309 -program-suffix=* | --program-suffix=* | --program-suffi=* \
310 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311 program_suffix="$ac_optarg" ;;
313 -program-transform-name | --program-transform-name \
314 | --program-transform-nam | --program-transform-na \
315 | --program-transform-n | --program-transform- \
316 | --program-transform | --program-transfor \
317 | --program-transfo | --program-transf \
318 | --program-trans | --program-tran \
319 | --progr-tra | --program-tr | --program-t)
320 ac_prev=program_transform_name ;;
321 -program-transform-name=* | --program-transform-name=* \
322 | --program-transform-nam=* | --program-transform-na=* \
323 | --program-transform-n=* | --program-transform-=* \
324 | --program-transform=* | --program-transfor=* \
325 | --program-transfo=* | --program-transf=* \
326 | --program-trans=* | --program-tran=* \
327 | --progr-tra=* | --program-tr=* | --program-t=*)
328 program_transform_name="$ac_optarg" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
332 silent=yes ;;
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 ac_prev=sbindir ;;
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 | --sbi=* | --sb=*)
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
343 | --sha | --sh)
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 | --sha=* | --sh=*)
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
352 ac_prev=site ;;
353 -site=* | --site=* | --sit=*)
354 site="$ac_optarg" ;;
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 ac_prev=srcdir ;;
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362 | --syscon | --sysco | --sysc | --sys | --sy)
363 ac_prev=sysconfdir ;;
364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366 sysconfdir="$ac_optarg" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
369 ac_prev=target ;;
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 verbose=yes ;;
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
378 exit 0 ;;
380 -with-* | --with-*)
381 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 case "$ac_option" in
388 *=*) ;;
389 *) ac_optarg=yes ;;
390 esac
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* | --without-*)
394 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
402 --x)
403 # Obsolete; use --with-x.
404 with_x=yes ;;
406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407 | --x-incl | --x-inc | --x-in | --x-i)
408 ac_prev=x_includes ;;
409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411 x_includes="$ac_optarg" ;;
413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415 ac_prev=x_libraries ;;
416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418 x_libraries="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
430 nonopt="$ac_option"
433 esac
434 done
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
443 # 0 standard input
444 # 1 file creation
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
451 exec 6>/dev/null
452 else
453 exec 6>&1
455 exec 5>./config.log
457 echo "\
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
460 " 1>&5
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
464 ac_configure_args=
465 for ac_arg
467 case "$ac_arg" in
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c) ;;
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475 esac
476 done
478 # NLS nuisances.
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 echo > confdefs.h
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=configure.in
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
501 ac_prog=$0
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 srcdir=$ac_confdir
505 if test ! -r $srcdir/$ac_unique_file; then
506 srcdir=..
508 else
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 else
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 else
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
531 . "$ac_site_file"
533 done
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
537 . $cache_file
538 else
539 echo "creating cache $cache_file"
540 > $cache_file
543 ac_ext=c
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
550 ac_exeext=
551 ac_objext=o
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555 ac_n= ac_c='
556 ' ac_t=' '
557 else
558 ac_n=-n ac_c= ac_t=
560 else
561 ac_n= ac_c='\c' ac_t=
565 ac_aux_dir=
566 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
567 if test -f $ac_dir/install-sh; then
568 ac_aux_dir=$ac_dir
569 ac_install_sh="$ac_aux_dir/install-sh -c"
570 break
571 elif test -f $ac_dir/install.sh; then
572 ac_aux_dir=$ac_dir
573 ac_install_sh="$ac_aux_dir/install.sh -c"
574 break
576 done
577 if test -z "$ac_aux_dir"; then
578 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
580 ac_config_guess=$ac_aux_dir/config.guess
581 ac_config_sub=$ac_aux_dir/config.sub
582 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
584 # Find a good install program. We prefer a C program (faster),
585 # so one script is as good as another. But avoid the broken or
586 # incompatible versions:
587 # SysV /etc/install, /usr/sbin/install
588 # SunOS /usr/etc/install
589 # IRIX /sbin/install
590 # AIX /bin/install
591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
594 # ./install, which can be erroneously created by make from ./install.sh.
595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
596 echo "configure:597: checking for a BSD compatible install" >&5
597 if test -z "$INSTALL"; then
598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
600 else
601 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
602 for ac_dir in $PATH; do
603 # Account for people who put trailing slashes in PATH elements.
604 case "$ac_dir/" in
605 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
607 # OSF1 and SCO ODT 3.0 have their own names for install.
608 # Don't use installbsd from OSF since it installs stuff as root
609 # by default.
610 for ac_prog in ginstall scoinst install; do
611 if test -f $ac_dir/$ac_prog; then
612 if test $ac_prog = install &&
613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
614 # AIX install. It has an incompatible calling convention.
616 else
617 ac_cv_path_install="$ac_dir/$ac_prog -c"
618 break 2
621 done
623 esac
624 done
625 IFS="$ac_save_IFS"
628 if test "${ac_cv_path_install+set}" = set; then
629 INSTALL="$ac_cv_path_install"
630 else
631 # As a last resort, use the slow shell script. We don't cache a
632 # path for INSTALL within a source directory, because that will
633 # break other packages using the cache if that directory is
634 # removed, or if the path is relative.
635 INSTALL="$ac_install_sh"
638 echo "$ac_t""$INSTALL" 1>&6
640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
641 # It thinks the first close brace ends the variable substitution.
642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
648 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
649 echo "configure:650: checking whether build environment is sane" >&5
650 # Just in case
651 sleep 1
652 echo timestamp > conftestfile
653 # Do `set' in a subshell so we don't clobber the current shell's
654 # arguments. Must try -L first in case configure is actually a
655 # symlink; some systems play weird games with the mod time of symlinks
656 # (eg FreeBSD returns the mod time of the symlink's containing
657 # directory).
658 if (
659 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
660 if test "$*" = "X"; then
661 # -L didn't work.
662 set X `ls -t $srcdir/configure conftestfile`
664 if test "$*" != "X $srcdir/configure conftestfile" \
665 && test "$*" != "X conftestfile $srcdir/configure"; then
667 # If neither matched, then we have a broken ls. This can happen
668 # if, for instance, CONFIG_SHELL is bash and it inherits a
669 # broken ls alias from the environment. This has actually
670 # happened. Such a system could not be considered "sane".
671 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
672 alias in your environment" 1>&2; exit 1; }
675 test "$2" = conftestfile
677 then
678 # Ok.
680 else
681 { echo "configure: error: newly created file is older than distributed files!
682 Check your system clock" 1>&2; exit 1; }
684 rm -f conftest*
685 echo "$ac_t""yes" 1>&6
686 if test "$program_transform_name" = s,x,x,; then
687 program_transform_name=
688 else
689 # Double any \ or $. echo might interpret backslashes.
690 cat <<\EOF_SED > conftestsed
691 s,\\,\\\\,g; s,\$,$$,g
692 EOF_SED
693 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
694 rm -f conftestsed
696 test "$program_prefix" != NONE &&
697 program_transform_name="s,^,${program_prefix},; $program_transform_name"
698 # Use a double $ so make ignores it.
699 test "$program_suffix" != NONE &&
700 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
702 # sed with no file args requires a program.
703 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
705 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
706 echo "configure:707: checking whether ${MAKE-make} sets \${MAKE}" >&5
707 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
708 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710 else
711 cat > conftestmake <<\EOF
712 all:
713 @echo 'ac_maketemp="${MAKE}"'
715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
716 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
717 if test -n "$ac_maketemp"; then
718 eval ac_cv_prog_make_${ac_make}_set=yes
719 else
720 eval ac_cv_prog_make_${ac_make}_set=no
722 rm -f conftestmake
724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
725 echo "$ac_t""yes" 1>&6
726 SET_MAKE=
727 else
728 echo "$ac_t""no" 1>&6
729 SET_MAKE="MAKE=${MAKE-make}"
733 PACKAGE=gpiv
735 VERSION=0.2.0
737 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
738 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
740 cat >> confdefs.h <<EOF
741 #define PACKAGE "$PACKAGE"
744 cat >> confdefs.h <<EOF
745 #define VERSION "$VERSION"
750 missing_dir=`cd $ac_aux_dir && pwd`
751 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
752 echo "configure:753: checking for working aclocal" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
757 ACLOCAL=aclocal
758 echo "$ac_t""found" 1>&6
759 else
760 ACLOCAL="$missing_dir/missing aclocal"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoconf" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
770 AUTOCONF=autoconf
771 echo "$ac_t""found" 1>&6
772 else
773 AUTOCONF="$missing_dir/missing autoconf"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working automake""... $ac_c" 1>&6
778 echo "configure:779: checking for working automake" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (automake --version) < /dev/null > /dev/null 2>&1; then
783 AUTOMAKE=automake
784 echo "$ac_t""found" 1>&6
785 else
786 AUTOMAKE="$missing_dir/missing automake"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
791 echo "configure:792: checking for working autoheader" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
796 AUTOHEADER=autoheader
797 echo "$ac_t""found" 1>&6
798 else
799 AUTOHEADER="$missing_dir/missing autoheader"
800 echo "$ac_t""missing" 1>&6
803 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
804 echo "configure:805: checking for working makeinfo" >&5
805 # Run test in a subshell; some versions of sh will print an error if
806 # an executable is not found, even if stderr is redirected.
807 # Redirect stdin to placate older versions of autoconf. Sigh.
808 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
809 MAKEINFO=makeinfo
810 echo "$ac_t""found" 1>&6
811 else
812 MAKEINFO="$missing_dir/missing makeinfo"
813 echo "$ac_t""missing" 1>&6
824 if test x = y; then
825 INSIDE_GNOME_COMMON_TRUE=
826 INSIDE_GNOME_COMMON_FALSE='#'
827 else
828 INSIDE_GNOME_COMMON_TRUE='#'
829 INSIDE_GNOME_COMMON_FALSE=
832 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
834 for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
847 # Check whether --with-gnome-includes or --without-gnome-includes was given.
848 if test "${with_gnome_includes+set}" = set; then
849 withval="$with_gnome_includes"
851 CFLAGS="$CFLAGS -I$withval"
856 # Check whether --with-gnome-libs or --without-gnome-libs was given.
857 if test "${with_gnome_libs+set}" = set; then
858 withval="$with_gnome_libs"
860 LDFLAGS="$LDFLAGS -L$withval"
861 gnome_prefix=$withval
866 # Check whether --with-gnome or --without-gnome was given.
867 if test "${with_gnome+set}" = set; then
868 withval="$with_gnome"
869 if test x$withval = xyes; then
870 want_gnome=yes
872 else
873 if test "x$withval" = xno; then
874 want_gnome=no
875 else
876 want_gnome=yes
877 LDFLAGS="$LDFLAGS -L$withval/lib"
878 CFLAGS="$CFLAGS -I$withval/include"
879 gnome_prefix=$withval/lib
882 else
883 want_gnome=yes
887 if test "x$want_gnome" = xyes; then
889 # Extract the first word of "gnome-config", so it can be a program name with args.
890 set dummy gnome-config; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 case "$GNOME_CONFIG" in
898 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
900 ?:/*)
901 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
905 ac_dummy="$PATH"
906 for ac_dir in $ac_dummy; do
907 test -z "$ac_dir" && ac_dir=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
910 break
912 done
913 IFS="$ac_save_ifs"
914 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
916 esac
918 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
919 if test -n "$GNOME_CONFIG"; then
920 echo "$ac_t""$GNOME_CONFIG" 1>&6
921 else
922 echo "$ac_t""no" 1>&6
925 if test "$GNOME_CONFIG" = "no"; then
926 no_gnome_config="yes"
927 else
928 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
929 echo "configure:930: checking if $GNOME_CONFIG works" >&5
930 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
931 echo "$ac_t""yes" 1>&6
934 # Extract the first word of "orbit-config", so it can be a program name with args.
935 set dummy orbit-config; ac_word=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
940 else
941 case "$ORBIT_CONFIG" in
943 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
945 ?:/*)
946 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 ac_dummy="$PATH"
951 for ac_dir in $ac_dummy; do
952 test -z "$ac_dir" && ac_dir=.
953 if test -f $ac_dir/$ac_word; then
954 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
955 break
957 done
958 IFS="$ac_save_ifs"
959 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
961 esac
963 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
964 if test -n "$ORBIT_CONFIG"; then
965 echo "$ac_t""$ORBIT_CONFIG" 1>&6
966 else
967 echo "$ac_t""no" 1>&6
970 # Extract the first word of "orbit-idl", so it can be a program name with args.
971 set dummy orbit-idl; ac_word=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 case "$ORBIT_IDL" in
979 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
981 ?:/*)
982 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
986 ac_dummy="$PATH"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
991 break
993 done
994 IFS="$ac_save_ifs"
995 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
997 esac
999 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
1000 if test -n "$ORBIT_IDL"; then
1001 echo "$ac_t""$ORBIT_IDL" 1>&6
1002 else
1003 echo "$ac_t""no" 1>&6
1006 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working ORBit environment" >&5
1008 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1012 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
1013 gnome_cv_orbit_found=no
1014 else
1015 gnome_cv_orbit_found=yes
1020 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1023 if test x$gnome_cv_orbit_found = xyes; then
1024 HAVE_ORBIT_TRUE=
1025 HAVE_ORBIT_FALSE='#'
1026 else
1027 HAVE_ORBIT_TRUE='#'
1028 HAVE_ORBIT_FALSE=
1030 if test x$gnome_cv_orbit_found = xyes; then
1032 ORBIT_CFLAGS=`orbit-config --cflags client server`
1033 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
1036 else
1037 if test xfail = xfailure; then
1038 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1042 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1043 echo "configure:1044: checking for gnorba libraries" >&5
1044 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1048 gnome_cv_gnorba_found=no
1049 if test x$gnome_cv_orbit_found = xyes; then
1050 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1051 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1052 if test -n "$GNORBA_LIBS"; then
1053 gnome_cv_gnorba_found=yes
1059 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1062 if test x$gnome_cv_gnorba_found = xyes; then
1063 HAVE_GNORBA_TRUE=
1064 HAVE_GNORBA_FALSE='#'
1065 else
1066 HAVE_GNORBA_TRUE='#'
1067 HAVE_GNORBA_FALSE=
1069 if test x$gnome_cv_orbit_found = xyes; then
1071 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1072 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1075 else
1076 if test xfail = xfailure; then
1077 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1081 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
1082 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
1083 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1084 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1085 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
1086 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1087 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1089 else
1090 echo "$ac_t""no" 1>&6
1091 no_gnome_config="yes"
1095 if test x$exec_prefix = xNONE; then
1096 if test x$prefix = xNONE; then
1097 gnome_prefix=$ac_default_prefix/lib
1098 else
1099 gnome_prefix=$prefix/lib
1101 else
1102 gnome_prefix=`eval echo \`echo $libdir\``
1105 if test "$no_gnome_config" = "yes"; then
1106 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1107 echo "configure:1108: checking for gnomeConf.sh file in $gnome_prefix" >&5
1108 if test -f $gnome_prefix/gnomeConf.sh; then
1109 echo "$ac_t""found" 1>&6
1110 echo "loading gnome configuration from" \
1111 "$gnome_prefix/gnomeConf.sh"
1112 . $gnome_prefix/gnomeConf.sh
1114 else
1115 echo "$ac_t""not found" 1>&6
1116 if test xfail = xfail; then
1117 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1123 if test -n ""; then
1124 n=""
1125 for i in $n; do
1126 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1127 echo "configure:1128: checking extra library \"$i\"" >&5
1128 case $i in
1129 applets)
1131 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
1132 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1133 docklets)
1135 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
1136 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1137 capplet)
1139 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
1140 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1142 echo "$ac_t""unknown library" 1>&6
1143 esac
1144 done
1149 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1150 echo "configure:1151: checking for strerror in -lcposix" >&5
1151 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 ac_save_LIBS="$LIBS"
1156 LIBS="-lcposix $LIBS"
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160 /* Override any gcc2 internal prototype to avoid an error. */
1161 /* We use char because int might match the return type of a gcc2
1162 builtin and then its argument prototype would still apply. */
1163 char strerror();
1165 int main() {
1166 strerror()
1167 ; return 0; }
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1170 rm -rf conftest*
1171 eval "ac_cv_lib_$ac_lib_var=yes"
1172 else
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1175 rm -rf conftest*
1176 eval "ac_cv_lib_$ac_lib_var=no"
1178 rm -f conftest*
1179 LIBS="$ac_save_LIBS"
1182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1184 LIBS="$LIBS -lcposix"
1185 else
1186 echo "$ac_t""no" 1>&6
1191 # Extract the first word of "gcc", so it can be a program name with args.
1192 set dummy gcc; ac_word=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198 if test -n "$CC"; then
1199 ac_cv_prog_CC="$CC" # Let the user override the test.
1200 else
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 ac_dummy="$PATH"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_prog_CC="gcc"
1207 break
1209 done
1210 IFS="$ac_save_ifs"
1213 CC="$ac_cv_prog_CC"
1214 if test -n "$CC"; then
1215 echo "$ac_t""$CC" 1>&6
1216 else
1217 echo "$ac_t""no" 1>&6
1220 if test -z "$CC"; then
1221 # Extract the first word of "cc", so it can be a program name with args.
1222 set dummy cc; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228 if test -n "$CC"; then
1229 ac_cv_prog_CC="$CC" # Let the user override the test.
1230 else
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 ac_prog_rejected=no
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1238 ac_prog_rejected=yes
1239 continue
1241 ac_cv_prog_CC="cc"
1242 break
1244 done
1245 IFS="$ac_save_ifs"
1246 if test $ac_prog_rejected = yes; then
1247 # We found a bogon in the path, so make sure we never use it.
1248 set dummy $ac_cv_prog_CC
1249 shift
1250 if test $# -gt 0; then
1251 # We chose a different compiler from the bogus one.
1252 # However, it has the same basename, so the bogon will be chosen
1253 # first if we set CC to just the basename; use the full file name.
1254 shift
1255 set dummy "$ac_dir/$ac_word" "$@"
1256 shift
1257 ac_cv_prog_CC="$@"
1262 CC="$ac_cv_prog_CC"
1263 if test -n "$CC"; then
1264 echo "$ac_t""$CC" 1>&6
1265 else
1266 echo "$ac_t""no" 1>&6
1269 if test -z "$CC"; then
1270 case "`uname -s`" in
1271 *win32* | *WIN32*)
1272 # Extract the first word of "cl", so it can be a program name with args.
1273 set dummy cl; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 if test -n "$CC"; then
1280 ac_cv_prog_CC="$CC" # Let the user override the test.
1281 else
1282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1283 ac_dummy="$PATH"
1284 for ac_dir in $ac_dummy; do
1285 test -z "$ac_dir" && ac_dir=.
1286 if test -f $ac_dir/$ac_word; then
1287 ac_cv_prog_CC="cl"
1288 break
1290 done
1291 IFS="$ac_save_ifs"
1294 CC="$ac_cv_prog_CC"
1295 if test -n "$CC"; then
1296 echo "$ac_t""$CC" 1>&6
1297 else
1298 echo "$ac_t""no" 1>&6
1301 esac
1303 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1306 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1309 ac_ext=c
1310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1314 cross_compiling=$ac_cv_prog_cc_cross
1316 cat > conftest.$ac_ext << EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1321 main(){return(0);}
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324 ac_cv_prog_cc_works=yes
1325 # If we can't run a trivial program, we are probably using a cross compiler.
1326 if (./conftest; exit) 2>/dev/null; then
1327 ac_cv_prog_cc_cross=no
1328 else
1329 ac_cv_prog_cc_cross=yes
1331 else
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1334 ac_cv_prog_cc_works=no
1336 rm -fr conftest*
1337 ac_ext=c
1338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1339 ac_cpp='$CPP $CPPFLAGS'
1340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1342 cross_compiling=$ac_cv_prog_cc_cross
1344 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1345 if test $ac_cv_prog_cc_works = no; then
1346 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1348 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1349 echo "configure:1350: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1350 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1351 cross_compiling=$ac_cv_prog_cc_cross
1353 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1354 echo "configure:1355: checking whether we are using GNU C" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358 cat > conftest.c <<EOF
1359 #ifdef __GNUC__
1360 yes;
1361 #endif
1363 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1364 ac_cv_prog_gcc=yes
1365 else
1366 ac_cv_prog_gcc=no
1370 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1372 if test $ac_cv_prog_gcc = yes; then
1373 GCC=yes
1374 else
1375 GCC=
1378 ac_test_CFLAGS="${CFLAGS+set}"
1379 ac_save_CFLAGS="$CFLAGS"
1380 CFLAGS=
1381 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether ${CC-cc} accepts -g" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386 echo 'void f(){}' > conftest.c
1387 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1388 ac_cv_prog_cc_g=yes
1389 else
1390 ac_cv_prog_cc_g=no
1392 rm -f conftest*
1396 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1397 if test "$ac_test_CFLAGS" = set; then
1398 CFLAGS="$ac_save_CFLAGS"
1399 elif test $ac_cv_prog_cc_g = yes; then
1400 if test "$GCC" = yes; then
1401 CFLAGS="-g -O2"
1402 else
1403 CFLAGS="-g"
1405 else
1406 if test "$GCC" = yes; then
1407 CFLAGS="-O2"
1408 else
1409 CFLAGS=
1416 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1417 echo "configure:1418: checking for ${CC-cc} option to accept ANSI C" >&5
1418 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 am_cv_prog_cc_stdc=no
1422 ac_save_CC="$CC"
1423 # Don't try gcc -ansi; that turns off useful extensions and
1424 # breaks some systems' header files.
1425 # AIX -qlanglvl=ansi
1426 # Ultrix and OSF/1 -std1
1427 # HP-UX -Aa -D_HPUX_SOURCE
1428 # SVR4 -Xc -D__EXTENSIONS__
1429 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1431 CC="$ac_save_CC $ac_arg"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #include <stdarg.h>
1436 #include <stdio.h>
1437 #include <sys/types.h>
1438 #include <sys/stat.h>
1439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1440 struct buf { int x; };
1441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1442 static char *e (p, i)
1443 char **p;
1444 int i;
1446 return p[i];
1448 static char *f (char * (*g) (char **, int), char **p, ...)
1450 char *s;
1451 va_list v;
1452 va_start (v,p);
1453 s = g (p, va_arg (v,int));
1454 va_end (v);
1455 return s;
1457 int test (int i, double x);
1458 struct s1 {int (*f) (int a);};
1459 struct s2 {int (*f) (double a);};
1460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1461 int argc;
1462 char **argv;
1464 int main() {
1466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1468 ; return 0; }
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471 rm -rf conftest*
1472 am_cv_prog_cc_stdc="$ac_arg"; break
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 rm -f conftest*
1478 done
1479 CC="$ac_save_CC"
1483 if test -z "$am_cv_prog_cc_stdc"; then
1484 echo "$ac_t""none needed" 1>&6
1485 else
1486 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1488 case "x$am_cv_prog_cc_stdc" in
1489 x|xno) ;;
1490 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1491 esac
1493 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1494 echo "configure:1495: checking how to run the C preprocessor" >&5
1495 # On Suns, sometimes $CPP names a directory.
1496 if test -n "$CPP" && test -d "$CPP"; then
1497 CPP=
1499 if test -z "$CPP"; then
1500 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 # This must be in double quotes, not single quotes, because CPP may get
1504 # substituted into the Makefile and "${CC-cc}" will confuse make.
1505 CPP="${CC-cc} -E"
1506 # On the NeXT, cc -E runs the code through the compiler's parser,
1507 # not just through cpp.
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1511 #include <assert.h>
1512 Syntax Error
1514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1519 else
1520 echo "$ac_err" >&5
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1523 rm -rf conftest*
1524 CPP="${CC-cc} -E -traditional-cpp"
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #include <assert.h>
1529 Syntax Error
1531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1532 { (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1534 if test -z "$ac_err"; then
1536 else
1537 echo "$ac_err" >&5
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 CPP="${CC-cc} -nologo -E"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 #include <assert.h>
1546 Syntax Error
1548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1553 else
1554 echo "$ac_err" >&5
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 rm -rf conftest*
1558 CPP=/lib/cpp
1560 rm -f conftest*
1562 rm -f conftest*
1564 rm -f conftest*
1565 ac_cv_prog_CPP="$CPP"
1567 CPP="$ac_cv_prog_CPP"
1568 else
1569 ac_cv_prog_CPP="$CPP"
1571 echo "$ac_t""$CPP" 1>&6
1573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1574 echo "configure:1575: checking for ANSI C header files" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <stdlib.h>
1582 #include <stdarg.h>
1583 #include <string.h>
1584 #include <float.h>
1586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1589 if test -z "$ac_err"; then
1590 rm -rf conftest*
1591 ac_cv_header_stdc=yes
1592 else
1593 echo "$ac_err" >&5
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 ac_cv_header_stdc=no
1599 rm -f conftest*
1601 if test $ac_cv_header_stdc = yes; then
1602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <string.h>
1608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1609 egrep "memchr" >/dev/null 2>&1; then
1611 else
1612 rm -rf conftest*
1613 ac_cv_header_stdc=no
1615 rm -f conftest*
1619 if test $ac_cv_header_stdc = yes; then
1620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <stdlib.h>
1626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1627 egrep "free" >/dev/null 2>&1; then
1629 else
1630 rm -rf conftest*
1631 ac_cv_header_stdc=no
1633 rm -f conftest*
1637 if test $ac_cv_header_stdc = yes; then
1638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1639 if test "$cross_compiling" = yes; then
1641 else
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <ctype.h>
1646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1649 int main () { int i; for (i = 0; i < 256; i++)
1650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1651 exit (0); }
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1655 then
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -fr conftest*
1661 ac_cv_header_stdc=no
1663 rm -fr conftest*
1669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1670 if test $ac_cv_header_stdc = yes; then
1671 cat >> confdefs.h <<\EOF
1672 #define STDC_HEADERS 1
1677 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether to enable maintainer-specific portions of Makefiles" >&5
1679 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1680 if test "${enable_maintainer_mode+set}" = set; then
1681 enableval="$enable_maintainer_mode"
1682 USE_MAINTAINER_MODE=$enableval
1683 else
1684 USE_MAINTAINER_MODE=no
1687 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1690 if test $USE_MAINTAINER_MODE = yes; then
1691 MAINTAINER_MODE_TRUE=
1692 MAINTAINER_MODE_FALSE='#'
1693 else
1694 MAINTAINER_MODE_TRUE='#'
1695 MAINTAINER_MODE_FALSE=
1697 MAINT=$MAINTAINER_MODE_TRUE
1702 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1703 if test "${enable_compile_warnings+set}" = set; then
1704 enableval="$enable_compile_warnings"
1706 else
1707 enable_compile_warnings=minimum
1711 echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1712 echo "configure:1713: checking what warning flags to pass to the C compiler" >&5
1713 warnCFLAGS=
1714 if test "x$GCC" != xyes; then
1715 enable_compile_warnings=no
1718 if test "x$enable_compile_warnings" != "xno"; then
1719 if test "x$GCC" = "xyes"; then
1720 case " $CFLAGS " in
1721 *\ \ -Wall\ \ *) ;;
1722 *) warnCFLAGS="-Wall -Wunused" ;;
1723 esac
1725 ## -W is not all that useful. And it cannot be controlled
1726 ## with individual -Wno-xxx flags, unlike -Wall
1727 if test "x$enable_compile_warnings" = "xyes"; then
1728 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
1732 echo "$ac_t""$warnCFLAGS" 1>&6
1734 # Check whether --enable-iso-c or --disable-iso-c was given.
1735 if test "${enable_iso_c+set}" = set; then
1736 enableval="$enable_iso_c"
1738 else
1739 enable_iso_c=no
1743 echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking what language compliance flags to pass to the C compiler" >&5
1745 complCFLAGS=
1746 if test "x$enable_iso_c" != "xno"; then
1747 if test "x$GCC" = "xyes"; then
1748 case " $CFLAGS " in
1749 *\ \ -ansi\ \ *) ;;
1750 *) complCFLAGS="$complCFLAGS -ansi" ;;
1751 esac
1753 case " $CFLAGS " in
1754 *\ \ -pedantic\ \ *) ;;
1755 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1756 esac
1759 echo "$ac_t""$complCFLAGS" 1>&6
1760 if test "x$cflags_set" != "xyes"; then
1761 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1762 cflags_set=yes
1767 PTHREAD_LIB=""
1768 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1769 echo "configure:1770: checking for pthread_create in -lpthread" >&5
1770 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774 ac_save_LIBS="$LIBS"
1775 LIBS="-lpthread $LIBS"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1782 char pthread_create();
1784 int main() {
1785 pthread_create()
1786 ; return 0; }
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1789 rm -rf conftest*
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1791 else
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 rm -rf conftest*
1795 eval "ac_cv_lib_$ac_lib_var=no"
1797 rm -f conftest*
1798 LIBS="$ac_save_LIBS"
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 PTHREAD_LIB="-lpthread"
1804 else
1805 echo "$ac_t""no" 1>&6
1806 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1807 echo "configure:1808: checking for pthread_create in -lpthreads" >&5
1808 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 ac_save_LIBS="$LIBS"
1813 LIBS="-lpthreads $LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1820 char pthread_create();
1822 int main() {
1823 pthread_create()
1824 ; return 0; }
1826 if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1827 rm -rf conftest*
1828 eval "ac_cv_lib_$ac_lib_var=yes"
1829 else
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 rm -rf conftest*
1833 eval "ac_cv_lib_$ac_lib_var=no"
1835 rm -f conftest*
1836 LIBS="$ac_save_LIBS"
1839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 PTHREAD_LIB="-lpthreads"
1842 else
1843 echo "$ac_t""no" 1>&6
1844 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1845 echo "configure:1846: checking for pthread_create in -lc_r" >&5
1846 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 ac_save_LIBS="$LIBS"
1851 LIBS="-lc_r $LIBS"
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1858 char pthread_create();
1860 int main() {
1861 pthread_create()
1862 ; return 0; }
1864 if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1865 rm -rf conftest*
1866 eval "ac_cv_lib_$ac_lib_var=yes"
1867 else
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 rm -rf conftest*
1871 eval "ac_cv_lib_$ac_lib_var=no"
1873 rm -f conftest*
1874 LIBS="$ac_save_LIBS"
1877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 PTHREAD_LIB="-lc_r"
1880 else
1881 echo "$ac_t""no" 1>&6
1882 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1883 echo "configure:1884: checking for pthread_create" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char pthread_create(); below. */
1892 #include <assert.h>
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1896 char pthread_create();
1898 int main() {
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1904 choke me
1905 #else
1906 pthread_create();
1907 #endif
1909 ; return 0; }
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912 rm -rf conftest*
1913 eval "ac_cv_func_pthread_create=yes"
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 eval "ac_cv_func_pthread_create=no"
1920 rm -f conftest*
1923 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1943 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1944 if test "${with_gtk_prefix+set}" = set; then
1945 withval="$with_gtk_prefix"
1946 gtk_config_prefix="$withval"
1947 else
1948 gtk_config_prefix=""
1951 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1952 if test "${with_gtk_exec_prefix+set}" = set; then
1953 withval="$with_gtk_exec_prefix"
1954 gtk_config_exec_prefix="$withval"
1955 else
1956 gtk_config_exec_prefix=""
1959 # Check whether --enable-gtktest or --disable-gtktest was given.
1960 if test "${enable_gtktest+set}" = set; then
1961 enableval="$enable_gtktest"
1963 else
1964 enable_gtktest=yes
1968 for module in .
1970 case "$module" in
1971 gthread)
1972 gtk_config_args="$gtk_config_args gthread"
1974 esac
1975 done
1977 if test x$gtk_config_exec_prefix != x ; then
1978 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1979 if test x${GTK_CONFIG+set} != xset ; then
1980 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1983 if test x$gtk_config_prefix != x ; then
1984 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1985 if test x${GTK_CONFIG+set} != xset ; then
1986 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1990 # Extract the first word of "gtk-config", so it can be a program name with args.
1991 set dummy gtk-config; ac_word=$2
1992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_word" >&5
1994 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 case "$GTK_CONFIG" in
1999 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2001 ?:/*)
2002 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2006 ac_dummy="$PATH"
2007 for ac_dir in $ac_dummy; do
2008 test -z "$ac_dir" && ac_dir=.
2009 if test -f $ac_dir/$ac_word; then
2010 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2011 break
2013 done
2014 IFS="$ac_save_ifs"
2015 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2017 esac
2019 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2020 if test -n "$GTK_CONFIG"; then
2021 echo "$ac_t""$GTK_CONFIG" 1>&6
2022 else
2023 echo "$ac_t""no" 1>&6
2026 min_gtk_version=1.2.0
2027 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2028 echo "configure:2029: checking for GTK - version >= $min_gtk_version" >&5
2029 no_gtk=""
2030 if test "$GTK_CONFIG" = "no" ; then
2031 no_gtk=yes
2032 else
2033 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2034 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2035 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2037 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2039 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2041 if test "x$enable_gtktest" = "xyes" ; then
2042 ac_save_CFLAGS="$CFLAGS"
2043 ac_save_LIBS="$LIBS"
2044 CFLAGS="$CFLAGS $GTK_CFLAGS"
2045 LIBS="$GTK_LIBS $LIBS"
2046 rm -f conf.gtktest
2047 if test "$cross_compiling" = yes; then
2048 echo $ac_n "cross compiling; assumed OK... $ac_c"
2049 else
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #include <gtk/gtk.h>
2055 #include <stdio.h>
2056 #include <stdlib.h>
2058 int
2059 main ()
2061 int major, minor, micro;
2062 char *tmp_version;
2064 system ("touch conf.gtktest");
2066 /* HP/UX 9 (%@#!) writes to sscanf strings */
2067 tmp_version = g_strdup("$min_gtk_version");
2068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2069 printf("%s, bad version string\n", "$min_gtk_version");
2070 exit(1);
2073 if ((gtk_major_version != $gtk_config_major_version) ||
2074 (gtk_minor_version != $gtk_config_minor_version) ||
2075 (gtk_micro_version != $gtk_config_micro_version))
2077 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2078 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2079 gtk_major_version, gtk_minor_version, gtk_micro_version);
2080 printf ("*** was found! If gtk-config was correct, then it is best\n");
2081 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2082 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2083 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2084 printf("*** required on your system.\n");
2085 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2086 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2087 printf("*** before re-running configure\n");
2089 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2090 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2091 (gtk_minor_version != GTK_MINOR_VERSION) ||
2092 (gtk_micro_version != GTK_MICRO_VERSION))
2094 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2095 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2096 printf("*** library (version %d.%d.%d)\n",
2097 gtk_major_version, gtk_minor_version, gtk_micro_version);
2099 #endif /* defined (GTK_MAJOR_VERSION) ... */
2100 else
2102 if ((gtk_major_version > major) ||
2103 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2104 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2106 return 0;
2108 else
2110 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2111 gtk_major_version, gtk_minor_version, gtk_micro_version);
2112 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2113 major, minor, micro);
2114 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2115 printf("***\n");
2116 printf("*** If you have already installed a sufficiently new version, this error\n");
2117 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2118 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2119 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2120 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2121 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2122 printf("*** so that the correct libraries are found at run-time))\n");
2125 return 1;
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2130 then
2132 else
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2135 rm -fr conftest*
2136 no_gtk=yes
2138 rm -fr conftest*
2141 CFLAGS="$ac_save_CFLAGS"
2142 LIBS="$ac_save_LIBS"
2145 if test "x$no_gtk" = x ; then
2146 echo "$ac_t""yes" 1>&6
2148 else
2149 echo "$ac_t""no" 1>&6
2150 if test "$GTK_CONFIG" = "no" ; then
2151 echo "*** The gtk-config script installed by GTK could not be found"
2152 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2153 echo "*** your path, or set the GTK_CONFIG environment variable to the"
2154 echo "*** full path to gtk-config."
2155 else
2156 if test -f conf.gtktest ; then
2158 else
2159 echo "*** Could not run GTK test program, checking why..."
2160 CFLAGS="$CFLAGS $GTK_CFLAGS"
2161 LIBS="$LIBS $GTK_LIBS"
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2166 #include <gtk/gtk.h>
2167 #include <stdio.h>
2169 int main() {
2170 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2171 ; return 0; }
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 rm -rf conftest*
2175 echo "*** The test program compiled, but did not run. This usually means"
2176 echo "*** that the run-time linker is not finding GTK or finding the wrong"
2177 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2178 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2179 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2180 echo "*** is required on your system"
2181 echo "***"
2182 echo "*** If you have an old version installed, it is best to remove it, although"
2183 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2184 echo "***"
2185 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2186 echo "*** came with the system with the command"
2187 echo "***"
2188 echo "*** rpm --erase --nodeps gtk gtk-devel"
2189 else
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 rm -rf conftest*
2193 echo "*** The test program failed to compile or link. See the file config.log for the"
2194 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2195 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2196 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2198 rm -f conftest*
2199 CFLAGS="$ac_save_CFLAGS"
2200 LIBS="$ac_save_LIBS"
2203 GTK_CFLAGS=""
2204 GTK_LIBS=""
2205 { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2209 rm -f conf.gtktest
2211 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2213 saved_ldflags="$LDFLAGS"
2214 LDFLAGS="$LDFLAGS $GTK_LIBS"
2216 gnome_cv_passdown_x_libs="$GTK_LIBS"
2217 gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2218 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2219 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2221 LDFLAGS="$saved_ldflags $GTK_LIBS"
2223 USE_DEVGTK=true
2226 GNOME_HAVE_SM=true
2227 case "$GTK_LIBS" in
2228 *-lSM*)
2231 echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2232 echo "configure:2233: checking for SmcSaveYourselfDone in -lSM" >&5
2233 ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 ac_save_LIBS="$LIBS"
2238 LIBS="-lSM $x_libs -lICE $LIBS"
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245 char SmcSaveYourselfDone();
2247 int main() {
2248 SmcSaveYourselfDone()
2249 ; return 0; }
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2254 else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_lib_$ac_lib_var=no"
2260 rm -f conftest*
2261 LIBS="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 GTK_LIBS="-lSM -lICE $GTK_LIBS"
2267 else
2268 echo "$ac_t""no" 1>&6
2269 GNOME_HAVE_SM=false
2273 esac
2275 if test "$GNOME_HAVE_SM" = true; then
2276 for ac_hdr in X11/SM/SMlib.h
2278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_hdr" >&5
2281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <$ac_hdr>
2289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2293 rm -rf conftest*
2294 eval "ac_cv_header_$ac_safe=yes"
2295 else
2296 echo "$ac_err" >&5
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 rm -rf conftest*
2300 eval "ac_cv_header_$ac_safe=no"
2302 rm -f conftest*
2304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2307 cat >> confdefs.h <<EOF
2308 #define $ac_tr_hdr 1
2311 else
2312 echo "$ac_t""no" 1>&6
2313 GNOME_HAVE_SM=false
2315 done
2319 if test "$GNOME_HAVE_SM" = true; then
2320 cat >> confdefs.h <<\EOF
2321 #define HAVE_LIBSM 1
2326 XPM_LIBS=""
2327 echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2328 echo "configure:2329: checking for XpmFreeXpmImage in -lXpm" >&5
2329 ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 ac_save_LIBS="$LIBS"
2334 LIBS="-lXpm $x_libs $LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char XpmFreeXpmImage();
2343 int main() {
2344 XpmFreeXpmImage()
2345 ; return 0; }
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348 rm -rf conftest*
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2350 else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=no"
2356 rm -f conftest*
2357 LIBS="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 XPM_LIBS="-lXpm"
2363 else
2364 echo "$ac_t""no" 1>&6
2370 LDFLAGS="$saved_ldflags"
2375 ALL_LINGUAS="ca de nl"
2378 # Make sure we can run config.sub.
2379 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2380 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2383 echo $ac_n "checking host system type""... $ac_c" 1>&6
2384 echo "configure:2385: checking host system type" >&5
2386 host_alias=$host
2387 case "$host_alias" in
2388 NONE)
2389 case $nonopt in
2390 NONE)
2391 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2392 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2393 fi ;;
2394 *) host_alias=$nonopt ;;
2395 esac ;;
2396 esac
2398 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2399 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2400 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2401 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2402 echo "$ac_t""$host" 1>&6
2404 # Extract the first word of "ranlib", so it can be a program name with args.
2405 set dummy ranlib; ac_word=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 if test -n "$RANLIB"; then
2412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2413 else
2414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2415 ac_dummy="$PATH"
2416 for ac_dir in $ac_dummy; do
2417 test -z "$ac_dir" && ac_dir=.
2418 if test -f $ac_dir/$ac_word; then
2419 ac_cv_prog_RANLIB="ranlib"
2420 break
2422 done
2423 IFS="$ac_save_ifs"
2424 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2427 RANLIB="$ac_cv_prog_RANLIB"
2428 if test -n "$RANLIB"; then
2429 echo "$ac_t""$RANLIB" 1>&6
2430 else
2431 echo "$ac_t""no" 1>&6
2434 echo $ac_n "checking for working const""... $ac_c" 1>&6
2435 echo "configure:2436: checking for working const" >&5
2436 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2438 else
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2443 int main() {
2445 /* Ultrix mips cc rejects this. */
2446 typedef int charset[2]; const charset x;
2447 /* SunOS 4.1.1 cc rejects this. */
2448 char const *const *ccp;
2449 char **p;
2450 /* NEC SVR4.0.2 mips cc rejects this. */
2451 struct point {int x, y;};
2452 static struct point const zero = {0,0};
2453 /* AIX XL C 1.02.0.0 rejects this.
2454 It does not let you subtract one const X* pointer from another in an arm
2455 of an if-expression whose if-part is not a constant expression */
2456 const char *g = "string";
2457 ccp = &g + (g ? g-g : 0);
2458 /* HPUX 7.0 cc rejects these. */
2459 ++ccp;
2460 p = (char**) ccp;
2461 ccp = (char const *const *) p;
2462 { /* SCO 3.2v4 cc rejects this. */
2463 char *t;
2464 char const *s = 0 ? (char *) 0 : (char const *) 0;
2466 *t++ = 0;
2468 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2469 int x[] = {25, 17};
2470 const int *foo = &x[0];
2471 ++foo;
2473 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2474 typedef const int *iptr;
2475 iptr p = 0;
2476 ++p;
2478 { /* AIX XL C 1.02.0.0 rejects this saying
2479 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2480 struct s { int j; const int *ap[3]; };
2481 struct s *b; b->j = 5;
2483 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2484 const int foo = 10;
2487 ; return 0; }
2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2490 rm -rf conftest*
2491 ac_cv_c_const=yes
2492 else
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 ac_cv_c_const=no
2498 rm -f conftest*
2501 echo "$ac_t""$ac_cv_c_const" 1>&6
2502 if test $ac_cv_c_const = no; then
2503 cat >> confdefs.h <<\EOF
2504 #define const
2509 echo $ac_n "checking for inline""... $ac_c" 1>&6
2510 echo "configure:2511: checking for inline" >&5
2511 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 ac_cv_c_inline=no
2515 for ac_kw in inline __inline__ __inline; do
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2520 int main() {
2521 } $ac_kw foo() {
2522 ; return 0; }
2524 if { (eval echo configure:2525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2525 rm -rf conftest*
2526 ac_cv_c_inline=$ac_kw; break
2527 else
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 rm -f conftest*
2532 done
2536 echo "$ac_t""$ac_cv_c_inline" 1>&6
2537 case "$ac_cv_c_inline" in
2538 inline | yes) ;;
2539 no) cat >> confdefs.h <<\EOF
2540 #define inline
2543 *) cat >> confdefs.h <<EOF
2544 #define inline $ac_cv_c_inline
2547 esac
2549 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2550 echo "configure:2551: checking for off_t" >&5
2551 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <sys/types.h>
2558 #if STDC_HEADERS
2559 #include <stdlib.h>
2560 #include <stddef.h>
2561 #endif
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2565 rm -rf conftest*
2566 ac_cv_type_off_t=yes
2567 else
2568 rm -rf conftest*
2569 ac_cv_type_off_t=no
2571 rm -f conftest*
2574 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2575 if test $ac_cv_type_off_t = no; then
2576 cat >> confdefs.h <<\EOF
2577 #define off_t long
2582 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2583 echo "configure:2584: checking for size_t" >&5
2584 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <sys/types.h>
2591 #if STDC_HEADERS
2592 #include <stdlib.h>
2593 #include <stddef.h>
2594 #endif
2596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2597 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2598 rm -rf conftest*
2599 ac_cv_type_size_t=yes
2600 else
2601 rm -rf conftest*
2602 ac_cv_type_size_t=no
2604 rm -f conftest*
2607 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2608 if test $ac_cv_type_size_t = no; then
2609 cat >> confdefs.h <<\EOF
2610 #define size_t unsigned
2615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2616 # for constant arguments. Useless!
2617 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2618 echo "configure:2619: checking for working alloca.h" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 #include <alloca.h>
2626 int main() {
2627 char *p = alloca(2 * sizeof(int));
2628 ; return 0; }
2630 if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 rm -rf conftest*
2632 ac_cv_header_alloca_h=yes
2633 else
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 ac_cv_header_alloca_h=no
2639 rm -f conftest*
2642 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2643 if test $ac_cv_header_alloca_h = yes; then
2644 cat >> confdefs.h <<\EOF
2645 #define HAVE_ALLOCA_H 1
2650 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2651 echo "configure:2652: checking for alloca" >&5
2652 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2659 #ifdef __GNUC__
2660 # define alloca __builtin_alloca
2661 #else
2662 # ifdef _MSC_VER
2663 # include <malloc.h>
2664 # define alloca _alloca
2665 # else
2666 # if HAVE_ALLOCA_H
2667 # include <alloca.h>
2668 # else
2669 # ifdef _AIX
2670 #pragma alloca
2671 # else
2672 # ifndef alloca /* predefined by HP cc +Olibcalls */
2673 char *alloca ();
2674 # endif
2675 # endif
2676 # endif
2677 # endif
2678 #endif
2680 int main() {
2681 char *p = (char *) alloca(1);
2682 ; return 0; }
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685 rm -rf conftest*
2686 ac_cv_func_alloca_works=yes
2687 else
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 rm -rf conftest*
2691 ac_cv_func_alloca_works=no
2693 rm -f conftest*
2696 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2697 if test $ac_cv_func_alloca_works = yes; then
2698 cat >> confdefs.h <<\EOF
2699 #define HAVE_ALLOCA 1
2704 if test $ac_cv_func_alloca_works = no; then
2705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2706 # that cause trouble. Some versions do not even contain alloca or
2707 # contain a buggy version. If you still want to use their alloca,
2708 # use ar to extract alloca.o from them instead of compiling alloca.c.
2709 ALLOCA=alloca.${ac_objext}
2710 cat >> confdefs.h <<\EOF
2711 #define C_ALLOCA 1
2715 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2716 echo "configure:2717: checking whether alloca needs Cray hooks" >&5
2717 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #if defined(CRAY) && ! defined(CRAY2)
2724 webecray
2725 #else
2726 wenotbecray
2727 #endif
2730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2731 egrep "webecray" >/dev/null 2>&1; then
2732 rm -rf conftest*
2733 ac_cv_os_cray=yes
2734 else
2735 rm -rf conftest*
2736 ac_cv_os_cray=no
2738 rm -f conftest*
2742 echo "$ac_t""$ac_cv_os_cray" 1>&6
2743 if test $ac_cv_os_cray = yes; then
2744 for ac_func in _getb67 GETB67 getb67; do
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2755 #include <assert.h>
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2759 char $ac_func();
2761 int main() {
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2767 choke me
2768 #else
2769 $ac_func();
2770 #endif
2772 ; return 0; }
2774 if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775 rm -rf conftest*
2776 eval "ac_cv_func_$ac_func=yes"
2777 else
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 rm -rf conftest*
2781 eval "ac_cv_func_$ac_func=no"
2783 rm -f conftest*
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 cat >> confdefs.h <<EOF
2789 #define CRAY_STACKSEG_END $ac_func
2792 break
2793 else
2794 echo "$ac_t""no" 1>&6
2797 done
2800 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2801 echo "configure:2802: checking stack direction for C alloca" >&5
2802 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2804 else
2805 if test "$cross_compiling" = yes; then
2806 ac_cv_c_stack_direction=0
2807 else
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 find_stack_direction ()
2813 static char *addr = 0;
2814 auto char dummy;
2815 if (addr == 0)
2817 addr = &dummy;
2818 return find_stack_direction ();
2820 else
2821 return (&dummy > addr) ? 1 : -1;
2823 main ()
2825 exit (find_stack_direction() < 0);
2828 if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2829 then
2830 ac_cv_c_stack_direction=1
2831 else
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 rm -fr conftest*
2835 ac_cv_c_stack_direction=-1
2837 rm -fr conftest*
2842 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2843 cat >> confdefs.h <<EOF
2844 #define STACK_DIRECTION $ac_cv_c_stack_direction
2849 for ac_hdr in unistd.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <$ac_hdr>
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2866 rm -rf conftest*
2867 eval "ac_cv_header_$ac_safe=yes"
2868 else
2869 echo "$ac_err" >&5
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=no"
2875 rm -f conftest*
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2884 else
2885 echo "$ac_t""no" 1>&6
2887 done
2889 for ac_func in getpagesize
2891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2892 echo "configure:2893: checking for $ac_func" >&5
2893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895 else
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char $ac_func(); below. */
2901 #include <assert.h>
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905 char $ac_func();
2907 int main() {
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913 choke me
2914 #else
2915 $ac_func();
2916 #endif
2918 ; return 0; }
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 rm -rf conftest*
2922 eval "ac_cv_func_$ac_func=yes"
2923 else
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 rm -rf conftest*
2927 eval "ac_cv_func_$ac_func=no"
2929 rm -f conftest*
2932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2935 cat >> confdefs.h <<EOF
2936 #define $ac_tr_func 1
2939 else
2940 echo "$ac_t""no" 1>&6
2942 done
2944 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2945 echo "configure:2946: checking for working mmap" >&5
2946 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2948 else
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_func_mmap_fixed_mapped=no
2951 else
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2956 /* Thanks to Mike Haertel and Jim Avera for this test.
2957 Here is a matrix of mmap possibilities:
2958 mmap private not fixed
2959 mmap private fixed at somewhere currently unmapped
2960 mmap private fixed at somewhere already mapped
2961 mmap shared not fixed
2962 mmap shared fixed at somewhere currently unmapped
2963 mmap shared fixed at somewhere already mapped
2964 For private mappings, we should verify that changes cannot be read()
2965 back from the file, nor mmap's back from the file at a different
2966 address. (There have been systems where private was not correctly
2967 implemented like the infamous i386 svr4.0, and systems where the
2968 VM page cache was not coherent with the filesystem buffer cache
2969 like early versions of FreeBSD and possibly contemporary NetBSD.)
2970 For shared mappings, we should conversely verify that changes get
2971 propogated back to all the places they're supposed to be.
2973 Grep wants private fixed already mapped.
2974 The main things grep needs to know about mmap are:
2975 * does it exist and is it safe to write into the mmap'd area
2976 * how to use it (BSD variants) */
2977 #include <sys/types.h>
2978 #include <fcntl.h>
2979 #include <sys/mman.h>
2981 /* This mess was copied from the GNU getpagesize.h. */
2982 #ifndef HAVE_GETPAGESIZE
2983 # ifdef HAVE_UNISTD_H
2984 # include <unistd.h>
2985 # endif
2987 /* Assume that all systems that can run configure have sys/param.h. */
2988 # ifndef HAVE_SYS_PARAM_H
2989 # define HAVE_SYS_PARAM_H 1
2990 # endif
2992 # ifdef _SC_PAGESIZE
2993 # define getpagesize() sysconf(_SC_PAGESIZE)
2994 # else /* no _SC_PAGESIZE */
2995 # ifdef HAVE_SYS_PARAM_H
2996 # include <sys/param.h>
2997 # ifdef EXEC_PAGESIZE
2998 # define getpagesize() EXEC_PAGESIZE
2999 # else /* no EXEC_PAGESIZE */
3000 # ifdef NBPG
3001 # define getpagesize() NBPG * CLSIZE
3002 # ifndef CLSIZE
3003 # define CLSIZE 1
3004 # endif /* no CLSIZE */
3005 # else /* no NBPG */
3006 # ifdef NBPC
3007 # define getpagesize() NBPC
3008 # else /* no NBPC */
3009 # ifdef PAGESIZE
3010 # define getpagesize() PAGESIZE
3011 # endif /* PAGESIZE */
3012 # endif /* no NBPC */
3013 # endif /* no NBPG */
3014 # endif /* no EXEC_PAGESIZE */
3015 # else /* no HAVE_SYS_PARAM_H */
3016 # define getpagesize() 8192 /* punt totally */
3017 # endif /* no HAVE_SYS_PARAM_H */
3018 # endif /* no _SC_PAGESIZE */
3020 #endif /* no HAVE_GETPAGESIZE */
3022 #ifdef __cplusplus
3023 extern "C" { void *malloc(unsigned); }
3024 #else
3025 char *malloc();
3026 #endif
3029 main()
3031 char *data, *data2, *data3;
3032 int i, pagesize;
3033 int fd;
3035 pagesize = getpagesize();
3038 * First, make a file with some known garbage in it.
3040 data = malloc(pagesize);
3041 if (!data)
3042 exit(1);
3043 for (i = 0; i < pagesize; ++i)
3044 *(data + i) = rand();
3045 umask(0);
3046 fd = creat("conftestmmap", 0600);
3047 if (fd < 0)
3048 exit(1);
3049 if (write(fd, data, pagesize) != pagesize)
3050 exit(1);
3051 close(fd);
3054 * Next, try to mmap the file at a fixed address which
3055 * already has something else allocated at it. If we can,
3056 * also make sure that we see the same garbage.
3058 fd = open("conftestmmap", O_RDWR);
3059 if (fd < 0)
3060 exit(1);
3061 data2 = malloc(2 * pagesize);
3062 if (!data2)
3063 exit(1);
3064 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3065 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3067 exit(1);
3068 for (i = 0; i < pagesize; ++i)
3069 if (*(data + i) != *(data2 + i))
3070 exit(1);
3073 * Finally, make sure that changes to the mapped area
3074 * do not percolate back to the file as seen by read().
3075 * (This is a bug on some variants of i386 svr4.0.)
3077 for (i = 0; i < pagesize; ++i)
3078 *(data2 + i) = *(data2 + i) + 1;
3079 data3 = malloc(pagesize);
3080 if (!data3)
3081 exit(1);
3082 if (read(fd, data3, pagesize) != pagesize)
3083 exit(1);
3084 for (i = 0; i < pagesize; ++i)
3085 if (*(data + i) != *(data3 + i))
3086 exit(1);
3087 close(fd);
3088 unlink("conftestmmap");
3089 exit(0);
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3094 then
3095 ac_cv_func_mmap_fixed_mapped=yes
3096 else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -fr conftest*
3100 ac_cv_func_mmap_fixed_mapped=no
3102 rm -fr conftest*
3107 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3108 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3109 cat >> confdefs.h <<\EOF
3110 #define HAVE_MMAP 1
3116 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
3117 echo "configure:3118: checking whether we are using the GNU C Library 2.1 or newer" >&5
3118 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3120 else
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3125 #include <features.h>
3126 #ifdef __GNU_LIBRARY__
3127 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3128 Lucky GNU user
3129 #endif
3130 #endif
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "Lucky GNU user" >/dev/null 2>&1; then
3135 rm -rf conftest*
3136 ac_cv_gnu_library_2_1=yes
3137 else
3138 rm -rf conftest*
3139 ac_cv_gnu_library_2_1=no
3141 rm -f conftest*
3147 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
3149 GLIBC21="$ac_cv_gnu_library_2_1"
3153 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3154 stdlib.h string.h unistd.h sys/param.h
3156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_hdr" >&5
3159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <$ac_hdr>
3167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3168 { (eval echo configure:3169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3170 if test -z "$ac_err"; then
3171 rm -rf conftest*
3172 eval "ac_cv_header_$ac_safe=yes"
3173 else
3174 echo "$ac_err" >&5
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 rm -rf conftest*
3178 eval "ac_cv_header_$ac_safe=no"
3180 rm -f conftest*
3182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3185 cat >> confdefs.h <<EOF
3186 #define $ac_tr_hdr 1
3189 else
3190 echo "$ac_t""no" 1>&6
3192 done
3194 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3195 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3196 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_func" >&5
3200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3202 else
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3208 #include <assert.h>
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212 char $ac_func();
3214 int main() {
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3220 choke me
3221 #else
3222 $ac_func();
3223 #endif
3225 ; return 0; }
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest*
3229 eval "ac_cv_func_$ac_func=yes"
3230 else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -rf conftest*
3234 eval "ac_cv_func_$ac_func=no"
3236 rm -f conftest*
3239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_func 1
3246 else
3247 echo "$ac_t""no" 1>&6
3249 done
3254 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3255 if test "${with_libiconv_prefix+set}" = set; then
3256 withval="$with_libiconv_prefix"
3258 for dir in `echo "$withval" | tr : ' '`; do
3259 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3260 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3261 done
3266 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3267 echo "configure:3268: checking for iconv" >&5
3268 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270 else
3272 am_cv_func_iconv="no, consider installing GNU libiconv"
3273 am_cv_lib_iconv=no
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 #include <stdlib.h>
3278 #include <iconv.h>
3279 int main() {
3280 iconv_t cd = iconv_open("","");
3281 iconv(cd,NULL,NULL,NULL,NULL);
3282 iconv_close(cd);
3283 ; return 0; }
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3286 rm -rf conftest*
3287 am_cv_func_iconv=yes
3288 else
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 rm -f conftest*
3293 if test "$am_cv_func_iconv" != yes; then
3294 am_save_LIBS="$LIBS"
3295 LIBS="$LIBS -liconv"
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <stdlib.h>
3300 #include <iconv.h>
3301 int main() {
3302 iconv_t cd = iconv_open("","");
3303 iconv(cd,NULL,NULL,NULL,NULL);
3304 iconv_close(cd);
3305 ; return 0; }
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3308 rm -rf conftest*
3309 am_cv_lib_iconv=yes
3310 am_cv_func_iconv=yes
3311 else
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 rm -f conftest*
3316 LIBS="$am_save_LIBS"
3321 echo "$ac_t""$am_cv_func_iconv" 1>&6
3322 if test "$am_cv_func_iconv" = yes; then
3323 cat >> confdefs.h <<\EOF
3324 #define HAVE_ICONV 1
3327 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3328 echo "configure:3329: checking for iconv declaration" >&5
3329 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3337 #include <stdlib.h>
3338 #include <iconv.h>
3339 extern
3340 #ifdef __cplusplus
3342 #endif
3343 #if defined(__STDC__) || defined(__cplusplus)
3344 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3345 #else
3346 size_t iconv();
3347 #endif
3349 int main() {
3351 ; return 0; }
3353 if { (eval echo configure:3354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3354 rm -rf conftest*
3355 am_cv_proto_iconv_arg1=""
3356 else
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 am_cv_proto_iconv_arg1="const"
3362 rm -f conftest*
3363 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3366 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3367 echo "$ac_t""${ac_t:-
3368 }$am_cv_proto_iconv" 1>&6
3369 cat >> confdefs.h <<EOF
3370 #define ICONV_CONST $am_cv_proto_iconv_arg1
3374 LIBICONV=
3375 if test "$am_cv_lib_iconv" = yes; then
3376 LIBICONV="-liconv"
3381 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3382 echo "configure:3383: checking for nl_langinfo and CODESET" >&5
3383 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3385 else
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <langinfo.h>
3390 int main() {
3391 char* cs = nl_langinfo(CODESET);
3392 ; return 0; }
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 rm -rf conftest*
3396 am_cv_langinfo_codeset=yes
3397 else
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3400 rm -rf conftest*
3401 am_cv_langinfo_codeset=no
3403 rm -f conftest*
3407 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3408 if test $am_cv_langinfo_codeset = yes; then
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_LANGINFO_CODESET 1
3415 if test $ac_cv_header_locale_h = yes; then
3416 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3417 echo "configure:3418: checking for LC_MESSAGES" >&5
3418 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420 else
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <locale.h>
3425 int main() {
3426 return LC_MESSAGES
3427 ; return 0; }
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 rm -rf conftest*
3431 am_cv_val_LC_MESSAGES=yes
3432 else
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 rm -rf conftest*
3436 am_cv_val_LC_MESSAGES=no
3438 rm -f conftest*
3441 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3442 if test $am_cv_val_LC_MESSAGES = yes; then
3443 cat >> confdefs.h <<\EOF
3444 #define HAVE_LC_MESSAGES 1
3449 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3450 echo "configure:3451: checking whether NLS is requested" >&5
3451 # Check whether --enable-nls or --disable-nls was given.
3452 if test "${enable_nls+set}" = set; then
3453 enableval="$enable_nls"
3454 USE_NLS=$enableval
3455 else
3456 USE_NLS=yes
3459 echo "$ac_t""$USE_NLS" 1>&6
3462 BUILD_INCLUDED_LIBINTL=no
3463 USE_INCLUDED_LIBINTL=no
3464 INTLLIBS=
3466 if test "$USE_NLS" = "yes"; then
3467 cat >> confdefs.h <<\EOF
3468 #define ENABLE_NLS 1
3471 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether included gettext is requested" >&5
3473 # Check whether --with-included-gettext or --without-included-gettext was given.
3474 if test "${with_included_gettext+set}" = set; then
3475 withval="$with_included_gettext"
3476 nls_cv_force_use_gnu_gettext=$withval
3477 else
3478 nls_cv_force_use_gnu_gettext=no
3481 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3483 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3484 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3485 CATOBJEXT=NONE
3490 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3491 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for libintl.h" >&5
3493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <libintl.h>
3501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3502 { (eval echo configure:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504 if test -z "$ac_err"; then
3505 rm -rf conftest*
3506 eval "ac_cv_header_$ac_safe=yes"
3507 else
3508 echo "$ac_err" >&5
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3511 rm -rf conftest*
3512 eval "ac_cv_header_$ac_safe=no"
3514 rm -f conftest*
3516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3519 echo "configure:3520: checking for GNU gettext in libc" >&5
3520 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <libintl.h>
3527 extern int _nl_msg_cat_cntr;
3528 int main() {
3529 bindtextdomain ("", "");
3530 return (int) gettext ("") + _nl_msg_cat_cntr
3531 ; return 0; }
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 rm -rf conftest*
3535 gt_cv_func_gnugettext1_libc=yes
3536 else
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 rm -rf conftest*
3540 gt_cv_func_gnugettext1_libc=no
3542 rm -f conftest*
3545 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
3547 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3548 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
3549 echo "configure:3550: checking for GNU gettext in libintl" >&5
3550 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 gt_save_LIBS="$LIBS"
3554 LIBS="$LIBS -lintl $LIBICONV"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <libintl.h>
3559 extern int _nl_msg_cat_cntr;
3560 int main() {
3561 bindtextdomain ("", "");
3562 return (int) gettext ("") + _nl_msg_cat_cntr
3563 ; return 0; }
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 rm -rf conftest*
3567 gt_cv_func_gnugettext1_libintl=yes
3568 else
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 gt_cv_func_gnugettext1_libintl=no
3574 rm -f conftest*
3575 LIBS="$gt_save_LIBS"
3578 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
3581 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
3582 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
3583 && test "$PACKAGE" != gettext; }; then
3584 cat >> confdefs.h <<\EOF
3585 #define HAVE_GETTEXT 1
3589 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
3590 INTLLIBS="-lintl $LIBICONV"
3593 gt_save_LIBS="$LIBS"
3594 LIBS="$LIBS $INTLLIBS"
3595 for ac_func in dcgettext
3597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_func" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601 else
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char $ac_func(); below. */
3607 #include <assert.h>
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3611 char $ac_func();
3613 int main() {
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3619 choke me
3620 #else
3621 $ac_func();
3622 #endif
3624 ; return 0; }
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3627 rm -rf conftest*
3628 eval "ac_cv_func_$ac_func=yes"
3629 else
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 eval "ac_cv_func_$ac_func=no"
3635 rm -f conftest*
3638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_func 1
3645 else
3646 echo "$ac_t""no" 1>&6
3648 done
3650 LIBS="$gt_save_LIBS"
3652 # Extract the first word of "msgfmt", so it can be a program name with args.
3653 set dummy msgfmt; ac_word=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 case "$MSGFMT" in
3661 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3665 for ac_dir in $PATH; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/$ac_word; then
3668 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
3669 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3670 break
3673 done
3674 IFS="$ac_save_ifs"
3675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3677 esac
3679 MSGFMT="$ac_cv_path_MSGFMT"
3680 if test "$MSGFMT" != ":"; then
3681 echo "$ac_t""$MSGFMT" 1>&6
3682 else
3683 echo "$ac_t""no" 1>&6
3686 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3687 set dummy gmsgfmt; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 case "$GMSGFMT" in
3695 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3697 ?:/*)
3698 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3702 ac_dummy="$PATH"
3703 for ac_dir in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir=.
3705 if test -f $ac_dir/$ac_word; then
3706 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3707 break
3709 done
3710 IFS="$ac_save_ifs"
3711 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3713 esac
3715 GMSGFMT="$ac_cv_path_GMSGFMT"
3716 if test -n "$GMSGFMT"; then
3717 echo "$ac_t""$GMSGFMT" 1>&6
3718 else
3719 echo "$ac_t""no" 1>&6
3723 # Extract the first word of "xgettext", so it can be a program name with args.
3724 set dummy xgettext; ac_word=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730 case "$XGETTEXT" in
3732 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3736 for ac_dir in $PATH; do
3737 test -z "$ac_dir" && ac_dir=.
3738 if test -f $ac_dir/$ac_word; then
3739 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
3740 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3741 break
3744 done
3745 IFS="$ac_save_ifs"
3746 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3748 esac
3750 XGETTEXT="$ac_cv_path_XGETTEXT"
3751 if test "$XGETTEXT" != ":"; then
3752 echo "$ac_t""$XGETTEXT" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3758 CATOBJEXT=.gmo
3761 else
3762 echo "$ac_t""no" 1>&6
3766 if test "$CATOBJEXT" = "NONE"; then
3767 nls_cv_use_gnu_gettext=yes
3771 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3772 INTLOBJS="\$(GETTOBJS)"
3773 # Extract the first word of "msgfmt", so it can be a program name with args.
3774 set dummy msgfmt; ac_word=$2
3775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3776 echo "configure:3777: checking for $ac_word" >&5
3777 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3779 else
3780 case "$MSGFMT" in
3782 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3786 for ac_dir in $PATH; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/$ac_word; then
3789 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
3790 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3791 break
3794 done
3795 IFS="$ac_save_ifs"
3796 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3798 esac
3800 MSGFMT="$ac_cv_path_MSGFMT"
3801 if test "$MSGFMT" != ":"; then
3802 echo "$ac_t""$MSGFMT" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3807 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3808 set dummy gmsgfmt; ac_word=$2
3809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_word" >&5
3811 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3813 else
3814 case "$GMSGFMT" in
3816 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3818 ?:/*)
3819 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 ac_dummy="$PATH"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3828 break
3830 done
3831 IFS="$ac_save_ifs"
3832 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3834 esac
3836 GMSGFMT="$ac_cv_path_GMSGFMT"
3837 if test -n "$GMSGFMT"; then
3838 echo "$ac_t""$GMSGFMT" 1>&6
3839 else
3840 echo "$ac_t""no" 1>&6
3843 # Extract the first word of "xgettext", so it can be a program name with args.
3844 set dummy xgettext; ac_word=$2
3845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3846 echo "configure:3847: checking for $ac_word" >&5
3847 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3849 else
3850 case "$XGETTEXT" in
3852 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3856 for ac_dir in $PATH; do
3857 test -z "$ac_dir" && ac_dir=.
3858 if test -f $ac_dir/$ac_word; then
3859 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
3860 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3861 break
3864 done
3865 IFS="$ac_save_ifs"
3866 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3868 esac
3870 XGETTEXT="$ac_cv_path_XGETTEXT"
3871 if test "$XGETTEXT" != ":"; then
3872 echo "$ac_t""$XGETTEXT" 1>&6
3873 else
3874 echo "$ac_t""no" 1>&6
3878 BUILD_INCLUDED_LIBINTL=yes
3879 USE_INCLUDED_LIBINTL=yes
3880 CATOBJEXT=.gmo
3881 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
3882 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
3885 if test "$GMSGFMT" != ":"; then
3886 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
3888 else
3889 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3890 GMSGFMT=":"
3894 if test "$XGETTEXT" != ":"; then
3895 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
3897 else
3898 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3899 XGETTEXT=":"
3903 POSUB=po
3908 if test "$PACKAGE" = gettext; then
3909 BUILD_INCLUDED_LIBINTL=yes
3912 for ac_prog in bison
3914 # Extract the first word of "$ac_prog", so it can be a program name with args.
3915 set dummy $ac_prog; ac_word=$2
3916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_word" >&5
3918 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3920 else
3921 if test -n "$INTLBISON"; then
3922 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3923 else
3924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3925 ac_dummy="$PATH"
3926 for ac_dir in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir=.
3928 if test -f $ac_dir/$ac_word; then
3929 ac_cv_prog_INTLBISON="$ac_prog"
3930 break
3932 done
3933 IFS="$ac_save_ifs"
3936 INTLBISON="$ac_cv_prog_INTLBISON"
3937 if test -n "$INTLBISON"; then
3938 echo "$ac_t""$INTLBISON" 1>&6
3939 else
3940 echo "$ac_t""no" 1>&6
3943 test -n "$INTLBISON" && break
3944 done
3946 if test -z "$INTLBISON"; then
3947 ac_verc_fail=yes
3948 else
3949 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3950 echo "configure:3951: checking version of bison" >&5
3951 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3952 case $ac_prog_version in
3953 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3954 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3955 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3956 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3957 esac
3958 echo "$ac_t""$ac_prog_version" 1>&6
3960 if test $ac_verc_fail = yes; then
3961 INTLBISON=:
3964 for lang in $ALL_LINGUAS; do
3965 GMOFILES="$GMOFILES $lang.gmo"
3966 POFILES="$POFILES $lang.po"
3967 done
3979 nls_cv_header_intl=
3980 nls_cv_header_libgt=
3982 DATADIRNAME=share
3985 INSTOBJEXT=.mo
3988 GENCAT=gencat
3992 if test "x$CATOBJEXT" != "x"; then
3993 if test "x$ALL_LINGUAS" = "x"; then
3994 LINGUAS=
3995 else
3996 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3997 echo "configure:3998: checking for catalogs to be installed" >&5
3998 NEW_LINGUAS=
3999 for presentlang in $ALL_LINGUAS; do
4000 useit=no
4001 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
4002 # Use the presentlang catalog if desiredlang is
4003 # a. equal to presentlang, or
4004 # b. a variant of presentlang (because in this case,
4005 # presentlang can be used as a fallback for messages
4006 # which are not translated in the desiredlang catalog).
4007 case "$desiredlang" in
4008 "$presentlang"*) useit=yes;;
4009 esac
4010 done
4011 if test $useit = yes; then
4012 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
4014 done
4015 LINGUAS=$NEW_LINGUAS
4016 echo "$ac_t""$LINGUAS" 1>&6
4019 if test -n "$LINGUAS"; then
4020 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4024 MKINSTALLDIRS=
4025 if test -n "$ac_aux_dir"; then
4026 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4028 if test -z "$MKINSTALLDIRS"; then
4029 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4033 INTL_LIBTOOL_SUFFIX_PREFIX=
4037 if test "x${prefix}" = "xNONE"; then
4038 cat >> confdefs.h <<EOF
4039 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
4042 else
4043 cat >> confdefs.h <<EOF
4044 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
4049 PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
4057 GNOME_CANVASPIX="-lgnomecanvaspixbuf"
4060 echo $ac_n "checking for gdk_pixbuf_new_from_data in -lgdk_pixbuf""... $ac_c" 1>&6
4061 echo "configure:4062: checking for gdk_pixbuf_new_from_data in -lgdk_pixbuf" >&5
4062 ac_lib_var=`echo gdk_pixbuf'_'gdk_pixbuf_new_from_data | sed 'y%./+-%__p_%'`
4063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4065 else
4066 ac_save_LIBS="$LIBS"
4067 LIBS="-lgdk_pixbuf $LIBS"
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4074 char gdk_pixbuf_new_from_data();
4076 int main() {
4077 gdk_pixbuf_new_from_data()
4078 ; return 0; }
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4081 rm -rf conftest*
4082 eval "ac_cv_lib_$ac_lib_var=yes"
4083 else
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 rm -rf conftest*
4087 eval "ac_cv_lib_$ac_lib_var=no"
4089 rm -f conftest*
4090 LIBS="$ac_save_LIBS"
4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 ac_tr_lib=HAVE_LIB`echo gdk_pixbuf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4097 cat >> confdefs.h <<EOF
4098 #define $ac_tr_lib 1
4101 LIBS="-lgdk_pixbuf $LIBS"
4103 else
4104 echo "$ac_t""no" 1>&6
4105 { echo "configure: error: "libgdk_pixbuf not installed"" 1>&2; exit 1; }
4109 echo $ac_n "checking for H5Fcreate in -lhdf5""... $ac_c" 1>&6
4110 echo "configure:4111: checking for H5Fcreate in -lhdf5" >&5
4111 ac_lib_var=`echo hdf5'_'H5Fcreate | sed 'y%./+-%__p_%'`
4112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4114 else
4115 ac_save_LIBS="$LIBS"
4116 LIBS="-lhdf5 $LIBS"
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4123 char H5Fcreate();
4125 int main() {
4126 H5Fcreate()
4127 ; return 0; }
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 rm -rf conftest*
4131 eval "ac_cv_lib_$ac_lib_var=yes"
4132 else
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 rm -rf conftest*
4136 eval "ac_cv_lib_$ac_lib_var=no"
4138 rm -f conftest*
4139 LIBS="$ac_save_LIBS"
4142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4144 ac_tr_lib=HAVE_LIB`echo hdf5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4146 cat >> confdefs.h <<EOF
4147 #define $ac_tr_lib 1
4150 LIBS="-lhdf5 $LIBS"
4152 else
4153 echo "$ac_t""no" 1>&6
4154 { echo "configure: error: "libhdf5 not installed"" 1>&2; exit 1; }
4159 echo $ac_n "checking for gpiv_scan_resourcefiles in -lgpiv""... $ac_c" 1>&6
4160 echo "configure:4161: checking for gpiv_scan_resourcefiles in -lgpiv" >&5
4161 ac_lib_var=`echo gpiv'_'gpiv_scan_resourcefiles | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4164 else
4165 ac_save_LIBS="$LIBS"
4166 LIBS="-lgpiv $LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4173 char gpiv_scan_resourcefiles();
4175 int main() {
4176 gpiv_scan_resourcefiles()
4177 ; return 0; }
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 rm -rf conftest*
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4182 else
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4185 rm -rf conftest*
4186 eval "ac_cv_lib_$ac_lib_var=no"
4188 rm -f conftest*
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4194 ac_tr_lib=HAVE_LIB`echo gpiv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4196 cat >> confdefs.h <<EOF
4197 #define $ac_tr_lib 1
4200 LIBS="-lgpiv $LIBS"
4202 else
4203 echo "$ac_t""no" 1>&6
4204 { echo "configure: error: "libgpiv has not been installed"" 1>&2; exit 1; }
4208 echo $ac_n "checking for rfftw2d_create_plan in -lrfftw""... $ac_c" 1>&6
4209 echo "configure:4210: checking for rfftw2d_create_plan in -lrfftw" >&5
4210 ac_lib_var=`echo rfftw'_'rfftw2d_create_plan | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 ac_save_LIBS="$LIBS"
4215 LIBS="-lrfftw $LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char rfftw2d_create_plan();
4224 int main() {
4225 rfftw2d_create_plan()
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 rm -rf conftest*
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 eval "ac_cv_lib_$ac_lib_var=no"
4237 rm -f conftest*
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_lib=HAVE_LIB`echo rfftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_lib 1
4249 LIBS="-lrfftw $LIBS"
4251 else
4252 echo "$ac_t""no" 1>&6
4253 { echo "configure: error: "librfftw not installed"" 1>&2; exit 1; }
4257 echo $ac_n "checking for fftw_import_wisdom_from_string in -lfftw""... $ac_c" 1>&6
4258 echo "configure:4259: checking for fftw_import_wisdom_from_string in -lfftw" >&5
4259 ac_lib_var=`echo fftw'_'fftw_import_wisdom_from_string | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4262 else
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lfftw $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char fftw_import_wisdom_from_string();
4273 int main() {
4274 fftw_import_wisdom_from_string()
4275 ; return 0; }
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4280 else
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 rm -rf conftest*
4284 eval "ac_cv_lib_$ac_lib_var=no"
4286 rm -f conftest*
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 ac_tr_lib=HAVE_LIB`echo fftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4294 cat >> confdefs.h <<EOF
4295 #define $ac_tr_lib 1
4298 LIBS="-lfftw $LIBS"
4300 else
4301 echo "$ac_t""no" 1>&6
4302 { echo "configure: error: "libfftw not installed"" 1>&2; exit 1; }
4309 for ac_hdr in stdlib.h string.h unistd.h hdf5.h gpiv.h
4311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_hdr" >&5
4314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 #include <$ac_hdr>
4322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4323 { (eval echo configure:4324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4325 if test -z "$ac_err"; then
4326 rm -rf conftest*
4327 eval "ac_cv_header_$ac_safe=yes"
4328 else
4329 echo "$ac_err" >&5
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -rf conftest*
4333 eval "ac_cv_header_$ac_safe=no"
4335 rm -f conftest*
4337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4340 cat >> confdefs.h <<EOF
4341 #define $ac_tr_hdr 1
4344 else
4345 echo "$ac_t""no" 1>&6
4347 done
4351 # Check whether --enable-dac or --disable-dac was given.
4352 if test "${enable_dac+set}" = set; then
4353 enableval="$enable_dac"
4354 DISABLE_DAC="-DDISABLE_DAC"
4362 if test "${DISABLE_DAC}" != '-DDISABLE_DAC'; then
4363 echo $ac_n "checking for gpiv_dac_get_camvar in -lgpiv""... $ac_c" 1>&6
4364 echo "configure:4365: checking for gpiv_dac_get_camvar in -lgpiv" >&5
4365 ac_lib_var=`echo gpiv'_'gpiv_dac_get_camvar | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369 ac_save_LIBS="$LIBS"
4370 LIBS="-lgpiv $LIBS"
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char gpiv_dac_get_camvar();
4379 int main() {
4380 gpiv_dac_get_camvar()
4381 ; return 0; }
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 rm -rf conftest*
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4386 else
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 rm -rf conftest*
4390 eval "ac_cv_lib_$ac_lib_var=no"
4392 rm -f conftest*
4393 LIBS="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_lib=HAVE_LIB`echo gpiv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4400 cat >> confdefs.h <<EOF
4401 #define $ac_tr_lib 1
4404 LIBS="-lgpiv $LIBS"
4406 else
4407 echo "$ac_t""no" 1>&6
4408 { echo "configure: error: "DAC is not working in libgpiv. \
4409 Enable DAC in libgpiv or disable it here with ./configure --disable-dac"" 1>&2; exit 1; }
4413 echo $ac_n "checking for raw1394_destroy_handle in -lraw1394""... $ac_c" 1>&6
4414 echo "configure:4415: checking for raw1394_destroy_handle in -lraw1394" >&5
4415 ac_lib_var=`echo raw1394'_'raw1394_destroy_handle | sed 'y%./+-%__p_%'`
4416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 ac_save_LIBS="$LIBS"
4420 LIBS="-lraw1394 $LIBS"
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4427 char raw1394_destroy_handle();
4429 int main() {
4430 raw1394_destroy_handle()
4431 ; return 0; }
4433 if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 rm -rf conftest*
4435 eval "ac_cv_lib_$ac_lib_var=yes"
4436 else
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 rm -rf conftest*
4440 eval "ac_cv_lib_$ac_lib_var=no"
4442 rm -f conftest*
4443 LIBS="$ac_save_LIBS"
4446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_lib=HAVE_LIB`echo raw1394 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_lib 1
4454 LIBS="-lraw1394 $LIBS"
4456 else
4457 echo "$ac_t""no" 1>&6
4458 { echo "configure: error: "libraw1394 not installed"" 1>&2; exit 1; }
4462 echo $ac_n "checking for dc1394_create_handle in -ldc1394_control""... $ac_c" 1>&6
4463 echo "configure:4464: checking for dc1394_create_handle in -ldc1394_control" >&5
4464 ac_lib_var=`echo dc1394_control'_'dc1394_create_handle | sed 'y%./+-%__p_%'`
4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468 ac_save_LIBS="$LIBS"
4469 LIBS="-ldc1394_control $LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char dc1394_create_handle();
4478 int main() {
4479 dc1394_create_handle()
4480 ; return 0; }
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 rm -rf conftest*
4484 eval "ac_cv_lib_$ac_lib_var=yes"
4485 else
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 rm -rf conftest*
4489 eval "ac_cv_lib_$ac_lib_var=no"
4491 rm -f conftest*
4492 LIBS="$ac_save_LIBS"
4495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_lib=HAVE_LIB`echo dc1394_control | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4498 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_lib 1
4503 LIBS="-ldc1394_control $LIBS"
4505 else
4506 echo "$ac_t""no" 1>&6
4507 { echo "configure: error: "libdc1394_control not installed"" 1>&2; exit 1; }
4511 # Extract the first word of "gpiv_control", so it can be a program name with args.
4512 set dummy gpiv_control; ac_word=$2
4513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_word" >&5
4515 if eval "test \"`echo '$''{'ac_cv_prog_CONTROL'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4517 else
4518 if test -n "$CONTROL"; then
4519 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
4520 else
4521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4522 ac_dummy="$PATH"
4523 for ac_dir in $ac_dummy; do
4524 test -z "$ac_dir" && ac_dir=.
4525 if test -f $ac_dir/$ac_word; then
4526 ac_cv_prog_CONTROL="true"
4527 break
4529 done
4530 IFS="$ac_save_ifs"
4531 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
4534 CONTROL="$ac_cv_prog_CONTROL"
4535 if test -n "$CONTROL"; then
4536 echo "$ac_t""$CONTROL" 1>&6
4537 else
4538 echo "$ac_t""no" 1>&6
4543 if $CONTROL; then
4544 HAVE_CONTROL_TRUE=
4545 HAVE_CONTROL_FALSE='#'
4546 else
4547 HAVE_CONTROL_TRUE='#'
4548 HAVE_CONTROL_FALSE=
4551 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
4553 echo "configure:4554: checking for pthread.h" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4556 else
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 #include <pthread.h>
4562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4563 { (eval echo configure:4564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4565 if test -z "$ac_err"; then
4566 rm -rf conftest*
4567 eval "ac_cv_header_$ac_safe=yes"
4568 else
4569 echo "$ac_err" >&5
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 rm -rf conftest*
4573 eval "ac_cv_header_$ac_safe=no"
4575 rm -f conftest*
4577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4580 else
4581 echo "$ac_t""no" 1>&6
4582 { echo "configure: error: "pthread.h is not installed"" 1>&2; exit 1; }
4585 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4586 echo "configure:4587: checking for pthread_create in -lpthread" >&5
4587 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4590 else
4591 ac_save_LIBS="$LIBS"
4592 LIBS="-lpthread $LIBS"
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4599 char pthread_create();
4601 int main() {
4602 pthread_create()
4603 ; return 0; }
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 rm -rf conftest*
4607 eval "ac_cv_lib_$ac_lib_var=yes"
4608 else
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -rf conftest*
4612 eval "ac_cv_lib_$ac_lib_var=no"
4614 rm -f conftest*
4615 LIBS="$ac_save_LIBS"
4618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4622 cat >> confdefs.h <<EOF
4623 #define $ac_tr_lib 1
4626 LIBS="-lpthread $LIBS"
4628 else
4629 echo "$ac_t""no" 1>&6
4630 { echo "configure: error: "libpthread has not been installed"" 1>&2; exit 1; }
4637 # Check whether --enable-rta or --disable-rta was given.
4638 if test "${enable_rta+set}" = set; then
4639 enableval="$enable_rta"
4640 RTA_TOPDIR="$enableval"
4641 else
4642 RTA_TOPDIR="/usr/realtime"
4650 # Check whether --enable-k or --disable-k was given.
4651 if test "${enable_k+set}" = set; then
4652 enableval="$enable_k"
4653 K_TOPDIR="$enableval"
4654 else
4655 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
4663 # Check whether --enable-img-width or --disable-img-width was given.
4664 if test "${enable_img_width+set}" = set; then
4665 enableval="$enable_img_width"
4666 OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
4674 # Check whether --enable-img-height or --disable-img-height was given.
4675 if test "${enable_img_height+set}" = set; then
4676 enableval="$enable_img_height"
4677 OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
4684 # Check whether --enable-debug or --disable-debug was given.
4685 if test "${enable_debug+set}" = set; then
4686 enableval="$enable_debug"
4687 DEBUG="-DDEBUG"
4695 trap '' 1 2 15
4696 cat > confcache <<\EOF
4697 # This file is a shell script that caches the results of configure
4698 # tests run on this system so they can be shared between configure
4699 # scripts and configure runs. It is not useful on other systems.
4700 # If it contains results you don't want to keep, you may remove or edit it.
4702 # By default, configure uses ./config.cache as the cache file,
4703 # creating it if it does not exist already. You can give configure
4704 # the --cache-file=FILE option to use a different cache file; that is
4705 # what configure does when it calls configure scripts in
4706 # subdirectories, so they share the cache.
4707 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4708 # config.status only pays attention to the cache file if you give it the
4709 # --recheck option to rerun configure.
4712 # The following way of writing the cache mishandles newlines in values,
4713 # but we know of no workaround that is simple, portable, and efficient.
4714 # So, don't put newlines in cache variables' values.
4715 # Ultrix sh set writes to stderr and can't be redirected directly,
4716 # and sets the high bit in the cache file unless we assign to the vars.
4717 (set) 2>&1 |
4718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4719 *ac_space=\ *)
4720 # `set' does not quote correctly, so add quotes (double-quote substitution
4721 # turns \\\\ into \\, and sed turns \\ into \).
4722 sed -n \
4723 -e "s/'/'\\\\''/g" \
4724 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4727 # `set' quotes correctly as required by POSIX, so do not add quotes.
4728 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4730 esac >> confcache
4731 if cmp -s $cache_file confcache; then
4733 else
4734 if test -w $cache_file; then
4735 echo "updating cache $cache_file"
4736 cat confcache > $cache_file
4737 else
4738 echo "not updating unwritable cache $cache_file"
4741 rm -f confcache
4743 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4746 # Let make expand exec_prefix.
4747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4749 # Any assignment to VPATH causes Sun make to only execute
4750 # the first set of double-colon rules, so remove it if not needed.
4751 # If there is a colon in the path, we need to keep it.
4752 if test "x$srcdir" = x.; then
4753 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4756 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4758 DEFS=-DHAVE_CONFIG_H
4760 # Without the "./", some shells look in PATH for config.status.
4761 : ${CONFIG_STATUS=./config.status}
4763 echo creating $CONFIG_STATUS
4764 rm -f $CONFIG_STATUS
4765 cat > $CONFIG_STATUS <<EOF
4766 #! /bin/sh
4767 # Generated automatically by configure.
4768 # Run this file to recreate the current configuration.
4769 # This directory was configured as follows,
4770 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4772 # $0 $ac_configure_args
4774 # Compiler output produced by configure, useful for debugging
4775 # configure, is in ./config.log if it exists.
4777 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4778 for ac_option
4780 case "\$ac_option" in
4781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4782 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4783 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4784 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4785 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4786 exit 0 ;;
4787 -help | --help | --hel | --he | --h)
4788 echo "\$ac_cs_usage"; exit 0 ;;
4789 *) echo "\$ac_cs_usage"; exit 1 ;;
4790 esac
4791 done
4793 ac_given_srcdir=$srcdir
4794 ac_given_INSTALL="$INSTALL"
4796 trap 'rm -fr `echo "
4797 Makefile
4798 macros/Makefile
4799 doc/Makefile
4800 doc/C/Makefile
4801 doc/C/figures/Makefile
4802 src/Makefile
4803 intl/Makefile
4804 po/Makefile.in
4805 man/Makefile
4806 debian/Makefile
4807 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4809 cat >> $CONFIG_STATUS <<EOF
4811 # Protect against being on the right side of a sed subst in config.status.
4812 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4813 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4814 $ac_vpsub
4815 $extrasub
4816 s%@SHELL@%$SHELL%g
4817 s%@CFLAGS@%$CFLAGS%g
4818 s%@CPPFLAGS@%$CPPFLAGS%g
4819 s%@CXXFLAGS@%$CXXFLAGS%g
4820 s%@FFLAGS@%$FFLAGS%g
4821 s%@DEFS@%$DEFS%g
4822 s%@LDFLAGS@%$LDFLAGS%g
4823 s%@LIBS@%$LIBS%g
4824 s%@exec_prefix@%$exec_prefix%g
4825 s%@prefix@%$prefix%g
4826 s%@program_transform_name@%$program_transform_name%g
4827 s%@bindir@%$bindir%g
4828 s%@sbindir@%$sbindir%g
4829 s%@libexecdir@%$libexecdir%g
4830 s%@datadir@%$datadir%g
4831 s%@sysconfdir@%$sysconfdir%g
4832 s%@sharedstatedir@%$sharedstatedir%g
4833 s%@localstatedir@%$localstatedir%g
4834 s%@libdir@%$libdir%g
4835 s%@includedir@%$includedir%g
4836 s%@oldincludedir@%$oldincludedir%g
4837 s%@infodir@%$infodir%g
4838 s%@mandir@%$mandir%g
4839 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4840 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4841 s%@INSTALL_DATA@%$INSTALL_DATA%g
4842 s%@PACKAGE@%$PACKAGE%g
4843 s%@VERSION@%$VERSION%g
4844 s%@ACLOCAL@%$ACLOCAL%g
4845 s%@AUTOCONF@%$AUTOCONF%g
4846 s%@AUTOMAKE@%$AUTOMAKE%g
4847 s%@AUTOHEADER@%$AUTOHEADER%g
4848 s%@MAKEINFO@%$MAKEINFO%g
4849 s%@SET_MAKE@%$SET_MAKE%g
4850 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
4851 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
4852 s%@GNOME_LIBS@%$GNOME_LIBS%g
4853 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
4854 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
4855 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
4856 s%@ZVT_LIBS@%$ZVT_LIBS%g
4857 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
4858 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
4859 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
4860 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
4861 s%@ORBIT_IDL@%$ORBIT_IDL%g
4862 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
4863 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
4864 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
4865 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
4866 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
4867 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
4868 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
4869 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
4870 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
4871 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
4872 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
4873 s%@CC@%$CC%g
4874 s%@CPP@%$CPP%g
4875 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4876 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4877 s%@MAINT@%$MAINT%g
4878 s%@cflags_set@%$cflags_set%g
4879 s%@GTK_CONFIG@%$GTK_CONFIG%g
4880 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4881 s%@GTK_LIBS@%$GTK_LIBS%g
4882 s%@XPM_LIBS@%$XPM_LIBS%g
4883 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
4884 s%@host@%$host%g
4885 s%@host_alias@%$host_alias%g
4886 s%@host_cpu@%$host_cpu%g
4887 s%@host_vendor@%$host_vendor%g
4888 s%@host_os@%$host_os%g
4889 s%@RANLIB@%$RANLIB%g
4890 s%@ALLOCA@%$ALLOCA%g
4891 s%@GLIBC21@%$GLIBC21%g
4892 s%@LIBICONV@%$LIBICONV%g
4893 s%@USE_NLS@%$USE_NLS%g
4894 s%@MSGFMT@%$MSGFMT%g
4895 s%@GMSGFMT@%$GMSGFMT%g
4896 s%@XGETTEXT@%$XGETTEXT%g
4897 s%@INTLBISON@%$INTLBISON%g
4898 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
4899 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4900 s%@CATALOGS@%$CATALOGS%g
4901 s%@CATOBJEXT@%$CATOBJEXT%g
4902 s%@GMOFILES@%$GMOFILES%g
4903 s%@INTLLIBS@%$INTLLIBS%g
4904 s%@INTLOBJS@%$INTLOBJS%g
4905 s%@POFILES@%$POFILES%g
4906 s%@POSUB@%$POSUB%g
4907 s%@DATADIRNAME@%$DATADIRNAME%g
4908 s%@INSTOBJEXT@%$INSTOBJEXT%g
4909 s%@GENCAT@%$GENCAT%g
4910 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4911 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
4912 s%@PACKAGE_PIXMAPS_DIR@%$PACKAGE_PIXMAPS_DIR%g
4913 s%@GNOME_CANVASPIX@%$GNOME_CANVASPIX%g
4914 s%@DISABLE_DAC@%$DISABLE_DAC%g
4915 s%@CONTROL@%$CONTROL%g
4916 s%@HAVE_CONTROL_TRUE@%$HAVE_CONTROL_TRUE%g
4917 s%@HAVE_CONTROL_FALSE@%$HAVE_CONTROL_FALSE%g
4918 s%@RTA_TOPDIR@%$RTA_TOPDIR%g
4919 s%@K_TOPDIR@%$K_TOPDIR%g
4920 s%@OVERRIDE_IMAGE_WIDTH_MAX@%$OVERRIDE_IMAGE_WIDTH_MAX%g
4921 s%@OVERRIDE_IMAGE_HEIGHT_MAX@%$OVERRIDE_IMAGE_HEIGHT_MAX%g
4922 s%@DEBUG@%$DEBUG%g
4924 CEOF
4927 cat >> $CONFIG_STATUS <<\EOF
4929 # Split the substitutions into bite-sized pieces for seds with
4930 # small command number limits, like on Digital OSF/1 and HP-UX.
4931 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4932 ac_file=1 # Number of current file.
4933 ac_beg=1 # First line for current file.
4934 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4935 ac_more_lines=:
4936 ac_sed_cmds=""
4937 while $ac_more_lines; do
4938 if test $ac_beg -gt 1; then
4939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4940 else
4941 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4943 if test ! -s conftest.s$ac_file; then
4944 ac_more_lines=false
4945 rm -f conftest.s$ac_file
4946 else
4947 if test -z "$ac_sed_cmds"; then
4948 ac_sed_cmds="sed -f conftest.s$ac_file"
4949 else
4950 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4952 ac_file=`expr $ac_file + 1`
4953 ac_beg=$ac_end
4954 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4956 done
4957 if test -z "$ac_sed_cmds"; then
4958 ac_sed_cmds=cat
4962 cat >> $CONFIG_STATUS <<EOF
4964 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4965 macros/Makefile
4966 doc/Makefile
4967 doc/C/Makefile
4968 doc/C/figures/Makefile
4969 src/Makefile
4970 intl/Makefile
4971 po/Makefile.in
4972 man/Makefile
4973 debian/Makefile
4976 cat >> $CONFIG_STATUS <<\EOF
4977 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4979 case "$ac_file" in
4980 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4981 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4982 *) ac_file_in="${ac_file}.in" ;;
4983 esac
4985 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4987 # Remove last slash and all that follows it. Not all systems have dirname.
4988 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4989 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4990 # The file is in a subdirectory.
4991 test ! -d "$ac_dir" && mkdir "$ac_dir"
4992 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4993 # A "../" for each directory in $ac_dir_suffix.
4994 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4995 else
4996 ac_dir_suffix= ac_dots=
4999 case "$ac_given_srcdir" in
5000 .) srcdir=.
5001 if test -z "$ac_dots"; then top_srcdir=.
5002 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5003 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5004 *) # Relative path.
5005 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5006 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5007 esac
5009 case "$ac_given_INSTALL" in
5010 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5011 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5012 esac
5014 echo creating "$ac_file"
5015 rm -f "$ac_file"
5016 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5017 case "$ac_file" in
5018 *Makefile*) ac_comsub="1i\\
5019 # $configure_input" ;;
5020 *) ac_comsub= ;;
5021 esac
5023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5024 sed -e "$ac_comsub
5025 s%@configure_input@%$configure_input%g
5026 s%@srcdir@%$srcdir%g
5027 s%@top_srcdir@%$top_srcdir%g
5028 s%@INSTALL@%$INSTALL%g
5029 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5030 fi; done
5031 rm -f conftest.s*
5033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5036 # ac_d sets the value in "#define NAME VALUE" lines.
5037 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5038 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5039 ac_dC='\3'
5040 ac_dD='%g'
5041 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5042 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5043 ac_uB='\([ ]\)%\1#\2define\3'
5044 ac_uC=' '
5045 ac_uD='\4%g'
5046 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5047 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5048 ac_eB='$%\1#\2define\3'
5049 ac_eC=' '
5050 ac_eD='%g'
5052 if test "${CONFIG_HEADERS+set}" != set; then
5054 cat >> $CONFIG_STATUS <<EOF
5055 CONFIG_HEADERS="config.h"
5057 cat >> $CONFIG_STATUS <<\EOF
5059 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5061 case "$ac_file" in
5062 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5063 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5064 *) ac_file_in="${ac_file}.in" ;;
5065 esac
5067 echo creating $ac_file
5069 rm -f conftest.frag conftest.in conftest.out
5070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5071 cat $ac_file_inputs > conftest.in
5075 # Transform confdefs.h into a sed script conftest.vals that substitutes
5076 # the proper values into config.h.in to produce config.h. And first:
5077 # Protect against being on the right side of a sed subst in config.status.
5078 # Protect against being in an unquoted here document in config.status.
5079 rm -f conftest.vals
5080 cat > conftest.hdr <<\EOF
5081 s/[\\&%]/\\&/g
5082 s%[\\$`]%\\&%g
5083 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5084 s%ac_d%ac_u%gp
5085 s%ac_u%ac_e%gp
5087 sed -n -f conftest.hdr confdefs.h > conftest.vals
5088 rm -f conftest.hdr
5090 # This sed command replaces #undef with comments. This is necessary, for
5091 # example, in the case of _POSIX_SOURCE, which is predefined and required
5092 # on some systems where configure will not decide to define it.
5093 cat >> conftest.vals <<\EOF
5094 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5097 # Break up conftest.vals because some shells have a limit on
5098 # the size of here documents, and old seds have small limits too.
5100 rm -f conftest.tail
5101 while :
5103 ac_lines=`grep -c . conftest.vals`
5104 # grep -c gives empty output for an empty file on some AIX systems.
5105 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5106 # Write a limited-size here document to conftest.frag.
5107 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5108 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5109 echo 'CEOF
5110 sed -f conftest.frag conftest.in > conftest.out
5111 rm -f conftest.in
5112 mv conftest.out conftest.in
5113 ' >> $CONFIG_STATUS
5114 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5115 rm -f conftest.vals
5116 mv conftest.tail conftest.vals
5117 done
5118 rm -f conftest.vals
5120 cat >> $CONFIG_STATUS <<\EOF
5121 rm -f conftest.frag conftest.h
5122 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5123 cat conftest.in >> conftest.h
5124 rm -f conftest.in
5125 if cmp -s $ac_file conftest.h 2>/dev/null; then
5126 echo "$ac_file is unchanged"
5127 rm -f conftest.h
5128 else
5129 # Remove last slash and all that follows it. Not all systems have dirname.
5130 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5131 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5132 # The file is in a subdirectory.
5133 test ! -d "$ac_dir" && mkdir "$ac_dir"
5135 rm -f $ac_file
5136 mv conftest.h $ac_file
5138 fi; done
5141 cat >> $CONFIG_STATUS <<EOF
5146 cat >> $CONFIG_STATUS <<\EOF
5147 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5148 for ac_file in $CONFIG_FILES; do
5149 # Support "outfile[:infile[:infile...]]"
5150 case "$ac_file" in
5151 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5152 esac
5153 # PO directories have a Makefile.in generated from Makefile.in.in.
5154 case "$ac_file" in */Makefile.in)
5155 # Adjust a relative srcdir.
5156 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5157 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
5158 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5159 # In autoconf-2.13 it is called $ac_given_srcdir.
5160 # In autoconf-2.50 it is called $srcdir.
5161 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5162 case "$ac_given_srcdir" in
5163 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5164 /*) top_srcdir="$ac_given_srcdir" ;;
5165 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
5166 esac
5167 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5168 rm -f "$ac_dir/POTFILES"
5169 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5170 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
5171 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5172 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
5175 esac
5176 done
5178 exit 0
5180 chmod +x $CONFIG_STATUS
5181 rm -fr confdefs* $ac_clean_files
5182 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5186 echo "===================================================================="
5187 echo "Configuration succesfully finished"
5188 if test $DISABLE_DAC; then
5189 echo "without Data Acquisition."
5190 else
5191 echo "with Data Acquisition enabled."
5192 if test x$CONTROL = xfalse ; then
5193 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
5194 echo "resident as well". This script eases to install and uninstall the gpivtrig-rtl
5195 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
5196 echo ""
5199 echo "Type 'make' and 'make install' to build and install gpiv"
5200 echo "===================================================================="