Add option "drill-copper" to draw / not draw drill holes in the copper
[geda-pcb/gde.git] / configure
blob32eccdcc8bd410b8a457b1074e105e0bc7805e4e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/draw.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN32 WIN32_TRUE WIN32_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT LEX_PATH YACC YACC_PATH RANLIB ac_ct_RANLIB TGIF MISSING_TGIF_TRUE MISSING_TGIF_FALSE XPMTOPPM PPMTOWINICON MISSING_XPMTOPPM_TRUE MISSING_XPMTOPPM_FALSE CONVERT MISSING_CONVERT_TRUE MISSING_CONVERT_FALSE DOC MKINFO PERL WITH_DBUS_TRUE WITH_DBUS_FALSE PKG_CONFIG DBUS_CFLAGS DBUS_LIBS HIDLIST HIDLIBS M4 WISH GNUM4 LATEX MISSING_LATEX_TRUE MISSING_LATEX_FALSE PDFLATEX MISSING_PDFLATEX_TRUE MISSING_PDFLATEX_FALSE DVIPS MISSING_DVIPS_TRUE MISSING_DVIPS_FALSE PS2PDF MISSING_PS2PDF_TRUE MISSING_PS2PDF_FALSE EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS GDLIB_CONFIG PNG_TRUE PNG_FALSE GIF_TRUE GIF_FALSE FONTFILENAME PCBLIBDIR LIBRARYFILENAME PCBTREEDIR PCBTREEPATH BTNMOD TOPDIRS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-maintainer-mode enable make rules and dependencies not useful
857 (and sometimes confusing) to the casual installer
858 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
860 --enable-doc Build and install the documentation [default=yes]
861 --enable-dbus Enable DBUS IPC
862 --disable-gif Disable support for gif output when the png HID is used [default=include gif support]
863 --disable-jpeg Disable support for JPEG output when the png HID is used [default=include JPEG support]
864 --disable-png Disable support for PNG output when the png HID is used [default=include PNG support]
865 --enable-dmalloc Compile and link with dmalloc for malloc debugging default=no
866 --enable-efence Link with ElectricFence for malloc debugging default=no
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gui= Specify the GUI to use: batch gtk lesstif [default=gtk]
872 --with-printer= Specify the printer: lpr [default=lpr]
873 --with-exporters= Enable export devices: bom gerber nelma png ps [default=bom gerber nelma png ps]
874 --with-x use the X Window System
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 cd $ac_popdir
977 done
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
998 $ $0 $@
1000 _ACEOF
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 _ASUNAME
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1034 } >&5
1036 cat >&5 <<_ACEOF
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1043 _ACEOF
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1058 for ac_arg
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1105 echo
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 esac;
1128 echo
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1229 done
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 am__api_version="1.9"
1324 ac_aux_dir=
1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326 if test -f $ac_dir/install-sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 break
1330 elif test -f $ac_dir/install.sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 break
1334 elif test -f $ac_dir/shtool; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 break
1339 done
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 # Find a good install program. We prefer a C program (faster),
1350 # so one script is as good as another. But avoid the broken or
1351 # incompatible versions:
1352 # SysV /etc/install, /usr/sbin/install
1353 # SunOS /usr/etc/install
1354 # IRIX /sbin/install
1355 # AIX /bin/install
1356 # AmigaOS /C/install, which installs bootblocks on floppy discs
1357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1360 # OS/2's system install, which has a completely different semantic
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1363 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1364 if test -z "$INSTALL"; then
1365 if test "${ac_cv_path_install+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 for as_dir in $PATH
1371 IFS=$as_save_IFS
1372 test -z "$as_dir" && as_dir=.
1373 # Account for people who put trailing slashes in PATH elements.
1374 case $as_dir/ in
1375 ./ | .// | /cC/* | \
1376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1377 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1378 /usr/ucb/* ) ;;
1380 # OSF1 and SCO ODT 3.0 have their own names for install.
1381 # Don't use installbsd from OSF since it installs stuff as root
1382 # by default.
1383 for ac_prog in ginstall scoinst install; do
1384 for ac_exec_ext in '' $ac_executable_extensions; do
1385 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1386 if test $ac_prog = install &&
1387 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388 # AIX install. It has an incompatible calling convention.
1390 elif test $ac_prog = install &&
1391 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1392 # program-specific install script used by HP pwplus--don't use.
1394 else
1395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1396 break 3
1399 done
1400 done
1402 esac
1403 done
1407 if test "${ac_cv_path_install+set}" = set; then
1408 INSTALL=$ac_cv_path_install
1409 else
1410 # As a last resort, use the slow shell script. We don't cache a
1411 # path for INSTALL within a source directory, because that will
1412 # break other packages using the cache if that directory is
1413 # removed, or if the path is relative.
1414 INSTALL=$ac_install_sh
1417 echo "$as_me:$LINENO: result: $INSTALL" >&5
1418 echo "${ECHO_T}$INSTALL" >&6
1420 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1421 # It thinks the first close brace ends the variable substitution.
1422 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1424 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1426 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1428 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1429 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1430 # Just in case
1431 sleep 1
1432 echo timestamp > conftest.file
1433 # Do `set' in a subshell so we don't clobber the current shell's
1434 # arguments. Must try -L first in case configure is actually a
1435 # symlink; some systems play weird games with the mod time of symlinks
1436 # (eg FreeBSD returns the mod time of the symlink's containing
1437 # directory).
1438 if (
1439 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1440 if test "$*" = "X"; then
1441 # -L didn't work.
1442 set X `ls -t $srcdir/configure conftest.file`
1444 rm -f conftest.file
1445 if test "$*" != "X $srcdir/configure conftest.file" \
1446 && test "$*" != "X conftest.file $srcdir/configure"; then
1448 # If neither matched, then we have a broken ls. This can happen
1449 # if, for instance, CONFIG_SHELL is bash and it inherits a
1450 # broken ls alias from the environment. This has actually
1451 # happened. Such a system could not be considered "sane".
1452 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1453 alias in your environment" >&5
1454 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1455 alias in your environment" >&2;}
1456 { (exit 1); exit 1; }; }
1459 test "$2" = conftest.file
1461 then
1462 # Ok.
1464 else
1465 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1466 Check your system clock" >&5
1467 echo "$as_me: error: newly created file is older than distributed files!
1468 Check your system clock" >&2;}
1469 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: yes" >&5
1472 echo "${ECHO_T}yes" >&6
1473 test "$program_prefix" != NONE &&
1474 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1475 # Use a double $ so make ignores it.
1476 test "$program_suffix" != NONE &&
1477 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1478 # Double any \ or $. echo might interpret backslashes.
1479 # By default was `s,x,x', remove it if useless.
1480 cat <<\_ACEOF >conftest.sed
1481 s/[\\$]/&&/g;s/;s,x,x,$//
1482 _ACEOF
1483 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1484 rm conftest.sed
1486 # expand $ac_aux_dir to an absolute path
1487 am_aux_dir=`cd $ac_aux_dir && pwd`
1489 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1490 # Use eval to expand $SHELL
1491 if eval "$MISSING --run true"; then
1492 am_missing_run="$MISSING --run "
1493 else
1494 am_missing_run=
1495 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1496 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1499 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1500 # We used to keeping the `.' as first argument, in order to
1501 # allow $(mkdir_p) to be used without argument. As in
1502 # $(mkdir_p) $(somedir)
1503 # where $(somedir) is conditionally defined. However this is wrong
1504 # for two reasons:
1505 # 1. if the package is installed by a user who cannot write `.'
1506 # make install will fail,
1507 # 2. the above comment should most certainly read
1508 # $(mkdir_p) $(DESTDIR)$(somedir)
1509 # so it does not work when $(somedir) is undefined and
1510 # $(DESTDIR) is not.
1511 # To support the latter case, we have to write
1512 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1513 # so the `.' trick is pointless.
1514 mkdir_p='mkdir -p --'
1515 else
1516 # On NextStep and OpenStep, the `mkdir' command does not
1517 # recognize any option. It will interpret all options as
1518 # directories to create, and then abort because `.' already
1519 # exists.
1520 for d in ./-p ./--version;
1522 test -d $d && rmdir $d
1523 done
1524 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1525 if test -f "$ac_aux_dir/mkinstalldirs"; then
1526 mkdir_p='$(mkinstalldirs)'
1527 else
1528 mkdir_p='$(install_sh) -d'
1532 for ac_prog in gawk mawk nawk awk
1534 # Extract the first word of "$ac_prog", so it can be a program name with args.
1535 set dummy $ac_prog; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_AWK+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541 if test -n "$AWK"; then
1542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1543 else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 for ac_exec_ext in '' $ac_executable_extensions; do
1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551 ac_cv_prog_AWK="$ac_prog"
1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 break 2
1555 done
1556 done
1560 AWK=$ac_cv_prog_AWK
1561 if test -n "$AWK"; then
1562 echo "$as_me:$LINENO: result: $AWK" >&5
1563 echo "${ECHO_T}$AWK" >&6
1564 else
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1569 test -n "$AWK" && break
1570 done
1572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 cat >conftest.make <<\_ACEOF
1579 all:
1580 @echo 'ac_maketemp="$(MAKE)"'
1581 _ACEOF
1582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1584 if test -n "$ac_maketemp"; then
1585 eval ac_cv_prog_make_${ac_make}_set=yes
1586 else
1587 eval ac_cv_prog_make_${ac_make}_set=no
1589 rm -f conftest.make
1591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1592 echo "$as_me:$LINENO: result: yes" >&5
1593 echo "${ECHO_T}yes" >&6
1594 SET_MAKE=
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 SET_MAKE="MAKE=${MAKE-make}"
1601 rm -rf .tst 2>/dev/null
1602 mkdir .tst 2>/dev/null
1603 if test -d .tst; then
1604 am__leading_dot=.
1605 else
1606 am__leading_dot=_
1608 rmdir .tst 2>/dev/null
1610 # test to see if srcdir already configured
1611 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1612 test -f $srcdir/config.status; then
1613 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1614 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1615 { (exit 1); exit 1; }; }
1618 # test whether we have cygpath
1619 if test -z "$CYGPATH_W"; then
1620 if (cygpath --version) >/dev/null 2>/dev/null; then
1621 CYGPATH_W='cygpath -w'
1622 else
1623 CYGPATH_W=echo
1628 # Define the identity of the package.
1629 PACKAGE=pcb
1630 VERSION=1.99v
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE "$PACKAGE"
1635 _ACEOF
1638 cat >>confdefs.h <<_ACEOF
1639 #define VERSION "$VERSION"
1640 _ACEOF
1642 # Some tools Automake needs.
1644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1650 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1653 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1656 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1658 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1660 # Installed binaries are usually stripped using `strip' when the user
1661 # run `make install-strip'. However `strip' might not be the right
1662 # tool to use in cross-compilation environments, therefore Automake
1663 # will honor the `STRIP' environment variable to overrule this program.
1664 if test "$cross_compiling" != no; then
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1667 set dummy ${ac_tool_prefix}strip; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_STRIP+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 if test -n "$STRIP"; then
1674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1675 else
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1687 done
1688 done
1692 STRIP=$ac_cv_prog_STRIP
1693 if test -n "$STRIP"; then
1694 echo "$as_me:$LINENO: result: $STRIP" >&5
1695 echo "${ECHO_T}$STRIP" >&6
1696 else
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1702 if test -z "$ac_cv_prog_STRIP"; then
1703 ac_ct_STRIP=$STRIP
1704 # Extract the first word of "strip", so it can be a program name with args.
1705 set dummy strip; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$ac_ct_STRIP"; then
1712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_STRIP="strip"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1725 done
1726 done
1728 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1732 if test -n "$ac_ct_STRIP"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1734 echo "${ECHO_T}$ac_ct_STRIP" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 STRIP=$ac_ct_STRIP
1741 else
1742 STRIP="$ac_cv_prog_STRIP"
1746 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1748 # We need awk for the "check" target. The system "awk" is bad on
1749 # some platforms.
1750 # Always define AMTAR for backward compatibility.
1752 AMTAR=${AMTAR-"${am_missing_run}tar"}
1754 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1760 ac_config_headers="$ac_config_headers config.h"
1763 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1764 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1765 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1766 if test "${enable_maintainer_mode+set}" = set; then
1767 enableval="$enable_maintainer_mode"
1768 USE_MAINTAINER_MODE=$enableval
1769 else
1770 USE_MAINTAINER_MODE=no
1772 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1773 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1776 if test $USE_MAINTAINER_MODE = yes; then
1777 MAINTAINER_MODE_TRUE=
1778 MAINTAINER_MODE_FALSE='#'
1779 else
1780 MAINTAINER_MODE_TRUE='#'
1781 MAINTAINER_MODE_FALSE=
1784 MAINT=$MAINTAINER_MODE_TRUE
1788 # Make sure we can run config.sub.
1789 $ac_config_sub sun4 >/dev/null 2>&1 ||
1790 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1791 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1792 { (exit 1); exit 1; }; }
1794 echo "$as_me:$LINENO: checking build system type" >&5
1795 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1796 if test "${ac_cv_build+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 ac_cv_build_alias=$build_alias
1800 test -z "$ac_cv_build_alias" &&
1801 ac_cv_build_alias=`$ac_config_guess`
1802 test -z "$ac_cv_build_alias" &&
1803 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1804 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1805 { (exit 1); exit 1; }; }
1806 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1807 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1808 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1809 { (exit 1); exit 1; }; }
1812 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1813 echo "${ECHO_T}$ac_cv_build" >&6
1814 build=$ac_cv_build
1815 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1816 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1817 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1820 echo "$as_me:$LINENO: checking host system type" >&5
1821 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1822 if test "${ac_cv_host+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 ac_cv_host_alias=$host_alias
1826 test -z "$ac_cv_host_alias" &&
1827 ac_cv_host_alias=$ac_cv_build_alias
1828 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1829 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1830 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1831 { (exit 1); exit 1; }; }
1834 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1835 echo "${ECHO_T}$ac_cv_host" >&6
1836 host=$ac_cv_host
1837 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1838 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1839 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1842 echo "$as_me:$LINENO: checking for windows" >&5
1843 echo $ECHO_N "checking for windows... $ECHO_C" >&6
1844 PCB_PATH_DELIMETER=":"
1845 PCB_DIR_SEPARATOR_S="/"
1846 PCB_DIR_SEPARATOR_C='/'
1847 case $host in
1848 *-*-cygwin* )
1849 CFLAGS="$CFLAGS ${CYGWIN_CFLAGS}"
1850 CPPFLAGS="$CPPFLAGS ${CYGWIN_CPPFLAGS}"
1853 *-*-mingw* )
1854 WIN32=yes
1855 CFLAGS="$CFLAGS ${MINGW_CFLAGS:--mms-bitfields -mwindows}"
1856 CPPFLAGS="$CPPFLAGS ${MINGW_CPPFLAGS:--mms-bitfields -mwindows}"
1860 WIN32=no
1862 esac
1864 echo "$as_me:$LINENO: result: $WIN32" >&5
1865 echo "${ECHO_T}$WIN32" >&6
1869 if test x$WIN32 = xyes; then
1870 WIN32_TRUE=
1871 WIN32_FALSE='#'
1872 else
1873 WIN32_TRUE='#'
1874 WIN32_FALSE=
1877 if test "x$WIN32" = "xyes" ; then
1878 PCB_PATH_DELIMETER=";"
1879 PCB_DIR_SEPARATOR_S="\\\\"
1880 PCB_DIR_SEPARATOR_C='\\'
1884 cat >>confdefs.h <<_ACEOF
1885 #define PCB_DIR_SEPARATOR_C '$PCB_DIR_SEPARATOR_C'
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PCB_DIR_SEPARATOR_S "$PCB_DIR_SEPARATOR_S"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PCB_PATH_DELIMETER "$PCB_PATH_DELIMETER"
1896 _ACEOF
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 break 2
1927 done
1928 done
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1942 if test -z "$ac_cv_prog_CC"; then
1943 ac_ct_CC=$CC
1944 # Extract the first word of "gcc", so it can be a program name with args.
1945 set dummy gcc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 CC=$ac_ct_CC
1980 else
1981 CC="$ac_cv_prog_CC"
1984 if test -z "$CC"; then
1985 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="${ac_tool_prefix}cc"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2022 if test -z "$ac_cv_prog_CC"; then
2023 ac_ct_CC=$CC
2024 # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_ac_ct_CC="cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 CC=$ac_ct_CC
2060 else
2061 CC="$ac_cv_prog_CC"
2065 if test -z "$CC"; then
2066 # Extract the first word of "cc", so it can be a program name with args.
2067 set dummy cc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 ac_prog_rejected=no
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2085 ac_prog_rejected=yes
2086 continue
2088 ac_cv_prog_CC="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2092 done
2093 done
2095 if test $ac_prog_rejected = yes; then
2096 # We found a bogon in the path, so make sure we never use it.
2097 set dummy $ac_cv_prog_CC
2098 shift
2099 if test $# != 0; then
2100 # We chose a different compiler from the bogus one.
2101 # However, it has the same basename, so the bogon will be chosen
2102 # first if we set CC to just the basename; use the full file name.
2103 shift
2104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2113 else
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2121 for ac_prog in cl
2123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 break 2
2144 done
2145 done
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2158 test -n "$CC" && break
2159 done
2161 if test -z "$CC"; then
2162 ac_ct_CC=$CC
2163 for ac_prog in cl
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$ac_ct_CC"; then
2173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182 ac_cv_prog_ac_ct_CC="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2186 done
2187 done
2191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192 if test -n "$ac_ct_CC"; then
2193 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194 echo "${ECHO_T}$ac_ct_CC" >&6
2195 else
2196 echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2200 test -n "$ac_ct_CC" && break
2201 done
2203 CC=$ac_ct_CC
2209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: no acceptable C compiler found in \$PATH
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2215 # Provide some information about the compiler.
2216 echo "$as_me:$LINENO:" \
2217 "checking for C compiler version" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220 (eval $ac_compiler --version </dev/null >&5) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225 (eval $ac_compiler -v </dev/null >&5) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230 (eval $ac_compiler -V </dev/null >&5) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h. */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2243 main ()
2247 return 0;
2249 _ACEOF
2250 ac_clean_files_save=$ac_clean_files
2251 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252 # Try to create an executable without -o first, disregard a.out.
2253 # It will help us diagnose broken compilers, and finding out an intuition
2254 # of exeext.
2255 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259 (eval $ac_link_default) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Find the output, starting from the most likely. This scheme is
2264 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2265 # resort.
2267 # Be careful to initialize this variable, since it used to be cached.
2268 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269 ac_cv_exeext=
2270 # b.out is created by i960 compilers.
2271 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273 test -f "$ac_file" || continue
2274 case $ac_file in
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277 conftest.$ac_ext )
2278 # This is the source file.
2280 [ab].out )
2281 # We found the default executable, but exeext='' is most
2282 # certainly right.
2283 break;;
2284 *.* )
2285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 # FIXME: I believe we export ac_cv_exeext for Libtool,
2287 # but it would be cool to find out if it's true. Does anybody
2288 # maintain Libtool? --akim.
2289 export ac_cv_exeext
2290 break;;
2292 break;;
2293 esac
2294 done
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: C compiler cannot create executables
2302 See \`config.log' for more details." >&2;}
2303 { (exit 77); exit 77; }; }
2306 ac_exeext=$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_file" >&5
2308 echo "${ECHO_T}$ac_file" >&6
2310 # Check the compiler produces executables we can run. If not, either
2311 # the compiler is broken, or we cross compile.
2312 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315 # If not cross compiling, check that we can run a simple program.
2316 if test "$cross_compiling" != yes; then
2317 if { ac_try='./$ac_file'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 cross_compiling=no
2324 else
2325 if test "$cross_compiling" = maybe; then
2326 cross_compiling=yes
2327 else
2328 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2338 echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check the compiler produces executables we can run. If not, either
2344 # the compiler is broken, or we cross compile.
2345 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6
2350 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2359 # work properly (i.e., refer to `conftest.exe'), while it won't with
2360 # `rm'.
2361 for ac_file in conftest.exe conftest conftest.*; do
2362 test -f "$ac_file" || continue
2363 case $ac_file in
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366 export ac_cv_exeext
2367 break;;
2368 * ) break;;
2369 esac
2370 done
2371 else
2372 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375 See \`config.log' for more details." >&2;}
2376 { (exit 1); exit 1; }; }
2379 rm -f conftest$ac_cv_exeext
2380 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381 echo "${ECHO_T}$ac_cv_exeext" >&6
2383 rm -f conftest.$ac_ext
2384 EXEEXT=$ac_cv_exeext
2385 ac_exeext=$EXEEXT
2386 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388 if test "${ac_cv_objext+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h. */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2399 main ()
2403 return 0;
2405 _ACEOF
2406 rm -f conftest.o conftest.obj
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2416 break;;
2417 esac
2418 done
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2423 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2430 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433 echo "${ECHO_T}$ac_cv_objext" >&6
2434 OBJEXT=$ac_cv_objext
2435 ac_objext=$OBJEXT
2436 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h. */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2449 main ()
2451 #ifndef __GNUC__
2452 choke me
2453 #endif
2456 return 0;
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 ac_compiler_gnu=yes
2482 else
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2486 ac_compiler_gnu=no
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494 GCC=`test $ac_compiler_gnu = yes && echo yes`
2495 ac_test_CFLAGS=${CFLAGS+set}
2496 ac_save_CFLAGS=$CFLAGS
2497 CFLAGS="-g"
2498 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500 if test "${ac_cv_prog_cc_g+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2511 main ()
2515 return 0;
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_g=yes
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 ac_cv_prog_cc_g=no
2547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551 if test "$ac_test_CFLAGS" = set; then
2552 CFLAGS=$ac_save_CFLAGS
2553 elif test $ac_cv_prog_cc_g = yes; then
2554 if test "$GCC" = yes; then
2555 CFLAGS="-g -O2"
2556 else
2557 CFLAGS="-g"
2559 else
2560 if test "$GCC" = yes; then
2561 CFLAGS="-O2"
2562 else
2563 CFLAGS=
2566 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 ac_cv_prog_cc_stdc=no
2572 ac_save_CC=$CC
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579 #include <stdarg.h>
2580 #include <stdio.h>
2581 #include <sys/types.h>
2582 #include <sys/stat.h>
2583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2584 struct buf { int x; };
2585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586 static char *e (p, i)
2587 char **p;
2588 int i;
2590 return p[i];
2592 static char *f (char * (*g) (char **, int), char **p, ...)
2594 char *s;
2595 va_list v;
2596 va_start (v,p);
2597 s = g (p, va_arg (v,int));
2598 va_end (v);
2599 return s;
2602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2603 function prototypes and stuff, but not '\xHH' hex character constants.
2604 These don't provoke an error unfortunately, instead are silently treated
2605 as 'x'. The following induces an error, until -std1 is added to get
2606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2607 array size at least. It's necessary to write '\x00'==0 to get something
2608 that's true only with -std1. */
2609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2611 int test (int i, double x);
2612 struct s1 {int (*f) (int a);};
2613 struct s2 {int (*f) (double a);};
2614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615 int argc;
2616 char **argv;
2618 main ()
2620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2622 return 0;
2624 _ACEOF
2625 # Don't try gcc -ansi; that turns off useful extensions and
2626 # breaks some systems' header files.
2627 # AIX -qlanglvl=ansi
2628 # Ultrix and OSF/1 -std1
2629 # HP-UX 10.20 and later -Ae
2630 # HP-UX older versions -Aa -D_HPUX_SOURCE
2631 # SVR4 -Xc -D__EXTENSIONS__
2632 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2634 CC="$ac_save_CC $ac_arg"
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag"
2645 || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_cv_prog_cc_stdc=$ac_arg
2658 break
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext
2665 done
2666 rm -f conftest.$ac_ext conftest.$ac_objext
2667 CC=$ac_save_CC
2671 case "x$ac_cv_prog_cc_stdc" in
2672 x|xno)
2673 echo "$as_me:$LINENO: result: none needed" >&5
2674 echo "${ECHO_T}none needed" >&6 ;;
2676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678 CC="$CC $ac_cv_prog_cc_stdc" ;;
2679 esac
2681 # Some people use a C++ compiler to compile C. Since we use `exit',
2682 # in C++ we need to declare it. In case someone uses the same compiler
2683 # for both compiling C and C++ we need to have the C++ compiler decide
2684 # the declaration of exit, since it's the most demanding environment.
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #ifndef __cplusplus
2687 choke me
2688 #endif
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 for ac_declaration in \
2713 '' \
2714 'extern "C" void std::exit (int) throw (); using std::exit;' \
2715 'extern "C" void std::exit (int); using std::exit;' \
2716 'extern "C" void exit (int) throw ();' \
2717 'extern "C" void exit (int);' \
2718 'void exit (int);'
2720 cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2726 $ac_declaration
2727 #include <stdlib.h>
2729 main ()
2731 exit (42);
2733 return 0;
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag"
2746 || test ! -s conftest.err'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 (eval $ac_try) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 continue
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 $ac_declaration
2774 main ()
2776 exit (42);
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 break
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 done
2811 rm -f conftest*
2812 if test -n "$ac_declaration"; then
2813 echo '#ifdef __cplusplus' >>confdefs.h
2814 echo $ac_declaration >>confdefs.h
2815 echo '#endif' >>confdefs.h
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 DEPDIR="${am__leading_dot}deps"
2831 ac_config_commands="$ac_config_commands depfiles"
2834 am_make=${MAKE-make}
2835 cat > confinc << 'END'
2836 am__doit:
2837 @echo done
2838 .PHONY: am__doit
2840 # If we don't find an include directive, just comment out the code.
2841 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2842 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2843 am__include="#"
2844 am__quote=
2845 _am_result=none
2846 # First try GNU make style include.
2847 echo "include confinc" > confmf
2848 # We grep out `Entering directory' and `Leaving directory'
2849 # messages which can occur if `w' ends up in MAKEFLAGS.
2850 # In particular we don't look at `^make:' because GNU make might
2851 # be invoked under some other name (usually "gmake"), in which
2852 # case it prints its new name instead of `make'.
2853 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2854 am__include=include
2855 am__quote=
2856 _am_result=GNU
2858 # Now try BSD make style include.
2859 if test "$am__include" = "#"; then
2860 echo '.include "confinc"' > confmf
2861 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2862 am__include=.include
2863 am__quote="\""
2864 _am_result=BSD
2869 echo "$as_me:$LINENO: result: $_am_result" >&5
2870 echo "${ECHO_T}$_am_result" >&6
2871 rm -f confinc confmf
2873 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2874 if test "${enable_dependency_tracking+set}" = set; then
2875 enableval="$enable_dependency_tracking"
2878 if test "x$enable_dependency_tracking" != xno; then
2879 am_depcomp="$ac_aux_dir/depcomp"
2880 AMDEPBACKSLASH='\'
2884 if test "x$enable_dependency_tracking" != xno; then
2885 AMDEP_TRUE=
2886 AMDEP_FALSE='#'
2887 else
2888 AMDEP_TRUE='#'
2889 AMDEP_FALSE=
2895 depcc="$CC" am_compiler_list=
2897 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2898 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2899 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2903 # We make a subdir and do the tests there. Otherwise we can end up
2904 # making bogus files that we don't know about and never remove. For
2905 # instance it was reported that on HP-UX the gcc test will end up
2906 # making a dummy file named `D' -- because `-MD' means `put the output
2907 # in D'.
2908 mkdir conftest.dir
2909 # Copy depcomp to subdir because otherwise we won't find it if we're
2910 # using a relative directory.
2911 cp "$am_depcomp" conftest.dir
2912 cd conftest.dir
2913 # We will build objects and dependencies in a subdirectory because
2914 # it helps to detect inapplicable dependency modes. For instance
2915 # both Tru64's cc and ICC support -MD to output dependencies as a
2916 # side effect of compilation, but ICC will put the dependencies in
2917 # the current directory while Tru64 will put them in the object
2918 # directory.
2919 mkdir sub
2921 am_cv_CC_dependencies_compiler_type=none
2922 if test "$am_compiler_list" = ""; then
2923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2925 for depmode in $am_compiler_list; do
2926 # Setup a source with many dependencies, because some compilers
2927 # like to wrap large dependency lists on column 80 (with \), and
2928 # we should not choose a depcomp mode which is confused by this.
2930 # We need to recreate these files for each test, as the compiler may
2931 # overwrite some of them when testing with obscure command lines.
2932 # This happens at least with the AIX C compiler.
2933 : > sub/conftest.c
2934 for i in 1 2 3 4 5 6; do
2935 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2936 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2937 # Solaris 8's {/usr,}/bin/sh.
2938 touch sub/conftst$i.h
2939 done
2940 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2942 case $depmode in
2943 nosideeffect)
2944 # after this tag, mechanisms are not by side-effect, so they'll
2945 # only be used when explicitly requested
2946 if test "x$enable_dependency_tracking" = xyes; then
2947 continue
2948 else
2949 break
2952 none) break ;;
2953 esac
2954 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2955 # mode. It turns out that the SunPro C++ compiler does not properly
2956 # handle `-M -o', and we need to detect this.
2957 if depmode=$depmode \
2958 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2960 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2961 >/dev/null 2>conftest.err &&
2962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2963 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2965 # icc doesn't choke on unknown options, it will just issue warnings
2966 # or remarks (even with -Werror). So we grep stderr for any message
2967 # that says an option was ignored or not supported.
2968 # When given -MP, icc 7.0 and 7.1 complain thusly:
2969 # icc: Command line warning: ignoring option '-M'; no argument required
2970 # The diagnosis changed in icc 8.0:
2971 # icc: Command line remark: option '-MP' not supported
2972 if (grep 'ignoring option' conftest.err ||
2973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2974 am_cv_CC_dependencies_compiler_type=$depmode
2975 break
2978 done
2980 cd ..
2981 rm -rf conftest.dir
2982 else
2983 am_cv_CC_dependencies_compiler_type=none
2987 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2988 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2994 test "x$enable_dependency_tracking" != xno \
2995 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2996 am__fastdepCC_TRUE=
2997 am__fastdepCC_FALSE='#'
2998 else
2999 am__fastdepCC_TRUE='#'
3000 am__fastdepCC_FALSE=
3005 echo "$as_me:$LINENO: checking for inline" >&5
3006 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3007 if test "${ac_cv_c_inline+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 ac_cv_c_inline=no
3011 for ac_kw in inline __inline__ __inline; do
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 #ifndef __cplusplus
3019 typedef int foo_t;
3020 static $ac_kw foo_t static_foo () {return 0; }
3021 $ac_kw foo_t foo () {return 0; }
3022 #endif
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_c_inline=$ac_kw; break
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3057 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3058 echo "${ECHO_T}$ac_cv_c_inline" >&6
3061 case $ac_cv_c_inline in
3062 inline | yes) ;;
3064 case $ac_cv_c_inline in
3065 no) ac_val=;;
3066 *) ac_val=$ac_cv_c_inline;;
3067 esac
3068 cat >>confdefs.h <<_ACEOF
3069 #ifndef __cplusplus
3070 #define inline $ac_val
3071 #endif
3072 _ACEOF
3074 esac
3077 if test "x$CC" != xcc; then
3078 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3079 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3080 else
3081 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3082 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3084 set dummy $CC; ac_cc=`echo $2 |
3085 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3086 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 # Make sure it works both with $CC and with simple cc.
3105 # We do the test twice because some compilers refuse to overwrite an
3106 # existing .o file with -o, though they will create one.
3107 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3108 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); };
3118 then
3119 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3120 if test "x$CC" != xcc; then
3121 # Test first that cc exists at all.
3122 if { ac_try='cc -c conftest.$ac_ext >&5'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3129 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); };
3139 then
3140 # cc works too.
3142 else
3143 # cc exists but doesn't like -o.
3144 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3148 else
3149 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3151 rm -f conftest*
3154 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3155 echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3161 cat >>confdefs.h <<\_ACEOF
3162 #define NO_MINUS_C_MINUS_O 1
3163 _ACEOF
3167 # FIXME: we rely on the cache variable name because
3168 # there is no other way.
3169 set dummy $CC
3170 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3171 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3172 # Losing compiler, so override with the script.
3173 # FIXME: It is wrong to rewrite CC.
3174 # But if we don't then we get into trouble of one sort or another.
3175 # A longer-term fix would be to have automake use am__CC in this case,
3176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3177 CC="$am_aux_dir/compile $CC"
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3187 # On Suns, sometimes $CPP names a directory.
3188 if test -n "$CPP" && test -d "$CPP"; then
3189 CPP=
3191 if test -z "$CPP"; then
3192 if test "${ac_cv_prog_CPP+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 # Double quotes because CPP needs to be expanded
3196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3198 ac_preproc_ok=false
3199 for ac_c_preproc_warn_flag in '' yes
3201 # Use a header file that comes with gcc, so configuring glibc
3202 # with a fresh cross-compiler works.
3203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204 # <limits.h> exists even on freestanding compilers.
3205 # On the NeXT, cc -E runs the code through the compiler's parser,
3206 # not just through cpp. "Syntax error" is here to catch this case.
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #ifdef __STDC__
3214 # include <limits.h>
3215 #else
3216 # include <assert.h>
3217 #endif
3218 Syntax error
3219 _ACEOF
3220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } >/dev/null; then
3228 if test -s conftest.err; then
3229 ac_cpp_err=$ac_c_preproc_warn_flag
3230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 else
3232 ac_cpp_err=
3234 else
3235 ac_cpp_err=yes
3237 if test -z "$ac_cpp_err"; then
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 # Broken: fails on valid input.
3244 continue
3246 rm -f conftest.err conftest.$ac_ext
3248 # OK, works on sane cases. Now check whether non-existent headers
3249 # can be detected and how.
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <ac_nonexistent.h>
3257 _ACEOF
3258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } >/dev/null; then
3266 if test -s conftest.err; then
3267 ac_cpp_err=$ac_c_preproc_warn_flag
3268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3269 else
3270 ac_cpp_err=
3272 else
3273 ac_cpp_err=yes
3275 if test -z "$ac_cpp_err"; then
3276 # Broken: success on invalid input.
3277 continue
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 # Passes both tests.
3283 ac_preproc_ok=:
3284 break
3286 rm -f conftest.err conftest.$ac_ext
3288 done
3289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3290 rm -f conftest.err conftest.$ac_ext
3291 if $ac_preproc_ok; then
3292 break
3295 done
3296 ac_cv_prog_CPP=$CPP
3299 CPP=$ac_cv_prog_CPP
3300 else
3301 ac_cv_prog_CPP=$CPP
3303 echo "$as_me:$LINENO: result: $CPP" >&5
3304 echo "${ECHO_T}$CPP" >&6
3305 ac_preproc_ok=false
3306 for ac_c_preproc_warn_flag in '' yes
3308 # Use a header file that comes with gcc, so configuring glibc
3309 # with a fresh cross-compiler works.
3310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311 # <limits.h> exists even on freestanding compilers.
3312 # On the NeXT, cc -E runs the code through the compiler's parser,
3313 # not just through cpp. "Syntax error" is here to catch this case.
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320 #ifdef __STDC__
3321 # include <limits.h>
3322 #else
3323 # include <assert.h>
3324 #endif
3325 Syntax error
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338 else
3339 ac_cpp_err=
3341 else
3342 ac_cpp_err=yes
3344 if test -z "$ac_cpp_err"; then
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Broken: fails on valid input.
3351 continue
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether non-existent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 else
3377 ac_cpp_err=
3379 else
3380 ac_cpp_err=yes
3382 if test -z "$ac_cpp_err"; then
3383 # Broken: success on invalid input.
3384 continue
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3393 rm -f conftest.err conftest.$ac_ext
3395 done
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3400 else
3401 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3402 See \`config.log' for more details." >&5
3403 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 for ac_prog in gawk mawk nawk awk
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_AWK+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$AWK"; then
3424 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_AWK="$ac_prog"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3442 AWK=$ac_cv_prog_AWK
3443 if test -n "$AWK"; then
3444 echo "$as_me:$LINENO: result: $AWK" >&5
3445 echo "${ECHO_T}$AWK" >&6
3446 else
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3451 test -n "$AWK" && break
3452 done
3455 for ac_prog in flex lex
3457 # Extract the first word of "$ac_prog", so it can be a program name with args.
3458 set dummy $ac_prog; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_LEX+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$LEX"; then
3465 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_LEX="$ac_prog"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3483 LEX=$ac_cv_prog_LEX
3484 if test -n "$LEX"; then
3485 echo "$as_me:$LINENO: result: $LEX" >&5
3486 echo "${ECHO_T}$LEX" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3492 test -n "$LEX" && break
3493 done
3494 test -n "$LEX" || LEX=":"
3496 if test -z "$LEXLIB"
3497 then
3498 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3499 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3500 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_check_lib_save_LIBS=$LIBS
3504 LIBS="-lfl $LIBS"
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 #ifdef __cplusplus
3514 extern "C"
3515 #endif
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518 char yywrap ();
3520 main ()
3522 yywrap ();
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.$ac_objext conftest$ac_exeext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529 (eval $ac_link) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_cv_lib_fl_yywrap=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 ac_cv_lib_fl_yywrap=no
3556 rm -f conftest.err conftest.$ac_objext \
3557 conftest$ac_exeext conftest.$ac_ext
3558 LIBS=$ac_check_lib_save_LIBS
3560 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3561 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3562 if test $ac_cv_lib_fl_yywrap = yes; then
3563 LEXLIB="-lfl"
3564 else
3565 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3566 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3567 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 ac_check_lib_save_LIBS=$LIBS
3571 LIBS="-ll $LIBS"
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 /* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3585 char yywrap ();
3587 main ()
3589 yywrap ();
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest$ac_exeext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 ac_cv_lib_l_yywrap=yes
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 ac_cv_lib_l_yywrap=no
3623 rm -f conftest.err conftest.$ac_objext \
3624 conftest$ac_exeext conftest.$ac_ext
3625 LIBS=$ac_check_lib_save_LIBS
3627 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3628 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3629 if test $ac_cv_lib_l_yywrap = yes; then
3630 LEXLIB="-ll"
3637 if test "x$LEX" != "x:"; then
3638 echo "$as_me:$LINENO: checking lex output file root" >&5
3639 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3640 if test "${ac_cv_prog_lex_root+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643 # The minimal lex program is just a single line: %%. But some broken lexes
3644 # (Solaris, I think it was) want two %% lines, so accommodate them.
3645 cat >conftest.l <<_ACEOF
3648 _ACEOF
3649 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3650 (eval $LEX conftest.l) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }
3654 if test -f lex.yy.c; then
3655 ac_cv_prog_lex_root=lex.yy
3656 elif test -f lexyy.c; then
3657 ac_cv_prog_lex_root=lexyy
3658 else
3659 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3660 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3661 { (exit 1); exit 1; }; }
3664 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3665 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3666 rm -f conftest.l
3667 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3669 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3670 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3671 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 # POSIX says lex can declare yytext either as a pointer or an array; the
3675 # default is implementation-dependent. Figure out which it is, since
3676 # not all implementations provide the %pointer and %array declarations.
3677 ac_cv_prog_lex_yytext_pointer=no
3678 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3679 ac_save_LIBS=$LIBS
3680 LIBS="$LIBS $LEXLIB"
3681 cat >conftest.$ac_ext <<_ACEOF
3682 `cat $LEX_OUTPUT_ROOT.c`
3683 _ACEOF
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest$ac_exeext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_lex_yytext_pointer=yes
3707 else
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3712 rm -f conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
3714 LIBS=$ac_save_LIBS
3715 rm -f "${LEX_OUTPUT_ROOT}.c"
3718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3719 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3720 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3722 cat >>confdefs.h <<\_ACEOF
3723 #define YYTEXT_POINTER 1
3724 _ACEOF
3729 if test "$LEX" = :; then
3730 LEX=${am_missing_run}flex
3732 # Extract the first word of "$LEX", so it can be a program name with args.
3733 set dummy $LEX; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_path_LEX_PATH+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 case $LEX_PATH in
3740 [\\/]* | ?:[\\/]*)
3741 ac_cv_path_LEX_PATH="$LEX_PATH" # Let the user override the test with a path.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_path_LEX_PATH="$as_dir/$ac_word$ac_exec_ext"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3758 test -z "$ac_cv_path_LEX_PATH" && ac_cv_path_LEX_PATH="notfound"
3760 esac
3762 LEX_PATH=$ac_cv_path_LEX_PATH
3764 if test -n "$LEX_PATH"; then
3765 echo "$as_me:$LINENO: result: $LEX_PATH" >&5
3766 echo "${ECHO_T}$LEX_PATH" >&6
3767 else
3768 echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3772 if test "$LEX_PATH" = "notfound" ; then
3773 { { echo "$as_me:$LINENO: error: Couldn't find a usable lex program.
3774 Please install flex which is available from
3775 ftp://ftp.gnu.org/pub/non-gnu/flex/
3776 " >&5
3777 echo "$as_me: error: Couldn't find a usable lex program.
3778 Please install flex which is available from
3779 ftp://ftp.gnu.org/pub/non-gnu/flex/
3780 " >&2;}
3781 { (exit 1); exit 1; }; }
3785 for ac_prog in 'bison -y' byacc
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_YACC+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 if test -n "$YACC"; then
3795 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_YACC="$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3813 YACC=$ac_cv_prog_YACC
3814 if test -n "$YACC"; then
3815 echo "$as_me:$LINENO: result: $YACC" >&5
3816 echo "${ECHO_T}$YACC" >&6
3817 else
3818 echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 test -n "$YACC" && break
3823 done
3824 test -n "$YACC" || YACC="yacc"
3826 # Extract the first word of "$YACC", so it can be a program name with args.
3827 set dummy $YACC; ac_word=$2
3828 echo "$as_me:$LINENO: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_path_YACC_PATH+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 case $YACC_PATH in
3834 [\\/]* | ?:[\\/]*)
3835 ac_cv_path_YACC_PATH="$YACC_PATH" # Let the user override the test with a path.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_path_YACC_PATH="$as_dir/$ac_word$ac_exec_ext"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3852 test -z "$ac_cv_path_YACC_PATH" && ac_cv_path_YACC_PATH="notfound"
3854 esac
3856 YACC_PATH=$ac_cv_path_YACC_PATH
3858 if test -n "$YACC_PATH"; then
3859 echo "$as_me:$LINENO: result: $YACC_PATH" >&5
3860 echo "${ECHO_T}$YACC_PATH" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6
3866 if test "$YACC_PATH" = "notfound" ; then
3867 { { echo "$as_me:$LINENO: error: Couldn't find a usable yacc program.
3868 Please install bison which is available from
3869 ftp://ftp.gnu.org/pub/gnu/bison/
3870 " >&5
3871 echo "$as_me: error: Couldn't find a usable yacc program.
3872 Please install bison which is available from
3873 ftp://ftp.gnu.org/pub/gnu/bison/
3874 " >&2;}
3875 { (exit 1); exit 1; }; }
3878 # Find a good install program. We prefer a C program (faster),
3879 # so one script is as good as another. But avoid the broken or
3880 # incompatible versions:
3881 # SysV /etc/install, /usr/sbin/install
3882 # SunOS /usr/etc/install
3883 # IRIX /sbin/install
3884 # AIX /bin/install
3885 # AmigaOS /C/install, which installs bootblocks on floppy discs
3886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3889 # OS/2's system install, which has a completely different semantic
3890 # ./install, which can be erroneously created by make from ./install.sh.
3891 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3892 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3893 if test -z "$INSTALL"; then
3894 if test "${ac_cv_path_install+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 # Account for people who put trailing slashes in PATH elements.
3903 case $as_dir/ in
3904 ./ | .// | /cC/* | \
3905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3906 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3907 /usr/ucb/* ) ;;
3909 # OSF1 and SCO ODT 3.0 have their own names for install.
3910 # Don't use installbsd from OSF since it installs stuff as root
3911 # by default.
3912 for ac_prog in ginstall scoinst install; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3915 if test $ac_prog = install &&
3916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917 # AIX install. It has an incompatible calling convention.
3919 elif test $ac_prog = install &&
3920 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3921 # program-specific install script used by HP pwplus--don't use.
3923 else
3924 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3925 break 3
3928 done
3929 done
3931 esac
3932 done
3936 if test "${ac_cv_path_install+set}" = set; then
3937 INSTALL=$ac_cv_path_install
3938 else
3939 # As a last resort, use the slow shell script. We don't cache a
3940 # path for INSTALL within a source directory, because that will
3941 # break other packages using the cache if that directory is
3942 # removed, or if the path is relative.
3943 INSTALL=$ac_install_sh
3946 echo "$as_me:$LINENO: result: $INSTALL" >&5
3947 echo "${ECHO_T}$INSTALL" >&6
3949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3950 # It thinks the first close brace ends the variable substitution.
3951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3957 if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_RANLIB+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test -n "$RANLIB"; then
3966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3979 done
3980 done
3984 RANLIB=$ac_cv_prog_RANLIB
3985 if test -n "$RANLIB"; then
3986 echo "$as_me:$LINENO: result: $RANLIB" >&5
3987 echo "${ECHO_T}$RANLIB" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3994 if test -z "$ac_cv_prog_RANLIB"; then
3995 ac_ct_RANLIB=$RANLIB
3996 # Extract the first word of "ranlib", so it can be a program name with args.
3997 set dummy ranlib; ac_word=$2
3998 echo "$as_me:$LINENO: checking for $ac_word" >&5
3999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 if test -n "$ac_ct_RANLIB"; then
4004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_RANLIB="ranlib"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4017 done
4018 done
4020 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4024 if test -n "$ac_ct_RANLIB"; then
4025 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4026 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4027 else
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4032 RANLIB=$ac_ct_RANLIB
4033 else
4034 RANLIB="$ac_cv_prog_RANLIB"
4039 # Used for building the win32 icons.
4041 # Extract the first word of "tgif", so it can be a program name with args.
4042 set dummy tgif; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_TGIF+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 case $TGIF in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_TGIF="$TGIF" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_TGIF="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4067 test -z "$ac_cv_path_TGIF" && ac_cv_path_TGIF="notfound"
4069 esac
4071 TGIF=$ac_cv_path_TGIF
4073 if test -n "$TGIF"; then
4074 echo "$as_me:$LINENO: result: $TGIF" >&5
4075 echo "${ECHO_T}$TGIF" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4083 if test x$TGIF = xnotfound; then
4084 MISSING_TGIF_TRUE=
4085 MISSING_TGIF_FALSE='#'
4086 else
4087 MISSING_TGIF_TRUE='#'
4088 MISSING_TGIF_FALSE=
4091 # Extract the first word of "xpmtoppm", so it can be a program name with args.
4092 set dummy xpmtoppm; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_path_XPMTOPPM+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 case $XPMTOPPM in
4099 [\\/]* | ?:[\\/]*)
4100 ac_cv_path_XPMTOPPM="$XPMTOPPM" # Let the user override the test with a path.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_path_XPMTOPPM="$as_dir/$ac_word$ac_exec_ext"
4111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4114 done
4115 done
4117 test -z "$ac_cv_path_XPMTOPPM" && ac_cv_path_XPMTOPPM="notfound"
4119 esac
4121 XPMTOPPM=$ac_cv_path_XPMTOPPM
4123 if test -n "$XPMTOPPM"; then
4124 echo "$as_me:$LINENO: result: $XPMTOPPM" >&5
4125 echo "${ECHO_T}$XPMTOPPM" >&6
4126 else
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4131 # Extract the first word of "ppmtowinicon", so it can be a program name with args.
4132 set dummy ppmtowinicon; ac_word=$2
4133 echo "$as_me:$LINENO: checking for $ac_word" >&5
4134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4135 if test "${ac_cv_path_PPMTOWINICON+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 case $PPMTOWINICON in
4139 [\\/]* | ?:[\\/]*)
4140 ac_cv_path_PPMTOWINICON="$PPMTOWINICON" # Let the user override the test with a path.
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_path_PPMTOWINICON="$as_dir/$ac_word$ac_exec_ext"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4157 test -z "$ac_cv_path_PPMTOWINICON" && ac_cv_path_PPMTOWINICON="notfound"
4159 esac
4161 PPMTOWINICON=$ac_cv_path_PPMTOWINICON
4163 if test -n "$PPMTOWINICON"; then
4164 echo "$as_me:$LINENO: result: $PPMTOWINICON" >&5
4165 echo "${ECHO_T}$PPMTOWINICON" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4173 if test x$PPMTOWINICON = xnotfound -o x$XPMTOPPM = xnotfound; then
4174 MISSING_XPMTOPPM_TRUE=
4175 MISSING_XPMTOPPM_FALSE='#'
4176 else
4177 MISSING_XPMTOPPM_TRUE='#'
4178 MISSING_XPMTOPPM_FALSE=
4181 # Extract the first word of "convert", so it can be a program name with args.
4182 set dummy convert; ac_word=$2
4183 echo "$as_me:$LINENO: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_path_CONVERT+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 case $CONVERT in
4189 [\\/]* | ?:[\\/]*)
4190 ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4204 done
4205 done
4207 test -z "$ac_cv_path_CONVERT" && ac_cv_path_CONVERT="notfound"
4209 esac
4211 CONVERT=$ac_cv_path_CONVERT
4213 if test -n "$CONVERT"; then
4214 echo "$as_me:$LINENO: result: $CONVERT" >&5
4215 echo "${ECHO_T}$CONVERT" >&6
4216 else
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4223 if test x$CONVERT = xnotfound; then
4224 MISSING_CONVERT_TRUE=
4225 MISSING_CONVERT_FALSE='#'
4226 else
4227 MISSING_CONVERT_TRUE='#'
4228 MISSING_CONVERT_FALSE=
4232 docs_yesno=yes
4234 echo "$as_me:$LINENO: checking if the documentation should be built" >&5
4235 echo $ECHO_N "checking if the documentation should be built... $ECHO_C" >&6
4236 # Check whether --enable-doc or --disable-doc was given.
4237 if test "${enable_doc+set}" = set; then
4238 enableval="$enable_doc"
4240 if test "X$enable_doc" = "Xno" ; then
4241 DOC=""
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4244 docs_yesno=no
4245 else
4246 DOC=doc
4247 echo "$as_me:$LINENO: result: yes" >&5
4248 echo "${ECHO_T}yes" >&6
4249 docs_yesno=yes
4252 else
4254 DOC=doc
4255 echo "$as_me:$LINENO: result: yes" >&5
4256 echo "${ECHO_T}yes" >&6
4257 docs_yesno=yes
4262 if test "X$docs_yesno" = "Xyes" -a "X$USE_MAINTAINER_MODE" = "Xyes" ; then
4263 for ac_prog in makeinfo
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_MKINFO+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 if test -n "$MKINFO"; then
4273 ac_cv_prog_MKINFO="$MKINFO" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_MKINFO="$ac_prog"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4291 MKINFO=$ac_cv_prog_MKINFO
4292 if test -n "$MKINFO"; then
4293 echo "$as_me:$LINENO: result: $MKINFO" >&5
4294 echo "${ECHO_T}$MKINFO" >&6
4295 else
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4300 test -n "$MKINFO" && break
4301 done
4302 test -n "$MKINFO" || MKINFO="notfound"
4304 if test "X$MKINFO" = "Xnotfound"; then
4305 { { echo "$as_me:$LINENO: error: You have requested a maintainer-mode build and a build
4306 of the documentation. For this to work, you must have version 4.6 or newer of
4307 the GNU texinfo package.
4308 " >&5
4309 echo "$as_me: error: You have requested a maintainer-mode build and a build
4310 of the documentation. For this to work, you must have version 4.6 or newer of
4311 the GNU texinfo package.
4312 " >&2;}
4313 { (exit 1); exit 1; }; }
4315 echo "$as_me:$LINENO: checking for makeinfo version 4.6 or newer" >&5
4316 echo $ECHO_N "checking for makeinfo version 4.6 or newer... $ECHO_C" >&6
4317 v=`$MKINFO --version | grep "GNU texinfo"`
4318 if test $? -ne 0 ; then
4319 v=notfound
4322 case " $v " in
4323 *\ 4.[6-9]\ *)
4324 echo "$as_me:$LINENO: result: yes" >&5
4325 echo "${ECHO_T}yes" >&6
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4331 { { echo "$as_me:$LINENO: error: You have requested a maintainer-mode build and a build
4332 of the documentation. For this to work, you must have version 4.6 or newer of
4333 the GNU texinfo package. You seem to have
4337 " >&5
4338 echo "$as_me: error: You have requested a maintainer-mode build and a build
4339 of the documentation. For this to work, you must have version 4.6 or newer of
4340 the GNU texinfo package. You seem to have
4344 " >&2;}
4345 { (exit 1); exit 1; }; }
4347 esac
4349 # Extract the first word of "perl", so it can be a program name with args.
4350 set dummy perl; ac_word=$2
4351 echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353 if test "${ac_cv_path_PERL+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 case $PERL in
4357 [\\/]* | ?:[\\/]*)
4358 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4375 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="notfound"
4377 esac
4379 PERL=$ac_cv_path_PERL
4381 if test -n "$PERL"; then
4382 echo "$as_me:$LINENO: result: $PERL" >&5
4383 echo "${ECHO_T}$PERL" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 if test "X$PERL" = "Xnotfound"; then
4390 { { echo "$as_me:$LINENO: error: You have requested a maintainer-mode build and a build
4391 of the documentation. For this to work, you must have perl installed.
4392 " >&5
4393 echo "$as_me: error: You have requested a maintainer-mode build and a build
4394 of the documentation. For this to work, you must have perl installed.
4395 " >&2;}
4396 { (exit 1); exit 1; }; }
4400 # FIXME: for now, only try to add -rdynamic if we're using gcc. We really
4401 # need to figure out what the correct test is here. In the mean time, this
4402 # should let things build with SunPRO again.
4403 if test "x$GCC" = "xyes"; then
4404 echo "$as_me:$LINENO: checking If the compiler accepts -rdynamic" >&5
4405 echo $ECHO_N "checking If the compiler accepts -rdynamic... $ECHO_C" >&6
4406 old_LDFLAGS="$LDFLAGS"
4407 LDFLAGS="$LDFLAGS -rdynamic"
4408 cat >conftest.$ac_ext <<_ACEOF
4409 int main(){}
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>conftest.er1
4414 ac_status=$?
4415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest$ac_exeext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 echo "$as_me:$LINENO: result: yes" >&5
4434 echo "${ECHO_T}yes" >&6
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 LDFLAGS="$old_LDFLAGS"
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4444 rm -f conftest.err conftest.$ac_objext \
4445 conftest$ac_exeext conftest.$ac_ext
4448 # ------------- HID config -------------------
4450 hid_guis=""
4451 hid_printers=""
4452 hid_exporters=""
4453 hid_always=""
4455 for hid in `cd $srcdir/src/hid; echo *`; do
4456 F=$srcdir/src/hid/$hid/hid.conf
4457 if test -f $F
4458 then
4459 echo checking $F
4460 . $F
4461 case $type in
4462 gui ) hid_guis="$hid_guis $hid" ;;
4463 printer ) hid_printers="$hid_printers $hid" ;;
4464 export ) hid_exporters="$hid_exporters $hid" ;;
4465 always ) hid_always="$hid_always $hid" ;;
4466 esac
4468 done
4470 echo "$as_me:$LINENO: checking for which gui to use" >&5
4471 echo $ECHO_N "checking for which gui to use... $ECHO_C" >&6
4473 # Check whether --with-gui or --without-gui was given.
4474 if test "${with_gui+set}" = set; then
4475 withval="$with_gui"
4477 else
4478 with_gui=gtk
4481 echo "$as_me:$LINENO: result: $with_gui" >&5
4482 echo "${ECHO_T}$with_gui" >&6
4483 case " $hid_guis no none " in
4484 *\ $with_gui\ * ) HIDLIST="$with_gui" ;;
4485 * ) { { echo "$as_me:$LINENO: error: $with_gui is not a valid gui" >&5
4486 echo "$as_me: error: $with_gui is not a valid gui" >&2;}
4487 { (exit 1); exit 1; }; } ;;
4488 esac
4490 if test x"$with_gui" = x"none" -o x"$with_gui" = x"no"
4491 then
4492 HIDLIST=
4495 echo "$as_me:$LINENO: checking for whether to use DBUS" >&5
4496 echo $ECHO_N "checking for whether to use DBUS... $ECHO_C" >&6
4497 # Check whether --enable-dbus or --disable-dbus was given.
4498 if test "${enable_dbus+set}" = set; then
4499 enableval="$enable_dbus"
4501 else
4502 enable_dbus=no
4505 echo "$as_me:$LINENO: result: $enable_dbus" >&5
4506 echo "${ECHO_T}$enable_dbus" >&6
4509 if test x$enable_dbus = xyes; then
4510 WITH_DBUS_TRUE=
4511 WITH_DBUS_FALSE='#'
4512 else
4513 WITH_DBUS_TRUE='#'
4514 WITH_DBUS_FALSE=
4518 if test "x$enable_dbus" = "xyes"; then
4519 case " $with_gui " in
4520 *\ gtk\ *) ;;
4521 *\ lesstif\ *) ;;
4522 * ) { { echo "$as_me:$LINENO: error: DBUS enabled but only works with a mainloop capable GUI HID.
4523 Either do not use --enable-dbus or enable the gtk or lesstif GUI HID." >&5
4524 echo "$as_me: error: DBUS enabled but only works with a mainloop capable GUI HID.
4525 Either do not use --enable-dbus or enable the gtk or lesstif GUI HID." >&2;}
4526 { (exit 1); exit 1; }; }
4527 esac
4529 # Check for pkg-config
4530 # Extract the first word of "pkg-config", so it can be a program name with args.
4531 set dummy pkg-config; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 case $PKG_CONFIG in
4538 [\\/]* | ?:[\\/]*)
4539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4556 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4558 esac
4560 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4562 if test -n "$PKG_CONFIG"; then
4563 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4564 echo "${ECHO_T}$PKG_CONFIG" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 if test "$PKG_CONFIG" = "no"; then
4571 { { echo "$as_me:$LINENO: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&5
4572 echo "$as_me: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&2;}
4573 { (exit 1); exit 1; }; }
4577 succeeded=no
4579 if test -z "$PKG_CONFIG"; then
4580 # Extract the first word of "pkg-config", so it can be a program name with args.
4581 set dummy pkg-config; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 case $PKG_CONFIG in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4608 esac
4610 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4612 if test -n "$PKG_CONFIG"; then
4613 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4614 echo "${ECHO_T}$PKG_CONFIG" >&6
4615 else
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4622 if test "$PKG_CONFIG" = "no" ; then
4623 echo "*** The pkg-config script could not be found. Make sure it is"
4624 echo "*** in your path, or set the PKG_CONFIG environment variable"
4625 echo "*** to the full path to pkg-config."
4626 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4627 else
4628 PKG_CONFIG_MIN_VERSION=0.9.0
4629 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4630 echo "$as_me:$LINENO: checking for dbus-1 >= 0.61" >&5
4631 echo $ECHO_N "checking for dbus-1 >= 0.61... $ECHO_C" >&6
4633 if $PKG_CONFIG --exists "dbus-1 >= 0.61" ; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636 succeeded=yes
4638 echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
4639 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6
4640 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.61"`
4641 echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
4642 echo "${ECHO_T}$DBUS_CFLAGS" >&6
4644 echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
4645 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6
4646 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.61"`
4647 echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
4648 echo "${ECHO_T}$DBUS_LIBS" >&6
4649 else
4650 DBUS_CFLAGS=""
4651 DBUS_LIBS=""
4652 ## If we have a custom action on failure, don't print errors, but
4653 ## do set a variable so people can do so.
4654 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 0.61"`
4660 else
4661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4666 if test $succeeded = yes; then
4668 else
4669 { { echo "$as_me:$LINENO: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
4670 Please review the following errors:
4671 $DBUS_PKG_ERRORS" >&5
4672 echo "$as_me: error: Cannot find dbus-1 >= 0.61, install it and rerun ./configure
4673 Please review the following errors:
4674 $DBUS_PKG_ERRORS" >&2;}
4675 { (exit 1); exit 1; }; }
4679 DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
4682 cat >>confdefs.h <<\_ACEOF
4683 #define HAVE_DBUS 1
4684 _ACEOF
4689 echo "$as_me:$LINENO: checking for which printer to use" >&5
4690 echo $ECHO_N "checking for which printer to use... $ECHO_C" >&6
4692 # Check whether --with-printer or --without-printer was given.
4693 if test "${with_printer+set}" = set; then
4694 withval="$with_printer"
4696 else
4697 with_printer=lpr
4699 echo "$as_me:$LINENO: result: $with_printer" >&5
4700 echo "${ECHO_T}$with_printer" >&6
4701 case " $hid_printers " in
4702 *\ $with_printer\ * )
4703 HIDLIST="$HIDLIST $with_printer"
4705 * ) { { echo "$as_me:$LINENO: error: $with_printer is not a valid printer" >&5
4706 echo "$as_me: error: $with_printer is not a valid printer" >&2;}
4707 { (exit 1); exit 1; }; } ;;
4708 esac
4710 echo "$as_me:$LINENO: checking for which exporters to use" >&5
4711 echo $ECHO_N "checking for which exporters to use... $ECHO_C" >&6
4713 # Check whether --with-exporters or --without-exporters was given.
4714 if test "${with_exporters+set}" = set; then
4715 withval="$with_exporters"
4717 else
4718 with_exporters=$hid_exporters
4720 echo "$as_me:$LINENO: result: $with_exporters" >&5
4721 echo "${ECHO_T}$with_exporters" >&6
4722 for e in `echo $with_exporters | sed 's/,/ /g'`; do
4723 case " $hid_exporters " in
4724 *\ $e\ * )
4725 HIDLIST="$HIDLIST $e"
4727 * ) { { echo "$as_me:$LINENO: error: $e is not a valid exporter" >&5
4728 echo "$as_me: error: $e is not a valid exporter" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730 esac
4731 done
4733 if test "X$enable_jpeg" = "Xno" -a "X$enable_gif" = "Xno" -a "X$enable_png" = "Xno" ; then
4734 case " ${HIDLIST} " in
4735 *\ png\ *)
4736 { { echo "$as_me:$LINENO: error: you have requested the png HID but turned off all output
4737 formats! If you do not want gif/jpeg/png output, use --with-exporters to list
4738 which exporters you want and do not list png there." >&5
4739 echo "$as_me: error: you have requested the png HID but turned off all output
4740 formats! If you do not want gif/jpeg/png output, use --with-exporters to list
4741 which exporters you want and do not list png there." >&2;}
4742 { (exit 1); exit 1; }; }
4747 esac
4750 for e in $HIDLIST; do
4751 HIDLIBS="$HIDLIBS lib$e.a"
4752 done
4757 # ------------- end HID config -------------------
4759 for ac_prog in gm4 m4
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765 if test "${ac_cv_path_M4+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 case $M4 in
4769 [\\/]* | ?:[\\/]*)
4770 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4788 esac
4790 M4=$ac_cv_path_M4
4792 if test -n "$M4"; then
4793 echo "$as_me:$LINENO: result: $M4" >&5
4794 echo "${ECHO_T}$M4" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4800 test -n "$M4" && break
4801 done
4802 test -n "$M4" || M4="none"
4804 if test "X$M4" = "Xnone" ; then
4805 { { echo "$as_me:$LINENO: error: Did not find a m4 executible. You need to make sure
4806 that m4 is installed on your system and that m4 is in your path" >&5
4807 echo "$as_me: error: Did not find a m4 executible. You need to make sure
4808 that m4 is installed on your system and that m4 is in your path" >&2;}
4809 { (exit 1); exit 1; }; }
4811 echo "$as_me:$LINENO: checking if $M4 has the division involving negative numbers bug" >&5
4812 echo $ECHO_N "checking if $M4 has the division involving negative numbers bug... $ECHO_C" >&6
4813 pcb_m4_r=`echo "eval(-2/2)" | $M4`
4814 if test "$pcb_m4_r" != "-1" ; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816 echo "${ECHO_T}yes" >&6
4817 { { echo "$as_me:$LINENO: error: It appears that $M4 has a bug involving division
4818 with negative numbers. In particular it just returned the result that
4819 -2/2 = $pcb_m4_r instead of -1. This is a known bug in GNU m4-1.4.9. Please
4820 install a non-broken m4." >&5
4821 echo "$as_me: error: It appears that $M4 has a bug involving division
4822 with negative numbers. In particular it just returned the result that
4823 -2/2 = $pcb_m4_r instead of -1. This is a known bug in GNU m4-1.4.9. Please
4824 install a non-broken m4." >&2;}
4825 { (exit 1); exit 1; }; }
4826 else
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4832 for ac_prog in wish wish83 wish8.3 wish80 wish8.0 cygwish83 cygwish80
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_path_WISH+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 case $WISH in
4842 [\\/]* | ?:[\\/]*)
4843 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4861 esac
4863 WISH=$ac_cv_path_WISH
4865 if test -n "$WISH"; then
4866 echo "$as_me:$LINENO: result: $WISH" >&5
4867 echo "${ECHO_T}$WISH" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4873 test -n "$WISH" && break
4874 done
4875 test -n "$WISH" || WISH="none"
4877 if test "X$WISH" = "Xnone" ; then
4878 { { echo "$as_me:$LINENO: error: Did not find the wish executible. You need to make sure
4879 that tcl is installed on your system and that wish is in your path" >&5
4880 echo "$as_me: error: Did not find the wish executible. You need to make sure
4881 that tcl is installed on your system and that wish is in your path" >&2;}
4882 { (exit 1); exit 1; }; }
4886 cat >>confdefs.h <<_ACEOF
4887 #define M4 $M4
4888 _ACEOF
4890 GNUM4=$M4
4893 cat >>confdefs.h <<_ACEOF
4894 #define GNUM4 "$M4"
4895 _ACEOF
4898 for ac_prog in latex
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_prog_LATEX+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 if test -n "$LATEX"; then
4908 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_prog_LATEX="$ac_prog"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4926 LATEX=$ac_cv_prog_LATEX
4927 if test -n "$LATEX"; then
4928 echo "$as_me:$LINENO: result: $LATEX" >&5
4929 echo "${ECHO_T}$LATEX" >&6
4930 else
4931 echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4935 test -n "$LATEX" && break
4936 done
4937 test -n "$LATEX" || LATEX="notfound"
4941 if test x$LATEX = xnotfound; then
4942 MISSING_LATEX_TRUE=
4943 MISSING_LATEX_FALSE='#'
4944 else
4945 MISSING_LATEX_TRUE='#'
4946 MISSING_LATEX_FALSE=
4950 for ac_prog in pdflatex
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 if test -n "$PDFLATEX"; then
4960 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_prog_PDFLATEX="$ac_prog"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4978 PDFLATEX=$ac_cv_prog_PDFLATEX
4979 if test -n "$PDFLATEX"; then
4980 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
4981 echo "${ECHO_T}$PDFLATEX" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6
4987 test -n "$PDFLATEX" && break
4988 done
4989 test -n "$PDFLATEX" || PDFLATEX="notfound"
4993 if test x$PDFLATEX = xnotfound; then
4994 MISSING_PDFLATEX_TRUE=
4995 MISSING_PDFLATEX_FALSE='#'
4996 else
4997 MISSING_PDFLATEX_TRUE='#'
4998 MISSING_PDFLATEX_FALSE=
5002 for ac_prog in dvips
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_DVIPS+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$DVIPS"; then
5012 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_DVIPS="$ac_prog"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5030 DVIPS=$ac_cv_prog_DVIPS
5031 if test -n "$DVIPS"; then
5032 echo "$as_me:$LINENO: result: $DVIPS" >&5
5033 echo "${ECHO_T}$DVIPS" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 test -n "$DVIPS" && break
5040 done
5041 test -n "$DVIPS" || DVIPS="notfound"
5045 if test x$DVIPS = xnotfound; then
5046 MISSING_DVIPS_TRUE=
5047 MISSING_DVIPS_FALSE='#'
5048 else
5049 MISSING_DVIPS_TRUE='#'
5050 MISSING_DVIPS_FALSE=
5054 for ac_prog in ps2pdf
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_prog_PS2PDF+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 if test -n "$PS2PDF"; then
5064 ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_PS2PDF="$ac_prog"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5082 PS2PDF=$ac_cv_prog_PS2PDF
5083 if test -n "$PS2PDF"; then
5084 echo "$as_me:$LINENO: result: $PS2PDF" >&5
5085 echo "${ECHO_T}$PS2PDF" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5091 test -n "$PS2PDF" && break
5092 done
5093 test -n "$PS2PDF" || PS2PDF="notfound"
5097 if test x$PS2PDF = xnotfound; then
5098 MISSING_PS2PDF_TRUE=
5099 MISSING_PS2PDF_FALSE='#'
5100 else
5101 MISSING_PS2PDF_TRUE='#'
5102 MISSING_PS2PDF_FALSE=
5107 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5108 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5109 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 ac_check_lib_save_LIBS=$LIBS
5113 LIBS="-lm $LIBS"
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5121 /* Override any gcc2 internal prototype to avoid an error. */
5122 #ifdef __cplusplus
5123 extern "C"
5124 #endif
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5127 char sqrt ();
5129 main ()
5131 sqrt ();
5133 return 0;
5135 _ACEOF
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_c_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest$ac_exeext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_lib_m_sqrt=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_lib_m_sqrt=no
5165 rm -f conftest.err conftest.$ac_objext \
5166 conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5169 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5170 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5171 if test $ac_cv_lib_m_sqrt = yes; then
5172 cat >>confdefs.h <<_ACEOF
5173 #define HAVE_LIBM 1
5174 _ACEOF
5176 LIBS="-lm $LIBS"
5181 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 ac_check_lib_save_LIBS=$LIBS
5187 LIBS="-ldl $LIBS"
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 #ifdef __cplusplus
5197 extern "C"
5198 #endif
5199 /* We use char because int might match the return type of a gcc2
5200 builtin and then its argument prototype would still apply. */
5201 char dlopen ();
5203 main ()
5205 dlopen ();
5207 return 0;
5209 _ACEOF
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -z "$ac_c_werror_flag"
5220 || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_lib_dl_dlopen=yes
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_cv_lib_dl_dlopen=no
5239 rm -f conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241 LIBS=$ac_check_lib_save_LIBS
5243 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5244 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5245 if test $ac_cv_lib_dl_dlopen = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define HAVE_LIBDL 1
5248 _ACEOF
5250 LIBS="-ldl $LIBS"
5255 echo "$as_me:$LINENO: checking for gethostbyname in -lxnet" >&5
5256 echo $ECHO_N "checking for gethostbyname in -lxnet... $ECHO_C" >&6
5257 if test "${ac_cv_lib_xnet_gethostbyname+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 ac_check_lib_save_LIBS=$LIBS
5261 LIBS="-lxnet $LIBS"
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 #ifdef __cplusplus
5271 extern "C"
5272 #endif
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5275 char gethostbyname ();
5277 main ()
5279 gethostbyname ();
5281 return 0;
5283 _ACEOF
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286 (eval $ac_link) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag"
5294 || test ! -s conftest.err'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_lib_xnet_gethostbyname=yes
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_lib_xnet_gethostbyname=no
5313 rm -f conftest.err conftest.$ac_objext \
5314 conftest$ac_exeext conftest.$ac_ext
5315 LIBS=$ac_check_lib_save_LIBS
5317 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_gethostbyname" >&5
5318 echo "${ECHO_T}$ac_cv_lib_xnet_gethostbyname" >&6
5319 if test $ac_cv_lib_xnet_gethostbyname = yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define HAVE_LIBXNET 1
5322 _ACEOF
5324 LIBS="-lxnet $LIBS"
5329 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5330 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5331 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lfl $LIBS"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 #ifdef __cplusplus
5345 extern "C"
5346 #endif
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char yywrap ();
5351 main ()
5353 yywrap ();
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_lib_fl_yywrap=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_cv_lib_fl_yywrap=no
5387 rm -f conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389 LIBS=$ac_check_lib_save_LIBS
5391 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5392 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5393 if test $ac_cv_lib_fl_yywrap = yes; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define HAVE_LIBFL 1
5396 _ACEOF
5398 LIBS="-lfl $LIBS"
5403 for ac_func in strerror
5405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5406 echo "$as_me:$LINENO: checking for $ac_func" >&5
5407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5408 if eval "test \"\${$as_ac_var+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5419 #define $ac_func innocuous_$ac_func
5421 /* System header to define __stub macros and hopefully few prototypes,
5422 which can conflict with char $ac_func (); below.
5423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 <limits.h> exists even on freestanding compilers. */
5426 #ifdef __STDC__
5427 # include <limits.h>
5428 #else
5429 # include <assert.h>
5430 #endif
5432 #undef $ac_func
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 #ifdef __cplusplus
5436 extern "C"
5438 #endif
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5441 char $ac_func ();
5442 /* The GNU C library defines this for functions which it implements
5443 to always fail with ENOSYS. Some functions are actually named
5444 something starting with __ and the normal name is an alias. */
5445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5446 choke me
5447 #else
5448 char (*f) () = $ac_func;
5449 #endif
5450 #ifdef __cplusplus
5452 #endif
5455 main ()
5457 return f != $ac_func;
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464 (eval $ac_link) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest$ac_exeext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 eval "$as_ac_var=yes"
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 eval "$as_ac_var=no"
5491 rm -f conftest.err conftest.$ac_objext \
5492 conftest$ac_exeext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5496 if test `eval echo '${'$as_ac_var'}'` = yes; then
5497 cat >>confdefs.h <<_ACEOF
5498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5499 _ACEOF
5502 done
5506 for ac_func in regcomp re_comp
5508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_func" >&5
5510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_var+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5522 #define $ac_func innocuous_$ac_func
5524 /* System header to define __stub macros and hopefully few prototypes,
5525 which can conflict with char $ac_func (); below.
5526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 <limits.h> exists even on freestanding compilers. */
5529 #ifdef __STDC__
5530 # include <limits.h>
5531 #else
5532 # include <assert.h>
5533 #endif
5535 #undef $ac_func
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 #ifdef __cplusplus
5539 extern "C"
5541 #endif
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5544 char $ac_func ();
5545 /* The GNU C library defines this for functions which it implements
5546 to always fail with ENOSYS. Some functions are actually named
5547 something starting with __ and the normal name is an alias. */
5548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5549 choke me
5550 #else
5551 char (*f) () = $ac_func;
5552 #endif
5553 #ifdef __cplusplus
5555 #endif
5558 main ()
5560 return f != $ac_func;
5562 return 0;
5564 _ACEOF
5565 rm -f conftest.$ac_objext conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -z "$ac_c_werror_flag"
5575 || test ! -s conftest.err'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest$ac_exeext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5587 eval "$as_ac_var=yes"
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 eval "$as_ac_var=no"
5594 rm -f conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5599 if test `eval echo '${'$as_ac_var'}'` = yes; then
5600 cat >>confdefs.h <<_ACEOF
5601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5602 _ACEOF
5605 done
5610 for ac_func in logf expf rint
5612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5613 echo "$as_me:$LINENO: checking for $ac_func" >&5
5614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5615 if eval "test \"\${$as_ac_var+set}\" = set"; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5626 #define $ac_func innocuous_$ac_func
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char $ac_func (); below.
5630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 <limits.h> exists even on freestanding compilers. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5639 #undef $ac_func
5641 /* Override any gcc2 internal prototype to avoid an error. */
5642 #ifdef __cplusplus
5643 extern "C"
5645 #endif
5646 /* We use char because int might match the return type of a gcc2
5647 builtin and then its argument prototype would still apply. */
5648 char $ac_func ();
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5653 choke me
5654 #else
5655 char (*f) () = $ac_func;
5656 #endif
5657 #ifdef __cplusplus
5659 #endif
5662 main ()
5664 return f != $ac_func;
5666 return 0;
5668 _ACEOF
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671 (eval $ac_link) 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag"
5679 || test ! -s conftest.err'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest$ac_exeext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 eval "$as_ac_var=yes"
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 eval "$as_ac_var=no"
5698 rm -f conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
5701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5703 if test `eval echo '${'$as_ac_var'}'` = yes; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5706 _ACEOF
5709 done
5712 for ac_func in vsnprintf
5714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5715 echo "$as_me:$LINENO: checking for $ac_func" >&5
5716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5717 if eval "test \"\${$as_ac_var+set}\" = set"; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5728 #define $ac_func innocuous_$ac_func
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func (); below.
5732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 <limits.h> exists even on freestanding compilers. */
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5741 #undef $ac_func
5743 /* Override any gcc2 internal prototype to avoid an error. */
5744 #ifdef __cplusplus
5745 extern "C"
5747 #endif
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char $ac_func ();
5751 /* The GNU C library defines this for functions which it implements
5752 to always fail with ENOSYS. Some functions are actually named
5753 something starting with __ and the normal name is an alias. */
5754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5755 choke me
5756 #else
5757 char (*f) () = $ac_func;
5758 #endif
5759 #ifdef __cplusplus
5761 #endif
5764 main ()
5766 return f != $ac_func;
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773 (eval $ac_link) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 eval "$as_ac_var=yes"
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 eval "$as_ac_var=no"
5800 rm -f conftest.err conftest.$ac_objext \
5801 conftest$ac_exeext conftest.$ac_ext
5803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5805 if test `eval echo '${'$as_ac_var'}'` = yes; then
5806 cat >>confdefs.h <<_ACEOF
5807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5808 _ACEOF
5811 done
5816 for ac_func in getpwuid gethostname getcwd
5818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5819 echo "$as_me:$LINENO: checking for $ac_func" >&5
5820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_var+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5832 #define $ac_func innocuous_$ac_func
5834 /* System header to define __stub macros and hopefully few prototypes,
5835 which can conflict with char $ac_func (); below.
5836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5837 <limits.h> exists even on freestanding compilers. */
5839 #ifdef __STDC__
5840 # include <limits.h>
5841 #else
5842 # include <assert.h>
5843 #endif
5845 #undef $ac_func
5847 /* Override any gcc2 internal prototype to avoid an error. */
5848 #ifdef __cplusplus
5849 extern "C"
5851 #endif
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char $ac_func ();
5855 /* The GNU C library defines this for functions which it implements
5856 to always fail with ENOSYS. Some functions are actually named
5857 something starting with __ and the normal name is an alias. */
5858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 choke me
5860 #else
5861 char (*f) () = $ac_func;
5862 #endif
5863 #ifdef __cplusplus
5865 #endif
5868 main ()
5870 return f != $ac_func;
5872 return 0;
5874 _ACEOF
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest$ac_exeext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 eval "$as_ac_var=yes"
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 eval "$as_ac_var=no"
5904 rm -f conftest.err conftest.$ac_objext \
5905 conftest$ac_exeext conftest.$ac_ext
5907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5909 if test `eval echo '${'$as_ac_var'}'` = yes; then
5910 cat >>confdefs.h <<_ACEOF
5911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5912 _ACEOF
5915 done
5918 for ac_func in random
5920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5921 echo "$as_me:$LINENO: checking for $ac_func" >&5
5922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5923 if eval "test \"\${$as_ac_var+set}\" = set"; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5934 #define $ac_func innocuous_$ac_func
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func (); below.
5938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 <limits.h> exists even on freestanding compilers. */
5941 #ifdef __STDC__
5942 # include <limits.h>
5943 #else
5944 # include <assert.h>
5945 #endif
5947 #undef $ac_func
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 #ifdef __cplusplus
5951 extern "C"
5953 #endif
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5956 char $ac_func ();
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5961 choke me
5962 #else
5963 char (*f) () = $ac_func;
5964 #endif
5965 #ifdef __cplusplus
5967 #endif
5970 main ()
5972 return f != $ac_func;
5974 return 0;
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 eval "$as_ac_var=yes"
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 eval "$as_ac_var=no"
6006 rm -f conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6011 if test `eval echo '${'$as_ac_var'}'` = yes; then
6012 cat >>confdefs.h <<_ACEOF
6013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6014 _ACEOF
6017 done
6020 for ac_func in stat
6022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6023 echo "$as_me:$LINENO: checking for $ac_func" >&5
6024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6025 if eval "test \"\${$as_ac_var+set}\" = set"; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6036 #define $ac_func innocuous_$ac_func
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func (); below.
6040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6041 <limits.h> exists even on freestanding compilers. */
6043 #ifdef __STDC__
6044 # include <limits.h>
6045 #else
6046 # include <assert.h>
6047 #endif
6049 #undef $ac_func
6051 /* Override any gcc2 internal prototype to avoid an error. */
6052 #ifdef __cplusplus
6053 extern "C"
6055 #endif
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6058 char $ac_func ();
6059 /* The GNU C library defines this for functions which it implements
6060 to always fail with ENOSYS. Some functions are actually named
6061 something starting with __ and the normal name is an alias. */
6062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6063 choke me
6064 #else
6065 char (*f) () = $ac_func;
6066 #endif
6067 #ifdef __cplusplus
6069 #endif
6072 main ()
6074 return f != $ac_func;
6076 return 0;
6078 _ACEOF
6079 rm -f conftest.$ac_objext conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest$ac_exeext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 eval "$as_ac_var=yes"
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 eval "$as_ac_var=no"
6108 rm -f conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6113 if test `eval echo '${'$as_ac_var'}'` = yes; then
6114 cat >>confdefs.h <<_ACEOF
6115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6116 _ACEOF
6119 done
6122 # normally used for all file i/o
6124 for ac_func in popen
6126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_func" >&5
6128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_var+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6140 #define $ac_func innocuous_$ac_func
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char $ac_func (); below.
6144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145 <limits.h> exists even on freestanding compilers. */
6147 #ifdef __STDC__
6148 # include <limits.h>
6149 #else
6150 # include <assert.h>
6151 #endif
6153 #undef $ac_func
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 #ifdef __cplusplus
6157 extern "C"
6159 #endif
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char $ac_func ();
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6167 choke me
6168 #else
6169 char (*f) () = $ac_func;
6170 #endif
6171 #ifdef __cplusplus
6173 #endif
6176 main ()
6178 return f != $ac_func;
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest$ac_exeext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 eval "$as_ac_var=yes"
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 eval "$as_ac_var=no"
6212 rm -f conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6217 if test `eval echo '${'$as_ac_var'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6220 _ACEOF
6223 done
6226 # for lrealpath.c
6229 for ac_func in realpath canonicalize_file_name
6231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6232 echo "$as_me:$LINENO: checking for $ac_func" >&5
6233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6234 if eval "test \"\${$as_ac_var+set}\" = set"; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h. */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6245 #define $ac_func innocuous_$ac_func
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func (); below.
6249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250 <limits.h> exists even on freestanding compilers. */
6252 #ifdef __STDC__
6253 # include <limits.h>
6254 #else
6255 # include <assert.h>
6256 #endif
6258 #undef $ac_func
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 #ifdef __cplusplus
6262 extern "C"
6264 #endif
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6267 char $ac_func ();
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 choke me
6273 #else
6274 char (*f) () = $ac_func;
6275 #endif
6276 #ifdef __cplusplus
6278 #endif
6281 main ()
6283 return f != $ac_func;
6285 return 0;
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_c_werror_flag"
6298 || test ! -s conftest.err'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; } &&
6304 { ac_try='test -s conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 eval "$as_ac_var=yes"
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 eval "$as_ac_var=no"
6317 rm -f conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6322 if test `eval echo '${'$as_ac_var'}'` = yes; then
6323 cat >>confdefs.h <<_ACEOF
6324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6325 _ACEOF
6328 done
6330 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
6331 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
6332 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 #include "confdefs.h"
6343 #include <stdio.h>
6344 #ifdef HAVE_STRING_H
6345 #include <string.h>
6346 #else
6347 #ifdef HAVE_STRINGS_H
6348 #include <strings.h>
6349 #endif
6350 #endif
6351 #ifdef HAVE_STDLIB_H
6352 #include <stdlib.h>
6353 #endif
6354 #ifdef HAVE_UNISTD_H
6355 #include <unistd.h>
6356 #endif
6358 main ()
6360 char *(*pfn) = (char *(*)) canonicalize_file_name
6362 return 0;
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367 (eval $ac_compile) 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -z "$ac_c_werror_flag"
6375 || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 libiberty_cv_decl_needed_canonicalize_file_name=no
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 libiberty_cv_decl_needed_canonicalize_file_name=yes
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6398 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
6399 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6403 _ACEOF
6409 echo "$as_me:$LINENO: checking for egrep" >&5
6410 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6411 if test "${ac_cv_prog_egrep+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6415 then ac_cv_prog_egrep='grep -E'
6416 else ac_cv_prog_egrep='egrep'
6419 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6420 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6421 EGREP=$ac_cv_prog_egrep
6424 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6426 if test "${ac_cv_header_stdc+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <stdlib.h>
6436 #include <stdarg.h>
6437 #include <string.h>
6438 #include <float.h>
6441 main ()
6445 return 0;
6447 _ACEOF
6448 rm -f conftest.$ac_objext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_header_stdc=yes
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_header_stdc=no
6477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test $ac_cv_header_stdc = yes; then
6480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <string.h>
6489 _ACEOF
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491 $EGREP "memchr" >/dev/null 2>&1; then
6493 else
6494 ac_cv_header_stdc=no
6496 rm -f conftest*
6500 if test $ac_cv_header_stdc = yes; then
6501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <stdlib.h>
6510 _ACEOF
6511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512 $EGREP "free" >/dev/null 2>&1; then
6514 else
6515 ac_cv_header_stdc=no
6517 rm -f conftest*
6521 if test $ac_cv_header_stdc = yes; then
6522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6523 if test "$cross_compiling" = yes; then
6525 else
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #include <ctype.h>
6533 #if ((' ' & 0x0FF) == 0x020)
6534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6536 #else
6537 # define ISLOWER(c) \
6538 (('a' <= (c) && (c) <= 'i') \
6539 || ('j' <= (c) && (c) <= 'r') \
6540 || ('s' <= (c) && (c) <= 'z'))
6541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6542 #endif
6544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6546 main ()
6548 int i;
6549 for (i = 0; i < 256; i++)
6550 if (XOR (islower (i), ISLOWER (i))
6551 || toupper (i) != TOUPPER (i))
6552 exit(2);
6553 exit (0);
6555 _ACEOF
6556 rm -f conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6568 else
6569 echo "$as_me: program exited with status $ac_status" >&5
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ( exit $ac_status )
6574 ac_cv_header_stdc=no
6576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6581 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6582 if test $ac_cv_header_stdc = yes; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define STDC_HEADERS 1
6586 _ACEOF
6590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6601 inttypes.h stdint.h unistd.h
6603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6604 echo "$as_me:$LINENO: checking for $ac_header" >&5
6605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 eval "$as_ac_Header=yes"
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 eval "$as_ac_Header=no"
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6653 cat >>confdefs.h <<_ACEOF
6654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655 _ACEOF
6659 done
6667 for ac_header in limits.h string.h sys/types.h regex.h pwd.h
6669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6671 echo "$as_me:$LINENO: checking for $ac_header" >&5
6672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678 else
6679 # Is the header compilable?
6680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 #include <$ac_header>
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_header_compiler=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_header_compiler=no
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6722 echo "${ECHO_T}$ac_header_compiler" >&6
6724 # Is the header present?
6725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <$ac_header>
6734 _ACEOF
6735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } >/dev/null; then
6743 if test -s conftest.err; then
6744 ac_cpp_err=$ac_c_preproc_warn_flag
6745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6746 else
6747 ac_cpp_err=
6749 else
6750 ac_cpp_err=yes
6752 if test -z "$ac_cpp_err"; then
6753 ac_header_preproc=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_header_preproc=no
6760 rm -f conftest.err conftest.$ac_ext
6761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6762 echo "${ECHO_T}$ac_header_preproc" >&6
6764 # So? What about this header?
6765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6766 yes:no: )
6767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6771 ac_header_preproc=yes
6773 no:yes:* )
6774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6787 cat <<\_ASBOX
6788 ## ------------------------------------------ ##
6789 ## Report this to the AC_PACKAGE_NAME lists. ##
6790 ## ------------------------------------------ ##
6791 _ASBOX
6793 sed "s/^/$as_me: WARNING: /" >&2
6795 esac
6796 echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 eval "$as_ac_Header=\$ac_header_preproc"
6803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6814 done
6821 for ac_header in sys/socket.h netinet/in.h netdb.h sys/param.h sys/times.h
6823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825 echo "$as_me:$LINENO: checking for $ac_header" >&5
6826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6832 else
6833 # Is the header compilable?
6834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 $ac_includes_default
6843 #include <$ac_header>
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847 (eval $ac_compile) 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -z "$ac_c_werror_flag"
6855 || test ! -s conftest.err'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 (eval $ac_try) 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; } &&
6861 { ac_try='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_header_compiler=yes
6868 else
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6872 ac_header_compiler=no
6874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6876 echo "${ECHO_T}$ac_header_compiler" >&6
6878 # Is the header present?
6879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <$ac_header>
6888 _ACEOF
6889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null; then
6897 if test -s conftest.err; then
6898 ac_cpp_err=$ac_c_preproc_warn_flag
6899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6900 else
6901 ac_cpp_err=
6903 else
6904 ac_cpp_err=yes
6906 if test -z "$ac_cpp_err"; then
6907 ac_header_preproc=yes
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 ac_header_preproc=no
6914 rm -f conftest.err conftest.$ac_ext
6915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6916 echo "${ECHO_T}$ac_header_preproc" >&6
6918 # So? What about this header?
6919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6920 yes:no: )
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6925 ac_header_preproc=yes
6927 no:yes:* )
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6941 cat <<\_ASBOX
6942 ## ------------------------------------------ ##
6943 ## Report this to the AC_PACKAGE_NAME lists. ##
6944 ## ------------------------------------------ ##
6945 _ASBOX
6947 sed "s/^/$as_me: WARNING: /" >&2
6949 esac
6950 echo "$as_me:$LINENO: checking for $ac_header" >&5
6951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 eval "$as_ac_Header=\$ac_header_preproc"
6957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6962 cat >>confdefs.h <<_ACEOF
6963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6964 _ACEOF
6968 done
6971 for ac_header in dlfcn.h
6973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6975 echo "$as_me:$LINENO: checking for $ac_header" >&5
6976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6982 else
6983 # Is the header compilable?
6984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6993 #include <$ac_header>
6994 _ACEOF
6995 rm -f conftest.$ac_objext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_header_compiler=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_header_compiler=no
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026 echo "${ECHO_T}$ac_header_compiler" >&6
7028 # Is the header present?
7029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <$ac_header>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_c_preproc_warn_flag
7049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7050 else
7051 ac_cpp_err=
7053 else
7054 ac_cpp_err=yes
7056 if test -z "$ac_cpp_err"; then
7057 ac_header_preproc=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_header_preproc=no
7064 rm -f conftest.err conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7066 echo "${ECHO_T}$ac_header_preproc" >&6
7068 # So? What about this header?
7069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7070 yes:no: )
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7075 ac_header_preproc=yes
7077 no:yes:* )
7078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7091 cat <<\_ASBOX
7092 ## ------------------------------------------ ##
7093 ## Report this to the AC_PACKAGE_NAME lists. ##
7094 ## ------------------------------------------ ##
7095 _ASBOX
7097 sed "s/^/$as_me: WARNING: /" >&2
7099 esac
7100 echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 eval "$as_ac_Header=\$ac_header_preproc"
7107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7112 cat >>confdefs.h <<_ACEOF
7113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7114 _ACEOF
7118 done
7121 if test "x${WIN32}" = "xyes" ; then
7123 for ac_header in windows.h
7125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127 echo "$as_me:$LINENO: checking for $ac_header" >&5
7128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7134 else
7135 # Is the header compilable?
7136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 #include <$ac_header>
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_header_compiler=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_header_compiler=no
7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7178 echo "${ECHO_T}$ac_header_compiler" >&6
7180 # Is the header present?
7181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <$ac_header>
7190 _ACEOF
7191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } >/dev/null; then
7199 if test -s conftest.err; then
7200 ac_cpp_err=$ac_c_preproc_warn_flag
7201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7202 else
7203 ac_cpp_err=
7205 else
7206 ac_cpp_err=yes
7208 if test -z "$ac_cpp_err"; then
7209 ac_header_preproc=yes
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_header_preproc=no
7216 rm -f conftest.err conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218 echo "${ECHO_T}$ac_header_preproc" >&6
7220 # So? What about this header?
7221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7222 yes:no: )
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7227 ac_header_preproc=yes
7229 no:yes:* )
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7243 cat <<\_ASBOX
7244 ## ------------------------------------------ ##
7245 ## Report this to the AC_PACKAGE_NAME lists. ##
7246 ## ------------------------------------------ ##
7247 _ASBOX
7249 sed "s/^/$as_me: WARNING: /" >&2
7251 esac
7252 echo "$as_me:$LINENO: checking for $ac_header" >&5
7253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 eval "$as_ac_Header=\$ac_header_preproc"
7259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266 _ACEOF
7270 done
7274 for e in $HIDLIST; do
7275 case $e in
7276 lesstif )
7277 echo "$as_me:$LINENO: checking for X" >&5
7278 echo $ECHO_N "checking for X... $ECHO_C" >&6
7281 # Check whether --with-x or --without-x was given.
7282 if test "${with_x+set}" = set; then
7283 withval="$with_x"
7286 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7287 if test "x$with_x" = xno; then
7288 # The user explicitly disabled X.
7289 have_x=disabled
7290 else
7291 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7292 # Both variables are already set.
7293 have_x=yes
7294 else
7295 if test "${ac_cv_have_x+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 # One or both of the vars are not set, and there is no cached value.
7299 ac_x_includes=no ac_x_libraries=no
7300 rm -fr conftest.dir
7301 if mkdir conftest.dir; then
7302 cd conftest.dir
7303 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7304 cat >Imakefile <<'_ACEOF'
7305 acfindx:
7306 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7307 _ACEOF
7308 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7309 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7310 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7311 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7312 for ac_extension in a so sl; do
7313 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7314 test -f $ac_im_libdir/libX11.$ac_extension; then
7315 ac_im_usrlibdir=$ac_im_libdir; break
7317 done
7318 # Screen out bogus values from the imake configuration. They are
7319 # bogus both because they are the default anyway, and because
7320 # using them would break gcc on systems where it needs fixed includes.
7321 case $ac_im_incroot in
7322 /usr/include) ;;
7323 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7324 esac
7325 case $ac_im_usrlibdir in
7326 /usr/lib | /lib) ;;
7327 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7328 esac
7330 cd ..
7331 rm -fr conftest.dir
7334 # Standard set of common directories for X headers.
7335 # Check X11 before X11Rn because it is often a symlink to the current release.
7336 ac_x_header_dirs='
7337 /usr/X11/include
7338 /usr/X11R6/include
7339 /usr/X11R5/include
7340 /usr/X11R4/include
7342 /usr/include/X11
7343 /usr/include/X11R6
7344 /usr/include/X11R5
7345 /usr/include/X11R4
7347 /usr/local/X11/include
7348 /usr/local/X11R6/include
7349 /usr/local/X11R5/include
7350 /usr/local/X11R4/include
7352 /usr/local/include/X11
7353 /usr/local/include/X11R6
7354 /usr/local/include/X11R5
7355 /usr/local/include/X11R4
7357 /usr/X386/include
7358 /usr/x386/include
7359 /usr/XFree86/include/X11
7361 /usr/include
7362 /usr/local/include
7363 /usr/unsupported/include
7364 /usr/athena/include
7365 /usr/local/x11r5/include
7366 /usr/lpp/Xamples/include
7368 /usr/openwin/include
7369 /usr/openwin/share/include'
7371 if test "$ac_x_includes" = no; then
7372 # Guess where to find include files, by looking for Intrinsic.h.
7373 # First, try using that file with no special directory specified.
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 #include <X11/Intrinsic.h>
7381 _ACEOF
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } >/dev/null; then
7390 if test -s conftest.err; then
7391 ac_cpp_err=$ac_c_preproc_warn_flag
7392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7393 else
7394 ac_cpp_err=
7396 else
7397 ac_cpp_err=yes
7399 if test -z "$ac_cpp_err"; then
7400 # We can compile using X headers with no special include directory.
7401 ac_x_includes=
7402 else
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 for ac_dir in $ac_x_header_dirs; do
7407 if test -r "$ac_dir/X11/Intrinsic.h"; then
7408 ac_x_includes=$ac_dir
7409 break
7411 done
7413 rm -f conftest.err conftest.$ac_ext
7414 fi # $ac_x_includes = no
7416 if test "$ac_x_libraries" = no; then
7417 # Check for the libraries.
7418 # See if we find them without any special options.
7419 # Don't add to $LIBS permanently.
7420 ac_save_LIBS=$LIBS
7421 LIBS="-lXt $LIBS"
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 #include <X11/Intrinsic.h>
7430 main ()
7432 XtMalloc (0)
7434 return 0;
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_c_werror_flag"
7447 || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 LIBS=$ac_save_LIBS
7460 # We can link X programs with no special library path.
7461 ac_x_libraries=
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 LIBS=$ac_save_LIBS
7467 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7469 # Don't even attempt the hair of trying to link an X program!
7470 for ac_extension in a so sl; do
7471 if test -r $ac_dir/libXt.$ac_extension; then
7472 ac_x_libraries=$ac_dir
7473 break 2
7475 done
7476 done
7478 rm -f conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 fi # $ac_x_libraries = no
7482 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7483 # Didn't find X anywhere. Cache the known absence of X.
7484 ac_cv_have_x="have_x=no"
7485 else
7486 # Record where we found X for the cache.
7487 ac_cv_have_x="have_x=yes \
7488 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7493 eval "$ac_cv_have_x"
7494 fi # $with_x != no
7496 if test "$have_x" != yes; then
7497 echo "$as_me:$LINENO: result: $have_x" >&5
7498 echo "${ECHO_T}$have_x" >&6
7499 no_x=yes
7500 else
7501 # If each of the values was on the command line, it overrides each guess.
7502 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7503 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7504 # Update the cache value to reflect the command line values.
7505 ac_cv_have_x="have_x=yes \
7506 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7507 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7508 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7511 if test "$no_x" = yes; then
7512 # Not all programs may use this symbol, but it does not hurt to define it.
7514 cat >>confdefs.h <<\_ACEOF
7515 #define X_DISPLAY_MISSING 1
7516 _ACEOF
7518 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7519 else
7520 if test -n "$x_includes"; then
7521 X_CFLAGS="$X_CFLAGS -I$x_includes"
7524 # It would also be nice to do this for all -L options, not just this one.
7525 if test -n "$x_libraries"; then
7526 X_LIBS="$X_LIBS -L$x_libraries"
7527 # For Solaris; some versions of Sun CC require a space after -R and
7528 # others require no space. Words are not sufficient . . . .
7529 case `(uname -sr) 2>/dev/null` in
7530 "SunOS 5"*)
7531 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7532 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7533 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7542 main ()
7546 return 0;
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -z "$ac_c_werror_flag"
7559 || test ! -s conftest.err'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try='test -s conftest$ac_exeext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_R_nospace=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_R_nospace=no
7578 rm -f conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7580 if test $ac_R_nospace = yes; then
7581 echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6
7583 X_LIBS="$X_LIBS -R$x_libraries"
7584 else
7585 LIBS="$ac_xsave_LIBS -R $x_libraries"
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7594 main ()
7598 return 0;
7600 _ACEOF
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7603 (eval $ac_link) 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest$ac_exeext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_R_space=yes
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_R_space=no
7630 rm -f conftest.err conftest.$ac_objext \
7631 conftest$ac_exeext conftest.$ac_ext
7632 if test $ac_R_space = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634 echo "${ECHO_T}yes" >&6
7635 X_LIBS="$X_LIBS -R $x_libraries"
7636 else
7637 echo "$as_me:$LINENO: result: neither works" >&5
7638 echo "${ECHO_T}neither works" >&6
7641 LIBS=$ac_xsave_LIBS
7642 esac
7645 # Check for system-dependent libraries X programs must link with.
7646 # Do this before checking for the system-independent R6 libraries
7647 # (-lICE), since we may need -lsocket or whatever for X linking.
7649 if test "$ISC" = yes; then
7650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7651 else
7652 # Martyn Johnson says this is needed for Ultrix, if the X
7653 # libraries were built with DECnet support. And Karl Berry says
7654 # the Alpha needs dnet_stub (dnet does not exist).
7655 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char XOpenDisplay ();
7671 main ()
7673 XOpenDisplay ();
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7706 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7707 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-ldnet $LIBS"
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 /* We use char because int might match the return type of a gcc2
7724 builtin and then its argument prototype would still apply. */
7725 char dnet_ntoa ();
7727 main ()
7729 dnet_ntoa ();
7731 return 0;
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_lib_dnet_dnet_ntoa=yes
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_cv_lib_dnet_dnet_ntoa=no
7763 rm -f conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765 LIBS=$ac_check_lib_save_LIBS
7767 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7768 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7769 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7773 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7774 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7775 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7776 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-ldnet_stub $LIBS"
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 /* We use char because int might match the return type of a gcc2
7793 builtin and then its argument prototype would still apply. */
7794 char dnet_ntoa ();
7796 main ()
7798 dnet_ntoa ();
7800 return 0;
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805 (eval $ac_link) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7826 else
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_cv_lib_dnet_stub_dnet_ntoa=no
7832 rm -f conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7837 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7838 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7839 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7844 rm -f conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 LIBS="$ac_xsave_LIBS"
7848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7849 # to get the SysV transport functions.
7850 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7851 # needs -lnsl.
7852 # The nsl library prevents programs from opening the X display
7853 # on Irix 5.2, according to T.E. Dickey.
7854 # The functions gethostbyname, getservbyname, and inet_addr are
7855 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7856 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7857 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7858 if test "${ac_cv_func_gethostbyname+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define gethostbyname innocuous_gethostbyname
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char gethostbyname (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7882 #undef gethostbyname
7884 /* Override any gcc2 internal prototype to avoid an error. */
7885 #ifdef __cplusplus
7886 extern "C"
7888 #endif
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char gethostbyname ();
7892 /* The GNU C library defines this for functions which it implements
7893 to always fail with ENOSYS. Some functions are actually named
7894 something starting with __ and the normal name is an alias. */
7895 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7896 choke me
7897 #else
7898 char (*f) () = gethostbyname;
7899 #endif
7900 #ifdef __cplusplus
7902 #endif
7905 main ()
7907 return f != gethostbyname;
7909 return 0;
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -z "$ac_c_werror_flag"
7922 || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_func_gethostbyname=yes
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7939 ac_cv_func_gethostbyname=no
7941 rm -f conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7945 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7947 if test $ac_cv_func_gethostbyname = no; then
7948 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7949 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7950 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 ac_check_lib_save_LIBS=$LIBS
7954 LIBS="-lnsl $LIBS"
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 #ifdef __cplusplus
7964 extern "C"
7965 #endif
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7968 char gethostbyname ();
7970 main ()
7972 gethostbyname ();
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag"
7987 || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest$ac_exeext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_cv_lib_nsl_gethostbyname=yes
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_cv_lib_nsl_gethostbyname=no
8006 rm -f conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8010 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8011 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8012 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8016 if test $ac_cv_lib_nsl_gethostbyname = no; then
8017 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8018 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8019 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 ac_check_lib_save_LIBS=$LIBS
8023 LIBS="-lbsd $LIBS"
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8031 /* Override any gcc2 internal prototype to avoid an error. */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 /* We use char because int might match the return type of a gcc2
8036 builtin and then its argument prototype would still apply. */
8037 char gethostbyname ();
8039 main ()
8041 gethostbyname ();
8043 return 0;
8045 _ACEOF
8046 rm -f conftest.$ac_objext conftest$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } &&
8055 { ac_try='test -z "$ac_c_werror_flag"
8056 || test ! -s conftest.err'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_lib_bsd_gethostbyname=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_cv_lib_bsd_gethostbyname=no
8075 rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8079 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8080 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8081 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8088 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8089 # socket/setsockopt and other routines are undefined under SCO ODT
8090 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8091 # on later versions), says Simon Leinen: it contains gethostby*
8092 # variants that don't use the name server (or something). -lsocket
8093 # must be given before -lnsl if both are needed. We assume that
8094 # if connect needs -lnsl, so does gethostbyname.
8095 echo "$as_me:$LINENO: checking for connect" >&5
8096 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8097 if test "${ac_cv_func_connect+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8108 #define connect innocuous_connect
8110 /* System header to define __stub macros and hopefully few prototypes,
8111 which can conflict with char connect (); below.
8112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8113 <limits.h> exists even on freestanding compilers. */
8115 #ifdef __STDC__
8116 # include <limits.h>
8117 #else
8118 # include <assert.h>
8119 #endif
8121 #undef connect
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 #ifdef __cplusplus
8125 extern "C"
8127 #endif
8128 /* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8130 char connect ();
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_connect) || defined (__stub___connect)
8135 choke me
8136 #else
8137 char (*f) () = connect;
8138 #endif
8139 #ifdef __cplusplus
8141 #endif
8144 main ()
8146 return f != connect;
8148 return 0;
8150 _ACEOF
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8153 (eval $ac_link) 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest$ac_exeext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 ac_cv_func_connect=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_func_connect=no
8180 rm -f conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8184 echo "${ECHO_T}$ac_cv_func_connect" >&6
8186 if test $ac_cv_func_connect = no; then
8187 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8188 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8189 if test "${ac_cv_lib_socket_connect+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8201 /* Override any gcc2 internal prototype to avoid an error. */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8207 char connect ();
8209 main ()
8211 connect ();
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag"
8226 || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_lib_socket_connect=yes
8239 else
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_cv_lib_socket_connect=no
8245 rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8250 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8251 if test $ac_cv_lib_socket_connect = yes; then
8252 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8257 # Guillermo Gomez says -lposix is necessary on A/UX.
8258 echo "$as_me:$LINENO: checking for remove" >&5
8259 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8260 if test "${ac_cv_func_remove+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8271 #define remove innocuous_remove
8273 /* System header to define __stub macros and hopefully few prototypes,
8274 which can conflict with char remove (); below.
8275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276 <limits.h> exists even on freestanding compilers. */
8278 #ifdef __STDC__
8279 # include <limits.h>
8280 #else
8281 # include <assert.h>
8282 #endif
8284 #undef remove
8286 /* Override any gcc2 internal prototype to avoid an error. */
8287 #ifdef __cplusplus
8288 extern "C"
8290 #endif
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8293 char remove ();
8294 /* The GNU C library defines this for functions which it implements
8295 to always fail with ENOSYS. Some functions are actually named
8296 something starting with __ and the normal name is an alias. */
8297 #if defined (__stub_remove) || defined (__stub___remove)
8298 choke me
8299 #else
8300 char (*f) () = remove;
8301 #endif
8302 #ifdef __cplusplus
8304 #endif
8307 main ()
8309 return f != remove;
8311 return 0;
8313 _ACEOF
8314 rm -f conftest.$ac_objext conftest$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag"
8324 || test ! -s conftest.err'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_func_remove=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_cv_func_remove=no
8343 rm -f conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8347 echo "${ECHO_T}$ac_cv_func_remove" >&6
8349 if test $ac_cv_func_remove = no; then
8350 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8351 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8352 if test "${ac_cv_lib_posix_remove+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-lposix $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8370 char remove ();
8372 main ()
8374 remove ();
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381 (eval $ac_link) 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest$ac_exeext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_cv_lib_posix_remove=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_lib_posix_remove=no
8408 rm -f conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 LIBS=$ac_check_lib_save_LIBS
8412 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8413 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8414 if test $ac_cv_lib_posix_remove = yes; then
8415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8420 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8421 echo "$as_me:$LINENO: checking for shmat" >&5
8422 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8423 if test "${ac_cv_func_shmat+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8434 #define shmat innocuous_shmat
8436 /* System header to define __stub macros and hopefully few prototypes,
8437 which can conflict with char shmat (); below.
8438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8439 <limits.h> exists even on freestanding compilers. */
8441 #ifdef __STDC__
8442 # include <limits.h>
8443 #else
8444 # include <assert.h>
8445 #endif
8447 #undef shmat
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8453 #endif
8454 /* We use char because int might match the return type of a gcc2
8455 builtin and then its argument prototype would still apply. */
8456 char shmat ();
8457 /* The GNU C library defines this for functions which it implements
8458 to always fail with ENOSYS. Some functions are actually named
8459 something starting with __ and the normal name is an alias. */
8460 #if defined (__stub_shmat) || defined (__stub___shmat)
8461 choke me
8462 #else
8463 char (*f) () = shmat;
8464 #endif
8465 #ifdef __cplusplus
8467 #endif
8470 main ()
8472 return f != shmat;
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_func_shmat=yes
8500 else
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_func_shmat=no
8506 rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8510 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8512 if test $ac_cv_func_shmat = no; then
8513 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8514 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8515 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 ac_check_lib_save_LIBS=$LIBS
8519 LIBS="-lipc $LIBS"
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 /* Override any gcc2 internal prototype to avoid an error. */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char shmat ();
8535 main ()
8537 shmat ();
8539 return 0;
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_lib_ipc_shmat=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_lib_ipc_shmat=no
8571 rm -f conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8576 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8577 if test $ac_cv_lib_ipc_shmat = yes; then
8578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8584 # Check for libraries that X11R6 Xt/Xaw programs need.
8585 ac_save_LDFLAGS=$LDFLAGS
8586 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8587 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8588 # check for ICE first), but we must link in the order -lSM -lICE or
8589 # we get undefined symbols. So assume we have SM if we have ICE.
8590 # These have to be linked with before -lX11, unlike the other
8591 # libraries we check for below, so use a different variable.
8592 # John Interrante, Karl Berry
8593 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8594 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8595 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598 ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 /* Override any gcc2 internal prototype to avoid an error. */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char IceConnectionNumber ();
8615 main ()
8617 IceConnectionNumber ();
8619 return 0;
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>conftest.er1
8625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_c_werror_flag"
8632 || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_cv_lib_ICE_IceConnectionNumber=yes
8645 else
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_cv_lib_ICE_IceConnectionNumber=no
8651 rm -f conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 LIBS=$ac_check_lib_save_LIBS
8655 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8656 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8657 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8658 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8661 LDFLAGS=$ac_save_LDFLAGS
8665 CPPFLAGS="$CFLAGS $X_CFLAGS"
8667 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
8668 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
8669 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672 ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-lX11 $X_LIBS $LIBS"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8687 char XOpenDisplay ();
8689 main ()
8691 XOpenDisplay ();
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_lib_X11_XOpenDisplay=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_lib_X11_XOpenDisplay=no
8725 rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8729 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
8730 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
8731 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_LIBX11 1
8734 _ACEOF
8736 LIBS="-lX11 $LIBS"
8741 echo "$as_me:$LINENO: checking for main in -lICE" >&5
8742 echo $ECHO_N "checking for main in -lICE... $ECHO_C" >&6
8743 if test "${ac_cv_lib_ICE_main+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lICE $X_LIBS $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8757 main ()
8759 main ();
8761 return 0;
8763 _ACEOF
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag"
8774 || test ! -s conftest.err'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 ac_cv_lib_ICE_main=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_lib_ICE_main=no
8793 rm -f conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8795 LIBS=$ac_check_lib_save_LIBS
8797 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_main" >&5
8798 echo "${ECHO_T}$ac_cv_lib_ICE_main" >&6
8799 if test $ac_cv_lib_ICE_main = yes; then
8800 cat >>confdefs.h <<_ACEOF
8801 #define HAVE_LIBICE 1
8802 _ACEOF
8804 LIBS="-lICE $LIBS"
8809 echo "$as_me:$LINENO: checking for main in -lSM" >&5
8810 echo $ECHO_N "checking for main in -lSM... $ECHO_C" >&6
8811 if test "${ac_cv_lib_SM_main+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lSM $X_LIBS $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h. */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8825 main ()
8827 main ();
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_SM_main=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_cv_lib_SM_main=no
8861 rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8865 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_main" >&5
8866 echo "${ECHO_T}$ac_cv_lib_SM_main" >&6
8867 if test $ac_cv_lib_SM_main = yes; then
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_LIBSM 1
8870 _ACEOF
8872 LIBS="-lSM $LIBS"
8877 echo "$as_me:$LINENO: checking for main in -lXext" >&5
8878 echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
8879 if test "${ac_cv_lib_Xext_main+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882 ac_check_lib_save_LIBS=$LIBS
8883 LIBS="-lXext $X_LIBS $LIBS"
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8893 main ()
8895 main ();
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_lib_Xext_main=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_lib_Xext_main=no
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
8934 echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
8935 if test $ac_cv_lib_Xext_main = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_LIBXEXT 1
8938 _ACEOF
8940 LIBS="-lXext $LIBS"
8945 echo "$as_me:$LINENO: checking for XtOpenDisplay in -lXt" >&5
8946 echo $ECHO_N "checking for XtOpenDisplay in -lXt... $ECHO_C" >&6
8947 if test "${ac_cv_lib_Xt_XtOpenDisplay+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 ac_check_lib_save_LIBS=$LIBS
8951 LIBS="-lXt $X_LIBS $LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char XtOpenDisplay ();
8967 main ()
8969 XtOpenDisplay ();
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_lib_Xt_XtOpenDisplay=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ac_cv_lib_Xt_XtOpenDisplay=no
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtOpenDisplay" >&5
9008 echo "${ECHO_T}$ac_cv_lib_Xt_XtOpenDisplay" >&6
9009 if test $ac_cv_lib_Xt_XtOpenDisplay = yes; then
9010 cat >>confdefs.h <<_ACEOF
9011 #define HAVE_LIBXT 1
9012 _ACEOF
9014 LIBS="-lXt $LIBS"
9019 echo "$as_me:$LINENO: checking for main in -lXmu" >&5
9020 echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6
9021 if test "${ac_cv_lib_Xmu_main+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lXmu $X_LIBS $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9035 main ()
9037 main ();
9039 return 0;
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -z "$ac_c_werror_flag"
9052 || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_lib_Xmu_main=yes
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_cv_lib_Xmu_main=no
9071 rm -f conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 LIBS=$ac_check_lib_save_LIBS
9075 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
9076 echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6
9077 if test $ac_cv_lib_Xmu_main = yes; then
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_LIBXMU 1
9080 _ACEOF
9082 LIBS="-lXmu $LIBS"
9087 echo "$as_me:$LINENO: checking for main in -lXpm" >&5
9088 echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6
9089 if test "${ac_cv_lib_Xpm_main+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_check_lib_save_LIBS=$LIBS
9093 LIBS="-lXpm $X_LIBS $LIBS"
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9103 main ()
9105 main ();
9107 return 0;
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_lib_Xpm_main=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_lib_Xpm_main=no
9139 rm -f conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5
9144 echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6
9145 if test $ac_cv_lib_Xpm_main = yes; then
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_LIBXPM 1
9148 _ACEOF
9150 LIBS="-lXpm $LIBS"
9155 echo "$as_me:$LINENO: checking for XmCreateMainWindow in -lXm" >&5
9156 echo $ECHO_N "checking for XmCreateMainWindow in -lXm... $ECHO_C" >&6
9157 if test "${ac_cv_lib_Xm_XmCreateMainWindow+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-lXm $X_LIBS $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any gcc2 internal prototype to avoid an error. */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9175 char XmCreateMainWindow ();
9177 main ()
9179 XmCreateMainWindow ();
9181 return 0;
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag"
9194 || test ! -s conftest.err'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; } &&
9200 { ac_try='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_lib_Xm_XmCreateMainWindow=yes
9207 else
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_cv_lib_Xm_XmCreateMainWindow=no
9213 rm -f conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215 LIBS=$ac_check_lib_save_LIBS
9217 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateMainWindow" >&5
9218 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateMainWindow" >&6
9219 if test $ac_cv_lib_Xm_XmCreateMainWindow = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define HAVE_LIBXM 1
9222 _ACEOF
9224 LIBS="-lXm $LIBS"
9228 case $ac_cv_lib_Xm_XmCreateMainWindow in
9229 no )
9230 { { echo "$as_me:$LINENO: error: You don't seem to have the Lesstif development environment installed." >&5
9231 echo "$as_me: error: You don't seem to have the Lesstif development environment installed." >&2;}
9232 { (exit 1); exit 1; }; }
9234 * ) ;;
9235 esac
9237 for ac_header in Xm/Xm.h
9239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9241 echo "$as_me:$LINENO: checking for $ac_header" >&5
9242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248 else
9249 # Is the header compilable?
9250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 $ac_includes_default
9259 #include <$ac_header>
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 (eval $ac_try) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_header_compiler=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_header_compiler=no
9290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9292 echo "${ECHO_T}$ac_header_compiler" >&6
9294 # Is the header present?
9295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 #include <$ac_header>
9304 _ACEOF
9305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } >/dev/null; then
9313 if test -s conftest.err; then
9314 ac_cpp_err=$ac_c_preproc_warn_flag
9315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9316 else
9317 ac_cpp_err=
9319 else
9320 ac_cpp_err=yes
9322 if test -z "$ac_cpp_err"; then
9323 ac_header_preproc=yes
9324 else
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ac_header_preproc=no
9330 rm -f conftest.err conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9332 echo "${ECHO_T}$ac_header_preproc" >&6
9334 # So? What about this header?
9335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9336 yes:no: )
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9341 ac_header_preproc=yes
9343 no:yes:* )
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9357 cat <<\_ASBOX
9358 ## ------------------------------------------ ##
9359 ## Report this to the AC_PACKAGE_NAME lists. ##
9360 ## ------------------------------------------ ##
9361 _ASBOX
9363 sed "s/^/$as_me: WARNING: /" >&2
9365 esac
9366 echo "$as_me:$LINENO: checking for $ac_header" >&5
9367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 eval "$as_ac_Header=\$ac_header_preproc"
9373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9378 cat >>confdefs.h <<_ACEOF
9379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9380 _ACEOF
9384 done
9386 case $ac_cv_header_Xm_Xm_h in
9387 no )
9388 { { echo "$as_me:$LINENO: error: You don't seem to have the Lesstif development environment installed." >&5
9389 echo "$as_me: error: You don't seem to have the Lesstif development environment installed." >&2;}
9390 { (exit 1); exit 1; }; }
9392 * ) ;;
9393 esac
9396 gtk )
9397 # Check for pkg-config
9398 # Extract the first word of "pkg-config", so it can be a program name with args.
9399 set dummy pkg-config; ac_word=$2
9400 echo "$as_me:$LINENO: checking for $ac_word" >&5
9401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9402 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 case $PKG_CONFIG in
9406 [\\/]* | ?:[\\/]*)
9407 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9424 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9426 esac
9428 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9430 if test -n "$PKG_CONFIG"; then
9431 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9432 echo "${ECHO_T}$PKG_CONFIG" >&6
9433 else
9434 echo "$as_me:$LINENO: result: no" >&5
9435 echo "${ECHO_T}no" >&6
9438 if test "$PKG_CONFIG" = "no"; then
9439 { { echo "$as_me:$LINENO: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&5
9440 echo "$as_me: error: Cannot find pkg-config, make sure it is installed and in your PATH" >&2;}
9441 { (exit 1); exit 1; }; }
9445 succeeded=no
9447 if test -z "$PKG_CONFIG"; then
9448 # Extract the first word of "pkg-config", so it can be a program name with args.
9449 set dummy pkg-config; ac_word=$2
9450 echo "$as_me:$LINENO: checking for $ac_word" >&5
9451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9452 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 case $PKG_CONFIG in
9456 [\\/]* | ?:[\\/]*)
9457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 break 2
9471 done
9472 done
9474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9476 esac
9478 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9480 if test -n "$PKG_CONFIG"; then
9481 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9482 echo "${ECHO_T}$PKG_CONFIG" >&6
9483 else
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9490 if test "$PKG_CONFIG" = "no" ; then
9491 echo "*** The pkg-config script could not be found. Make sure it is"
9492 echo "*** in your path, or set the PKG_CONFIG environment variable"
9493 echo "*** to the full path to pkg-config."
9494 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9495 else
9496 PKG_CONFIG_MIN_VERSION=0.9.0
9497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9498 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4.0" >&5
9499 echo $ECHO_N "checking for gtk+-2.0 >= 2.4.0... $ECHO_C" >&6
9501 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4.0" ; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504 succeeded=yes
9506 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9507 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9508 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0"`
9509 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9510 echo "${ECHO_T}$GTK_CFLAGS" >&6
9512 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9513 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9514 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0"`
9515 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9516 echo "${ECHO_T}$GTK_LIBS" >&6
9517 else
9518 GTK_CFLAGS=""
9519 GTK_LIBS=""
9520 ## If we have a custom action on failure, don't print errors, but
9521 ## do set a variable so people can do so.
9522 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
9528 else
9529 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9530 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9534 if test $succeeded = yes; then
9536 else
9537 { { echo "$as_me:$LINENO: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
9538 Please review the following errors:
9539 $GTK_PKG_ERRORS" >&5
9540 echo "$as_me: error: Cannot find gtk+ >= 2.4.0, install it and rerun ./configure
9541 Please review the following errors:
9542 $GTK_PKG_ERRORS" >&2;}
9543 { (exit 1); exit 1; }; }
9547 GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
9549 # if we are building for gtk >= 2.8.0, we can use gdk_display_warp_pointer()
9550 # otherwise we need XWarpPointer and we'll pull in the required headers with
9551 # gdk/gdkx.h and we'll need to link with X11
9552 if ! $PKG_CONFIG gtk+-2.0 --atleast-version=2.8.0 ; then
9553 CPPFLAGS="$CFLAGS $GTK_CFLAGS"
9555 for ac_header in gdk/gdkx.h
9557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9559 echo "$as_me:$LINENO: checking for $ac_header" >&5
9560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9566 else
9567 # Is the header compilable?
9568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 $ac_includes_default
9577 #include <$ac_header>
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_header_compiler=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_header_compiler=no
9608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9610 echo "${ECHO_T}$ac_header_compiler" >&6
9612 # Is the header present?
9613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <$ac_header>
9622 _ACEOF
9623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev/null; then
9631 if test -s conftest.err; then
9632 ac_cpp_err=$ac_c_preproc_warn_flag
9633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9634 else
9635 ac_cpp_err=
9637 else
9638 ac_cpp_err=yes
9640 if test -z "$ac_cpp_err"; then
9641 ac_header_preproc=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_preproc=no
9648 rm -f conftest.err conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9650 echo "${ECHO_T}$ac_header_preproc" >&6
9652 # So? What about this header?
9653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9654 yes:no: )
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9659 ac_header_preproc=yes
9661 no:yes:* )
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9675 cat <<\_ASBOX
9676 ## ------------------------------------------ ##
9677 ## Report this to the AC_PACKAGE_NAME lists. ##
9678 ## ------------------------------------------ ##
9679 _ASBOX
9681 sed "s/^/$as_me: WARNING: /" >&2
9683 esac
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 eval "$as_ac_Header=\$ac_header_preproc"
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 _ACEOF
9702 done
9706 # Search for glib
9708 succeeded=no
9710 if test -z "$PKG_CONFIG"; then
9711 # Extract the first word of "pkg-config", so it can be a program name with args.
9712 set dummy pkg-config; ac_word=$2
9713 echo "$as_me:$LINENO: checking for $ac_word" >&5
9714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9715 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718 case $PKG_CONFIG in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9734 done
9735 done
9737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9739 esac
9741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9743 if test -n "$PKG_CONFIG"; then
9744 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9745 echo "${ECHO_T}$PKG_CONFIG" >&6
9746 else
9747 echo "$as_me:$LINENO: result: no" >&5
9748 echo "${ECHO_T}no" >&6
9753 if test "$PKG_CONFIG" = "no" ; then
9754 echo "*** The pkg-config script could not be found. Make sure it is"
9755 echo "*** in your path, or set the PKG_CONFIG environment variable"
9756 echo "*** to the full path to pkg-config."
9757 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9758 else
9759 PKG_CONFIG_MIN_VERSION=0.9.0
9760 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9761 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4.0" >&5
9762 echo $ECHO_N "checking for glib-2.0 >= 2.4.0... $ECHO_C" >&6
9764 if $PKG_CONFIG --exists "glib-2.0 >= 2.4.0" ; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766 echo "${ECHO_T}yes" >&6
9767 succeeded=yes
9769 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
9770 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
9771 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0"`
9772 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
9773 echo "${ECHO_T}$GLIB_CFLAGS" >&6
9775 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
9776 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
9777 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0"`
9778 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
9779 echo "${ECHO_T}$GLIB_LIBS" >&6
9780 else
9781 GLIB_CFLAGS=""
9782 GLIB_LIBS=""
9783 ## If we have a custom action on failure, don't print errors, but
9784 ## do set a variable so people can do so.
9785 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4.0"`
9791 else
9792 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9793 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9797 if test $succeeded = yes; then
9799 else
9800 { { echo "$as_me:$LINENO: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
9801 Please review the following errors:
9802 $GLIB_PKG_ERRORS" >&5
9803 echo "$as_me: error: Cannot find glib >= 2.4.0, install it and rerun ./configure.
9804 Please review the following errors:
9805 $GLIB_PKG_ERRORS" >&2;}
9806 { (exit 1); exit 1; }; }
9810 GLIB_VERSION=`$PKG_CONFIG glib-2.0 --modversion`
9813 nelma|png )
9814 # Check for gdlib-config for gd (www.boutell.com/gd)
9815 # Extract the first word of "gdlib-config", so it can be a program name with args.
9816 set dummy gdlib-config; ac_word=$2
9817 echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9819 if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 case $GDLIB_CONFIG in
9823 [\\/]* | ?:[\\/]*)
9824 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9841 test -z "$ac_cv_path_GDLIB_CONFIG" && ac_cv_path_GDLIB_CONFIG="no"
9843 esac
9845 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
9847 if test -n "$GDLIB_CONFIG"; then
9848 echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
9849 echo "${ECHO_T}$GDLIB_CONFIG" >&6
9850 else
9851 echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6
9855 if test "$GDLIB_CONFIG" = "no"; then
9856 echo "$as_me:$LINENO: result: Cannot find gdlib-config.
9857 Make sure it is installed and in your PATH.
9858 gdlib-config is part of the GD library available from www.boutell.com/gd.
9859 This is needed for the png HID. I will look for libgd anyway and maybe
9860 you will get lucky.
9861 " >&5
9862 echo "${ECHO_T}Cannot find gdlib-config.
9863 Make sure it is installed and in your PATH.
9864 gdlib-config is part of the GD library available from www.boutell.com/gd.
9865 This is needed for the png HID. I will look for libgd anyway and maybe
9866 you will get lucky.
9867 " >&6
9868 if test "$WIN32" != "yes" ; then
9870 echo "$as_me:$LINENO: checking for main in -lgd" >&5
9871 echo $ECHO_N "checking for main in -lgd... $ECHO_C" >&6
9872 if test "${ac_cv_lib_gd_main+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 ac_check_lib_save_LIBS=$LIBS
9876 LIBS="-lgd $LIBS"
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9886 main ()
9888 main ();
9890 return 0;
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_gd_main=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_lib_gd_main=no
9922 rm -f conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9926 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_main" >&5
9927 echo "${ECHO_T}$ac_cv_lib_gd_main" >&6
9928 if test $ac_cv_lib_gd_main = yes; then
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_LIBGD 1
9931 _ACEOF
9933 LIBS="-lgd $LIBS"
9935 else
9936 { { echo "$as_me:$LINENO: error: You have requested the nelma and/or png HID but -lgd could not be found" >&5
9937 echo "$as_me: error: You have requested the nelma and/or png HID but -lgd could not be found" >&2;}
9938 { (exit 1); exit 1; }; }
9941 else
9943 echo "$as_me:$LINENO: checking for main in -lbgd" >&5
9944 echo $ECHO_N "checking for main in -lbgd... $ECHO_C" >&6
9945 if test "${ac_cv_lib_bgd_main+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-lbgd $LIBS"
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9959 main ()
9961 main ();
9963 return 0;
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_lib_bgd_main=yes
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_lib_bgd_main=no
9995 rm -f conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 LIBS=$ac_check_lib_save_LIBS
9999 echo "$as_me:$LINENO: result: $ac_cv_lib_bgd_main" >&5
10000 echo "${ECHO_T}$ac_cv_lib_bgd_main" >&6
10001 if test $ac_cv_lib_bgd_main = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_LIBBGD 1
10004 _ACEOF
10006 LIBS="-lbgd $LIBS"
10008 else
10009 { { echo "$as_me:$LINENO: error: You have requested the nelma and/or png HID but -lbgd could not be found" >&5
10010 echo "$as_me: error: You have requested the nelma and/or png HID but -lbgd could not be found" >&2;}
10011 { (exit 1); exit 1; }; }
10015 else
10016 if test "$WIN32" = "yes" ; then
10017 GD=bgd
10018 else
10019 GD=gd
10021 echo "$as_me:$LINENO: checking for libgd cflags" >&5
10022 echo $ECHO_N "checking for libgd cflags... $ECHO_C" >&6
10023 GD_CFLAGS="`$GDLIB_CONFIG --cflags`"
10024 echo "$as_me:$LINENO: result: $GD_CFLAGS" >&5
10025 echo "${ECHO_T}$GD_CFLAGS" >&6
10026 echo "$as_me:$LINENO: checking for libgd libs" >&5
10027 echo $ECHO_N "checking for libgd libs... $ECHO_C" >&6
10028 GD_LIBS="`$GDLIB_CONFIG --ldflags` `$GDLIB_CONFIG --libs` -l${GD}"
10029 echo "$as_me:$LINENO: result: $GD_LIBS" >&5
10030 echo "${ECHO_T}$GD_LIBS" >&6
10033 # since some linux systems evidently install gdlib-config but fail to
10034 # install the headers (nice), check for the header too and fail if it
10035 # is not there.
10036 CFLAGS="$CFLAGS $GD_CFLAGS"
10037 CPPFLAGS="$CPPFLAGS $GD_CFLAGS"
10039 for ac_header in gd.h
10041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10043 echo "$as_me:$LINENO: checking for $ac_header" >&5
10044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10050 else
10051 # Is the header compilable?
10052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 #include <$ac_header>
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -z "$ac_c_werror_flag"
10073 || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest.$ac_objext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_header_compiler=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_header_compiler=no
10092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094 echo "${ECHO_T}$ac_header_compiler" >&6
10096 # Is the header present?
10097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 #include <$ac_header>
10106 _ACEOF
10107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } >/dev/null; then
10115 if test -s conftest.err; then
10116 ac_cpp_err=$ac_c_preproc_warn_flag
10117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10118 else
10119 ac_cpp_err=
10121 else
10122 ac_cpp_err=yes
10124 if test -z "$ac_cpp_err"; then
10125 ac_header_preproc=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_header_preproc=no
10132 rm -f conftest.err conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134 echo "${ECHO_T}$ac_header_preproc" >&6
10136 # So? What about this header?
10137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 yes:no: )
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10143 ac_header_preproc=yes
10145 no:yes:* )
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10159 cat <<\_ASBOX
10160 ## ------------------------------------------ ##
10161 ## Report this to the AC_PACKAGE_NAME lists. ##
10162 ## ------------------------------------------ ##
10163 _ASBOX
10165 sed "s/^/$as_me: WARNING: /" >&2
10167 esac
10168 echo "$as_me:$LINENO: checking for $ac_header" >&5
10169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 eval "$as_ac_Header=\$ac_header_preproc"
10175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10180 cat >>confdefs.h <<_ACEOF
10181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10182 _ACEOF
10186 done
10188 case $ac_cv_header_gd_h in
10189 no )
10190 { { echo "$as_me:$LINENO: error:
10191 You evidentally do not have a complete installation of the GD library available from www.boutell.com/gd.
10192 This is needed for the nelma and/or png HID.
10193 " >&5
10194 echo "$as_me: error:
10195 You evidentally do not have a complete installation of the GD library available from www.boutell.com/gd.
10196 This is needed for the nelma and/or png HID.
10197 " >&2;}
10198 { (exit 1); exit 1; }; }
10200 * ) ;;
10201 esac
10203 # Some versions of gd (prior to the expiration of the
10204 # patent related to gif compression) do not support
10205 # gif output. Check for that here.
10206 save_LIBS="$LIBS"
10207 LIBS="$save_LIBS $GD_LIBS $X_LIBS"
10209 echo "$as_me:$LINENO: checking if GIF output from the png HID is desired" >&5
10210 echo $ECHO_N "checking if GIF output from the png HID is desired... $ECHO_C" >&6
10211 # Check whether --enable-gif or --disable-gif was given.
10212 if test "${enable_gif+set}" = set; then
10213 enableval="$enable_gif"
10215 if test "X$enable_gif" != "Xno" ; then
10216 echo "$as_me:$LINENO: result: yes" >&5
10217 echo "${ECHO_T}yes" >&6
10218 with_gif=yes
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10222 with_gif=no
10225 else
10227 echo "$as_me:$LINENO: result: yes" >&5
10228 echo "${ECHO_T}yes" >&6
10229 with_gif=yes
10232 if test "X$with_gif" = "Xyes" ; then
10234 for ac_func in gdImageGif
10236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10237 echo "$as_me:$LINENO: checking for $ac_func" >&5
10238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_var+set}\" = set"; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10250 #define $ac_func innocuous_$ac_func
10252 /* System header to define __stub macros and hopefully few prototypes,
10253 which can conflict with char $ac_func (); below.
10254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255 <limits.h> exists even on freestanding compilers. */
10257 #ifdef __STDC__
10258 # include <limits.h>
10259 #else
10260 # include <assert.h>
10261 #endif
10263 #undef $ac_func
10265 /* Override any gcc2 internal prototype to avoid an error. */
10266 #ifdef __cplusplus
10267 extern "C"
10269 #endif
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char $ac_func ();
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10277 choke me
10278 #else
10279 char (*f) () = $ac_func;
10280 #endif
10281 #ifdef __cplusplus
10283 #endif
10286 main ()
10288 return f != $ac_func;
10290 return 0;
10292 _ACEOF
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag"
10303 || test ! -s conftest.err'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 eval "$as_ac_var=yes"
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 eval "$as_ac_var=no"
10322 rm -f conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10327 if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10330 _ACEOF
10333 done
10335 if test "$ac_cv_func_gdImageGif" != "yes"; then
10336 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include gif support.
10337 You may need to update your installation of gd or disable
10338 gif export with --disable-gif" >&5
10339 echo "$as_me: error: Your gd installation does not appear to include gif support.
10340 You may need to update your installation of gd or disable
10341 gif export with --disable-gif" >&2;}
10342 { (exit 1); exit 1; }; }
10346 echo "$as_me:$LINENO: checking if JPEG output from the png HID is desired" >&5
10347 echo $ECHO_N "checking if JPEG output from the png HID is desired... $ECHO_C" >&6
10348 # Check whether --enable-jpeg or --disable-jpeg was given.
10349 if test "${enable_jpeg+set}" = set; then
10350 enableval="$enable_jpeg"
10352 if test "X$enable_jpeg" != "Xno" ; then
10353 echo "$as_me:$LINENO: result: yes" >&5
10354 echo "${ECHO_T}yes" >&6
10355 with_jpeg=yes
10356 else
10357 echo "$as_me:$LINENO: result: no" >&5
10358 echo "${ECHO_T}no" >&6
10359 with_jpeg=no
10362 else
10364 echo "$as_me:$LINENO: result: yes" >&5
10365 echo "${ECHO_T}yes" >&6
10366 with_jpeg=yes
10369 if test "X$with_jpeg" = "Xyes" ; then
10371 for ac_func in gdImageJpeg
10373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374 echo "$as_me:$LINENO: checking for $ac_func" >&5
10375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_var+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10387 #define $ac_func innocuous_$ac_func
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char $ac_func (); below.
10391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392 <limits.h> exists even on freestanding compilers. */
10394 #ifdef __STDC__
10395 # include <limits.h>
10396 #else
10397 # include <assert.h>
10398 #endif
10400 #undef $ac_func
10402 /* Override any gcc2 internal prototype to avoid an error. */
10403 #ifdef __cplusplus
10404 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char $ac_func ();
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10414 choke me
10415 #else
10416 char (*f) () = $ac_func;
10417 #endif
10418 #ifdef __cplusplus
10420 #endif
10423 main ()
10425 return f != $ac_func;
10427 return 0;
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag"
10440 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 eval "$as_ac_var=yes"
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 eval "$as_ac_var=no"
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10464 if test `eval echo '${'$as_ac_var'}'` = yes; then
10465 cat >>confdefs.h <<_ACEOF
10466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10467 _ACEOF
10470 done
10472 if test "$ac_cv_func_gdImageJpeg" != "yes"; then
10473 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include JPEG support.
10474 You may need to update your installation of gd or disable
10475 JPEG export with --disable-jpeg" >&5
10476 echo "$as_me: error: Your gd installation does not appear to include JPEG support.
10477 You may need to update your installation of gd or disable
10478 JPEG export with --disable-jpeg" >&2;}
10479 { (exit 1); exit 1; }; }
10484 echo "$as_me:$LINENO: checking if PNG output from the png HID is desired" >&5
10485 echo $ECHO_N "checking if PNG output from the png HID is desired... $ECHO_C" >&6
10486 # Check whether --enable-png or --disable-png was given.
10487 if test "${enable_png+set}" = set; then
10488 enableval="$enable_png"
10490 if test "X$enable_png" != "Xno" ; then
10491 echo "$as_me:$LINENO: result: yes" >&5
10492 echo "${ECHO_T}yes" >&6
10493 with_png=yes
10494 else
10495 echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6
10497 with_png=no
10500 else
10502 echo "$as_me:$LINENO: result: yes" >&5
10503 echo "${ECHO_T}yes" >&6
10504 with_png=yes
10507 if test "X$with_png" = "Xyes" ; then
10509 for ac_func in gdImagePng
10511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 echo "$as_me:$LINENO: checking for $ac_func" >&5
10513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10514 if eval "test \"\${$as_ac_var+set}\" = set"; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10525 #define $ac_func innocuous_$ac_func
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func (); below.
10529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530 <limits.h> exists even on freestanding compilers. */
10532 #ifdef __STDC__
10533 # include <limits.h>
10534 #else
10535 # include <assert.h>
10536 #endif
10538 #undef $ac_func
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10544 #endif
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547 char $ac_func ();
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10552 choke me
10553 #else
10554 char (*f) () = $ac_func;
10555 #endif
10556 #ifdef __cplusplus
10558 #endif
10561 main ()
10563 return f != $ac_func;
10565 return 0;
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 eval "$as_ac_var=yes"
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 eval "$as_ac_var=no"
10597 rm -f conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10602 if test `eval echo '${'$as_ac_var'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10605 _ACEOF
10608 done
10610 if test "$ac_cv_func_gdImagePng" != "yes"; then
10611 { { echo "$as_me:$LINENO: error: Your gd installation does not appear to include PNG support.
10612 You may need to update your installation of gd or disable
10613 PNG export with --disable-png" >&5
10614 echo "$as_me: error: Your gd installation does not appear to include PNG support.
10615 You may need to update your installation of gd or disable
10616 PNG export with --disable-png" >&2;}
10617 { (exit 1); exit 1; }; }
10620 LIBS="$save_LIBS"
10623 esac
10624 done
10629 if test x$with_png = xyes; then
10630 PNG_TRUE=
10631 PNG_FALSE='#'
10632 else
10633 PNG_TRUE='#'
10634 PNG_FALSE=
10639 if test x$with_gif = xyes; then
10640 GIF_TRUE=
10641 GIF_FALSE='#'
10642 else
10643 GIF_TRUE='#'
10644 GIF_FALSE=
10649 # ------------- dmalloc -------------------
10650 with_dmalloc=no
10651 echo "$as_me:$LINENO: checking if dmalloc debugging should be enabled" >&5
10652 echo $ECHO_N "checking if dmalloc debugging should be enabled... $ECHO_C" >&6
10653 # Check whether --enable-dmalloc or --disable-dmalloc was given.
10654 if test "${enable_dmalloc+set}" = set; then
10655 enableval="$enable_dmalloc"
10657 if test "X$enable_dmalloc" != "Xno" ; then
10658 echo "$as_me:$LINENO: result: yes" >&5
10659 echo "${ECHO_T}yes" >&6
10660 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10661 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10662 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
10663 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10667 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
10668 else
10669 # Is the header compilable?
10670 echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
10671 echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10679 #include <dmalloc.h>
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_header_compiler=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_header_compiler=no
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10712 echo "${ECHO_T}$ac_header_compiler" >&6
10714 # Is the header present?
10715 echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
10716 echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 #include <dmalloc.h>
10724 _ACEOF
10725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } >/dev/null; then
10733 if test -s conftest.err; then
10734 ac_cpp_err=$ac_c_preproc_warn_flag
10735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10736 else
10737 ac_cpp_err=
10739 else
10740 ac_cpp_err=yes
10742 if test -z "$ac_cpp_err"; then
10743 ac_header_preproc=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_header_preproc=no
10750 rm -f conftest.err conftest.$ac_ext
10751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752 echo "${ECHO_T}$ac_header_preproc" >&6
10754 # So? What about this header?
10755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
10758 echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
10760 echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
10765 echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
10767 echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
10769 echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
10771 echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
10775 echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
10777 cat <<\_ASBOX
10778 ## ------------------------------------------ ##
10779 ## Report this to the AC_PACKAGE_NAME lists. ##
10780 ## ------------------------------------------ ##
10781 _ASBOX
10783 sed "s/^/$as_me: WARNING: /" >&2
10785 esac
10786 echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10787 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
10788 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 ac_cv_header_dmalloc_h=$ac_header_preproc
10793 echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10794 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
10797 if test $ac_cv_header_dmalloc_h = yes; then
10799 else
10800 { { echo "$as_me:$LINENO: error: You have requested dmalloc debugging but dmalloc.h could not be found" >&5
10801 echo "$as_me: error: You have requested dmalloc debugging but dmalloc.h could not be found" >&2;}
10802 { (exit 1); exit 1; }; }
10807 echo "$as_me:$LINENO: checking for main in -ldmalloc" >&5
10808 echo $ECHO_N "checking for main in -ldmalloc... $ECHO_C" >&6
10809 if test "${ac_cv_lib_dmalloc_main+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldmalloc $LIBS"
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10823 main ()
10825 main ();
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_lib_dmalloc_main=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_cv_lib_dmalloc_main=no
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_main" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dmalloc_main" >&6
10865 if test $ac_cv_lib_dmalloc_main = yes; then
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_LIBDMALLOC 1
10868 _ACEOF
10870 LIBS="-ldmalloc $LIBS"
10872 else
10873 { { echo "$as_me:$LINENO: error: You have requested dmalloc debugging but -ldmalloc could not be found" >&5
10874 echo "$as_me: error: You have requested dmalloc debugging but -ldmalloc could not be found" >&2;}
10875 { (exit 1); exit 1; }; }
10878 DMALLOC_LIBS="-ldmalloc"
10879 with_dmalloc=yes
10880 else
10881 echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10883 DMALLOC_LIBS=""
10886 else
10888 echo "$as_me:$LINENO: result: no" >&5
10889 echo "${ECHO_T}no" >&6
10890 DMALLOC_LIBS=""
10894 # ------------- ElectricFence -------------------
10895 with_efence=no
10896 echo "$as_me:$LINENO: checking if ElectricFence debugging should be enabled" >&5
10897 echo $ECHO_N "checking if ElectricFence debugging should be enabled... $ECHO_C" >&6
10898 # Check whether --enable-efence or --disable-efence was given.
10899 if test "${enable_efence+set}" = set; then
10900 enableval="$enable_efence"
10902 if test "X$enable_efence" != "Xno" ; then
10903 echo "$as_me:$LINENO: result: yes" >&5
10904 echo "${ECHO_T}yes" >&6
10906 echo "$as_me:$LINENO: checking for main in -lefence" >&5
10907 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10908 if test "${ac_cv_lib_efence_main+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911 ac_check_lib_save_LIBS=$LIBS
10912 LIBS="-lefence $LIBS"
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10922 main ()
10924 main ();
10926 return 0;
10928 _ACEOF
10929 rm -f conftest.$ac_objext conftest$ac_exeext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931 (eval $ac_link) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_lib_efence_main=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_cv_lib_efence_main=no
10958 rm -f conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10963 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10964 if test $ac_cv_lib_efence_main = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_LIBEFENCE 1
10967 _ACEOF
10969 LIBS="-lefence $LIBS"
10971 else
10972 { { echo "$as_me:$LINENO: error: You have requested ElectricFence debugging but -lefence could not be found" >&5
10973 echo "$as_me: error: You have requested ElectricFence debugging but -lefence could not be found" >&2;}
10974 { (exit 1); exit 1; }; }
10977 with_efence=yes
10978 else
10979 echo "$as_me:$LINENO: result: no" >&5
10980 echo "${ECHO_T}no" >&6
10983 else
10985 echo "$as_me:$LINENO: result: no" >&5
10986 echo "${ECHO_T}no" >&6
10990 CFLAGS="$CFLAGS $X_CFLAGS $DBUS_CFLAGS $GTK_CFLAGS"
10991 LIBS="$LIBS $XM_LIBS $DBUS_LIBS $X_LIBS $GTK_LIBS $DMALLOC_LIBS $GD_LIBS"
10994 # if we have gcc then add -Wall
10995 if test "x$GCC" = "xyes"; then
10996 if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
10997 CFLAGS="$CFLAGS -Wall"
11002 # font filename
11003 FONTFILENAME=${FONTFILENAME:-"default_font"}
11006 cat >>confdefs.h <<_ACEOF
11007 #define FONTFILENAME "$FONTFILENAME"
11008 _ACEOF
11011 # standard autoconf variables
11012 CPPFLAGS="$CPPFLAGS -DPREFIXDIR=\\\"\${prefix}\\\""
11013 CPPFLAGS="$CPPFLAGS -DBINDIR=\\\"\${bindir}\\\""
11014 CPPFLAGS="$CPPFLAGS -DHOST=\\\"\${host}\\\""
11016 # directory for old-style library and for fonts
11017 PCBLIBDIR=${datadir}/pcb
11019 #AC_DEFINE_UNQUOTED(PCBLIBDIR,"$PCBLIBDIR",[Library directory])
11020 CPPFLAGS="$CPPFLAGS -DPCBLIBDIR=\\\"$PCBLIBDIR\\\""
11022 # name for old-style library
11023 LIBRARYFILENAME=pcblib
11026 cat >>confdefs.h <<_ACEOF
11027 #define LIBRARYFILENAME "$LIBRARYFILENAME"
11028 _ACEOF
11032 # directory for new library
11033 PCBTREEDIR=${datadir}/pcb/newlib
11034 PCBTREEPATH=${PCBTREEDIR}:${PCBLIBDIR}/pcblib-newlib
11035 PCBTREEDIR=${PCBTREEDIR:-"$PCBTREEDIR"}
11038 #AC_DEFINE_UNQUOTED(PCBTREEDIR,"$PCBLIB",[top directory for new style pcb library])
11039 CPPFLAGS="$CPPFLAGS -DPCBTREEDIR=\\\"$PCBTREEDIR\\\""
11040 CPPFLAGS="$CPPFLAGS -DPCBTREEPATH=\\\"$PCBTREEPATH\\\""
11042 # Figure out relative paths
11043 echo "$as_me:$LINENO: checking for the bindir to pcblibdir relative path" >&5
11044 echo $ECHO_N "checking for the bindir to pcblibdir relative path... $ECHO_C" >&6
11045 for _lcl_i in bindir:PCBLIBDIR:bindir_to_pcblibdir; do
11046 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
11047 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
11048 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
11049 _lcl_receval="$_lcl_from"
11050 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11051 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11052 _lcl_receval_old=''
11053 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11054 _lcl_receval_old="$_lcl_receval"
11055 eval _lcl_receval="\"$_lcl_receval\""
11056 done
11057 echo "$_lcl_receval")`
11058 _lcl_receval="$_lcl_to"
11059 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11060 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11061 _lcl_receval_old=''
11062 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11063 _lcl_receval_old="$_lcl_receval"
11064 eval _lcl_receval="\"$_lcl_receval\""
11065 done
11066 echo "$_lcl_receval")`
11067 _lcl_notation="$_lcl_from$_lcl_to"
11068 case ":$_lcl_from:" in
11069 # change empty paths to '.'
11070 ::) _lcl_from='.' ;;
11071 # strip trailing slashes
11072 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
11073 :*:) ;;
11074 esac
11075 # squeze repeated slashes
11076 case '/' in
11077 # if the path contains any backslashes, turn slashes into backslashes
11078 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11079 # if the path contains slashes, also turn backslashes into slashes
11080 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11081 esac
11082 case ":$_lcl_to:" in
11083 # change empty paths to '.'
11084 ::) _lcl_to='.' ;;
11085 # strip trailing slashes
11086 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
11087 :*:) ;;
11088 esac
11089 # squeze repeated slashes
11090 case '/' in
11091 # if the path contains any backslashes, turn slashes into backslashes
11092 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11093 # if the path contains slashes, also turn backslashes into slashes
11094 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11095 esac
11096 _lcl_common_prefix=''
11097 _lcl_second_prefix_match=''
11098 while test "$_lcl_second_prefix_match" != 0; do
11099 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
11100 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
11101 if test "$_lcl_second_prefix_match" != 0; then
11102 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
11103 _lcl_common_prefix="$_lcl_first_prefix"
11104 else
11105 _lcl_second_prefix_match=0
11108 done
11109 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
11110 _lcl_first_rel=''
11111 _lcl_tmp='xxx'
11112 while test "$_lcl_tmp" != ''; do
11113 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
11114 if test "$_lcl_first_suffix" != ''; then
11115 _lcl_first_suffix="$_lcl_tmp"
11116 _lcl_first_rel="../$_lcl_first_rel"
11118 done
11119 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
11120 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
11121 case ":$_lcl_result_tmp:" in
11122 # change empty paths to '.'
11123 ::) _lcl_result_tmp='.' ;;
11124 # strip trailing slashes
11125 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
11126 :*:) ;;
11127 esac
11128 # squeze repeated slashes
11129 case "$_lcl_notation" in
11130 # if the path contains any backslashes, turn slashes into backslashes
11131 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11132 # if the path contains slashes, also turn backslashes into slashes
11133 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11134 esac
11135 eval $_lcl_result_var='$_lcl_result_tmp'
11136 done
11137 case ":$bindir_to_pcblibdir:" in
11138 # change empty paths to '.'
11139 ::) bindir_to_pcblibdir='.' ;;
11140 # strip trailing slashes
11141 :*[\\/]:) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,[\\/]*$,,'` ;;
11142 :*:) ;;
11143 esac
11144 # squeze repeated slashes
11145 case $PCB_DIR_SEPARATOR_S in
11146 # if the path contains any backslashes, turn slashes into backslashes
11147 *\\*) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11148 # if the path contains slashes, also turn backslashes into slashes
11149 *) bindir_to_pcblibdir=`echo "$bindir_to_pcblibdir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11150 esac
11151 echo "$as_me:$LINENO: result: $bindir_to_pcblibdir" >&5
11152 echo "${ECHO_T}$bindir_to_pcblibdir" >&6
11154 cat >>confdefs.h <<_ACEOF
11155 #define BINDIR_TO_PCBLIBDIR "$bindir_to_pcblibdir"
11156 _ACEOF
11159 echo "$as_me:$LINENO: checking for the bindir to pcbtreedir relative path" >&5
11160 echo $ECHO_N "checking for the bindir to pcbtreedir relative path... $ECHO_C" >&6
11161 for _lcl_i in bindir:PCBTREEDIR:bindir_to_pcbtreedir; do
11162 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
11163 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
11164 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
11165 _lcl_receval="$_lcl_from"
11166 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11167 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11168 _lcl_receval_old=''
11169 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11170 _lcl_receval_old="$_lcl_receval"
11171 eval _lcl_receval="\"$_lcl_receval\""
11172 done
11173 echo "$_lcl_receval")`
11174 _lcl_receval="$_lcl_to"
11175 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11176 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11177 _lcl_receval_old=''
11178 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11179 _lcl_receval_old="$_lcl_receval"
11180 eval _lcl_receval="\"$_lcl_receval\""
11181 done
11182 echo "$_lcl_receval")`
11183 _lcl_notation="$_lcl_from$_lcl_to"
11184 case ":$_lcl_from:" in
11185 # change empty paths to '.'
11186 ::) _lcl_from='.' ;;
11187 # strip trailing slashes
11188 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
11189 :*:) ;;
11190 esac
11191 # squeze repeated slashes
11192 case '/' in
11193 # if the path contains any backslashes, turn slashes into backslashes
11194 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11195 # if the path contains slashes, also turn backslashes into slashes
11196 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11197 esac
11198 case ":$_lcl_to:" in
11199 # change empty paths to '.'
11200 ::) _lcl_to='.' ;;
11201 # strip trailing slashes
11202 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
11203 :*:) ;;
11204 esac
11205 # squeze repeated slashes
11206 case '/' in
11207 # if the path contains any backslashes, turn slashes into backslashes
11208 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11209 # if the path contains slashes, also turn backslashes into slashes
11210 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11211 esac
11212 _lcl_common_prefix=''
11213 _lcl_second_prefix_match=''
11214 while test "$_lcl_second_prefix_match" != 0; do
11215 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
11216 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
11217 if test "$_lcl_second_prefix_match" != 0; then
11218 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
11219 _lcl_common_prefix="$_lcl_first_prefix"
11220 else
11221 _lcl_second_prefix_match=0
11224 done
11225 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
11226 _lcl_first_rel=''
11227 _lcl_tmp='xxx'
11228 while test "$_lcl_tmp" != ''; do
11229 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
11230 if test "$_lcl_first_suffix" != ''; then
11231 _lcl_first_suffix="$_lcl_tmp"
11232 _lcl_first_rel="../$_lcl_first_rel"
11234 done
11235 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
11236 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
11237 case ":$_lcl_result_tmp:" in
11238 # change empty paths to '.'
11239 ::) _lcl_result_tmp='.' ;;
11240 # strip trailing slashes
11241 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
11242 :*:) ;;
11243 esac
11244 # squeze repeated slashes
11245 case "$_lcl_notation" in
11246 # if the path contains any backslashes, turn slashes into backslashes
11247 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11248 # if the path contains slashes, also turn backslashes into slashes
11249 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11250 esac
11251 eval $_lcl_result_var='$_lcl_result_tmp'
11252 done
11253 case ":$bindir_to_pcbtreedir:" in
11254 # change empty paths to '.'
11255 ::) bindir_to_pcbtreedir='.' ;;
11256 # strip trailing slashes
11257 :*[\\/]:) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,[\\/]*$,,'` ;;
11258 :*:) ;;
11259 esac
11260 # squeze repeated slashes
11261 case $PCB_DIR_SEPARATOR_S in
11262 # if the path contains any backslashes, turn slashes into backslashes
11263 *\\*) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11264 # if the path contains slashes, also turn backslashes into slashes
11265 *) bindir_to_pcbtreedir=`echo "$bindir_to_pcbtreedir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11266 esac
11267 echo "$as_me:$LINENO: result: $bindir_to_pcbtreedir" >&5
11268 echo "${ECHO_T}$bindir_to_pcbtreedir" >&6
11270 cat >>confdefs.h <<_ACEOF
11271 #define BINDIR_TO_PCBTREEDIR "$bindir_to_pcbtreedir"
11272 _ACEOF
11276 echo "$as_me:$LINENO: checking for the bindir to exec_prefix relative path" >&5
11277 echo $ECHO_N "checking for the bindir to exec_prefix relative path... $ECHO_C" >&6
11278 for _lcl_i in bindir:exec_prefix:bindir_to_execprefix; do
11279 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
11280 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
11281 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
11282 _lcl_receval="$_lcl_from"
11283 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11284 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11285 _lcl_receval_old=''
11286 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11287 _lcl_receval_old="$_lcl_receval"
11288 eval _lcl_receval="\"$_lcl_receval\""
11289 done
11290 echo "$_lcl_receval")`
11291 _lcl_receval="$_lcl_to"
11292 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11293 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
11294 _lcl_receval_old=''
11295 while test "$_lcl_receval_old" != "$_lcl_receval"; do
11296 _lcl_receval_old="$_lcl_receval"
11297 eval _lcl_receval="\"$_lcl_receval\""
11298 done
11299 echo "$_lcl_receval")`
11300 _lcl_notation="$_lcl_from$_lcl_to"
11301 case ":$_lcl_from:" in
11302 # change empty paths to '.'
11303 ::) _lcl_from='.' ;;
11304 # strip trailing slashes
11305 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
11306 :*:) ;;
11307 esac
11308 # squeze repeated slashes
11309 case '/' in
11310 # if the path contains any backslashes, turn slashes into backslashes
11311 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11312 # if the path contains slashes, also turn backslashes into slashes
11313 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11314 esac
11315 case ":$_lcl_to:" in
11316 # change empty paths to '.'
11317 ::) _lcl_to='.' ;;
11318 # strip trailing slashes
11319 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
11320 :*:) ;;
11321 esac
11322 # squeze repeated slashes
11323 case '/' in
11324 # if the path contains any backslashes, turn slashes into backslashes
11325 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11326 # if the path contains slashes, also turn backslashes into slashes
11327 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11328 esac
11329 _lcl_common_prefix=''
11330 _lcl_second_prefix_match=''
11331 while test "$_lcl_second_prefix_match" != 0; do
11332 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
11333 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
11334 if test "$_lcl_second_prefix_match" != 0; then
11335 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
11336 _lcl_common_prefix="$_lcl_first_prefix"
11337 else
11338 _lcl_second_prefix_match=0
11341 done
11342 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
11343 _lcl_first_rel=''
11344 _lcl_tmp='xxx'
11345 while test "$_lcl_tmp" != ''; do
11346 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
11347 if test "$_lcl_first_suffix" != ''; then
11348 _lcl_first_suffix="$_lcl_tmp"
11349 _lcl_first_rel="../$_lcl_first_rel"
11351 done
11352 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
11353 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
11354 case ":$_lcl_result_tmp:" in
11355 # change empty paths to '.'
11356 ::) _lcl_result_tmp='.' ;;
11357 # strip trailing slashes
11358 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
11359 :*:) ;;
11360 esac
11361 # squeze repeated slashes
11362 case "$_lcl_notation" in
11363 # if the path contains any backslashes, turn slashes into backslashes
11364 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11365 # if the path contains slashes, also turn backslashes into slashes
11366 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11367 esac
11368 eval $_lcl_result_var='$_lcl_result_tmp'
11369 done
11370 case ":$bindir_to_execprefix:" in
11371 # change empty paths to '.'
11372 ::) bindir_to_execprefix='.' ;;
11373 # strip trailing slashes
11374 :*[\\/]:) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,[\\/]*$,,'` ;;
11375 :*:) ;;
11376 esac
11377 # squeze repeated slashes
11378 case $PCB_DIR_SEPARATOR_S in
11379 # if the path contains any backslashes, turn slashes into backslashes
11380 *\\*) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g'` ;;
11381 # if the path contains slashes, also turn backslashes into slashes
11382 *) bindir_to_execprefix=`echo "$bindir_to_execprefix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
11383 esac
11384 echo "$as_me:$LINENO: result: $bindir_to_execprefix" >&5
11385 echo "${ECHO_T}$bindir_to_execprefix" >&6
11387 cat >>confdefs.h <<_ACEOF
11388 #define BINDIR_TO_EXECPREFIX "$bindir_to_execprefix"
11389 _ACEOF
11393 BTNMOD=${BTNMOD:-"Mod1"}
11396 TOPDIRS=
11397 for dir in src lib newlib doc example tools tutorial README_FILES
11399 test -d $dir/. && TOPDIRS="$TOPDIRS $dir"
11400 done
11403 ac_config_files="$ac_config_files Makefile"
11405 if test -d $srcdir/README_FILES; then
11406 ac_config_files="$ac_config_files README_FILES/Makefile"
11409 if test -d $srcdir/doc; then
11410 ac_config_files="$ac_config_files doc/Makefile"
11413 if test -d $srcdir/example; then
11414 ac_config_files="$ac_config_files example/Makefile"
11416 ac_config_files="$ac_config_files example/libraries/Makefile"
11419 if test -d $srcdir/lib; then
11420 ac_config_files="$ac_config_files lib/CreateLibraryContents.sh"
11422 ac_config_files="$ac_config_files lib/CreateLibrary.sh"
11424 ac_config_files="$ac_config_files lib/ListLibraryContents.sh"
11426 ac_config_files="$ac_config_files lib/Makefile"
11428 ac_config_files="$ac_config_files lib/QueryLibrary.sh"
11430 ac_config_files="$ac_config_files lib/m4lib_to_newlib.sh"
11432 ac_config_files="$ac_config_files lib/qfp-ui"
11435 if test -d $srcdir/newlib; then
11436 ac_config_files="$ac_config_files newlib/2_pin_thru-hole_packages/Makefile"
11438 ac_config_files="$ac_config_files newlib/Makefile"
11440 ac_config_files="$ac_config_files newlib/analog-devices/Makefile"
11442 ac_config_files="$ac_config_files newlib/burr-brown/Makefile"
11444 ac_config_files="$ac_config_files newlib/connectors/Makefile"
11446 ac_config_files="$ac_config_files newlib/crystal/Makefile"
11448 ac_config_files="$ac_config_files newlib/electro-optics/Makefile"
11450 ac_config_files="$ac_config_files newlib/headers/Makefile"
11452 ac_config_files="$ac_config_files newlib/msp430/Makefile"
11454 ac_config_files="$ac_config_files newlib/not_vetted_ingo/Makefile"
11456 ac_config_files="$ac_config_files newlib/sockets/Makefile"
11458 ac_config_files="$ac_config_files newlib/tests/Makefile"
11461 ac_config_files="$ac_config_files src/Makefile"
11463 ac_config_files="$ac_config_files src/icons/Makefile"
11465 if test -d $srcdir/tools; then
11466 ac_config_files="$ac_config_files tools/Makefile"
11469 if test -d $srcdir/tutorial; then
11470 ac_config_files="$ac_config_files tutorial/Makefile"
11474 ac_config_files="$ac_config_files win32/Makefile"
11477 cat >confcache <<\_ACEOF
11478 # This file is a shell script that caches the results of configure
11479 # tests run on this system so they can be shared between configure
11480 # scripts and configure runs, see configure's option --config-cache.
11481 # It is not useful on other systems. If it contains results you don't
11482 # want to keep, you may remove or edit it.
11484 # config.status only pays attention to the cache file if you give it
11485 # the --recheck option to rerun configure.
11487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11489 # following values.
11491 _ACEOF
11493 # The following way of writing the cache mishandles newlines in values,
11494 # but we know of no workaround that is simple, portable, and efficient.
11495 # So, don't put newlines in cache variables' values.
11496 # Ultrix sh set writes to stderr and can't be redirected directly,
11497 # and sets the high bit in the cache file unless we assign to the vars.
11499 (set) 2>&1 |
11500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11501 *ac_space=\ *)
11502 # `set' does not quote correctly, so add quotes (double-quote
11503 # substitution turns \\\\ into \\, and sed turns \\ into \).
11504 sed -n \
11505 "s/'/'\\\\''/g;
11506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11509 # `set' quotes correctly as required by POSIX, so do not add quotes.
11510 sed -n \
11511 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11513 esac;
11515 sed '
11516 t clear
11517 : clear
11518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11519 t end
11520 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11521 : end' >>confcache
11522 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11523 if test -w $cache_file; then
11524 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11525 cat confcache >$cache_file
11526 else
11527 echo "not updating unwritable cache $cache_file"
11530 rm -f confcache
11532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11533 # Let make expand exec_prefix.
11534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11536 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11537 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11538 # trailing colons and then remove the whole line if VPATH becomes empty
11539 # (actually we leave an empty line to preserve line numbers).
11540 if test "x$srcdir" = x.; then
11541 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11542 s/:*\$(srcdir):*/:/;
11543 s/:*\${srcdir}:*/:/;
11544 s/:*@srcdir@:*/:/;
11545 s/^\([^=]*=[ ]*\):*/\1/;
11546 s/:*$//;
11547 s/^[^=]*=[ ]*$//;
11551 DEFS=-DHAVE_CONFIG_H
11553 ac_libobjs=
11554 ac_ltlibobjs=
11555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11556 # 1. Remove the extension, and $U if already installed.
11557 ac_i=`echo "$ac_i" |
11558 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11559 # 2. Add them.
11560 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11561 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11562 done
11563 LIBOBJS=$ac_libobjs
11565 LTLIBOBJS=$ac_ltlibobjs
11568 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11569 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11570 Usually this means the macro was only invoked conditionally." >&5
11571 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11572 Usually this means the macro was only invoked conditionally." >&2;}
11573 { (exit 1); exit 1; }; }
11575 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
11576 { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
11577 Usually this means the macro was only invoked conditionally." >&5
11578 echo "$as_me: error: conditional \"WIN32\" was never defined.
11579 Usually this means the macro was only invoked conditionally." >&2;}
11580 { (exit 1); exit 1; }; }
11582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11583 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11584 Usually this means the macro was only invoked conditionally." >&5
11585 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11586 Usually this means the macro was only invoked conditionally." >&2;}
11587 { (exit 1); exit 1; }; }
11589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11590 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11591 Usually this means the macro was only invoked conditionally." >&5
11592 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11593 Usually this means the macro was only invoked conditionally." >&2;}
11594 { (exit 1); exit 1; }; }
11596 if test -z "${MISSING_TGIF_TRUE}" && test -z "${MISSING_TGIF_FALSE}"; then
11597 { { echo "$as_me:$LINENO: error: conditional \"MISSING_TGIF\" was never defined.
11598 Usually this means the macro was only invoked conditionally." >&5
11599 echo "$as_me: error: conditional \"MISSING_TGIF\" was never defined.
11600 Usually this means the macro was only invoked conditionally." >&2;}
11601 { (exit 1); exit 1; }; }
11603 if test -z "${MISSING_XPMTOPPM_TRUE}" && test -z "${MISSING_XPMTOPPM_FALSE}"; then
11604 { { echo "$as_me:$LINENO: error: conditional \"MISSING_XPMTOPPM\" was never defined.
11605 Usually this means the macro was only invoked conditionally." >&5
11606 echo "$as_me: error: conditional \"MISSING_XPMTOPPM\" was never defined.
11607 Usually this means the macro was only invoked conditionally." >&2;}
11608 { (exit 1); exit 1; }; }
11610 if test -z "${MISSING_CONVERT_TRUE}" && test -z "${MISSING_CONVERT_FALSE}"; then
11611 { { echo "$as_me:$LINENO: error: conditional \"MISSING_CONVERT\" was never defined.
11612 Usually this means the macro was only invoked conditionally." >&5
11613 echo "$as_me: error: conditional \"MISSING_CONVERT\" was never defined.
11614 Usually this means the macro was only invoked conditionally." >&2;}
11615 { (exit 1); exit 1; }; }
11617 if test -z "${WITH_DBUS_TRUE}" && test -z "${WITH_DBUS_FALSE}"; then
11618 { { echo "$as_me:$LINENO: error: conditional \"WITH_DBUS\" was never defined.
11619 Usually this means the macro was only invoked conditionally." >&5
11620 echo "$as_me: error: conditional \"WITH_DBUS\" was never defined.
11621 Usually this means the macro was only invoked conditionally." >&2;}
11622 { (exit 1); exit 1; }; }
11624 if test -z "${MISSING_LATEX_TRUE}" && test -z "${MISSING_LATEX_FALSE}"; then
11625 { { echo "$as_me:$LINENO: error: conditional \"MISSING_LATEX\" was never defined.
11626 Usually this means the macro was only invoked conditionally." >&5
11627 echo "$as_me: error: conditional \"MISSING_LATEX\" was never defined.
11628 Usually this means the macro was only invoked conditionally." >&2;}
11629 { (exit 1); exit 1; }; }
11631 if test -z "${MISSING_PDFLATEX_TRUE}" && test -z "${MISSING_PDFLATEX_FALSE}"; then
11632 { { echo "$as_me:$LINENO: error: conditional \"MISSING_PDFLATEX\" was never defined.
11633 Usually this means the macro was only invoked conditionally." >&5
11634 echo "$as_me: error: conditional \"MISSING_PDFLATEX\" was never defined.
11635 Usually this means the macro was only invoked conditionally." >&2;}
11636 { (exit 1); exit 1; }; }
11638 if test -z "${MISSING_DVIPS_TRUE}" && test -z "${MISSING_DVIPS_FALSE}"; then
11639 { { echo "$as_me:$LINENO: error: conditional \"MISSING_DVIPS\" was never defined.
11640 Usually this means the macro was only invoked conditionally." >&5
11641 echo "$as_me: error: conditional \"MISSING_DVIPS\" was never defined.
11642 Usually this means the macro was only invoked conditionally." >&2;}
11643 { (exit 1); exit 1; }; }
11645 if test -z "${MISSING_PS2PDF_TRUE}" && test -z "${MISSING_PS2PDF_FALSE}"; then
11646 { { echo "$as_me:$LINENO: error: conditional \"MISSING_PS2PDF\" was never defined.
11647 Usually this means the macro was only invoked conditionally." >&5
11648 echo "$as_me: error: conditional \"MISSING_PS2PDF\" was never defined.
11649 Usually this means the macro was only invoked conditionally." >&2;}
11650 { (exit 1); exit 1; }; }
11652 if test -z "${PNG_TRUE}" && test -z "${PNG_FALSE}"; then
11653 { { echo "$as_me:$LINENO: error: conditional \"PNG\" was never defined.
11654 Usually this means the macro was only invoked conditionally." >&5
11655 echo "$as_me: error: conditional \"PNG\" was never defined.
11656 Usually this means the macro was only invoked conditionally." >&2;}
11657 { (exit 1); exit 1; }; }
11659 if test -z "${GIF_TRUE}" && test -z "${GIF_FALSE}"; then
11660 { { echo "$as_me:$LINENO: error: conditional \"GIF\" was never defined.
11661 Usually this means the macro was only invoked conditionally." >&5
11662 echo "$as_me: error: conditional \"GIF\" was never defined.
11663 Usually this means the macro was only invoked conditionally." >&2;}
11664 { (exit 1); exit 1; }; }
11667 : ${CONFIG_STATUS=./config.status}
11668 ac_clean_files_save=$ac_clean_files
11669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11672 cat >$CONFIG_STATUS <<_ACEOF
11673 #! $SHELL
11674 # Generated by $as_me.
11675 # Run this file to recreate the current configuration.
11676 # Compiler output produced by configure, useful for debugging
11677 # configure, is in config.log if it exists.
11679 debug=false
11680 ac_cs_recheck=false
11681 ac_cs_silent=false
11682 SHELL=\${CONFIG_SHELL-$SHELL}
11683 _ACEOF
11685 cat >>$CONFIG_STATUS <<\_ACEOF
11686 ## --------------------- ##
11687 ## M4sh Initialization. ##
11688 ## --------------------- ##
11690 # Be Bourne compatible
11691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11692 emulate sh
11693 NULLCMD=:
11694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11695 # is contrary to our usage. Disable this feature.
11696 alias -g '${1+"$@"}'='"$@"'
11697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11698 set -o posix
11700 DUALCASE=1; export DUALCASE # for MKS sh
11702 # Support unset when possible.
11703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11704 as_unset=unset
11705 else
11706 as_unset=false
11710 # Work around bugs in pre-3.0 UWIN ksh.
11711 $as_unset ENV MAIL MAILPATH
11712 PS1='$ '
11713 PS2='> '
11714 PS4='+ '
11716 # NLS nuisances.
11717 for as_var in \
11718 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11719 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11720 LC_TELEPHONE LC_TIME
11722 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11723 eval $as_var=C; export $as_var
11724 else
11725 $as_unset $as_var
11727 done
11729 # Required to use basename.
11730 if expr a : '\(a\)' >/dev/null 2>&1; then
11731 as_expr=expr
11732 else
11733 as_expr=false
11736 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11737 as_basename=basename
11738 else
11739 as_basename=false
11743 # Name of the executable.
11744 as_me=`$as_basename "$0" ||
11745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11746 X"$0" : 'X\(//\)$' \| \
11747 X"$0" : 'X\(/\)$' \| \
11748 . : '\(.\)' 2>/dev/null ||
11749 echo X/"$0" |
11750 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11751 /^X\/\(\/\/\)$/{ s//\1/; q; }
11752 /^X\/\(\/\).*/{ s//\1/; q; }
11753 s/.*/./; q'`
11756 # PATH needs CR, and LINENO needs CR and PATH.
11757 # Avoid depending upon Character Ranges.
11758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11761 as_cr_digits='0123456789'
11762 as_cr_alnum=$as_cr_Letters$as_cr_digits
11764 # The user is always right.
11765 if test "${PATH_SEPARATOR+set}" != set; then
11766 echo "#! /bin/sh" >conf$$.sh
11767 echo "exit 0" >>conf$$.sh
11768 chmod +x conf$$.sh
11769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11770 PATH_SEPARATOR=';'
11771 else
11772 PATH_SEPARATOR=:
11774 rm -f conf$$.sh
11778 as_lineno_1=$LINENO
11779 as_lineno_2=$LINENO
11780 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11781 test "x$as_lineno_1" != "x$as_lineno_2" &&
11782 test "x$as_lineno_3" = "x$as_lineno_2" || {
11783 # Find who we are. Look in the path if we contain no path at all
11784 # relative or not.
11785 case $0 in
11786 *[\\/]* ) as_myself=$0 ;;
11787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11793 done
11796 esac
11797 # We did not find ourselves, most probably we were run as `sh COMMAND'
11798 # in which case we are not to be found in the path.
11799 if test "x$as_myself" = x; then
11800 as_myself=$0
11802 if test ! -f "$as_myself"; then
11803 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11804 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11805 { (exit 1); exit 1; }; }
11807 case $CONFIG_SHELL in
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for as_base in sh bash ksh sh5; do
11815 case $as_dir in
11817 if ("$as_dir/$as_base" -c '
11818 as_lineno_1=$LINENO
11819 as_lineno_2=$LINENO
11820 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11821 test "x$as_lineno_1" != "x$as_lineno_2" &&
11822 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11823 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11824 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11825 CONFIG_SHELL=$as_dir/$as_base
11826 export CONFIG_SHELL
11827 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11828 fi;;
11829 esac
11830 done
11831 done
11833 esac
11835 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11836 # uniformly replaced by the line number. The first 'sed' inserts a
11837 # line-number line before each line; the second 'sed' does the real
11838 # work. The second script uses 'N' to pair each line-number line
11839 # with the numbered line, and appends trailing '-' during
11840 # substitution so that $LINENO is not a special case at line end.
11841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11842 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11843 sed '=' <$as_myself |
11844 sed '
11846 s,$,-,
11847 : loop
11848 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11849 t loop
11850 s,-$,,
11851 s,^['$as_cr_digits']*\n,,
11852 ' >$as_me.lineno &&
11853 chmod +x $as_me.lineno ||
11854 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11855 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11856 { (exit 1); exit 1; }; }
11858 # Don't try to exec as it changes $[0], causing all sort of problems
11859 # (the dirname of $[0] is not the place where we might find the
11860 # original and so on. Autoconf is especially sensible to this).
11861 . ./$as_me.lineno
11862 # Exit status is that of the last command.
11863 exit
11867 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11868 *c*,-n*) ECHO_N= ECHO_C='
11869 ' ECHO_T=' ' ;;
11870 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11871 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11872 esac
11874 if expr a : '\(a\)' >/dev/null 2>&1; then
11875 as_expr=expr
11876 else
11877 as_expr=false
11880 rm -f conf$$ conf$$.exe conf$$.file
11881 echo >conf$$.file
11882 if ln -s conf$$.file conf$$ 2>/dev/null; then
11883 # We could just check for DJGPP; but this test a) works b) is more generic
11884 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11885 if test -f conf$$.exe; then
11886 # Don't use ln at all; we don't have any links
11887 as_ln_s='cp -p'
11888 else
11889 as_ln_s='ln -s'
11891 elif ln conf$$.file conf$$ 2>/dev/null; then
11892 as_ln_s=ln
11893 else
11894 as_ln_s='cp -p'
11896 rm -f conf$$ conf$$.exe conf$$.file
11898 if mkdir -p . 2>/dev/null; then
11899 as_mkdir_p=:
11900 else
11901 test -d ./-p && rmdir ./-p
11902 as_mkdir_p=false
11905 as_executable_p="test -f"
11907 # Sed expression to map a string onto a valid CPP name.
11908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11910 # Sed expression to map a string onto a valid variable name.
11911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11914 # IFS
11915 # We need space, tab and new line, in precisely that order.
11916 as_nl='
11918 IFS=" $as_nl"
11920 # CDPATH.
11921 $as_unset CDPATH
11923 exec 6>&1
11925 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11926 # report actual input values of CONFIG_FILES etc. instead of their
11927 # values after options handling. Logging --version etc. is OK.
11928 exec 5>>config.log
11930 echo
11931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11932 ## Running $as_me. ##
11933 _ASBOX
11934 } >&5
11935 cat >&5 <<_CSEOF
11937 This file was extended by $as_me, which was
11938 generated by GNU Autoconf 2.59. Invocation command line was
11940 CONFIG_FILES = $CONFIG_FILES
11941 CONFIG_HEADERS = $CONFIG_HEADERS
11942 CONFIG_LINKS = $CONFIG_LINKS
11943 CONFIG_COMMANDS = $CONFIG_COMMANDS
11944 $ $0 $@
11946 _CSEOF
11947 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11948 echo >&5
11949 _ACEOF
11951 # Files that config.status was made for.
11952 if test -n "$ac_config_files"; then
11953 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11956 if test -n "$ac_config_headers"; then
11957 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11960 if test -n "$ac_config_links"; then
11961 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11964 if test -n "$ac_config_commands"; then
11965 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11968 cat >>$CONFIG_STATUS <<\_ACEOF
11970 ac_cs_usage="\
11971 \`$as_me' instantiates files from templates according to the
11972 current configuration.
11974 Usage: $0 [OPTIONS] [FILE]...
11976 -h, --help print this help, then exit
11977 -V, --version print version number, then exit
11978 -q, --quiet do not print progress messages
11979 -d, --debug don't remove temporary files
11980 --recheck update $as_me by reconfiguring in the same conditions
11981 --file=FILE[:TEMPLATE]
11982 instantiate the configuration file FILE
11983 --header=FILE[:TEMPLATE]
11984 instantiate the configuration header FILE
11986 Configuration files:
11987 $config_files
11989 Configuration headers:
11990 $config_headers
11992 Configuration commands:
11993 $config_commands
11995 Report bugs to <bug-autoconf@gnu.org>."
11996 _ACEOF
11998 cat >>$CONFIG_STATUS <<_ACEOF
11999 ac_cs_version="\\
12000 config.status
12001 configured by $0, generated by GNU Autoconf 2.59,
12002 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12004 Copyright (C) 2003 Free Software Foundation, Inc.
12005 This config.status script is free software; the Free Software Foundation
12006 gives unlimited permission to copy, distribute and modify it."
12007 srcdir=$srcdir
12008 INSTALL="$INSTALL"
12009 _ACEOF
12011 cat >>$CONFIG_STATUS <<\_ACEOF
12012 # If no file are specified by the user, then we need to provide default
12013 # value. By we need to know if files were specified by the user.
12014 ac_need_defaults=:
12015 while test $# != 0
12017 case $1 in
12018 --*=*)
12019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12021 ac_shift=:
12024 ac_option=$1
12025 ac_optarg=$2
12026 ac_shift=shift
12028 *) # This is not an option, so the user has probably given explicit
12029 # arguments.
12030 ac_option=$1
12031 ac_need_defaults=false;;
12032 esac
12034 case $ac_option in
12035 # Handling of the options.
12036 _ACEOF
12037 cat >>$CONFIG_STATUS <<\_ACEOF
12038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12039 ac_cs_recheck=: ;;
12040 --version | --vers* | -V )
12041 echo "$ac_cs_version"; exit 0 ;;
12042 --he | --h)
12043 # Conflict between --help and --header
12044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12045 Try \`$0 --help' for more information." >&5
12046 echo "$as_me: error: ambiguous option: $1
12047 Try \`$0 --help' for more information." >&2;}
12048 { (exit 1); exit 1; }; };;
12049 --help | --hel | -h )
12050 echo "$ac_cs_usage"; exit 0 ;;
12051 --debug | --d* | -d )
12052 debug=: ;;
12053 --file | --fil | --fi | --f )
12054 $ac_shift
12055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12056 ac_need_defaults=false;;
12057 --header | --heade | --head | --hea )
12058 $ac_shift
12059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12060 ac_need_defaults=false;;
12061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12063 ac_cs_silent=: ;;
12065 # This is an error.
12066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12067 Try \`$0 --help' for more information." >&5
12068 echo "$as_me: error: unrecognized option: $1
12069 Try \`$0 --help' for more information." >&2;}
12070 { (exit 1); exit 1; }; } ;;
12072 *) ac_config_targets="$ac_config_targets $1" ;;
12074 esac
12075 shift
12076 done
12078 ac_configure_extra_args=
12080 if $ac_cs_silent; then
12081 exec 6>/dev/null
12082 ac_configure_extra_args="$ac_configure_extra_args --silent"
12085 _ACEOF
12086 cat >>$CONFIG_STATUS <<_ACEOF
12087 if \$ac_cs_recheck; then
12088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12092 _ACEOF
12094 cat >>$CONFIG_STATUS <<_ACEOF
12096 # INIT-COMMANDS section.
12099 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12101 _ACEOF
12105 cat >>$CONFIG_STATUS <<\_ACEOF
12106 for ac_config_target in $ac_config_targets
12108 case "$ac_config_target" in
12109 # Handling of arguments.
12110 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12111 "README_FILES/Makefile" ) CONFIG_FILES="$CONFIG_FILES README_FILES/Makefile" ;;
12112 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12113 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
12114 "example/libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/libraries/Makefile" ;;
12115 "lib/CreateLibraryContents.sh" ) CONFIG_FILES="$CONFIG_FILES lib/CreateLibraryContents.sh" ;;
12116 "lib/CreateLibrary.sh" ) CONFIG_FILES="$CONFIG_FILES lib/CreateLibrary.sh" ;;
12117 "lib/ListLibraryContents.sh" ) CONFIG_FILES="$CONFIG_FILES lib/ListLibraryContents.sh" ;;
12118 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12119 "lib/QueryLibrary.sh" ) CONFIG_FILES="$CONFIG_FILES lib/QueryLibrary.sh" ;;
12120 "lib/m4lib_to_newlib.sh" ) CONFIG_FILES="$CONFIG_FILES lib/m4lib_to_newlib.sh" ;;
12121 "lib/qfp-ui" ) CONFIG_FILES="$CONFIG_FILES lib/qfp-ui" ;;
12122 "newlib/2_pin_thru-hole_packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/2_pin_thru-hole_packages/Makefile" ;;
12123 "newlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/Makefile" ;;
12124 "newlib/analog-devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/analog-devices/Makefile" ;;
12125 "newlib/burr-brown/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/burr-brown/Makefile" ;;
12126 "newlib/connectors/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/connectors/Makefile" ;;
12127 "newlib/crystal/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/crystal/Makefile" ;;
12128 "newlib/electro-optics/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/electro-optics/Makefile" ;;
12129 "newlib/headers/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/headers/Makefile" ;;
12130 "newlib/msp430/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/msp430/Makefile" ;;
12131 "newlib/not_vetted_ingo/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/not_vetted_ingo/Makefile" ;;
12132 "newlib/sockets/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/sockets/Makefile" ;;
12133 "newlib/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES newlib/tests/Makefile" ;;
12134 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12135 "src/icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
12136 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12137 "tutorial/Makefile" ) CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
12138 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12139 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12140 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12141 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12143 { (exit 1); exit 1; }; };;
12144 esac
12145 done
12147 # If the user did not use the arguments to specify the items to instantiate,
12148 # then the envvar interface is used. Set only those that are not.
12149 # We use the long form for the default assignment because of an extremely
12150 # bizarre bug on SunOS 4.1.3.
12151 if $ac_need_defaults; then
12152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12157 # Have a temporary directory for convenience. Make it in the build tree
12158 # simply because there is no reason to put it here, and in addition,
12159 # creating and moving files from /tmp can sometimes cause problems.
12160 # Create a temporary directory, and hook for its removal unless debugging.
12161 $debug ||
12163 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12164 trap '{ (exit 1); exit 1; }' 1 2 13 15
12167 # Create a (secure) tmp directory for tmp files.
12170 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12171 test -n "$tmp" && test -d "$tmp"
12172 } ||
12174 tmp=./confstat$$-$RANDOM
12175 (umask 077 && mkdir $tmp)
12176 } ||
12178 echo "$me: cannot create a temporary directory in ." >&2
12179 { (exit 1); exit 1; }
12182 _ACEOF
12184 cat >>$CONFIG_STATUS <<_ACEOF
12187 # CONFIG_FILES section.
12190 # No need to generate the scripts if there are no CONFIG_FILES.
12191 # This happens for instance when ./config.status config.h
12192 if test -n "\$CONFIG_FILES"; then
12193 # Protect against being on the right side of a sed subst in config.status.
12194 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12195 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12196 s,@SHELL@,$SHELL,;t t
12197 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12198 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12199 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12200 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12201 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12202 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12203 s,@exec_prefix@,$exec_prefix,;t t
12204 s,@prefix@,$prefix,;t t
12205 s,@program_transform_name@,$program_transform_name,;t t
12206 s,@bindir@,$bindir,;t t
12207 s,@sbindir@,$sbindir,;t t
12208 s,@libexecdir@,$libexecdir,;t t
12209 s,@datadir@,$datadir,;t t
12210 s,@sysconfdir@,$sysconfdir,;t t
12211 s,@sharedstatedir@,$sharedstatedir,;t t
12212 s,@localstatedir@,$localstatedir,;t t
12213 s,@libdir@,$libdir,;t t
12214 s,@includedir@,$includedir,;t t
12215 s,@oldincludedir@,$oldincludedir,;t t
12216 s,@infodir@,$infodir,;t t
12217 s,@mandir@,$mandir,;t t
12218 s,@build_alias@,$build_alias,;t t
12219 s,@host_alias@,$host_alias,;t t
12220 s,@target_alias@,$target_alias,;t t
12221 s,@DEFS@,$DEFS,;t t
12222 s,@ECHO_C@,$ECHO_C,;t t
12223 s,@ECHO_N@,$ECHO_N,;t t
12224 s,@ECHO_T@,$ECHO_T,;t t
12225 s,@LIBS@,$LIBS,;t t
12226 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12227 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12228 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12229 s,@CYGPATH_W@,$CYGPATH_W,;t t
12230 s,@PACKAGE@,$PACKAGE,;t t
12231 s,@VERSION@,$VERSION,;t t
12232 s,@ACLOCAL@,$ACLOCAL,;t t
12233 s,@AUTOCONF@,$AUTOCONF,;t t
12234 s,@AUTOMAKE@,$AUTOMAKE,;t t
12235 s,@AUTOHEADER@,$AUTOHEADER,;t t
12236 s,@MAKEINFO@,$MAKEINFO,;t t
12237 s,@install_sh@,$install_sh,;t t
12238 s,@STRIP@,$STRIP,;t t
12239 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12240 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12241 s,@mkdir_p@,$mkdir_p,;t t
12242 s,@AWK@,$AWK,;t t
12243 s,@SET_MAKE@,$SET_MAKE,;t t
12244 s,@am__leading_dot@,$am__leading_dot,;t t
12245 s,@AMTAR@,$AMTAR,;t t
12246 s,@am__tar@,$am__tar,;t t
12247 s,@am__untar@,$am__untar,;t t
12248 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12249 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12250 s,@MAINT@,$MAINT,;t t
12251 s,@build@,$build,;t t
12252 s,@build_cpu@,$build_cpu,;t t
12253 s,@build_vendor@,$build_vendor,;t t
12254 s,@build_os@,$build_os,;t t
12255 s,@host@,$host,;t t
12256 s,@host_cpu@,$host_cpu,;t t
12257 s,@host_vendor@,$host_vendor,;t t
12258 s,@host_os@,$host_os,;t t
12259 s,@WIN32@,$WIN32,;t t
12260 s,@WIN32_TRUE@,$WIN32_TRUE,;t t
12261 s,@WIN32_FALSE@,$WIN32_FALSE,;t t
12262 s,@CC@,$CC,;t t
12263 s,@CFLAGS@,$CFLAGS,;t t
12264 s,@LDFLAGS@,$LDFLAGS,;t t
12265 s,@CPPFLAGS@,$CPPFLAGS,;t t
12266 s,@ac_ct_CC@,$ac_ct_CC,;t t
12267 s,@EXEEXT@,$EXEEXT,;t t
12268 s,@OBJEXT@,$OBJEXT,;t t
12269 s,@DEPDIR@,$DEPDIR,;t t
12270 s,@am__include@,$am__include,;t t
12271 s,@am__quote@,$am__quote,;t t
12272 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12273 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12274 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12275 s,@CCDEPMODE@,$CCDEPMODE,;t t
12276 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12277 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12278 s,@CPP@,$CPP,;t t
12279 s,@LEX@,$LEX,;t t
12280 s,@LEXLIB@,$LEXLIB,;t t
12281 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12282 s,@LEX_PATH@,$LEX_PATH,;t t
12283 s,@YACC@,$YACC,;t t
12284 s,@YACC_PATH@,$YACC_PATH,;t t
12285 s,@RANLIB@,$RANLIB,;t t
12286 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12287 s,@TGIF@,$TGIF,;t t
12288 s,@MISSING_TGIF_TRUE@,$MISSING_TGIF_TRUE,;t t
12289 s,@MISSING_TGIF_FALSE@,$MISSING_TGIF_FALSE,;t t
12290 s,@XPMTOPPM@,$XPMTOPPM,;t t
12291 s,@PPMTOWINICON@,$PPMTOWINICON,;t t
12292 s,@MISSING_XPMTOPPM_TRUE@,$MISSING_XPMTOPPM_TRUE,;t t
12293 s,@MISSING_XPMTOPPM_FALSE@,$MISSING_XPMTOPPM_FALSE,;t t
12294 s,@CONVERT@,$CONVERT,;t t
12295 s,@MISSING_CONVERT_TRUE@,$MISSING_CONVERT_TRUE,;t t
12296 s,@MISSING_CONVERT_FALSE@,$MISSING_CONVERT_FALSE,;t t
12297 s,@DOC@,$DOC,;t t
12298 s,@MKINFO@,$MKINFO,;t t
12299 s,@PERL@,$PERL,;t t
12300 s,@WITH_DBUS_TRUE@,$WITH_DBUS_TRUE,;t t
12301 s,@WITH_DBUS_FALSE@,$WITH_DBUS_FALSE,;t t
12302 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12303 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
12304 s,@DBUS_LIBS@,$DBUS_LIBS,;t t
12305 s,@HIDLIST@,$HIDLIST,;t t
12306 s,@HIDLIBS@,$HIDLIBS,;t t
12307 s,@M4@,$M4,;t t
12308 s,@WISH@,$WISH,;t t
12309 s,@GNUM4@,$GNUM4,;t t
12310 s,@LATEX@,$LATEX,;t t
12311 s,@MISSING_LATEX_TRUE@,$MISSING_LATEX_TRUE,;t t
12312 s,@MISSING_LATEX_FALSE@,$MISSING_LATEX_FALSE,;t t
12313 s,@PDFLATEX@,$PDFLATEX,;t t
12314 s,@MISSING_PDFLATEX_TRUE@,$MISSING_PDFLATEX_TRUE,;t t
12315 s,@MISSING_PDFLATEX_FALSE@,$MISSING_PDFLATEX_FALSE,;t t
12316 s,@DVIPS@,$DVIPS,;t t
12317 s,@MISSING_DVIPS_TRUE@,$MISSING_DVIPS_TRUE,;t t
12318 s,@MISSING_DVIPS_FALSE@,$MISSING_DVIPS_FALSE,;t t
12319 s,@PS2PDF@,$PS2PDF,;t t
12320 s,@MISSING_PS2PDF_TRUE@,$MISSING_PS2PDF_TRUE,;t t
12321 s,@MISSING_PS2PDF_FALSE@,$MISSING_PS2PDF_FALSE,;t t
12322 s,@EGREP@,$EGREP,;t t
12323 s,@X_CFLAGS@,$X_CFLAGS,;t t
12324 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12325 s,@X_LIBS@,$X_LIBS,;t t
12326 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12327 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
12328 s,@GTK_LIBS@,$GTK_LIBS,;t t
12329 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
12330 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
12331 s,@GDLIB_CONFIG@,$GDLIB_CONFIG,;t t
12332 s,@PNG_TRUE@,$PNG_TRUE,;t t
12333 s,@PNG_FALSE@,$PNG_FALSE,;t t
12334 s,@GIF_TRUE@,$GIF_TRUE,;t t
12335 s,@GIF_FALSE@,$GIF_FALSE,;t t
12336 s,@FONTFILENAME@,$FONTFILENAME,;t t
12337 s,@PCBLIBDIR@,$PCBLIBDIR,;t t
12338 s,@LIBRARYFILENAME@,$LIBRARYFILENAME,;t t
12339 s,@PCBTREEDIR@,$PCBTREEDIR,;t t
12340 s,@PCBTREEPATH@,$PCBTREEPATH,;t t
12341 s,@BTNMOD@,$BTNMOD,;t t
12342 s,@TOPDIRS@,$TOPDIRS,;t t
12343 s,@LIBOBJS@,$LIBOBJS,;t t
12344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12345 CEOF
12347 _ACEOF
12349 cat >>$CONFIG_STATUS <<\_ACEOF
12350 # Split the substitutions into bite-sized pieces for seds with
12351 # small command number limits, like on Digital OSF/1 and HP-UX.
12352 ac_max_sed_lines=48
12353 ac_sed_frag=1 # Number of current file.
12354 ac_beg=1 # First line for current file.
12355 ac_end=$ac_max_sed_lines # Line after last line for current file.
12356 ac_more_lines=:
12357 ac_sed_cmds=
12358 while $ac_more_lines; do
12359 if test $ac_beg -gt 1; then
12360 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12361 else
12362 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12364 if test ! -s $tmp/subs.frag; then
12365 ac_more_lines=false
12366 else
12367 # The purpose of the label and of the branching condition is to
12368 # speed up the sed processing (if there are no `@' at all, there
12369 # is no need to browse any of the substitutions).
12370 # These are the two extra sed commands mentioned above.
12371 (echo ':t
12372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12373 if test -z "$ac_sed_cmds"; then
12374 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12375 else
12376 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12378 ac_sed_frag=`expr $ac_sed_frag + 1`
12379 ac_beg=$ac_end
12380 ac_end=`expr $ac_end + $ac_max_sed_lines`
12382 done
12383 if test -z "$ac_sed_cmds"; then
12384 ac_sed_cmds=cat
12386 fi # test -n "$CONFIG_FILES"
12388 _ACEOF
12389 cat >>$CONFIG_STATUS <<\_ACEOF
12390 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12392 case $ac_file in
12393 - | *:- | *:-:* ) # input from stdin
12394 cat >$tmp/stdin
12395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12399 * ) ac_file_in=$ac_file.in ;;
12400 esac
12402 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12405 X"$ac_file" : 'X\(//\)[^/]' \| \
12406 X"$ac_file" : 'X\(//\)$' \| \
12407 X"$ac_file" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
12409 echo X"$ac_file" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12412 /^X\(\/\/\)$/{ s//\1/; q; }
12413 /^X\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415 { if $as_mkdir_p; then
12416 mkdir -p "$ac_dir"
12417 else
12418 as_dir="$ac_dir"
12419 as_dirs=
12420 while test ! -d "$as_dir"; do
12421 as_dirs="$as_dir $as_dirs"
12422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424 X"$as_dir" : 'X\(//\)[^/]' \| \
12425 X"$as_dir" : 'X\(//\)$' \| \
12426 X"$as_dir" : 'X\(/\)' \| \
12427 . : '\(.\)' 2>/dev/null ||
12428 echo X"$as_dir" |
12429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12431 /^X\(\/\/\)$/{ s//\1/; q; }
12432 /^X\(\/\).*/{ s//\1/; q; }
12433 s/.*/./; q'`
12434 done
12435 test ! -n "$as_dirs" || mkdir $as_dirs
12436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12438 { (exit 1); exit 1; }; }; }
12440 ac_builddir=.
12442 if test "$ac_dir" != .; then
12443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12444 # A "../" for each directory in $ac_dir_suffix.
12445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12446 else
12447 ac_dir_suffix= ac_top_builddir=
12450 case $srcdir in
12451 .) # No --srcdir option. We are building in place.
12452 ac_srcdir=.
12453 if test -z "$ac_top_builddir"; then
12454 ac_top_srcdir=.
12455 else
12456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12457 fi ;;
12458 [\\/]* | ?:[\\/]* ) # Absolute path.
12459 ac_srcdir=$srcdir$ac_dir_suffix;
12460 ac_top_srcdir=$srcdir ;;
12461 *) # Relative path.
12462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12464 esac
12466 # Do not use `cd foo && pwd` to compute absolute paths, because
12467 # the directories may not exist.
12468 case `pwd` in
12469 .) ac_abs_builddir="$ac_dir";;
12471 case "$ac_dir" in
12472 .) ac_abs_builddir=`pwd`;;
12473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12475 esac;;
12476 esac
12477 case $ac_abs_builddir in
12478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12480 case ${ac_top_builddir}. in
12481 .) ac_abs_top_builddir=$ac_abs_builddir;;
12482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12484 esac;;
12485 esac
12486 case $ac_abs_builddir in
12487 .) ac_abs_srcdir=$ac_srcdir;;
12489 case $ac_srcdir in
12490 .) ac_abs_srcdir=$ac_abs_builddir;;
12491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12493 esac;;
12494 esac
12495 case $ac_abs_builddir in
12496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12498 case $ac_top_srcdir in
12499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12502 esac;;
12503 esac
12506 case $INSTALL in
12507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12508 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12509 esac
12511 if test x"$ac_file" != x-; then
12512 { echo "$as_me:$LINENO: creating $ac_file" >&5
12513 echo "$as_me: creating $ac_file" >&6;}
12514 rm -f "$ac_file"
12516 # Let's still pretend it is `configure' which instantiates (i.e., don't
12517 # use $as_me), people would be surprised to read:
12518 # /* config.h. Generated by config.status. */
12519 if test x"$ac_file" = x-; then
12520 configure_input=
12521 else
12522 configure_input="$ac_file. "
12524 configure_input=$configure_input"Generated from `echo $ac_file_in |
12525 sed 's,.*/,,'` by configure."
12527 # First look for the input files in the build tree, otherwise in the
12528 # src tree.
12529 ac_file_inputs=`IFS=:
12530 for f in $ac_file_in; do
12531 case $f in
12532 -) echo $tmp/stdin ;;
12533 [\\/$]*)
12534 # Absolute (can't be DOS-style, as IFS=:)
12535 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12536 echo "$as_me: error: cannot find input file: $f" >&2;}
12537 { (exit 1); exit 1; }; }
12538 echo "$f";;
12539 *) # Relative
12540 if test -f "$f"; then
12541 # Build tree
12542 echo "$f"
12543 elif test -f "$srcdir/$f"; then
12544 # Source tree
12545 echo "$srcdir/$f"
12546 else
12547 # /dev/null tree
12548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12549 echo "$as_me: error: cannot find input file: $f" >&2;}
12550 { (exit 1); exit 1; }; }
12551 fi;;
12552 esac
12553 done` || { (exit 1); exit 1; }
12554 _ACEOF
12555 cat >>$CONFIG_STATUS <<_ACEOF
12556 sed "$ac_vpsub
12557 $extrasub
12558 _ACEOF
12559 cat >>$CONFIG_STATUS <<\_ACEOF
12561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12562 s,@configure_input@,$configure_input,;t t
12563 s,@srcdir@,$ac_srcdir,;t t
12564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12565 s,@top_srcdir@,$ac_top_srcdir,;t t
12566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12567 s,@builddir@,$ac_builddir,;t t
12568 s,@abs_builddir@,$ac_abs_builddir,;t t
12569 s,@top_builddir@,$ac_top_builddir,;t t
12570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12571 s,@INSTALL@,$ac_INSTALL,;t t
12572 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12573 rm -f $tmp/stdin
12574 if test x"$ac_file" != x-; then
12575 mv $tmp/out $ac_file
12576 else
12577 cat $tmp/out
12578 rm -f $tmp/out
12581 done
12582 _ACEOF
12583 cat >>$CONFIG_STATUS <<\_ACEOF
12586 # CONFIG_HEADER section.
12589 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12590 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12592 # ac_d sets the value in "#define NAME VALUE" lines.
12593 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12594 ac_dB='[ ].*$,\1#\2'
12595 ac_dC=' '
12596 ac_dD=',;t'
12597 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12598 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12599 ac_uB='$,\1#\2define\3'
12600 ac_uC=' '
12601 ac_uD=',;t'
12603 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12605 case $ac_file in
12606 - | *:- | *:-:* ) # input from stdin
12607 cat >$tmp/stdin
12608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12612 * ) ac_file_in=$ac_file.in ;;
12613 esac
12615 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12616 echo "$as_me: creating $ac_file" >&6;}
12618 # First look for the input files in the build tree, otherwise in the
12619 # src tree.
12620 ac_file_inputs=`IFS=:
12621 for f in $ac_file_in; do
12622 case $f in
12623 -) echo $tmp/stdin ;;
12624 [\\/$]*)
12625 # Absolute (can't be DOS-style, as IFS=:)
12626 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12627 echo "$as_me: error: cannot find input file: $f" >&2;}
12628 { (exit 1); exit 1; }; }
12629 # Do quote $f, to prevent DOS paths from being IFS'd.
12630 echo "$f";;
12631 *) # Relative
12632 if test -f "$f"; then
12633 # Build tree
12634 echo "$f"
12635 elif test -f "$srcdir/$f"; then
12636 # Source tree
12637 echo "$srcdir/$f"
12638 else
12639 # /dev/null tree
12640 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12641 echo "$as_me: error: cannot find input file: $f" >&2;}
12642 { (exit 1); exit 1; }; }
12643 fi;;
12644 esac
12645 done` || { (exit 1); exit 1; }
12646 # Remove the trailing spaces.
12647 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12649 _ACEOF
12651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12652 # `conftest.undefs', that substitutes the proper values into
12653 # config.h.in to produce config.h. The first handles `#define'
12654 # templates, and the second `#undef' templates.
12655 # And first: Protect against being on the right side of a sed subst in
12656 # config.status. Protect against being in an unquoted here document
12657 # in config.status.
12658 rm -f conftest.defines conftest.undefs
12659 # Using a here document instead of a string reduces the quoting nightmare.
12660 # Putting comments in sed scripts is not portable.
12662 # `end' is used to avoid that the second main sed command (meant for
12663 # 0-ary CPP macros) applies to n-ary macro definitions.
12664 # See the Autoconf documentation for `clear'.
12665 cat >confdef2sed.sed <<\_ACEOF
12666 s/[\\&,]/\\&/g
12667 s,[\\$`],\\&,g
12668 t clear
12669 : clear
12670 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12671 t end
12672 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12673 : end
12674 _ACEOF
12675 # If some macros were called several times there might be several times
12676 # the same #defines, which is useless. Nevertheless, we may not want to
12677 # sort them, since we want the *last* AC-DEFINE to be honored.
12678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12680 rm -f confdef2sed.sed
12682 # This sed command replaces #undef with comments. This is necessary, for
12683 # example, in the case of _POSIX_SOURCE, which is predefined and required
12684 # on some systems where configure will not decide to define it.
12685 cat >>conftest.undefs <<\_ACEOF
12686 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12687 _ACEOF
12689 # Break up conftest.defines because some shells have a limit on the size
12690 # of here documents, and old seds have small limits too (100 cmds).
12691 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12692 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12693 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12694 echo ' :' >>$CONFIG_STATUS
12695 rm -f conftest.tail
12696 while grep . conftest.defines >/dev/null
12698 # Write a limited-size here document to $tmp/defines.sed.
12699 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12700 # Speed up: don't consider the non `#define' lines.
12701 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12702 # Work around the forget-to-reset-the-flag bug.
12703 echo 't clr' >>$CONFIG_STATUS
12704 echo ': clr' >>$CONFIG_STATUS
12705 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12706 echo 'CEOF
12707 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12708 rm -f $tmp/in
12709 mv $tmp/out $tmp/in
12710 ' >>$CONFIG_STATUS
12711 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12712 rm -f conftest.defines
12713 mv conftest.tail conftest.defines
12714 done
12715 rm -f conftest.defines
12716 echo ' fi # grep' >>$CONFIG_STATUS
12717 echo >>$CONFIG_STATUS
12719 # Break up conftest.undefs because some shells have a limit on the size
12720 # of here documents, and old seds have small limits too (100 cmds).
12721 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12722 rm -f conftest.tail
12723 while grep . conftest.undefs >/dev/null
12725 # Write a limited-size here document to $tmp/undefs.sed.
12726 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12727 # Speed up: don't consider the non `#undef'
12728 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12729 # Work around the forget-to-reset-the-flag bug.
12730 echo 't clr' >>$CONFIG_STATUS
12731 echo ': clr' >>$CONFIG_STATUS
12732 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12733 echo 'CEOF
12734 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12735 rm -f $tmp/in
12736 mv $tmp/out $tmp/in
12737 ' >>$CONFIG_STATUS
12738 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12739 rm -f conftest.undefs
12740 mv conftest.tail conftest.undefs
12741 done
12742 rm -f conftest.undefs
12744 cat >>$CONFIG_STATUS <<\_ACEOF
12745 # Let's still pretend it is `configure' which instantiates (i.e., don't
12746 # use $as_me), people would be surprised to read:
12747 # /* config.h. Generated by config.status. */
12748 if test x"$ac_file" = x-; then
12749 echo "/* Generated by configure. */" >$tmp/config.h
12750 else
12751 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12753 cat $tmp/in >>$tmp/config.h
12754 rm -f $tmp/in
12755 if test x"$ac_file" != x-; then
12756 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12758 echo "$as_me: $ac_file is unchanged" >&6;}
12759 else
12760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12762 X"$ac_file" : 'X\(//\)[^/]' \| \
12763 X"$ac_file" : 'X\(//\)$' \| \
12764 X"$ac_file" : 'X\(/\)' \| \
12765 . : '\(.\)' 2>/dev/null ||
12766 echo X"$ac_file" |
12767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12769 /^X\(\/\/\)$/{ s//\1/; q; }
12770 /^X\(\/\).*/{ s//\1/; q; }
12771 s/.*/./; q'`
12772 { if $as_mkdir_p; then
12773 mkdir -p "$ac_dir"
12774 else
12775 as_dir="$ac_dir"
12776 as_dirs=
12777 while test ! -d "$as_dir"; do
12778 as_dirs="$as_dir $as_dirs"
12779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12781 X"$as_dir" : 'X\(//\)[^/]' \| \
12782 X"$as_dir" : 'X\(//\)$' \| \
12783 X"$as_dir" : 'X\(/\)' \| \
12784 . : '\(.\)' 2>/dev/null ||
12785 echo X"$as_dir" |
12786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12788 /^X\(\/\/\)$/{ s//\1/; q; }
12789 /^X\(\/\).*/{ s//\1/; q; }
12790 s/.*/./; q'`
12791 done
12792 test ! -n "$as_dirs" || mkdir $as_dirs
12793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12795 { (exit 1); exit 1; }; }; }
12797 rm -f $ac_file
12798 mv $tmp/config.h $ac_file
12800 else
12801 cat $tmp/config.h
12802 rm -f $tmp/config.h
12804 # Compute $ac_file's index in $config_headers.
12805 _am_stamp_count=1
12806 for _am_header in $config_headers :; do
12807 case $_am_header in
12808 $ac_file | $ac_file:* )
12809 break ;;
12811 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12812 esac
12813 done
12814 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12815 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12816 X$ac_file : 'X\(//\)[^/]' \| \
12817 X$ac_file : 'X\(//\)$' \| \
12818 X$ac_file : 'X\(/\)' \| \
12819 . : '\(.\)' 2>/dev/null ||
12820 echo X$ac_file |
12821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12823 /^X\(\/\/\)$/{ s//\1/; q; }
12824 /^X\(\/\).*/{ s//\1/; q; }
12825 s/.*/./; q'`/stamp-h$_am_stamp_count
12826 done
12827 _ACEOF
12828 cat >>$CONFIG_STATUS <<\_ACEOF
12831 # CONFIG_COMMANDS section.
12833 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12834 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12835 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12836 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12837 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838 X"$ac_dest" : 'X\(//\)[^/]' \| \
12839 X"$ac_dest" : 'X\(//\)$' \| \
12840 X"$ac_dest" : 'X\(/\)' \| \
12841 . : '\(.\)' 2>/dev/null ||
12842 echo X"$ac_dest" |
12843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12845 /^X\(\/\/\)$/{ s//\1/; q; }
12846 /^X\(\/\).*/{ s//\1/; q; }
12847 s/.*/./; q'`
12848 { if $as_mkdir_p; then
12849 mkdir -p "$ac_dir"
12850 else
12851 as_dir="$ac_dir"
12852 as_dirs=
12853 while test ! -d "$as_dir"; do
12854 as_dirs="$as_dir $as_dirs"
12855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12857 X"$as_dir" : 'X\(//\)[^/]' \| \
12858 X"$as_dir" : 'X\(//\)$' \| \
12859 X"$as_dir" : 'X\(/\)' \| \
12860 . : '\(.\)' 2>/dev/null ||
12861 echo X"$as_dir" |
12862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12864 /^X\(\/\/\)$/{ s//\1/; q; }
12865 /^X\(\/\).*/{ s//\1/; q; }
12866 s/.*/./; q'`
12867 done
12868 test ! -n "$as_dirs" || mkdir $as_dirs
12869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12870 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12871 { (exit 1); exit 1; }; }; }
12873 ac_builddir=.
12875 if test "$ac_dir" != .; then
12876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12877 # A "../" for each directory in $ac_dir_suffix.
12878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12879 else
12880 ac_dir_suffix= ac_top_builddir=
12883 case $srcdir in
12884 .) # No --srcdir option. We are building in place.
12885 ac_srcdir=.
12886 if test -z "$ac_top_builddir"; then
12887 ac_top_srcdir=.
12888 else
12889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12890 fi ;;
12891 [\\/]* | ?:[\\/]* ) # Absolute path.
12892 ac_srcdir=$srcdir$ac_dir_suffix;
12893 ac_top_srcdir=$srcdir ;;
12894 *) # Relative path.
12895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12897 esac
12899 # Do not use `cd foo && pwd` to compute absolute paths, because
12900 # the directories may not exist.
12901 case `pwd` in
12902 .) ac_abs_builddir="$ac_dir";;
12904 case "$ac_dir" in
12905 .) ac_abs_builddir=`pwd`;;
12906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12908 esac;;
12909 esac
12910 case $ac_abs_builddir in
12911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12913 case ${ac_top_builddir}. in
12914 .) ac_abs_top_builddir=$ac_abs_builddir;;
12915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12917 esac;;
12918 esac
12919 case $ac_abs_builddir in
12920 .) ac_abs_srcdir=$ac_srcdir;;
12922 case $ac_srcdir in
12923 .) ac_abs_srcdir=$ac_abs_builddir;;
12924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12926 esac;;
12927 esac
12928 case $ac_abs_builddir in
12929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12931 case $ac_top_srcdir in
12932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12935 esac;;
12936 esac
12939 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12940 echo "$as_me: executing $ac_dest commands" >&6;}
12941 case $ac_dest in
12942 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12943 # Strip MF so we end up with the name of the file.
12944 mf=`echo "$mf" | sed -e 's/:.*$//'`
12945 # Check whether this is an Automake generated Makefile or not.
12946 # We used to match only the files named `Makefile.in', but
12947 # some people rename them; so instead we look at the file content.
12948 # Grep'ing the first line is not enough: some people post-process
12949 # each Makefile.in and add a new line on top of each file to say so.
12950 # So let's grep whole file.
12951 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12952 dirpart=`(dirname "$mf") 2>/dev/null ||
12953 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12954 X"$mf" : 'X\(//\)[^/]' \| \
12955 X"$mf" : 'X\(//\)$' \| \
12956 X"$mf" : 'X\(/\)' \| \
12957 . : '\(.\)' 2>/dev/null ||
12958 echo X"$mf" |
12959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12961 /^X\(\/\/\)$/{ s//\1/; q; }
12962 /^X\(\/\).*/{ s//\1/; q; }
12963 s/.*/./; q'`
12964 else
12965 continue
12967 # Extract the definition of DEPDIR, am__include, and am__quote
12968 # from the Makefile without running `make'.
12969 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12970 test -z "$DEPDIR" && continue
12971 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12972 test -z "am__include" && continue
12973 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12974 # When using ansi2knr, U may be empty or an underscore; expand it
12975 U=`sed -n 's/^U = //p' < "$mf"`
12976 # Find all dependency output files, they are included files with
12977 # $(DEPDIR) in their names. We invoke sed twice because it is the
12978 # simplest approach to changing $(DEPDIR) to its actual value in the
12979 # expansion.
12980 for file in `sed -n "
12981 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12982 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12983 # Make sure the directory exists.
12984 test -f "$dirpart/$file" && continue
12985 fdir=`(dirname "$file") 2>/dev/null ||
12986 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12987 X"$file" : 'X\(//\)[^/]' \| \
12988 X"$file" : 'X\(//\)$' \| \
12989 X"$file" : 'X\(/\)' \| \
12990 . : '\(.\)' 2>/dev/null ||
12991 echo X"$file" |
12992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12994 /^X\(\/\/\)$/{ s//\1/; q; }
12995 /^X\(\/\).*/{ s//\1/; q; }
12996 s/.*/./; q'`
12997 { if $as_mkdir_p; then
12998 mkdir -p $dirpart/$fdir
12999 else
13000 as_dir=$dirpart/$fdir
13001 as_dirs=
13002 while test ! -d "$as_dir"; do
13003 as_dirs="$as_dir $as_dirs"
13004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13006 X"$as_dir" : 'X\(//\)[^/]' \| \
13007 X"$as_dir" : 'X\(//\)$' \| \
13008 X"$as_dir" : 'X\(/\)' \| \
13009 . : '\(.\)' 2>/dev/null ||
13010 echo X"$as_dir" |
13011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13013 /^X\(\/\/\)$/{ s//\1/; q; }
13014 /^X\(\/\).*/{ s//\1/; q; }
13015 s/.*/./; q'`
13016 done
13017 test ! -n "$as_dirs" || mkdir $as_dirs
13018 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13019 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13020 { (exit 1); exit 1; }; }; }
13022 # echo "creating $dirpart/$file"
13023 echo '# dummy' > "$dirpart/$file"
13024 done
13025 done
13027 esac
13028 done
13029 _ACEOF
13031 cat >>$CONFIG_STATUS <<\_ACEOF
13033 { (exit 0); exit 0; }
13034 _ACEOF
13035 chmod +x $CONFIG_STATUS
13036 ac_clean_files=$ac_clean_files_save
13039 # configure is writing to config.log, and then calls config.status.
13040 # config.status does its own redirection, appending to config.log.
13041 # Unfortunately, on DOS this fails, as config.log is still kept open
13042 # by configure, so config.status won't be able to write to it; its
13043 # output is simply discarded. So we exec the FD to /dev/null,
13044 # effectively closing config.log, so it can be properly (re)opened and
13045 # appended to by config.status. When coming back to configure, we
13046 # need to make the FD available again.
13047 if test "$no_create" != yes; then
13048 ac_cs_success=:
13049 ac_config_status_args=
13050 test "$silent" = yes &&
13051 ac_config_status_args="$ac_config_status_args --quiet"
13052 exec 5>/dev/null
13053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13054 exec 5>>config.log
13055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13056 # would make configure fail if this is the last instruction.
13057 $ac_cs_success || { (exit 1); exit 1; }
13061 with_gui=`echo $with_gui`
13062 with_printer=`echo $with_printer`
13063 with_exporters=`echo $with_exporters | sed 's/,/ /g'`
13065 echo "$as_me:$LINENO: result:
13066 ** Configuration summary for $PACKAGE $VERSION:
13068 GUI: $with_gui
13069 Printer: $with_printer
13070 Exporters: $with_exporters
13071 Build documentation: $docs_yesno
13072 dmalloc debugging: $with_dmalloc
13073 ElectricFence debugging: $with_efence
13074 CPPFLAGS: $CPPFLAGS
13075 CFLAGS: $CFLAGS
13076 LIBS: $LIBS
13078 " >&5
13079 echo "${ECHO_T}
13080 ** Configuration summary for $PACKAGE $VERSION:
13082 GUI: $with_gui
13083 Printer: $with_printer
13084 Exporters: $with_exporters
13085 Build documentation: $docs_yesno
13086 dmalloc debugging: $with_dmalloc
13087 ElectricFence debugging: $with_efence
13088 CPPFLAGS: $CPPFLAGS
13089 CFLAGS: $CFLAGS
13090 LIBS: $LIBS
13092 " >&6