Make AddMouseRegion's index unsigned
[dockapps.git] / yawmppp / configure
blobd397dcfe081a3e3ea7743ff5637c5fffc9b9cc29
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
58 ac_prev=
59 for ac_option
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
74 # Accept the important Cygnus configure options, so we can diagnose typos.
76 case "$ac_option" in
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
189 exit 0 ;;
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 nonopt="$ac_option"
394 esac
395 done
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
416 exec 5>./config.log
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=src/gtksetup/applet.c
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
469 else
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
494 done
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
521 else
522 ac_n= ac_c='\c' ac_t=
528 # Extract the first word of "make", so it can be a program name with args.
529 set dummy make; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_GNU_MAKE'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
534 else
535 if test -n "$GNU_MAKE"; then
536 ac_cv_prog_GNU_MAKE="$GNU_MAKE" # Let the user override the test.
537 else
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
539 ac_dummy="$PATH"
540 for ac_dir in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir=.
542 if test -f $ac_dir/$ac_word; then
543 ac_cv_prog_GNU_MAKE="yes"
544 break
546 done
547 IFS="$ac_save_ifs"
550 GNU_MAKE="$ac_cv_prog_GNU_MAKE"
551 if test -n "$GNU_MAKE"; then
552 echo "$ac_t""$GNU_MAKE" 1>&6
553 else
554 echo "$ac_t""no" 1>&6
557 # Extract the first word of "sed", so it can be a program name with args.
558 set dummy sed; ac_word=$2
559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
560 echo "configure:561: checking for $ac_word" >&5
561 if eval "test \"`echo '$''{'ac_cv_prog_GOTSED'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563 else
564 if test -n "$GOTSED"; then
565 ac_cv_prog_GOTSED="$GOTSED" # Let the user override the test.
566 else
567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
568 ac_dummy="$PATH"
569 for ac_dir in $ac_dummy; do
570 test -z "$ac_dir" && ac_dir=.
571 if test -f $ac_dir/$ac_word; then
572 ac_cv_prog_GOTSED="yes"
573 break
575 done
576 IFS="$ac_save_ifs"
577 test -z "$ac_cv_prog_GOTSED" && ac_cv_prog_GOTSED="no"
580 GOTSED="$ac_cv_prog_GOTSED"
581 if test -n "$GOTSED"; then
582 echo "$ac_t""$GOTSED" 1>&6
583 else
584 echo "$ac_t""no" 1>&6
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
593 else
594 if test -n "$CC"; then
595 ac_cv_prog_CC="$CC" # Let the user override the test.
596 else
597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
598 ac_dummy="$PATH"
599 for ac_dir in $ac_dummy; do
600 test -z "$ac_dir" && ac_dir=.
601 if test -f $ac_dir/$ac_word; then
602 ac_cv_prog_CC="gcc"
603 break
605 done
606 IFS="$ac_save_ifs"
609 CC="$ac_cv_prog_CC"
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
612 else
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
617 # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
623 else
624 if test -n "$CC"; then
625 ac_cv_prog_CC="$CC" # Let the user override the test.
626 else
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 ac_prog_rejected=no
629 ac_dummy="$PATH"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
634 ac_prog_rejected=yes
635 continue
637 ac_cv_prog_CC="cc"
638 break
640 done
641 IFS="$ac_save_ifs"
642 if test $ac_prog_rejected = yes; then
643 # We found a bogon in the path, so make sure we never use it.
644 set dummy $ac_cv_prog_CC
645 shift
646 if test $# -gt 0; then
647 # We chose a different compiler from the bogus one.
648 # However, it has the same basename, so the bogon will be chosen
649 # first if we set CC to just the basename; use the full file name.
650 shift
651 set dummy "$ac_dir/$ac_word" "$@"
652 shift
653 ac_cv_prog_CC="$@"
658 CC="$ac_cv_prog_CC"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
661 else
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
666 case "`uname -s`" in
667 *win32* | *WIN32*)
668 # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674 else
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
677 else
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 ac_dummy="$PATH"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
683 ac_cv_prog_CC="cl"
684 break
686 done
687 IFS="$ac_save_ifs"
690 CC="$ac_cv_prog_CC"
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
693 else
694 echo "$ac_t""no" 1>&6
697 esac
699 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
705 ac_ext=c
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CPP $CPPFLAGS'
708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cc_cross
712 cat > conftest.$ac_ext << EOF
714 #line 715 "configure"
715 #include "confdefs.h"
717 main(){return(0);}
719 if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
720 ac_cv_prog_cc_works=yes
721 # If we can't run a trivial program, we are probably using a cross compiler.
722 if (./conftest; exit) 2>/dev/null; then
723 ac_cv_prog_cc_cross=no
724 else
725 ac_cv_prog_cc_cross=yes
727 else
728 echo "configure: failed program was:" >&5
729 cat conftest.$ac_ext >&5
730 ac_cv_prog_cc_works=no
732 rm -fr conftest*
733 ac_ext=c
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftest.c <<EOF
755 #ifdef __GNUC__
756 yes;
757 #endif
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
760 ac_cv_prog_gcc=yes
761 else
762 ac_cv_prog_gcc=no
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
769 GCC=yes
770 else
771 GCC=
774 ac_test_CFLAGS="${CFLAGS+set}"
775 ac_save_CFLAGS="$CFLAGS"
776 CFLAGS=
777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${CC-cc} accepts -g" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 echo 'void f(){}' > conftest.c
783 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
784 ac_cv_prog_cc_g=yes
785 else
786 ac_cv_prog_cc_g=no
788 rm -f conftest*
792 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
793 if test "$ac_test_CFLAGS" = set; then
794 CFLAGS="$ac_save_CFLAGS"
795 elif test $ac_cv_prog_cc_g = yes; then
796 if test "$GCC" = yes; then
797 CFLAGS="-g -O2"
798 else
799 CFLAGS="-g"
801 else
802 if test "$GCC" = yes; then
803 CFLAGS="-O2"
804 else
805 CFLAGS=
809 ac_aux_dir=
810 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
811 if test -f $ac_dir/install-sh; then
812 ac_aux_dir=$ac_dir
813 ac_install_sh="$ac_aux_dir/install-sh -c"
814 break
815 elif test -f $ac_dir/install.sh; then
816 ac_aux_dir=$ac_dir
817 ac_install_sh="$ac_aux_dir/install.sh -c"
818 break
820 done
821 if test -z "$ac_aux_dir"; then
822 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
824 ac_config_guess=$ac_aux_dir/config.guess
825 ac_config_sub=$ac_aux_dir/config.sub
826 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
828 # Find a good install program. We prefer a C program (faster),
829 # so one script is as good as another. But avoid the broken or
830 # incompatible versions:
831 # SysV /etc/install, /usr/sbin/install
832 # SunOS /usr/etc/install
833 # IRIX /sbin/install
834 # AIX /bin/install
835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
838 # ./install, which can be erroneously created by make from ./install.sh.
839 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
840 echo "configure:841: checking for a BSD compatible install" >&5
841 if test -z "$INSTALL"; then
842 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
846 for ac_dir in $PATH; do
847 # Account for people who put trailing slashes in PATH elements.
848 case "$ac_dir/" in
849 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
851 # OSF1 and SCO ODT 3.0 have their own names for install.
852 # Don't use installbsd from OSF since it installs stuff as root
853 # by default.
854 for ac_prog in ginstall scoinst install; do
855 if test -f $ac_dir/$ac_prog; then
856 if test $ac_prog = install &&
857 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
858 # AIX install. It has an incompatible calling convention.
860 else
861 ac_cv_path_install="$ac_dir/$ac_prog -c"
862 break 2
865 done
867 esac
868 done
869 IFS="$ac_save_IFS"
872 if test "${ac_cv_path_install+set}" = set; then
873 INSTALL="$ac_cv_path_install"
874 else
875 # As a last resort, use the slow shell script. We don't cache a
876 # path for INSTALL within a source directory, because that will
877 # break other packages using the cache if that directory is
878 # removed, or if the path is relative.
879 INSTALL="$ac_install_sh"
882 echo "$ac_t""$INSTALL" 1>&6
884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
885 # It thinks the first close brace ends the variable substitution.
886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
893 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
894 echo "configure:895: checking how to run the C preprocessor" >&5
895 # On Suns, sometimes $CPP names a directory.
896 if test -n "$CPP" && test -d "$CPP"; then
897 CPP=
899 if test -z "$CPP"; then
900 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
902 else
903 # This must be in double quotes, not single quotes, because CPP may get
904 # substituted into the Makefile and "${CC-cc}" will confuse make.
905 CPP="${CC-cc} -E"
906 # On the NeXT, cc -E runs the code through the compiler's parser,
907 # not just through cpp.
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
911 #include <assert.h>
912 Syntax Error
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
919 else
920 echo "$ac_err" >&5
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 rm -rf conftest*
924 CPP="${CC-cc} -E -traditional-cpp"
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
928 #include <assert.h>
929 Syntax Error
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
936 else
937 echo "$ac_err" >&5
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
940 rm -rf conftest*
941 CPP="${CC-cc} -nologo -E"
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
945 #include <assert.h>
946 Syntax Error
948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951 if test -z "$ac_err"; then
953 else
954 echo "$ac_err" >&5
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 CPP=/lib/cpp
960 rm -f conftest*
962 rm -f conftest*
964 rm -f conftest*
965 ac_cv_prog_CPP="$CPP"
967 CPP="$ac_cv_prog_CPP"
968 else
969 ac_cv_prog_CPP="$CPP"
971 echo "$ac_t""$CPP" 1>&6
973 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
974 echo "configure:975: checking for ANSI C header files" >&5
975 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977 else
978 cat > conftest.$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
981 #include <stdlib.h>
982 #include <stdarg.h>
983 #include <string.h>
984 #include <float.h>
986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
987 { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
989 if test -z "$ac_err"; then
990 rm -rf conftest*
991 ac_cv_header_stdc=yes
992 else
993 echo "$ac_err" >&5
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
996 rm -rf conftest*
997 ac_cv_header_stdc=no
999 rm -f conftest*
1001 if test $ac_cv_header_stdc = yes; then
1002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1003 cat > conftest.$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1006 #include <string.h>
1008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1009 egrep "memchr" >/dev/null 2>&1; then
1011 else
1012 rm -rf conftest*
1013 ac_cv_header_stdc=no
1015 rm -f conftest*
1019 if test $ac_cv_header_stdc = yes; then
1020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1021 cat > conftest.$ac_ext <<EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1024 #include <stdlib.h>
1026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1027 egrep "free" >/dev/null 2>&1; then
1029 else
1030 rm -rf conftest*
1031 ac_cv_header_stdc=no
1033 rm -f conftest*
1037 if test $ac_cv_header_stdc = yes; then
1038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1039 if test "$cross_compiling" = yes; then
1041 else
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <ctype.h>
1046 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1047 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1049 int main () { int i; for (i = 0; i < 256; i++)
1050 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1051 exit (0); }
1054 if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1055 then
1057 else
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1060 rm -fr conftest*
1061 ac_cv_header_stdc=no
1063 rm -fr conftest*
1069 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1070 if test $ac_cv_header_stdc = yes; then
1071 cat >> confdefs.h <<\EOF
1072 #define STDC_HEADERS 1
1077 ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
1078 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
1079 echo "configure:1080: checking for unistd.h" >&5
1080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1082 else
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 #include <unistd.h>
1088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1089 { (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1091 if test -z "$ac_err"; then
1092 rm -rf conftest*
1093 eval "ac_cv_header_$ac_safe=yes"
1094 else
1095 echo "$ac_err" >&5
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1098 rm -rf conftest*
1099 eval "ac_cv_header_$ac_safe=no"
1101 rm -f conftest*
1103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1104 echo "$ac_t""yes" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1108 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1111 ac_safe=`echo "sys/wait.h" | sed 'y%./+-%__p_%'`
1112 echo $ac_n "checking for sys/wait.h""... $ac_c" 1>&6
1113 echo "configure:1114: checking for sys/wait.h" >&5
1114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 #include <sys/wait.h>
1122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1125 if test -z "$ac_err"; then
1126 rm -rf conftest*
1127 eval "ac_cv_header_$ac_safe=yes"
1128 else
1129 echo "$ac_err" >&5
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1132 rm -rf conftest*
1133 eval "ac_cv_header_$ac_safe=no"
1135 rm -f conftest*
1137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1138 echo "$ac_t""yes" 1>&6
1140 else
1141 echo "$ac_t""no" 1>&6
1142 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1145 ac_safe=`echo "sys/stat.h" | sed 'y%./+-%__p_%'`
1146 echo $ac_n "checking for sys/stat.h""... $ac_c" 1>&6
1147 echo "configure:1148: checking for sys/stat.h" >&5
1148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1154 #include <sys/stat.h>
1156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1157 { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1159 if test -z "$ac_err"; then
1160 rm -rf conftest*
1161 eval "ac_cv_header_$ac_safe=yes"
1162 else
1163 echo "$ac_err" >&5
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1166 rm -rf conftest*
1167 eval "ac_cv_header_$ac_safe=no"
1169 rm -f conftest*
1171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1174 else
1175 echo "$ac_t""no" 1>&6
1176 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1179 ac_safe=`echo "sys/param.h" | sed 'y%./+-%__p_%'`
1180 echo $ac_n "checking for sys/param.h""... $ac_c" 1>&6
1181 echo "configure:1182: checking for sys/param.h" >&5
1182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 #include <sys/param.h>
1190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1193 if test -z "$ac_err"; then
1194 rm -rf conftest*
1195 eval "ac_cv_header_$ac_safe=yes"
1196 else
1197 echo "$ac_err" >&5
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 rm -rf conftest*
1201 eval "ac_cv_header_$ac_safe=no"
1203 rm -f conftest*
1205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1208 else
1209 echo "$ac_t""no" 1>&6
1210 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1213 ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
1214 echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
1215 echo "configure:1216: checking for sys/types.h" >&5
1216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #include <sys/types.h>
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227 if test -z "$ac_err"; then
1228 rm -rf conftest*
1229 eval "ac_cv_header_$ac_safe=yes"
1230 else
1231 echo "$ac_err" >&5
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1234 rm -rf conftest*
1235 eval "ac_cv_header_$ac_safe=no"
1237 rm -f conftest*
1239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1242 else
1243 echo "$ac_t""no" 1>&6
1244 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1247 ac_safe=`echo "sys/ioctl.h" | sed 'y%./+-%__p_%'`
1248 echo $ac_n "checking for sys/ioctl.h""... $ac_c" 1>&6
1249 echo "configure:1250: checking for sys/ioctl.h" >&5
1250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1256 #include <sys/ioctl.h>
1258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259 { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1261 if test -z "$ac_err"; then
1262 rm -rf conftest*
1263 eval "ac_cv_header_$ac_safe=yes"
1264 else
1265 echo "$ac_err" >&5
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1268 rm -rf conftest*
1269 eval "ac_cv_header_$ac_safe=no"
1271 rm -f conftest*
1273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1276 else
1277 echo "$ac_t""no" 1>&6
1278 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1281 ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
1282 echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
1283 echo "configure:1284: checking for sys/socket.h" >&5
1284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 #include <sys/socket.h>
1292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1293 { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1295 if test -z "$ac_err"; then
1296 rm -rf conftest*
1297 eval "ac_cv_header_$ac_safe=yes"
1298 else
1299 echo "$ac_err" >&5
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1302 rm -rf conftest*
1303 eval "ac_cv_header_$ac_safe=no"
1305 rm -f conftest*
1307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1308 echo "$ac_t""yes" 1>&6
1310 else
1311 echo "$ac_t""no" 1>&6
1312 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1316 # If we find X, set shell vars x_includes and x_libraries to the
1317 # paths, otherwise set no_x=yes.
1318 # Uses ac_ vars as temps to allow command line to override cache and checks.
1319 # --without-x overrides everything else, but does not touch the cache.
1320 echo $ac_n "checking for X""... $ac_c" 1>&6
1321 echo "configure:1322: checking for X" >&5
1323 # Check whether --with-x or --without-x was given.
1324 if test "${with_x+set}" = set; then
1325 withval="$with_x"
1329 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1330 if test "x$with_x" = xno; then
1331 # The user explicitly disabled X.
1332 have_x=disabled
1333 else
1334 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1335 # Both variables are already set.
1336 have_x=yes
1337 else
1338 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341 # One or both of the vars are not set, and there is no cached value.
1342 ac_x_includes=NO ac_x_libraries=NO
1343 rm -fr conftestdir
1344 if mkdir conftestdir; then
1345 cd conftestdir
1346 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1347 cat > Imakefile <<'EOF'
1348 acfindx:
1349 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1351 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1353 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1354 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1355 for ac_extension in a so sl; do
1356 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1357 test -f $ac_im_libdir/libX11.$ac_extension; then
1358 ac_im_usrlibdir=$ac_im_libdir; break
1360 done
1361 # Screen out bogus values from the imake configuration. They are
1362 # bogus both because they are the default anyway, and because
1363 # using them would break gcc on systems where it needs fixed includes.
1364 case "$ac_im_incroot" in
1365 /usr/include) ;;
1366 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1367 esac
1368 case "$ac_im_usrlibdir" in
1369 /usr/lib | /lib) ;;
1370 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1371 esac
1373 cd ..
1374 rm -fr conftestdir
1377 if test "$ac_x_includes" = NO; then
1378 # Guess where to find include files, by looking for this one X11 .h file.
1379 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1381 # First, try using that file with no special directory specified.
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <$x_direct_test_include>
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1390 if test -z "$ac_err"; then
1391 rm -rf conftest*
1392 # We can compile using X headers with no special include directory.
1393 ac_x_includes=
1394 else
1395 echo "$ac_err" >&5
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 rm -rf conftest*
1399 # Look for the header file in a standard set of common directories.
1400 # Check X11 before X11Rn because it is often a symlink to the current release.
1401 for ac_dir in \
1402 /usr/X11/include \
1403 /usr/X11R6/include \
1404 /usr/X11R5/include \
1405 /usr/X11R4/include \
1407 /usr/include/X11 \
1408 /usr/include/X11R6 \
1409 /usr/include/X11R5 \
1410 /usr/include/X11R4 \
1412 /usr/local/X11/include \
1413 /usr/local/X11R6/include \
1414 /usr/local/X11R5/include \
1415 /usr/local/X11R4/include \
1417 /usr/local/include/X11 \
1418 /usr/local/include/X11R6 \
1419 /usr/local/include/X11R5 \
1420 /usr/local/include/X11R4 \
1422 /usr/X386/include \
1423 /usr/x386/include \
1424 /usr/XFree86/include/X11 \
1426 /usr/include \
1427 /usr/local/include \
1428 /usr/unsupported/include \
1429 /usr/athena/include \
1430 /usr/local/x11r5/include \
1431 /usr/lpp/Xamples/include \
1433 /usr/openwin/include \
1434 /usr/openwin/share/include \
1437 if test -r "$ac_dir/$x_direct_test_include"; then
1438 ac_x_includes=$ac_dir
1439 break
1441 done
1443 rm -f conftest*
1444 fi # $ac_x_includes = NO
1446 if test "$ac_x_libraries" = NO; then
1447 # Check for the libraries.
1449 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1450 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1452 # See if we find them without any special options.
1453 # Don't add to $LIBS permanently.
1454 ac_save_LIBS="$LIBS"
1455 LIBS="-l$x_direct_test_library $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1460 int main() {
1461 ${x_direct_test_function}()
1462 ; return 0; }
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465 rm -rf conftest*
1466 LIBS="$ac_save_LIBS"
1467 # We can link X programs with no special library path.
1468 ac_x_libraries=
1469 else
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1472 rm -rf conftest*
1473 LIBS="$ac_save_LIBS"
1474 # First see if replacing the include by lib works.
1475 # Check X11 before X11Rn because it is often a symlink to the current release.
1476 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1477 /usr/X11/lib \
1478 /usr/X11R6/lib \
1479 /usr/X11R5/lib \
1480 /usr/X11R4/lib \
1482 /usr/lib/X11 \
1483 /usr/lib/X11R6 \
1484 /usr/lib/X11R5 \
1485 /usr/lib/X11R4 \
1487 /usr/local/X11/lib \
1488 /usr/local/X11R6/lib \
1489 /usr/local/X11R5/lib \
1490 /usr/local/X11R4/lib \
1492 /usr/local/lib/X11 \
1493 /usr/local/lib/X11R6 \
1494 /usr/local/lib/X11R5 \
1495 /usr/local/lib/X11R4 \
1497 /usr/X386/lib \
1498 /usr/x386/lib \
1499 /usr/XFree86/lib/X11 \
1501 /usr/lib \
1502 /usr/local/lib \
1503 /usr/unsupported/lib \
1504 /usr/athena/lib \
1505 /usr/local/x11r5/lib \
1506 /usr/lpp/Xamples/lib \
1507 /lib/usr/lib/X11 \
1509 /usr/openwin/lib \
1510 /usr/openwin/share/lib \
1513 for ac_extension in a so sl; do
1514 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1515 ac_x_libraries=$ac_dir
1516 break 2
1518 done
1519 done
1521 rm -f conftest*
1522 fi # $ac_x_libraries = NO
1524 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1525 # Didn't find X anywhere. Cache the known absence of X.
1526 ac_cv_have_x="have_x=no"
1527 else
1528 # Record where we found X for the cache.
1529 ac_cv_have_x="have_x=yes \
1530 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1534 eval "$ac_cv_have_x"
1535 fi # $with_x != no
1537 if test "$have_x" != yes; then
1538 echo "$ac_t""$have_x" 1>&6
1539 no_x=yes
1540 else
1541 # If each of the values was on the command line, it overrides each guess.
1542 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1543 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1544 # Update the cache value to reflect the command line values.
1545 ac_cv_have_x="have_x=yes \
1546 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1547 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1551 XINC="$x_includes"
1552 XLIB="$x_libraries"
1554 if test "tmp$no_x" = "tmpyes" ; then
1555 { echo "configure: error:
1556 ** You must have the X11R6 system. If you have an X11R6 system installed
1557 and are seeing this message, try using the --x-includes and --x-libraries
1558 options with configure. Use the --help option for help.
1560 " 1>&2; exit 1; }
1563 ac_safe=`echo "X11/Xlib.h" | sed 'y%./+-%__p_%'`
1564 echo $ac_n "checking for X11/Xlib.h""... $ac_c" 1>&6
1565 echo "configure:1566: checking for X11/Xlib.h" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568 else
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 #include <X11/Xlib.h>
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577 if test -z "$ac_err"; then
1578 rm -rf conftest*
1579 eval "ac_cv_header_$ac_safe=yes"
1580 else
1581 echo "$ac_err" >&5
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 eval "ac_cv_header_$ac_safe=no"
1587 rm -f conftest*
1589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1592 else
1593 echo "$ac_t""no" 1>&6
1594 echo "configure: warning: required header file missing ?" 1>&2
1597 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
1598 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
1599 echo "configure:1600: checking for X11/xpm.h" >&5
1600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <X11/xpm.h>
1608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1611 if test -z "$ac_err"; then
1612 rm -rf conftest*
1613 eval "ac_cv_header_$ac_safe=yes"
1614 else
1615 echo "$ac_err" >&5
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 eval "ac_cv_header_$ac_safe=no"
1621 rm -f conftest*
1623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1626 else
1627 echo "$ac_t""no" 1>&6
1628 echo "configure: warning: required header file missing ?" 1>&2
1631 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
1632 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
1633 echo "configure:1634: checking for X11/extensions/shape.h" >&5
1634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 #include <X11/extensions/shape.h>
1642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643 { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1645 if test -z "$ac_err"; then
1646 rm -rf conftest*
1647 eval "ac_cv_header_$ac_safe=yes"
1648 else
1649 echo "$ac_err" >&5
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1652 rm -rf conftest*
1653 eval "ac_cv_header_$ac_safe=no"
1655 rm -f conftest*
1657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1658 echo "$ac_t""yes" 1>&6
1660 else
1661 echo "$ac_t""no" 1>&6
1662 echo "configure: warning: required header file missing ?" 1>&2
1669 echo $ac_n "checking Operating System""... $ac_c" 1>&6
1670 echo "configure:1671: checking Operating System" >&5
1671 OSTYPE=`uname -s`
1672 echo "$ac_t"""$OSTYPE"" 1>&6
1674 SYSDEF="UNKNOWN"
1676 case $OSTYPE in
1677 Linux)
1678 ac_safe=`echo "asm/types.h" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for asm/types.h""... $ac_c" 1>&6
1680 echo "configure:1681: checking for asm/types.h" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <asm/types.h>
1689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1690 { (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1692 if test -z "$ac_err"; then
1693 rm -rf conftest*
1694 eval "ac_cv_header_$ac_safe=yes"
1695 else
1696 echo "$ac_err" >&5
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 eval "ac_cv_header_$ac_safe=no"
1702 rm -f conftest*
1704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1707 else
1708 echo "$ac_t""no" 1>&6
1709 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1712 ac_safe=`echo "linux/if.h" | sed 'y%./+-%__p_%'`
1713 echo $ac_n "checking for linux/if.h""... $ac_c" 1>&6
1714 echo "configure:1715: checking for linux/if.h" >&5
1715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 #include <linux/if.h>
1723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1724 { (eval echo configure:1725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1726 if test -z "$ac_err"; then
1727 rm -rf conftest*
1728 eval "ac_cv_header_$ac_safe=yes"
1729 else
1730 echo "$ac_err" >&5
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 eval "ac_cv_header_$ac_safe=no"
1736 rm -f conftest*
1738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1739 echo "$ac_t""yes" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1743 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1746 ac_safe=`echo "linux/ppp_defs.h" | sed 'y%./+-%__p_%'`
1747 echo $ac_n "checking for linux/ppp_defs.h""... $ac_c" 1>&6
1748 echo "configure:1749: checking for linux/ppp_defs.h" >&5
1749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 #include <linux/ppp_defs.h>
1757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1758 { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1760 if test -z "$ac_err"; then
1761 rm -rf conftest*
1762 eval "ac_cv_header_$ac_safe=yes"
1763 else
1764 echo "$ac_err" >&5
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 rm -rf conftest*
1768 eval "ac_cv_header_$ac_safe=no"
1770 rm -f conftest*
1772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1775 else
1776 echo "$ac_t""no" 1>&6
1777 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1780 ac_safe=`echo "linux/if_ppp.h" | sed 'y%./+-%__p_%'`
1781 echo $ac_n "checking for linux/if_ppp.h""... $ac_c" 1>&6
1782 echo "configure:1783: checking for linux/if_ppp.h" >&5
1783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #include <linux/if_ppp.h>
1791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792 { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1794 if test -z "$ac_err"; then
1795 rm -rf conftest*
1796 eval "ac_cv_header_$ac_safe=yes"
1797 else
1798 echo "$ac_err" >&5
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1801 rm -rf conftest*
1802 eval "ac_cv_header_$ac_safe=no"
1804 rm -f conftest*
1806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1811 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1814 SYSDEF="LINUX"
1816 FreeBSD)
1817 ac_safe=`echo "net/if.h" | sed 'y%./+-%__p_%'`
1818 echo $ac_n "checking for net/if.h""... $ac_c" 1>&6
1819 echo "configure:1820: checking for net/if.h" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <net/if.h>
1828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1829 { (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1831 if test -z "$ac_err"; then
1832 rm -rf conftest*
1833 eval "ac_cv_header_$ac_safe=yes"
1834 else
1835 echo "$ac_err" >&5
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1838 rm -rf conftest*
1839 eval "ac_cv_header_$ac_safe=no"
1841 rm -f conftest*
1843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1851 ac_safe=`echo "net/ppp_defs.h" | sed 'y%./+-%__p_%'`
1852 echo $ac_n "checking for net/ppp_defs.h""... $ac_c" 1>&6
1853 echo "configure:1854: checking for net/ppp_defs.h" >&5
1854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 #include <net/ppp_defs.h>
1862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1863 { (eval echo configure:1864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1865 if test -z "$ac_err"; then
1866 rm -rf conftest*
1867 eval "ac_cv_header_$ac_safe=yes"
1868 else
1869 echo "$ac_err" >&5
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 rm -rf conftest*
1873 eval "ac_cv_header_$ac_safe=no"
1875 rm -f conftest*
1877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1885 SYSDEF="FREEBSD"
1887 OpenBSD)
1888 echo "configure: warning: *************************************************" 1>&2
1889 echo "configure: warning: * *" 1>&2
1890 echo "configure: warning: * OpenBSD support not tested - if it works *" 1>&2
1891 echo "configure: warning: * please report to bergo@seul.org. Good Luck. *" 1>&2
1892 echo "configure: warning: * *" 1>&2
1893 echo "configure: warning: *************************************************" 1>&2
1894 sleep 2
1895 ac_safe=`echo "net/if.h" | sed 'y%./+-%__p_%'`
1896 echo $ac_n "checking for net/if.h""... $ac_c" 1>&6
1897 echo "configure:1898: checking for net/if.h" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <net/if.h>
1906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909 if test -z "$ac_err"; then
1910 rm -rf conftest*
1911 eval "ac_cv_header_$ac_safe=yes"
1912 else
1913 echo "$ac_err" >&5
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -rf conftest*
1917 eval "ac_cv_header_$ac_safe=no"
1919 rm -f conftest*
1921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
1924 else
1925 echo "$ac_t""no" 1>&6
1926 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1929 ac_safe=`echo "net/ppp_defs.h" | sed 'y%./+-%__p_%'`
1930 echo $ac_n "checking for net/ppp_defs.h""... $ac_c" 1>&6
1931 echo "configure:1932: checking for net/ppp_defs.h" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1934 else
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 #include <net/ppp_defs.h>
1940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1941 { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1943 if test -z "$ac_err"; then
1944 rm -rf conftest*
1945 eval "ac_cv_header_$ac_safe=yes"
1946 else
1947 echo "$ac_err" >&5
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -rf conftest*
1951 eval "ac_cv_header_$ac_safe=no"
1953 rm -f conftest*
1955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1960 { echo "configure: error: required header file missing" 1>&2; exit 1; }
1963 SYSDEF="OPENBSD"
1965 NetBSD)
1966 echo "configure: warning: *************************************************" 1>&2
1967 echo "configure: warning: * *" 1>&2
1968 echo "configure: warning: * NetBSD support not tested - if it works *" 1>&2
1969 echo "configure: warning: * please report to bergo@seul.org. Good Luck. *" 1>&2
1970 echo "configure: warning: * *" 1>&2
1971 echo "configure: warning: *************************************************" 1>&2
1972 sleep 2
1973 ac_safe=`echo "net/if.h" | sed 'y%./+-%__p_%'`
1974 echo $ac_n "checking for net/if.h""... $ac_c" 1>&6
1975 echo "configure:1976: checking for net/if.h" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <net/if.h>
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1988 rm -rf conftest*
1989 eval "ac_cv_header_$ac_safe=yes"
1990 else
1991 echo "$ac_err" >&5
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -rf conftest*
1995 eval "ac_cv_header_$ac_safe=no"
1997 rm -f conftest*
1999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2002 else
2003 echo "$ac_t""no" 1>&6
2004 { echo "configure: error: required header file missing" 1>&2; exit 1; }
2007 ac_safe=`echo "net/ppp_defs.h" | sed 'y%./+-%__p_%'`
2008 echo $ac_n "checking for net/ppp_defs.h""... $ac_c" 1>&6
2009 echo "configure:2010: checking for net/ppp_defs.h" >&5
2010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 #include <net/ppp_defs.h>
2018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2019 { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2021 if test -z "$ac_err"; then
2022 rm -rf conftest*
2023 eval "ac_cv_header_$ac_safe=yes"
2024 else
2025 echo "$ac_err" >&5
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 rm -rf conftest*
2029 eval "ac_cv_header_$ac_safe=no"
2031 rm -f conftest*
2033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2036 else
2037 echo "$ac_t""no" 1>&6
2038 { echo "configure: error: required header file missing" 1>&2; exit 1; }
2041 SYSDEF="NETBSD"
2043 esac
2045 if test "$SYSDEF" = "UNKNOWN" ; then
2046 ac_safe=`echo "net/if.h" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for net/if.h""... $ac_c" 1>&6
2048 echo "configure:2049: checking for net/if.h" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <net/if.h>
2057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=yes"
2063 else
2064 echo "$ac_err" >&5
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 eval "ac_cv_header_$ac_safe=no"
2070 rm -f conftest*
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2075 else
2076 echo "$ac_t""no" 1>&6
2077 { echo "configure: error: required header file missing" 1>&2; exit 1; }
2080 ac_safe=`echo "net/if_ppp.h" | sed 'y%./+-%__p_%'`
2081 echo $ac_n "checking for net/if_ppp.h""... $ac_c" 1>&6
2082 echo "configure:2083: checking for net/if_ppp.h" >&5
2083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 #include <net/if_ppp.h>
2091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2092 { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2094 if test -z "$ac_err"; then
2095 rm -rf conftest*
2096 eval "ac_cv_header_$ac_safe=yes"
2097 else
2098 echo "$ac_err" >&5
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -rf conftest*
2102 eval "ac_cv_header_$ac_safe=no"
2104 rm -f conftest*
2106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2109 else
2110 echo "$ac_t""no" 1>&6
2111 { echo "configure: error: required header file missing" 1>&2; exit 1; }
2114 ac_safe=`echo "net/ppp_defs.h" | sed 'y%./+-%__p_%'`
2115 echo $ac_n "checking for net/ppp_defs.h""... $ac_c" 1>&6
2116 echo "configure:2117: checking for net/ppp_defs.h" >&5
2117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 #include <net/ppp_defs.h>
2125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2126 { (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2128 if test -z "$ac_err"; then
2129 rm -rf conftest*
2130 eval "ac_cv_header_$ac_safe=yes"
2131 else
2132 echo "$ac_err" >&5
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2135 rm -rf conftest*
2136 eval "ac_cv_header_$ac_safe=no"
2138 rm -f conftest*
2140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2141 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 { echo "configure: error: required header file missing" 1>&2; exit 1; }
2148 echo "configure: warning: *************************************************" 1>&2
2149 echo "configure: warning: * *" 1>&2
2150 echo "configure: warning: * This system has not been tested. I will try *" 1>&2
2151 echo "configure: warning: * compiling with BSDish settings. If it works *" 1>&2
2152 echo "configure: warning: * please report to bergo@seul.org. Good Luck! *" 1>&2
2153 echo "configure: warning: * *" 1>&2
2154 echo "configure: warning: *************************************************" 1>&2
2155 sleep 2
2156 SYSDEF="BSDISH"
2162 # Extract the first word of "gtk-config", so it can be a program name with args.
2163 set dummy gtk-config; ac_word=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"`echo '$''{'ac_cv_path_GTKCONFIG'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 case "$GTKCONFIG" in
2171 ac_cv_path_GTKCONFIG="$GTKCONFIG" # Let the user override the test with a path.
2173 ?:/*)
2174 ac_cv_path_GTKCONFIG="$GTKCONFIG" # Let the user override the test with a dos path.
2177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2178 ac_dummy="$PATH"
2179 for ac_dir in $ac_dummy; do
2180 test -z "$ac_dir" && ac_dir=.
2181 if test -f $ac_dir/$ac_word; then
2182 ac_cv_path_GTKCONFIG="$ac_dir/$ac_word"
2183 break
2185 done
2186 IFS="$ac_save_ifs"
2187 test -z "$ac_cv_path_GTKCONFIG" && ac_cv_path_GTKCONFIG="no"
2189 esac
2191 GTKCONFIG="$ac_cv_path_GTKCONFIG"
2192 if test -n "$GTKCONFIG"; then
2193 echo "$ac_t""$GTKCONFIG" 1>&6
2194 else
2195 echo "$ac_t""no" 1>&6
2199 if test "$GTKCONFIG" = "no" ; then
2200 { echo "configure: error:
2201 -(GTK >= 1.2.1 NOT FOUND)---------------------------------------
2202 The config application requires the GTK libary. See the
2203 README for information on how to install GTK.
2204 ----------------------------------------------------------------
2205 " 1>&2; exit 1; }
2206 else
2207 GTK_LIBS=`$GTKCONFIG --libs`
2208 GTK_FLAGS=`$GTKCONFIG --cflags`
2210 echo $ac_n "checking for gtk+ >=1.2.1""... $ac_c" 1>&6
2211 echo "configure:2212: checking for gtk+ >=1.2.1" >&5
2213 GTK_MAJOR=`$GTKCONFIG --version | \
2214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2215 GTK_MINOR=`$GTKCONFIG --version | \
2216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2217 GTK_MICRO=`$GTKCONFIG --version | \
2218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2220 GTK121_FINE=1
2222 if test $GTK_MAJOR -lt 1 ; then
2223 GTK121_FINE=0
2224 else
2225 if test $GTK_MAJOR -eq 1 ; then
2226 if test $GTK_MINOR -lt 2 ; then
2227 GTK121_FINE=0
2229 if test $GTK_MINOR -eq 2 ; then
2230 if test $GTK_MICRO -lt 1 ; then
2231 GTK121_FINE=0
2237 if test "$GTK121_FINE" = "1" ; then
2238 echo "$ac_t""yes" 1>&6
2239 else
2240 echo "$ac_t""no" 1>&6
2241 { echo "configure: error:
2242 -(GTK >= 1.2.1 NOT FOUND)---------------------------------------
2243 The config application requires the GTK libary. See the
2244 README for information on how to install GTK.
2245 ----------------------------------------------------------------
2247 " 1>&2; exit 1; }
2254 MK_YAWMPPP_RELEASE="2.0.2"
2257 trap '' 1 2 15
2258 cat > confcache <<\EOF
2259 # This file is a shell script that caches the results of configure
2260 # tests run on this system so they can be shared between configure
2261 # scripts and configure runs. It is not useful on other systems.
2262 # If it contains results you don't want to keep, you may remove or edit it.
2264 # By default, configure uses ./config.cache as the cache file,
2265 # creating it if it does not exist already. You can give configure
2266 # the --cache-file=FILE option to use a different cache file; that is
2267 # what configure does when it calls configure scripts in
2268 # subdirectories, so they share the cache.
2269 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2270 # config.status only pays attention to the cache file if you give it the
2271 # --recheck option to rerun configure.
2274 # The following way of writing the cache mishandles newlines in values,
2275 # but we know of no workaround that is simple, portable, and efficient.
2276 # So, don't put newlines in cache variables' values.
2277 # Ultrix sh set writes to stderr and can't be redirected directly,
2278 # and sets the high bit in the cache file unless we assign to the vars.
2279 (set) 2>&1 |
2280 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2281 *ac_space=\ *)
2282 # `set' does not quote correctly, so add quotes (double-quote substitution
2283 # turns \\\\ into \\, and sed turns \\ into \).
2284 sed -n \
2285 -e "s/'/'\\\\''/g" \
2286 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2289 # `set' quotes correctly as required by POSIX, so do not add quotes.
2290 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2292 esac >> confcache
2293 if cmp -s $cache_file confcache; then
2295 else
2296 if test -w $cache_file; then
2297 echo "updating cache $cache_file"
2298 cat confcache > $cache_file
2299 else
2300 echo "not updating unwritable cache $cache_file"
2303 rm -f confcache
2305 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2308 # Let make expand exec_prefix.
2309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2311 # Any assignment to VPATH causes Sun make to only execute
2312 # the first set of double-colon rules, so remove it if not needed.
2313 # If there is a colon in the path, we need to keep it.
2314 if test "x$srcdir" = x.; then
2315 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2318 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2320 # Transform confdefs.h into DEFS.
2321 # Protect against shell expansion while executing Makefile rules.
2322 # Protect against Makefile macro expansion.
2323 cat > conftest.defs <<\EOF
2324 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2325 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2326 s%\[%\\&%g
2327 s%\]%\\&%g
2328 s%\$%$$%g
2330 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2331 rm -f conftest.defs
2334 # Without the "./", some shells look in PATH for config.status.
2335 : ${CONFIG_STATUS=./config.status}
2337 echo creating $CONFIG_STATUS
2338 rm -f $CONFIG_STATUS
2339 cat > $CONFIG_STATUS <<EOF
2340 #! /bin/sh
2341 # Generated automatically by configure.
2342 # Run this file to recreate the current configuration.
2343 # This directory was configured as follows,
2344 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2346 # $0 $ac_configure_args
2348 # Compiler output produced by configure, useful for debugging
2349 # configure, is in ./config.log if it exists.
2351 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2352 for ac_option
2354 case "\$ac_option" in
2355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2356 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2357 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2358 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2359 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2360 exit 0 ;;
2361 -help | --help | --hel | --he | --h)
2362 echo "\$ac_cs_usage"; exit 0 ;;
2363 *) echo "\$ac_cs_usage"; exit 1 ;;
2364 esac
2365 done
2367 ac_given_srcdir=$srcdir
2368 ac_given_INSTALL="$INSTALL"
2370 trap 'rm -fr `echo "Makefile src/Makefile src/dockapp/Makefile src/gtksetup/Makefile src/gtklog/Makefile src/thinppp/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2372 cat >> $CONFIG_STATUS <<EOF
2374 # Protect against being on the right side of a sed subst in config.status.
2375 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2376 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2377 $ac_vpsub
2378 $extrasub
2379 s%@SHELL@%$SHELL%g
2380 s%@CFLAGS@%$CFLAGS%g
2381 s%@CPPFLAGS@%$CPPFLAGS%g
2382 s%@CXXFLAGS@%$CXXFLAGS%g
2383 s%@FFLAGS@%$FFLAGS%g
2384 s%@DEFS@%$DEFS%g
2385 s%@LDFLAGS@%$LDFLAGS%g
2386 s%@LIBS@%$LIBS%g
2387 s%@exec_prefix@%$exec_prefix%g
2388 s%@prefix@%$prefix%g
2389 s%@program_transform_name@%$program_transform_name%g
2390 s%@bindir@%$bindir%g
2391 s%@sbindir@%$sbindir%g
2392 s%@libexecdir@%$libexecdir%g
2393 s%@datadir@%$datadir%g
2394 s%@sysconfdir@%$sysconfdir%g
2395 s%@sharedstatedir@%$sharedstatedir%g
2396 s%@localstatedir@%$localstatedir%g
2397 s%@libdir@%$libdir%g
2398 s%@includedir@%$includedir%g
2399 s%@oldincludedir@%$oldincludedir%g
2400 s%@infodir@%$infodir%g
2401 s%@mandir@%$mandir%g
2402 s%@GNU_MAKE@%$GNU_MAKE%g
2403 s%@GOTSED@%$GOTSED%g
2404 s%@CC@%$CC%g
2405 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2406 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2407 s%@INSTALL_DATA@%$INSTALL_DATA%g
2408 s%@CPP@%$CPP%g
2409 s%@XINC@%$XINC%g
2410 s%@XLIB@%$XLIB%g
2411 s%@SYSDEF@%$SYSDEF%g
2412 s%@GTKCONFIG@%$GTKCONFIG%g
2413 s%@GTK_LIBS@%$GTK_LIBS%g
2414 s%@GTK_FLAGS@%$GTK_FLAGS%g
2415 s%@MK_YAWMPPP_RELEASE@%$MK_YAWMPPP_RELEASE%g
2417 CEOF
2420 cat >> $CONFIG_STATUS <<\EOF
2422 # Split the substitutions into bite-sized pieces for seds with
2423 # small command number limits, like on Digital OSF/1 and HP-UX.
2424 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2425 ac_file=1 # Number of current file.
2426 ac_beg=1 # First line for current file.
2427 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2428 ac_more_lines=:
2429 ac_sed_cmds=""
2430 while $ac_more_lines; do
2431 if test $ac_beg -gt 1; then
2432 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2433 else
2434 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2436 if test ! -s conftest.s$ac_file; then
2437 ac_more_lines=false
2438 rm -f conftest.s$ac_file
2439 else
2440 if test -z "$ac_sed_cmds"; then
2441 ac_sed_cmds="sed -f conftest.s$ac_file"
2442 else
2443 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2445 ac_file=`expr $ac_file + 1`
2446 ac_beg=$ac_end
2447 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2449 done
2450 if test -z "$ac_sed_cmds"; then
2451 ac_sed_cmds=cat
2455 cat >> $CONFIG_STATUS <<EOF
2457 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/dockapp/Makefile src/gtksetup/Makefile src/gtklog/Makefile src/thinppp/Makefile"}
2459 cat >> $CONFIG_STATUS <<\EOF
2460 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2462 case "$ac_file" in
2463 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2464 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2465 *) ac_file_in="${ac_file}.in" ;;
2466 esac
2468 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2470 # Remove last slash and all that follows it. Not all systems have dirname.
2471 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2473 # The file is in a subdirectory.
2474 test ! -d "$ac_dir" && mkdir "$ac_dir"
2475 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2476 # A "../" for each directory in $ac_dir_suffix.
2477 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2478 else
2479 ac_dir_suffix= ac_dots=
2482 case "$ac_given_srcdir" in
2483 .) srcdir=.
2484 if test -z "$ac_dots"; then top_srcdir=.
2485 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2486 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2487 *) # Relative path.
2488 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2489 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2490 esac
2492 case "$ac_given_INSTALL" in
2493 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2494 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2495 esac
2497 echo creating "$ac_file"
2498 rm -f "$ac_file"
2499 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2500 case "$ac_file" in
2501 *Makefile*) ac_comsub="1i\\
2502 # $configure_input" ;;
2503 *) ac_comsub= ;;
2504 esac
2506 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2507 sed -e "$ac_comsub
2508 s%@configure_input@%$configure_input%g
2509 s%@srcdir@%$srcdir%g
2510 s%@top_srcdir@%$top_srcdir%g
2511 s%@INSTALL@%$INSTALL%g
2512 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2513 fi; done
2514 rm -f conftest.s*
2517 cat >> $CONFIG_STATUS <<EOF
2520 cat >> $CONFIG_STATUS <<\EOF
2522 exit 0
2524 chmod +x $CONFIG_STATUS
2525 rm -fr confdefs* $ac_clean_files
2526 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2529 echo
2530 echo "--> type make to compile yawmppp"
2531 echo