Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="imwheel.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"
311
312 ac_subdirs_all="$ac_subdirs_all gpm-1.19.3"
313 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 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 RANLIB ac_ct_RANLIB CPP EGREP suid SUID_TRUE SUID_FALSE getopt GETOPT_LIBS GETOPT_INCS getopt_dist mdetect mdetect_dist mdump mdump_dist extras extras_dist GPM_DIR HAVE_GPM_SRC subdirs NO_GPM_DOC_TRUE NO_GPM_DOC_FALSE gpm_imwheel gpm_dist X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-suid=user suid user default=root the imwheel executable no
856 --enable-mdetect build mdetect, a ps/2 mouse data detector no
857 --enable-mdump build mdump, a ps/2 mouse data dumper no
858 --enable-extras build some extra ps/2 mouse debugging utils no
859 --enable-gpm build gpm-imwheel build if source present
860 --enable-gpm-doc build in gpm/doc build if source present
861
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-pid-dir=dir use dir for pid files /tmp
866 --with-getopt use included getopt guessed
867 --with-x use the X Window System
868
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CPP C preprocessor
877
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
880
881 _ACEOF
882 fi
883
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
886 ac_popdir=`pwd`
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
889 ac_builddir=.
890
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896 ac_dir_suffix= ac_top_builddir=
897 fi
898
899 case $srcdir in
900 .) # No --srcdir option. We are building in place.
901 ac_srcdir=.
902 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=.
904 else
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 fi ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
910 *) # Relative path.
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
914
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
919 *)
920 case "$ac_dir" in
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *)
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
937 *)
938 case $ac_srcdir in
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *)
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 esac;;
952 esac
953
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 fi
969 cd $ac_popdir
970 done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975 cat <<\_ACEOF
976
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981 exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
990
991 $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022 IFS=$as_save_IFS
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1050 do
1051 for ac_arg
1052 do
1053 case $ac_arg in
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 continue ;;
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 esac
1061 case $ac_pass in
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 2)
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1067 else
1068 case $ac_arg in
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 esac
1076 ;;
1077 -* ) ac_must_keep_next=true ;;
1078 esac
1079 fi
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1082 ac_sep=" "
1083 ;;
1084 esac
1085 done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1097 {
1098 echo
1099
1100 cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105 echo
1106 # The following way of writing the cache mishandles newlines in values,
1107 {
1108 (set) 2>&1 |
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 *ac_space=\ *)
1111 sed -n \
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 ;;
1115 *)
1116 sed -n \
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ;;
1119 esac;
1120 }
1121 echo
1122
1123 cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128 echo
1129 for ac_var in $ac_subst_vars
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135
1136 if test -n "$ac_subst_files"; then
1137 cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_files
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149 fi
1150
1151 if test -s confdefs.h; then
1152 cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157 echo
1158 sed "/^$/d" confdefs.h | sort
1159 echo
1160 fi
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1164 } >&5
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 exit $exit_status
1168 ' 0
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1173
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1178
1179 # Predefined preprocessor variables.
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1204
1205
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 else
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 fi
1214 fi
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1220 . "$ac_site_file"
1221 fi
1222 done
1223
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230 case $cache_file in
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1233 esac
1234 fi
1235 else
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238 >$cache_file
1239 fi
1240
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1251 set,)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,set)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,);;
1260 *)
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1269 fi;;
1270 esac
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1273 case $ac_new_val in
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1277 esac
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 esac
1282 fi
1283 done
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1290 fi
1291
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317 am__api_version="1.9"
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1332 fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1349 # AIX /bin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1368 case $as_dir/ in
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372 /usr/ucb/* ) ;;
1373 *)
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1376 # by default.
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1383 :
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1387 :
1388 else
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1390 break 3
1391 fi
1392 fi
1393 done
1394 done
1395 ;;
1396 esac
1397 done
1398
1399
1400 fi
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1403 else
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1409 fi
1410 fi
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1413
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1417
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1419
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1421
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 # Just in case
1425 sleep 1
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1431 # directory).
1432 if (
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1435 # -L didn't work.
1436 set X `ls -t $srcdir/configure conftest.file`
1437 fi
1438 rm -f conftest.file
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1441
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1451 fi
1452
1453 test "$2" = conftest.file
1454 )
1455 then
1456 # Ok.
1457 :
1458 else
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1464 fi
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1476 _ACEOF
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 rm conftest.sed
1479
1480 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1482
1483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1484 # Use eval to expand $SHELL
1485 if eval "$MISSING --run true"; then
1486 am_missing_run="$MISSING --run "
1487 else
1488 am_missing_run=
1489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1491 fi
1492
1493 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1494 # We used to keeping the `.' as first argument, in order to
1495 # allow $(mkdir_p) to be used without argument. As in
1496 # $(mkdir_p) $(somedir)
1497 # where $(somedir) is conditionally defined. However this is wrong
1498 # for two reasons:
1499 # 1. if the package is installed by a user who cannot write `.'
1500 # make install will fail,
1501 # 2. the above comment should most certainly read
1502 # $(mkdir_p) $(DESTDIR)$(somedir)
1503 # so it does not work when $(somedir) is undefined and
1504 # $(DESTDIR) is not.
1505 # To support the latter case, we have to write
1506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1507 # so the `.' trick is pointless.
1508 mkdir_p='mkdir -p --'
1509 else
1510 # On NextStep and OpenStep, the `mkdir' command does not
1511 # recognize any option. It will interpret all options as
1512 # directories to create, and then abort because `.' already
1513 # exists.
1514 for d in ./-p ./--version;
1515 do
1516 test -d $d && rmdir $d
1517 done
1518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1519 if test -f "$ac_aux_dir/mkinstalldirs"; then
1520 mkdir_p='$(mkinstalldirs)'
1521 else
1522 mkdir_p='$(install_sh) -d'
1523 fi
1524 fi
1525
1526 for ac_prog in gawk mawk nawk awk
1527 do
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy $ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_AWK+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535 if test -n "$AWK"; then
1536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_AWK="$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1548 fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 AWK=$ac_cv_prog_AWK
1555 if test -n "$AWK"; then
1556 echo "$as_me:$LINENO: result: $AWK" >&5
1557 echo "${ECHO_T}$AWK" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563 test -n "$AWK" && break
1564 done
1565
1566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 cat >conftest.make <<\_ACEOF
1573 all:
1574 @echo 'ac_maketemp="$(MAKE)"'
1575 _ACEOF
1576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1578 if test -n "$ac_maketemp"; then
1579 eval ac_cv_prog_make_${ac_make}_set=yes
1580 else
1581 eval ac_cv_prog_make_${ac_make}_set=no
1582 fi
1583 rm -f conftest.make
1584 fi
1585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1586 echo "$as_me:$LINENO: result: yes" >&5
1587 echo "${ECHO_T}yes" >&6
1588 SET_MAKE=
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1593 fi
1594
1595 rm -rf .tst 2>/dev/null
1596 mkdir .tst 2>/dev/null
1597 if test -d .tst; then
1598 am__leading_dot=.
1599 else
1600 am__leading_dot=_
1601 fi
1602 rmdir .tst 2>/dev/null
1603
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1610 fi
1611
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1616 else
1617 CYGPATH_W=echo
1618 fi
1619 fi
1620
1621
1622 # Define the identity of the package.
1623 PACKAGE=imwheel
1624 VERSION=1.0.0pre12
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1635
1636 # Some tools Automake needs.
1637
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1639
1640
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1642
1643
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1645
1646
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648
1649
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1651
1652 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1653
1654 # Installed binaries are usually stripped using `strip' when the user
1655 # run `make install-strip'. However `strip' might not be the right
1656 # tool to use in cross-compilation environments, therefore Automake
1657 # will honor the `STRIP' environment variable to overrule this program.
1658 if test "$cross_compiling" != no; then
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1661 set dummy ${ac_tool_prefix}strip; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_STRIP+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 if test -n "$STRIP"; then
1668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 STRIP=$ac_cv_prog_STRIP
1687 if test -n "$STRIP"; then
1688 echo "$as_me:$LINENO: result: $STRIP" >&5
1689 echo "${ECHO_T}$STRIP" >&6
1690 else
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695 fi
1696 if test -z "$ac_cv_prog_STRIP"; then
1697 ac_ct_STRIP=$STRIP
1698 # Extract the first word of "strip", so it can be a program name with args.
1699 set dummy strip; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 if test -n "$ac_ct_STRIP"; then
1706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_STRIP="strip"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719 done
1720 done
1721
1722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1723 fi
1724 fi
1725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1726 if test -n "$ac_ct_STRIP"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1728 echo "${ECHO_T}$ac_ct_STRIP" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734 STRIP=$ac_ct_STRIP
1735 else
1736 STRIP="$ac_cv_prog_STRIP"
1737 fi
1738
1739 fi
1740 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1741
1742 # We need awk for the "check" target. The system "awk" is bad on
1743 # some platforms.
1744 # Always define AMTAR for backward compatibility.
1745
1746 AMTAR=${AMTAR-"${am_missing_run}tar"}
1747
1748 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1749
1750
1751
1752
1753
1754
1755 Warnings=0
1756 Good=xyes
1757
1758 system=`uname -s`
1759
1760 ac_ext=c
1761 ac_cpp='$CPP $CPPFLAGS'
1762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765 if test -n "$ac_tool_prefix"; then
1766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1786 fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801 fi
1802 if test -z "$ac_cv_prog_CC"; then
1803 ac_ct_CC=$CC
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 CC=$ac_ct_CC
1840 else
1841 CC="$ac_cv_prog_CC"
1842 fi
1843
1844 if test -z "$CC"; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}cc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC="${ac_tool_prefix}cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881 fi
1882 if test -z "$ac_cv_prog_CC"; then
1883 ac_ct_CC=$CC
1884 # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 CC=$ac_ct_CC
1920 else
1921 CC="$ac_cv_prog_CC"
1922 fi
1923
1924 fi
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 ac_prog_rejected=no
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954
1955 if test $ac_prog_rejected = yes; then
1956 # We found a bogon in the path, so make sure we never use it.
1957 set dummy $ac_cv_prog_CC
1958 shift
1959 if test $# != 0; then
1960 # We chose a different compiler from the bogus one.
1961 # However, it has the same basename, so the bogon will be chosen
1962 # first if we set CC to just the basename; use the full file name.
1963 shift
1964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 fi
1966 fi
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in cl
1982 do
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018 test -n "$CC" && break
2019 done
2020 fi
2021 if test -z "$CC"; then
2022 ac_ct_CC=$CC
2023 for ac_prog in cl
2024 do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060 test -n "$ac_ct_CC" && break
2061 done
2062
2063 CC=$ac_ct_CC
2064 fi
2065
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO:" \
2077 "checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2094
2095 cat >conftest.$ac_ext <<_ACEOF
2096 /* confdefs.h. */
2097 _ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2101
2102 int
2103 main ()
2104 {
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 ac_clean_files_save=$ac_clean_files
2111 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2112 # Try to create an executable without -o first, disregard a.out.
2113 # It will help us diagnose broken compilers, and finding out an intuition
2114 # of exeext.
2115 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119 (eval $ac_link_default) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # Find the output, starting from the most likely. This scheme is
2124 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125 # resort.
2126
2127 # Be careful to initialize this variable, since it used to be cached.
2128 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129 ac_cv_exeext=
2130 # b.out is created by i960 compilers.
2131 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132 do
2133 test -f "$ac_file" || continue
2134 case $ac_file in
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136 ;;
2137 conftest.$ac_ext )
2138 # This is the source file.
2139 ;;
2140 [ab].out )
2141 # We found the default executable, but exeext='' is most
2142 # certainly right.
2143 break;;
2144 *.* )
2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 # FIXME: I believe we export ac_cv_exeext for Libtool,
2147 # but it would be cool to find out if it's true. Does anybody
2148 # maintain Libtool? --akim.
2149 export ac_cv_exeext
2150 break;;
2151 * )
2152 break;;
2153 esac
2154 done
2155 else
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&2;}
2163 { (exit 77); exit 77; }; }
2164 fi
2165
2166 ac_exeext=$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_file" >&5
2168 echo "${ECHO_T}$ac_file" >&6
2169
2170 # Check the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175 # If not cross compiling, check that we can run a simple program.
2176 if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 cross_compiling=no
2184 else
2185 if test "$cross_compiling" = maybe; then
2186 cross_compiling=yes
2187 else
2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'.
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196 fi
2197 fi
2198 echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6
2200
2201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202 ac_clean_files=$ac_clean_files_save
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208 echo "${ECHO_T}$cross_compiling" >&6
2209
2210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 # `rm'.
2221 for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
2223 case $ac_file in
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 export ac_cv_exeext
2227 break;;
2228 * ) break;;
2229 esac
2230 done
2231 else
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237 fi
2238
2239 rm -f conftest$ac_cv_exeext
2240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241 echo "${ECHO_T}$ac_cv_exeext" >&6
2242
2243 rm -f conftest.$ac_ext
2244 EXEEXT=$ac_cv_exeext
2245 ac_exeext=$EXEEXT
2246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248 if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257
2258 int
2259 main ()
2260 {
2261
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.o conftest.obj
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276 break;;
2277 esac
2278 done
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291 fi
2292 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293 echo "${ECHO_T}$ac_cv_objext" >&6
2294 OBJEXT=$ac_cv_objext
2295 ac_objext=$OBJEXT
2296 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307
2308 int
2309 main ()
2310 {
2311 #ifndef __GNUC__
2312 choke me
2313 #endif
2314
2315 ;
2316 return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_compiler_gnu=yes
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_compiler_gnu=no
2347 fi
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2350
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354 GCC=`test $ac_compiler_gnu = yes && echo yes`
2355 ac_test_CFLAGS=${CFLAGS+set}
2356 ac_save_CFLAGS=$CFLAGS
2357 CFLAGS="-g"
2358 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cc_g+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2369
2370 int
2371 main ()
2372 {
2373
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_prog_cc_g=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_cv_prog_cc_g=no
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2415 CFLAGS="-g -O2"
2416 else
2417 CFLAGS="-g"
2418 fi
2419 else
2420 if test "$GCC" = yes; then
2421 CFLAGS="-O2"
2422 else
2423 CFLAGS=
2424 fi
2425 fi
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_cv_prog_cc_stdc=no
2432 ac_save_CC=$CC
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439 #include <stdarg.h>
2440 #include <stdio.h>
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2447 char **p;
2448 int i;
2449 {
2450 return p[i];
2451 }
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2453 {
2454 char *s;
2455 va_list v;
2456 va_start (v,p);
2457 s = g (p, va_arg (v,int));
2458 va_end (v);
2459 return s;
2460 }
2461
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475 int argc;
2476 char **argv;
2477 int
2478 main ()
2479 {
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 do
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2518 break
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 fi
2524 rm -f conftest.err conftest.$ac_objext
2525 done
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2527 CC=$ac_save_CC
2528
2529 fi
2530
2531 case "x$ac_cv_prog_cc_stdc" in
2532 x|xno)
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2535 *)
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 esac
2540
2541 # Some people use a C++ compiler to compile C. Since we use `exit',
2542 # in C++ we need to declare it. In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #ifndef __cplusplus
2547 choke me
2548 #endif
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 for ac_declaration in \
2573 '' \
2574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2578 'void exit (int);'
2579 do
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586 $ac_declaration
2587 #include <stdlib.h>
2588 int
2589 main ()
2590 {
2591 exit (42);
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 :
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 continue
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2632 $ac_declaration
2633 int
2634 main ()
2635 {
2636 exit (42);
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
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); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 break
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 done
2671 rm -f conftest*
2672 if test -n "$ac_declaration"; then
2673 echo '#ifdef __cplusplus' >>confdefs.h
2674 echo $ac_declaration >>confdefs.h
2675 echo '#endif' >>confdefs.h
2676 fi
2677
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 fi
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 DEPDIR="${am__leading_dot}deps"
2690
2691 ac_config_commands="$ac_config_commands depfiles"
2692
2693
2694 am_make=${MAKE-make}
2695 cat > confinc << 'END'
2696 am__doit:
2697 @echo done
2698 .PHONY: am__doit
2699 END
2700 # If we don't find an include directive, just comment out the code.
2701 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2702 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2703 am__include="#"
2704 am__quote=
2705 _am_result=none
2706 # First try GNU make style include.
2707 echo "include confinc" > confmf
2708 # We grep out `Entering directory' and `Leaving directory'
2709 # messages which can occur if `w' ends up in MAKEFLAGS.
2710 # In particular we don't look at `^make:' because GNU make might
2711 # be invoked under some other name (usually "gmake"), in which
2712 # case it prints its new name instead of `make'.
2713 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2714 am__include=include
2715 am__quote=
2716 _am_result=GNU
2717 fi
2718 # Now try BSD make style include.
2719 if test "$am__include" = "#"; then
2720 echo '.include "confinc"' > confmf
2721 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2722 am__include=.include
2723 am__quote="\""
2724 _am_result=BSD
2725 fi
2726 fi
2727
2728
2729 echo "$as_me:$LINENO: result: $_am_result" >&5
2730 echo "${ECHO_T}$_am_result" >&6
2731 rm -f confinc confmf
2732
2733 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2734 if test "${enable_dependency_tracking+set}" = set; then
2735 enableval="$enable_dependency_tracking"
2736
2737 fi;
2738 if test "x$enable_dependency_tracking" != xno; then
2739 am_depcomp="$ac_aux_dir/depcomp"
2740 AMDEPBACKSLASH='\'
2741 fi
2742
2743
2744 if test "x$enable_dependency_tracking" != xno; then
2745 AMDEP_TRUE=
2746 AMDEP_FALSE='#'
2747 else
2748 AMDEP_TRUE='#'
2749 AMDEP_FALSE=
2750 fi
2751
2752
2753
2754
2755 depcc="$CC" am_compiler_list=
2756
2757 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2758 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2759 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2763 # We make a subdir and do the tests there. Otherwise we can end up
2764 # making bogus files that we don't know about and never remove. For
2765 # instance it was reported that on HP-UX the gcc test will end up
2766 # making a dummy file named `D' -- because `-MD' means `put the output
2767 # in D'.
2768 mkdir conftest.dir
2769 # Copy depcomp to subdir because otherwise we won't find it if we're
2770 # using a relative directory.
2771 cp "$am_depcomp" conftest.dir
2772 cd conftest.dir
2773 # We will build objects and dependencies in a subdirectory because
2774 # it helps to detect inapplicable dependency modes. For instance
2775 # both Tru64's cc and ICC support -MD to output dependencies as a
2776 # side effect of compilation, but ICC will put the dependencies in
2777 # the current directory while Tru64 will put them in the object
2778 # directory.
2779 mkdir sub
2780
2781 am_cv_CC_dependencies_compiler_type=none
2782 if test "$am_compiler_list" = ""; then
2783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2784 fi
2785 for depmode in $am_compiler_list; do
2786 # Setup a source with many dependencies, because some compilers
2787 # like to wrap large dependency lists on column 80 (with \), and
2788 # we should not choose a depcomp mode which is confused by this.
2789 #
2790 # We need to recreate these files for each test, as the compiler may
2791 # overwrite some of them when testing with obscure command lines.
2792 # This happens at least with the AIX C compiler.
2793 : > sub/conftest.c
2794 for i in 1 2 3 4 5 6; do
2795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2797 # Solaris 8's {/usr,}/bin/sh.
2798 touch sub/conftst$i.h
2799 done
2800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2801
2802 case $depmode in
2803 nosideeffect)
2804 # after this tag, mechanisms are not by side-effect, so they'll
2805 # only be used when explicitly requested
2806 if test "x$enable_dependency_tracking" = xyes; then
2807 continue
2808 else
2809 break
2810 fi
2811 ;;
2812 none) break ;;
2813 esac
2814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2815 # mode. It turns out that the SunPro C++ compiler does not properly
2816 # handle `-M -o', and we need to detect this.
2817 if depmode=$depmode \
2818 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2820 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2821 >/dev/null 2>conftest.err &&
2822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2823 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2825 # icc doesn't choke on unknown options, it will just issue warnings
2826 # or remarks (even with -Werror). So we grep stderr for any message
2827 # that says an option was ignored or not supported.
2828 # When given -MP, icc 7.0 and 7.1 complain thusly:
2829 # icc: Command line warning: ignoring option '-M'; no argument required
2830 # The diagnosis changed in icc 8.0:
2831 # icc: Command line remark: option '-MP' not supported
2832 if (grep 'ignoring option' conftest.err ||
2833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2834 am_cv_CC_dependencies_compiler_type=$depmode
2835 break
2836 fi
2837 fi
2838 done
2839
2840 cd ..
2841 rm -rf conftest.dir
2842 else
2843 am_cv_CC_dependencies_compiler_type=none
2844 fi
2845
2846 fi
2847 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2848 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2850
2851
2852
2853 if
2854 test "x$enable_dependency_tracking" != xno \
2855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2856 am__fastdepCC_TRUE=
2857 am__fastdepCC_FALSE='#'
2858 else
2859 am__fastdepCC_TRUE='#'
2860 am__fastdepCC_FALSE=
2861 fi
2862
2863
2864 # Find a good install program. We prefer a C program (faster),
2865 # so one script is as good as another. But avoid the broken or
2866 # incompatible versions:
2867 # SysV /etc/install, /usr/sbin/install
2868 # SunOS /usr/etc/install
2869 # IRIX /sbin/install
2870 # AIX /bin/install
2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875 # OS/2's system install, which has a completely different semantic
2876 # ./install, which can be erroneously created by make from ./install.sh.
2877 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2879 if test -z "$INSTALL"; then
2880 if test "${ac_cv_path_install+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 # Account for people who put trailing slashes in PATH elements.
2889 case $as_dir/ in
2890 ./ | .// | /cC/* | \
2891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2893 /usr/ucb/* ) ;;
2894 *)
2895 # OSF1 and SCO ODT 3.0 have their own names for install.
2896 # Don't use installbsd from OSF since it installs stuff as root
2897 # by default.
2898 for ac_prog in ginstall scoinst install; do
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2901 if test $ac_prog = install &&
2902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # AIX install. It has an incompatible calling convention.
2904 :
2905 elif test $ac_prog = install &&
2906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # program-specific install script used by HP pwplus--don't use.
2908 :
2909 else
2910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2911 break 3
2912 fi
2913 fi
2914 done
2915 done
2916 ;;
2917 esac
2918 done
2919
2920
2921 fi
2922 if test "${ac_cv_path_install+set}" = set; then
2923 INSTALL=$ac_cv_path_install
2924 else
2925 # As a last resort, use the slow shell script. We don't cache a
2926 # path for INSTALL within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the path is relative.
2929 INSTALL=$ac_install_sh
2930 fi
2931 fi
2932 echo "$as_me:$LINENO: result: $INSTALL" >&5
2933 echo "${ECHO_T}$INSTALL" >&6
2934
2935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2936 # It thinks the first close brace ends the variable substitution.
2937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2938
2939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2940
2941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2942
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2946 echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_RANLIB+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 if test -n "$RANLIB"; then
2952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967
2968 fi
2969 fi
2970 RANLIB=$ac_cv_prog_RANLIB
2971 if test -n "$RANLIB"; then
2972 echo "$as_me:$LINENO: result: $RANLIB" >&5
2973 echo "${ECHO_T}$RANLIB" >&6
2974 else
2975 echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2977 fi
2978
2979 fi
2980 if test -z "$ac_cv_prog_RANLIB"; then
2981 ac_ct_RANLIB=$RANLIB
2982 # Extract the first word of "ranlib", so it can be a program name with args.
2983 set dummy ranlib; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$ac_ct_RANLIB"; then
2990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_RANLIB="ranlib"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005
3006 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3007 fi
3008 fi
3009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3010 if test -n "$ac_ct_RANLIB"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3012 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018 RANLIB=$ac_ct_RANLIB
3019 else
3020 RANLIB="$ac_cv_prog_RANLIB"
3021 fi
3022
3023 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3024 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3025 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3026 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 cat >conftest.make <<\_ACEOF
3030 all:
3031 @echo 'ac_maketemp="$(MAKE)"'
3032 _ACEOF
3033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3034 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3035 if test -n "$ac_maketemp"; then
3036 eval ac_cv_prog_make_${ac_make}_set=yes
3037 else
3038 eval ac_cv_prog_make_${ac_make}_set=no
3039 fi
3040 rm -f conftest.make
3041 fi
3042 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3045 SET_MAKE=
3046 else
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3049 SET_MAKE="MAKE=${MAKE-make}"
3050 fi
3051
3052 ac_config_headers="$ac_config_headers config.h"
3053
3054
3055
3056
3057
3058
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3066 # On Suns, sometimes $CPP names a directory.
3067 if test -n "$CPP" && test -d "$CPP"; then
3068 CPP=
3069 fi
3070 if test -z "$CPP"; then
3071 if test "${ac_cv_prog_CPP+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 # Double quotes because CPP needs to be expanded
3075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3076 do
3077 ac_preproc_ok=false
3078 for ac_c_preproc_warn_flag in '' yes
3079 do
3080 # Use a header file that comes with gcc, so configuring glibc
3081 # with a fresh cross-compiler works.
3082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3083 # <limits.h> exists even on freestanding compilers.
3084 # On the NeXT, cc -E runs the code through the compiler's parser,
3085 # not just through cpp. "Syntax error" is here to catch this case.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #ifdef __STDC__
3093 # include <limits.h>
3094 #else
3095 # include <assert.h>
3096 #endif
3097 Syntax error
3098 _ACEOF
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 else
3111 ac_cpp_err=
3112 fi
3113 else
3114 ac_cpp_err=yes
3115 fi
3116 if test -z "$ac_cpp_err"; then
3117 :
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 # Broken: fails on valid input.
3123 continue
3124 fi
3125 rm -f conftest.err conftest.$ac_ext
3126
3127 # OK, works on sane cases. Now check whether non-existent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148 else
3149 ac_cpp_err=
3150 fi
3151 else
3152 ac_cpp_err=yes
3153 fi
3154 if test -z "$ac_cpp_err"; then
3155 # Broken: success on invalid input.
3156 continue
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 # Passes both tests.
3162 ac_preproc_ok=:
3163 break
3164 fi
3165 rm -f conftest.err conftest.$ac_ext
3166
3167 done
3168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3169 rm -f conftest.err conftest.$ac_ext
3170 if $ac_preproc_ok; then
3171 break
3172 fi
3173
3174 done
3175 ac_cv_prog_CPP=$CPP
3176
3177 fi
3178 CPP=$ac_cv_prog_CPP
3179 else
3180 ac_cv_prog_CPP=$CPP
3181 fi
3182 echo "$as_me:$LINENO: result: $CPP" >&5
3183 echo "${ECHO_T}$CPP" >&6
3184 ac_preproc_ok=false
3185 for ac_c_preproc_warn_flag in '' yes
3186 do
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #ifdef __STDC__
3200 # include <limits.h>
3201 #else
3202 # include <assert.h>
3203 #endif
3204 Syntax error
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 else
3218 ac_cpp_err=
3219 fi
3220 else
3221 ac_cpp_err=yes
3222 fi
3223 if test -z "$ac_cpp_err"; then
3224 :
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 # Broken: fails on valid input.
3230 continue
3231 fi
3232 rm -f conftest.err conftest.$ac_ext
3233
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ac_nonexistent.h>
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3257 fi
3258 else
3259 ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3263 continue
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 # Passes both tests.
3269 ac_preproc_ok=:
3270 break
3271 fi
3272 rm -f conftest.err conftest.$ac_ext
3273
3274 done
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.$ac_ext
3277 if $ac_preproc_ok; then
3278 :
3279 else
3280 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3283 See \`config.log' for more details." >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
3293
3294 echo "$as_me:$LINENO: checking for egrep" >&5
3295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3296 if test "${ac_cv_prog_egrep+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3300 then ac_cv_prog_egrep='grep -E'
3301 else ac_cv_prog_egrep='egrep'
3302 fi
3303 fi
3304 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3305 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3306 EGREP=$ac_cv_prog_egrep
3307
3308
3309 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3310 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3311 if test "${ac_cv_header_stdc+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
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 #include <stdlib.h>
3321 #include <stdarg.h>
3322 #include <string.h>
3323 #include <float.h>
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_header_stdc=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_cv_header_stdc=no
3361 fi
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363
3364 if test $ac_cv_header_stdc = yes; then
3365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <string.h>
3373
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "memchr" >/dev/null 2>&1; then
3377 :
3378 else
3379 ac_cv_header_stdc=no
3380 fi
3381 rm -f conftest*
3382
3383 fi
3384
3385 if test $ac_cv_header_stdc = yes; then
3386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <stdlib.h>
3394
3395 _ACEOF
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 $EGREP "free" >/dev/null 2>&1; then
3398 :
3399 else
3400 ac_cv_header_stdc=no
3401 fi
3402 rm -f conftest*
3403
3404 fi
3405
3406 if test $ac_cv_header_stdc = yes; then
3407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3408 if test "$cross_compiling" = yes; then
3409 :
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include <ctype.h>
3418 #if ((' ' & 0x0FF) == 0x020)
3419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3421 #else
3422 # define ISLOWER(c) \
3423 (('a' <= (c) && (c) <= 'i') \
3424 || ('j' <= (c) && (c) <= 'r') \
3425 || ('s' <= (c) && (c) <= 'z'))
3426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3427 #endif
3428
3429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3430 int
3431 main ()
3432 {
3433 int i;
3434 for (i = 0; i < 256; i++)
3435 if (XOR (islower (i), ISLOWER (i))
3436 || toupper (i) != TOUPPER (i))
3437 exit(2);
3438 exit (0);
3439 }
3440 _ACEOF
3441 rm -f conftest$ac_exeext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 :
3453 else
3454 echo "$as_me: program exited with status $ac_status" >&5
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 ( exit $ac_status )
3459 ac_cv_header_stdc=no
3460 fi
3461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 fi
3464 fi
3465 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3467 if test $ac_cv_header_stdc = yes; then
3468
3469 cat >>confdefs.h <<\_ACEOF
3470 #define STDC_HEADERS 1
3471 _ACEOF
3472
3473 fi
3474
3475 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3476 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3477 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <sys/types.h>
3487 #include <sys/wait.h>
3488 #ifndef WEXITSTATUS
3489 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3490 #endif
3491 #ifndef WIFEXITED
3492 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3493 #endif
3494
3495 int
3496 main ()
3497 {
3498 int s;
3499 wait (&s);
3500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_header_sys_wait_h=yes
3528 else
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 ac_cv_header_sys_wait_h=no
3533 fi
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3537 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3538 if test $ac_cv_header_sys_wait_h = yes; then
3539
3540 cat >>confdefs.h <<\_ACEOF
3541 #define HAVE_SYS_WAIT_H 1
3542 _ACEOF
3543
3544 fi
3545
3546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3557 inttypes.h stdint.h unistd.h
3558 do
3559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3560 echo "$as_me:$LINENO: checking for $ac_header" >&5
3561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 $ac_includes_default
3572
3573 #include <$ac_header>
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 eval "$as_ac_Header=yes"
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 eval "$as_ac_Header=no"
3603 fi
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3611 _ACEOF
3612
3613 fi
3614
3615 done
3616
3617
3618
3619
3620
3621
3622 for ac_header in fcntl.h sys/time.h unistd.h getopt.h
3623 do
3624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3626 echo "$as_me:$LINENO: checking for $ac_header" >&5
3627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 fi
3631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3633 else
3634 # Is the header compilable?
3635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 $ac_includes_default
3644 #include <$ac_header>
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_header_compiler=yes
3669 else
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 ac_header_compiler=no
3674 fi
3675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3677 echo "${ECHO_T}$ac_header_compiler" >&6
3678
3679 # Is the header present?
3680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #include <$ac_header>
3689 _ACEOF
3690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } >/dev/null; then
3698 if test -s conftest.err; then
3699 ac_cpp_err=$ac_c_preproc_warn_flag
3700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3701 else
3702 ac_cpp_err=
3703 fi
3704 else
3705 ac_cpp_err=yes
3706 fi
3707 if test -z "$ac_cpp_err"; then
3708 ac_header_preproc=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ac_header_preproc=no
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3717 echo "${ECHO_T}$ac_header_preproc" >&6
3718
3719 # So? What about this header?
3720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3721 yes:no: )
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3726 ac_header_preproc=yes
3727 ;;
3728 no:yes:* )
3729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3741 (
3742 cat <<\_ASBOX
3743 ## ------------------------------------------ ##
3744 ## Report this to the AC_PACKAGE_NAME lists. ##
3745 ## ------------------------------------------ ##
3746 _ASBOX
3747 ) |
3748 sed "s/^/$as_me: WARNING: /" >&2
3749 ;;
3750 esac
3751 echo "$as_me:$LINENO: checking for $ac_header" >&5
3752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 eval "$as_ac_Header=\$ac_header_preproc"
3757 fi
3758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3760
3761 fi
3762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3763 cat >>confdefs.h <<_ACEOF
3764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3765 _ACEOF
3766
3767 fi
3768
3769 done
3770
3771
3772
3773 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3774 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3775 if test "${ac_cv_c_const+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788 /* FIXME: Include the comments suggested by Paul. */
3789 #ifndef __cplusplus
3790 /* Ultrix mips cc rejects this. */
3791 typedef int charset[2];
3792 const charset x;
3793 /* SunOS 4.1.1 cc rejects this. */
3794 char const *const *ccp;
3795 char **p;
3796 /* NEC SVR4.0.2 mips cc rejects this. */
3797 struct point {int x, y;};
3798 static struct point const zero = {0,0};
3799 /* AIX XL C 1.02.0.0 rejects this.
3800 It does not let you subtract one const X* pointer from another in
3801 an arm of an if-expression whose if-part is not a constant
3802 expression */
3803 const char *g = "string";
3804 ccp = &g + (g ? g-g : 0);
3805 /* HPUX 7.0 cc rejects these. */
3806 ++ccp;
3807 p = (char**) ccp;
3808 ccp = (char const *const *) p;
3809 { /* SCO 3.2v4 cc rejects this. */
3810 char *t;
3811 char const *s = 0 ? (char *) 0 : (char const *) 0;
3812
3813 *t++ = 0;
3814 }
3815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3816 int x[] = {25, 17};
3817 const int *foo = &x[0];
3818 ++foo;
3819 }
3820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3821 typedef const int *iptr;
3822 iptr p = 0;
3823 ++p;
3824 }
3825 { /* AIX XL C 1.02.0.0 rejects this saying
3826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3827 struct s { int j; const int *ap[3]; };
3828 struct s *b; b->j = 5;
3829 }
3830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3831 const int foo = 10;
3832 }
3833 #endif
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -z "$ac_c_werror_flag"
3849 || test ! -s conftest.err'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_c_const=yes
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 ac_cv_c_const=no
3867 fi
3868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3871 echo "${ECHO_T}$ac_cv_c_const" >&6
3872 if test $ac_cv_c_const = no; then
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define const
3876 _ACEOF
3877
3878 fi
3879
3880 echo "$as_me:$LINENO: checking for pid_t" >&5
3881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3882 if test "${ac_cv_type_pid_t+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 $ac_includes_default
3892 int
3893 main ()
3894 {
3895 if ((pid_t *) 0)
3896 return 0;
3897 if (sizeof (pid_t))
3898 return 0;
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_cv_type_pid_t=yes
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 ac_cv_type_pid_t=no
3931 fi
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3935 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3936 if test $ac_cv_type_pid_t = yes; then
3937 :
3938 else
3939
3940 cat >>confdefs.h <<_ACEOF
3941 #define pid_t int
3942 _ACEOF
3943
3944 fi
3945
3946 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3947 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3948 if test "${ac_cv_header_time+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #include <sys/types.h>
3958 #include <sys/time.h>
3959 #include <time.h>
3960
3961 int
3962 main ()
3963 {
3964 if ((struct tm *) 0)
3965 return 0;
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag"
3980 || test ! -s conftest.err'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_header_time=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ac_cv_header_time=no
3998 fi
3999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4002 echo "${ECHO_T}$ac_cv_header_time" >&6
4003 if test $ac_cv_header_time = yes; then
4004
4005 cat >>confdefs.h <<\_ACEOF
4006 #define TIME_WITH_SYS_TIME 1
4007 _ACEOF
4008
4009 fi
4010
4011
4012
4013 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4014 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4015 if test "${ac_cv_type_signal+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <sys/types.h>
4025 #include <signal.h>
4026 #ifdef signal
4027 # undef signal
4028 #endif
4029 #ifdef __cplusplus
4030 extern "C" void (*signal (int, void (*)(int)))(int);
4031 #else
4032 void (*signal ()) ();
4033 #endif
4034
4035 int
4036 main ()
4037 {
4038 int i;
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_type_signal=void
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_cv_type_signal=int
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 fi
4074 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4075 echo "${ECHO_T}$ac_cv_type_signal" >&6
4076
4077 cat >>confdefs.h <<_ACEOF
4078 #define RETSIGTYPE $ac_cv_type_signal
4079 _ACEOF
4080
4081
4082
4083 for ac_func in vprintf
4084 do
4085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4086 echo "$as_me:$LINENO: checking for $ac_func" >&5
4087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4088 if eval "test \"\${$as_ac_var+set}\" = set"; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4099 #define $ac_func innocuous_$ac_func
4100
4101 /* System header to define __stub macros and hopefully few prototypes,
4102 which can conflict with char $ac_func (); below.
4103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4104 <limits.h> exists even on freestanding compilers. */
4105
4106 #ifdef __STDC__
4107 # include <limits.h>
4108 #else
4109 # include <assert.h>
4110 #endif
4111
4112 #undef $ac_func
4113
4114 /* Override any gcc2 internal prototype to avoid an error. */
4115 #ifdef __cplusplus
4116 extern "C"
4117 {
4118 #endif
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4121 char $ac_func ();
4122 /* The GNU C library defines this for functions which it implements
4123 to always fail with ENOSYS. Some functions are actually named
4124 something starting with __ and the normal name is an alias. */
4125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4126 choke me
4127 #else
4128 char (*f) () = $ac_func;
4129 #endif
4130 #ifdef __cplusplus
4131 }
4132 #endif
4133
4134 int
4135 main ()
4136 {
4137 return f != $ac_func;
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest$ac_exeext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 eval "$as_ac_var=yes"
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 eval "$as_ac_var=no"
4170 fi
4171 rm -f conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 fi
4174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4176 if test `eval echo '${'$as_ac_var'}'` = yes; then
4177 cat >>confdefs.h <<_ACEOF
4178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4179 _ACEOF
4180
4181 echo "$as_me:$LINENO: checking for _doprnt" >&5
4182 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4183 if test "${ac_cv_func__doprnt+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4194 #define _doprnt innocuous__doprnt
4195
4196 /* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char _doprnt (); below.
4198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 <limits.h> exists even on freestanding compilers. */
4200
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206
4207 #undef _doprnt
4208
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 #ifdef __cplusplus
4211 extern "C"
4212 {
4213 #endif
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216 char _doprnt ();
4217 /* The GNU C library defines this for functions which it implements
4218 to always fail with ENOSYS. Some functions are actually named
4219 something starting with __ and the normal name is an alias. */
4220 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4221 choke me
4222 #else
4223 char (*f) () = _doprnt;
4224 #endif
4225 #ifdef __cplusplus
4226 }
4227 #endif
4228
4229 int
4230 main ()
4231 {
4232 return f != _doprnt;
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext conftest$ac_exeext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239 (eval $ac_link) 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_func__doprnt=yes
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 ac_cv_func__doprnt=no
4265 fi
4266 rm -f conftest.err conftest.$ac_objext \
4267 conftest$ac_exeext conftest.$ac_ext
4268 fi
4269 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4270 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4271 if test $ac_cv_func__doprnt = yes; then
4272
4273 cat >>confdefs.h <<\_ACEOF
4274 #define HAVE_DOPRNT 1
4275 _ACEOF
4276
4277 fi
4278
4279 fi
4280 done
4281
4282
4283
4284
4285
4286
4287
4288 for ac_func in gettimeofday regcomp strdup strtol getopt_long_only
4289 do
4290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4291 echo "$as_me:$LINENO: checking for $ac_func" >&5
4292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_var+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4304 #define $ac_func innocuous_$ac_func
4305
4306 /* System header to define __stub macros and hopefully few prototypes,
4307 which can conflict with char $ac_func (); below.
4308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 <limits.h> exists even on freestanding compilers. */
4310
4311 #ifdef __STDC__
4312 # include <limits.h>
4313 #else
4314 # include <assert.h>
4315 #endif
4316
4317 #undef $ac_func
4318
4319 /* Override any gcc2 internal prototype to avoid an error. */
4320 #ifdef __cplusplus
4321 extern "C"
4322 {
4323 #endif
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326 char $ac_func ();
4327 /* The GNU C library defines this for functions which it implements
4328 to always fail with ENOSYS. Some functions are actually named
4329 something starting with __ and the normal name is an alias. */
4330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4331 choke me
4332 #else
4333 char (*f) () = $ac_func;
4334 #endif
4335 #ifdef __cplusplus
4336 }
4337 #endif
4338
4339 int
4340 main ()
4341 {
4342 return f != $ac_func;
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest.$ac_objext conftest$ac_exeext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag"
4357 || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 eval "$as_ac_var=yes"
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 eval "$as_ac_var=no"
4375 fi
4376 rm -f conftest.err conftest.$ac_objext \
4377 conftest$ac_exeext conftest.$ac_ext
4378 fi
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4381 if test `eval echo '${'$as_ac_var'}'` = yes; then
4382 cat >>confdefs.h <<_ACEOF
4383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4384 _ACEOF
4385
4386 fi
4387 done
4388
4389
4390
4391 echo "$as_me:$LINENO: checking that regex functions are available" >&5
4392 echo $ECHO_N "checking that regex functions are available... $ECHO_C" >&6
4393 if [ "x$ac_cv_func_regcomp" = "$Good" ]
4394 then
4395 echo "$as_me:$LINENO: result: yes" >&5
4396 echo "${ECHO_T}yes" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4400 { { echo "$as_me:$LINENO: error: regex functions not found, imwheel really needs these!" >&5
4401 echo "$as_me: error: regex functions not found, imwheel really needs these!" >&2;}
4402 { (exit 1); exit 1; }; }
4403 fi
4404
4405
4406 echo "$as_me:$LINENO: checking where the pid file goes" >&5
4407 echo $ECHO_N "checking where the pid file goes... $ECHO_C" >&6
4408
4409 # Check whether --with-pid-dir or --without-pid-dir was given.
4410 if test "${with_pid_dir+set}" = set; then
4411 withval="$with_pid_dir"
4412 if [ "x$withval" != "x" ]
4413 then
4414 PIDDIR="$withval"
4415 else
4416 { { echo "$as_me:$LINENO: error: bad dir supplied for --with-pid-dir" >&5
4417 echo "$as_me: error: bad dir supplied for --with-pid-dir" >&2;}
4418 { (exit 1); exit 1; }; }
4419 fi
4420 else
4421 PIDDIR="/tmp"
4422 fi;
4423 echo "$as_me:$LINENO: result: $PIDDIR" >&5
4424 echo "${ECHO_T}$PIDDIR" >&6
4425
4426 cat >>confdefs.h <<_ACEOF
4427 #define PIDDIR "$PIDDIR"
4428 _ACEOF
4429
4430
4431 # Check whether --enable-suid or --disable-suid was given.
4432 if test "${enable_suid+set}" = set; then
4433 enableval="$enable_suid"
4434 case "$enableval" in
4435 yes) suid=root ;;
4436 no) suid= ;;
4437 *) if [ "x$enableval" = x ]
4438 then
4439 suid="root"
4440 else
4441 suid="$enableval"
4442 fi;;
4443 esac
4444 else
4445 suid=
4446 fi;
4447 echo "$as_me:$LINENO: checking if we suid imwheel at install" >&5
4448 echo $ECHO_N "checking if we suid imwheel at install... $ECHO_C" >&6
4449 if [ "x$suid" = "x" ]
4450 then
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4453 else
4454 echo "$as_me:$LINENO: result: yes, $suid" >&5
4455 echo "${ECHO_T}yes, $suid" >&6
4456 fi
4457
4458
4459
4460 if test "x$suid" != x; then
4461 SUID_TRUE=
4462 SUID_FALSE='#'
4463 else
4464 SUID_TRUE='#'
4465 SUID_FALSE=
4466 fi
4467
4468
4469 getopt_dist=
4470 echo "$as_me:$LINENO: checking if we use the included getopts" >&5
4471 echo $ECHO_N "checking if we use the included getopts... $ECHO_C" >&6
4472
4473 # Check whether --with-getopt or --without-getopt was given.
4474 if test "${with_getopt+set}" = set; then
4475 withval="$with_getopt"
4476 case "$withval" in
4477 yes) getopt=getopt ;;
4478 no) getopt= ;;
4479 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-getopt" >&5
4480 echo "$as_me: error: bad value $withval for --with-getopt" >&2;}
4481 { (exit 1); exit 1; }; } ;;
4482 esac
4483 else
4484 getopt=
4485 fi;
4486 if [ "x$ac_cv_func_getopt_long_only" != "$Good" -o "x$ac_cv_header_getopt_h" != "$Good" ]
4487 then
4488 getopt=getopt
4489 echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6
4491 else
4492 if [ "x$getopt" = "xgetopt" ]
4493 then
4494 echo "$as_me:$LINENO: result: forced" >&5
4495 echo "${ECHO_T}forced" >&6
4496 else
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 getopt_dist=getopt
4500 fi
4501 fi
4502
4503 if [ "x$getopt" = "xgetopt" ]
4504 then
4505 GETOPT_LIBS="-L$srcdir/getopt -lgetopt"
4506 GETOPT_INCS="-I$srcdir/getopt"
4507 else
4508 GETOPT_LIBS=
4509 GETOPT_INCS=
4510 fi
4511
4512
4513
4514
4515
4516 echo "$as_me:$LINENO: checking if we build mdetect" >&5
4517 echo $ECHO_N "checking if we build mdetect... $ECHO_C" >&6
4518 # Check whether --enable-mdetect or --disable-mdetect was given.
4519 if test "${enable_mdetect+set}" = set; then
4520 enableval="$enable_mdetect"
4521 case "$enableval" in
4522 yes) mdetect=mdetect ;;
4523 no) mdetect= ;;
4524 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mdetect" >&5
4525 echo "$as_me: error: bad value $enableval for --enable-mdetect" >&2;}
4526 { (exit 1); exit 1; }; } ;;
4527 esac
4528 mdetect_dist=
4529 else
4530 mdetect=
4531 mdetect_dist=mdetect
4532
4533 fi;
4534 if [ "x$mdetect" = "xmdetect" ]
4535 then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544
4545
4546 echo "$as_me:$LINENO: checking if we build mdump" >&5
4547 echo $ECHO_N "checking if we build mdump... $ECHO_C" >&6
4548 # Check whether --enable-mdump or --disable-mdump was given.
4549 if test "${enable_mdump+set}" = set; then
4550 enableval="$enable_mdump"
4551 case "$enableval" in
4552 yes) mdump=mdump ;;
4553 no) mdump= ;;
4554 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mdump" >&5
4555 echo "$as_me: error: bad value $enableval for --enable-mdump" >&2;}
4556 { (exit 1); exit 1; }; } ;;
4557 esac
4558 mdump_dist=
4559 else
4560 mdump=
4561 mdump_dist=mdump.c
4562 fi;
4563 if [ "x$mdump" = "xmdump" ]
4564 then
4565 echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4570 fi
4571
4572
4573
4574
4575 EXTRAS="setimps2 setmmplus getmdt setps2 setps2rate"
4576 EXTRAS_SRC="setimps2.c setmmplus.c getmdt.c setps2.c setps2rate.c"
4577 echo "$as_me:$LINENO: checking if we build extras" >&5
4578 echo $ECHO_N "checking if we build extras... $ECHO_C" >&6
4579 # Check whether --enable-extras or --disable-extras was given.
4580 if test "${enable_extras+set}" = set; then
4581 enableval="$enable_extras"
4582 case "$enableval" in
4583 yes) extras=yes ;;
4584 no) extras= ;;
4585 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-extras" >&5
4586 echo "$as_me: error: bad value $enableval for --enable-extras" >&2;}
4587 { (exit 1); exit 1; }; } ;;
4588 esac
4589 else
4590 extras=
4591 fi;
4592 if [ "x$extras" = "$Good" ]
4593 then
4594 echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4596 extras="$EXTRAS"
4597 extras_dist=
4598 else
4599 echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4601 extras_dist="$EXTRAS_SRC"
4602 fi
4603
4604
4605
4606
4607 NO_GPM_DOC=
4608 GPM_DIR="gpm-1.19.3"
4609
4610 as_ac_File=`echo "ac_cv_file_$GPM_DIR/gpm.c" | $as_tr_sh`
4611 echo "$as_me:$LINENO: checking for $GPM_DIR/gpm.c" >&5
4612 echo $ECHO_N "checking for $GPM_DIR/gpm.c... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_File+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 test "$cross_compiling" = yes &&
4617 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4618 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4619 { (exit 1); exit 1; }; }
4620 if test -r "$GPM_DIR/gpm.c"; then
4621 eval "$as_ac_File=yes"
4622 else
4623 eval "$as_ac_File=no"
4624 fi
4625 fi
4626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4627 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4628 if test `eval echo '${'$as_ac_File'}'` = yes; then
4629 HAVE_GPM_SRC=yes
4630 else
4631 HAVE_GPM_SRC=no
4632 fi
4633
4634
4635 echo "$as_me:$LINENO: checking if we build gpm-imwheel" >&5
4636 echo $ECHO_N "checking if we build gpm-imwheel... $ECHO_C" >&6
4637 gpm_enabled=no
4638 gpm_doc=no
4639 gpm_imwheel=$GPM_DIR
4640 # Check whether --enable-gpm or --disable-gpm was given.
4641 if test "${enable_gpm+set}" = set; then
4642 enableval="$enable_gpm"
4643 case "$enableval" in
4644 yes) gpm_imwheel="$GPM_DIR"
4645 gpm_enabled=yes ;;
4646 no) gpm_imwheel= ;;
4647 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gpm" >&5
4648 echo "$as_me: error: bad value $enableval for --enable-gpm" >&2;}
4649 { (exit 1); exit 1; }; } ;;
4650 esac
4651 else
4652 gpm_imwheel=
4653 fi;
4654 # Check whether --enable-gpm_doc or --disable-gpm_doc was given.
4655 if test "${enable_gpm_doc+set}" = set; then
4656 enableval="$enable_gpm_doc"
4657 case "$enableval" in
4658 yes) no_gpm_doc=true ;;
4659 no) no_gpm_doc=false ;;
4660 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gpm-doc" >&5
4661 echo "$as_me: error: bad value $enableval for --enable-gpm-doc" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663 esac
4664 else
4665 no_gpm_doc=true
4666 fi;
4667 if [ "x$HAVE_GPM_SRC" = "$Good" ]
4668 then
4669 if [ "x$gpm_imwheel" = "x$GPM_DIR" ]
4670 then
4671 echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6
4673
4674
4675 subdirs="$subdirs gpm-1.19.3"
4676
4677
4678 cat >>confdefs.h <<_ACEOF
4679 #define HAVE_GPM_SRC 1
4680 _ACEOF
4681
4682
4683
4684 if $no_gpm_doc; then
4685 NO_GPM_DOC_TRUE=
4686 NO_GPM_DOC_FALSE='#'
4687 else
4688 NO_GPM_DOC_TRUE='#'
4689 NO_GPM_DOC_FALSE=
4690 fi
4691
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695
4696
4697 if false; then
4698 NO_GPM_DOC_TRUE=
4699 NO_GPM_DOC_FALSE='#'
4700 else
4701 NO_GPM_DOC_TRUE='#'
4702 NO_GPM_DOC_FALSE=
4703 fi
4704
4705 fi
4706 else
4707 gpm_imwheel=
4708 if [ "x$gpm_enabled" = "xyes" ]
4709 then
4710 echo "$as_me:$LINENO: result: unable" >&5
4711 echo "${ECHO_T}unable" >&6
4712
4713
4714 if false; then
4715 NO_GPM_DOC_TRUE=
4716 NO_GPM_DOC_FALSE='#'
4717 else
4718 NO_GPM_DOC_TRUE='#'
4719 NO_GPM_DOC_FALSE=
4720 fi
4721
4722 { echo "$as_me:$LINENO: WARNING: $GPM_DIR building disabled, source not present!" >&5
4723 echo "$as_me: WARNING: $GPM_DIR building disabled, source not present!" >&2;}
4724 Warnings=`expr $Warnings + 1`
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4728
4729
4730 if false; then
4731 NO_GPM_DOC_TRUE=
4732 NO_GPM_DOC_FALSE='#'
4733 else
4734 NO_GPM_DOC_TRUE='#'
4735 NO_GPM_DOC_FALSE=
4736 fi
4737
4738 fi
4739 fi
4740 gpm_dist="$GPM_DIR"
4741
4742
4743
4744
4745 echo "$as_me:$LINENO: checking for X" >&5
4746 echo $ECHO_N "checking for X... $ECHO_C" >&6
4747
4748
4749 # Check whether --with-x or --without-x was given.
4750 if test "${with_x+set}" = set; then
4751 withval="$with_x"
4752
4753 fi;
4754 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4755 if test "x$with_x" = xno; then
4756 # The user explicitly disabled X.
4757 have_x=disabled
4758 else
4759 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4760 # Both variables are already set.
4761 have_x=yes
4762 else
4763 if test "${ac_cv_have_x+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 # One or both of the vars are not set, and there is no cached value.
4767 ac_x_includes=no ac_x_libraries=no
4768 rm -fr conftest.dir
4769 if mkdir conftest.dir; then
4770 cd conftest.dir
4771 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4772 cat >Imakefile <<'_ACEOF'
4773 acfindx:
4774 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4775 _ACEOF
4776 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4778 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4779 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4780 for ac_extension in a so sl; do
4781 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4782 test -f $ac_im_libdir/libX11.$ac_extension; then
4783 ac_im_usrlibdir=$ac_im_libdir; break
4784 fi
4785 done
4786 # Screen out bogus values from the imake configuration. They are
4787 # bogus both because they are the default anyway, and because
4788 # using them would break gcc on systems where it needs fixed includes.
4789 case $ac_im_incroot in
4790 /usr/include) ;;
4791 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4792 esac
4793 case $ac_im_usrlibdir in
4794 /usr/lib | /lib) ;;
4795 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4796 esac
4797 fi
4798 cd ..
4799 rm -fr conftest.dir
4800 fi
4801
4802 # Standard set of common directories for X headers.
4803 # Check X11 before X11Rn because it is often a symlink to the current release.
4804 ac_x_header_dirs='
4805 /usr/X11/include
4806 /usr/X11R6/include
4807 /usr/X11R5/include
4808 /usr/X11R4/include
4809
4810 /usr/include/X11
4811 /usr/include/X11R6
4812 /usr/include/X11R5
4813 /usr/include/X11R4
4814
4815 /usr/local/X11/include
4816 /usr/local/X11R6/include
4817 /usr/local/X11R5/include
4818 /usr/local/X11R4/include
4819
4820 /usr/local/include/X11
4821 /usr/local/include/X11R6
4822 /usr/local/include/X11R5
4823 /usr/local/include/X11R4
4824
4825 /usr/X386/include
4826 /usr/x386/include
4827 /usr/XFree86/include/X11
4828
4829 /usr/include
4830 /usr/local/include
4831 /usr/unsupported/include
4832 /usr/athena/include
4833 /usr/local/x11r5/include
4834 /usr/lpp/Xamples/include
4835
4836 /usr/openwin/include
4837 /usr/openwin/share/include'
4838
4839 if test "$ac_x_includes" = no; then
4840 # Guess where to find include files, by looking for Intrinsic.h.
4841 # First, try using that file with no special directory specified.
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <X11/Intrinsic.h>
4849 _ACEOF
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_c_preproc_warn_flag
4860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4861 else
4862 ac_cpp_err=
4863 fi
4864 else
4865 ac_cpp_err=yes
4866 fi
4867 if test -z "$ac_cpp_err"; then
4868 # We can compile using X headers with no special include directory.
4869 ac_x_includes=
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 for ac_dir in $ac_x_header_dirs; do
4875 if test -r "$ac_dir/X11/Intrinsic.h"; then
4876 ac_x_includes=$ac_dir
4877 break
4878 fi
4879 done
4880 fi
4881 rm -f conftest.err conftest.$ac_ext
4882 fi # $ac_x_includes = no
4883
4884 if test "$ac_x_libraries" = no; then
4885 # Check for the libraries.
4886 # See if we find them without any special options.
4887 # Don't add to $LIBS permanently.
4888 ac_save_LIBS=$LIBS
4889 LIBS="-lXt $LIBS"
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <X11/Intrinsic.h>
4897 int
4898 main ()
4899 {
4900 XtMalloc (0)
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 LIBS=$ac_save_LIBS
4928 # We can link X programs with no special library path.
4929 ac_x_libraries=
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 LIBS=$ac_save_LIBS
4935 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4936 do
4937 # Don't even attempt the hair of trying to link an X program!
4938 for ac_extension in a so sl; do
4939 if test -r $ac_dir/libXt.$ac_extension; then
4940 ac_x_libraries=$ac_dir
4941 break 2
4942 fi
4943 done
4944 done
4945 fi
4946 rm -f conftest.err conftest.$ac_objext \
4947 conftest$ac_exeext conftest.$ac_ext
4948 fi # $ac_x_libraries = no
4949
4950 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4951 # Didn't find X anywhere. Cache the known absence of X.
4952 ac_cv_have_x="have_x=no"
4953 else
4954 # Record where we found X for the cache.
4955 ac_cv_have_x="have_x=yes \
4956 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4957 fi
4958 fi
4959
4960 fi
4961 eval "$ac_cv_have_x"
4962 fi # $with_x != no
4963
4964 if test "$have_x" != yes; then
4965 echo "$as_me:$LINENO: result: $have_x" >&5
4966 echo "${ECHO_T}$have_x" >&6
4967 no_x=yes
4968 else
4969 # If each of the values was on the command line, it overrides each guess.
4970 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4971 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4972 # Update the cache value to reflect the command line values.
4973 ac_cv_have_x="have_x=yes \
4974 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4975 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4976 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4977 fi
4978
4979 if test "$no_x" = yes; then
4980 # Not all programs may use this symbol, but it does not hurt to define it.
4981
4982 cat >>confdefs.h <<\_ACEOF
4983 #define X_DISPLAY_MISSING 1
4984 _ACEOF
4985
4986 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4987 else
4988 if test -n "$x_includes"; then
4989 X_CFLAGS="$X_CFLAGS -I$x_includes"
4990 fi
4991
4992 # It would also be nice to do this for all -L options, not just this one.
4993 if test -n "$x_libraries"; then
4994 X_LIBS="$X_LIBS -L$x_libraries"
4995 # For Solaris; some versions of Sun CC require a space after -R and
4996 # others require no space. Words are not sufficient . . . .
4997 case `(uname -sr) 2>/dev/null` in
4998 "SunOS 5"*)
4999 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5000 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5001 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_R_nospace=yes
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 ac_R_nospace=no
5045 fi
5046 rm -f conftest.err conftest.$ac_objext \
5047 conftest$ac_exeext conftest.$ac_ext
5048 if test $ac_R_nospace = yes; then
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 X_LIBS="$X_LIBS -R$x_libraries"
5052 else
5053 LIBS="$ac_xsave_LIBS -R $x_libraries"
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060
5061 int
5062 main ()
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag"
5079 || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_R_space=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_R_space=no
5097 fi
5098 rm -f conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100 if test $ac_R_space = yes; then
5101 echo "$as_me:$LINENO: result: yes" >&5
5102 echo "${ECHO_T}yes" >&6
5103 X_LIBS="$X_LIBS -R $x_libraries"
5104 else
5105 echo "$as_me:$LINENO: result: neither works" >&5
5106 echo "${ECHO_T}neither works" >&6
5107 fi
5108 fi
5109 LIBS=$ac_xsave_LIBS
5110 esac
5111 fi
5112
5113 # Check for system-dependent libraries X programs must link with.
5114 # Do this before checking for the system-independent R6 libraries
5115 # (-lICE), since we may need -lsocket or whatever for X linking.
5116
5117 if test "$ISC" = yes; then
5118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5119 else
5120 # Martyn Johnson says this is needed for Ultrix, if the X
5121 # libraries were built with DECnet support. And Karl Berry says
5122 # the Alpha needs dnet_stub (dnet does not exist).
5123 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130
5131 /* Override any gcc2 internal prototype to avoid an error. */
5132 #ifdef __cplusplus
5133 extern "C"
5134 #endif
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5137 char XOpenDisplay ();
5138 int
5139 main ()
5140 {
5141 XOpenDisplay ();
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_objext conftest$ac_exeext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148 (eval $ac_link) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest$ac_exeext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 :
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5174 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5175 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 ac_check_lib_save_LIBS=$LIBS
5179 LIBS="-ldnet $LIBS"
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186
5187 /* Override any gcc2 internal prototype to avoid an error. */
5188 #ifdef __cplusplus
5189 extern "C"
5190 #endif
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5193 char dnet_ntoa ();
5194 int
5195 main ()
5196 {
5197 dnet_ntoa ();
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 rm -f conftest.$ac_objext conftest$ac_exeext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5204 (eval $ac_link) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_lib_dnet_dnet_ntoa=yes
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229 ac_cv_lib_dnet_dnet_ntoa=no
5230 fi
5231 rm -f conftest.err conftest.$ac_objext \
5232 conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5236 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5237 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5238 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5239 fi
5240
5241 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5242 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5243 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5244 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 ac_check_lib_save_LIBS=$LIBS
5248 LIBS="-ldnet_stub $LIBS"
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262 char dnet_ntoa ();
5263 int
5264 main ()
5265 {
5266 dnet_ntoa ();
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest$ac_exeext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 ac_cv_lib_dnet_stub_dnet_ntoa=no
5299 fi
5300 rm -f conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5305 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5306 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5307 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5308 fi
5309
5310 fi
5311 fi
5312 rm -f conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 LIBS="$ac_xsave_LIBS"
5315
5316 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5317 # to get the SysV transport functions.
5318 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5319 # needs -lnsl.
5320 # The nsl library prevents programs from opening the X display
5321 # on Irix 5.2, according to T.E. Dickey.
5322 # The functions gethostbyname, getservbyname, and inet_addr are
5323 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5324 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5325 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5326 if test "${ac_cv_func_gethostbyname+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5337 #define gethostbyname innocuous_gethostbyname
5338
5339 /* System header to define __stub macros and hopefully few prototypes,
5340 which can conflict with char gethostbyname (); below.
5341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342 <limits.h> exists even on freestanding compilers. */
5343
5344 #ifdef __STDC__
5345 # include <limits.h>
5346 #else
5347 # include <assert.h>
5348 #endif
5349
5350 #undef gethostbyname
5351
5352 /* Override any gcc2 internal prototype to avoid an error. */
5353 #ifdef __cplusplus
5354 extern "C"
5355 {
5356 #endif
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359 char gethostbyname ();
5360 /* The GNU C library defines this for functions which it implements
5361 to always fail with ENOSYS. Some functions are actually named
5362 something starting with __ and the normal name is an alias. */
5363 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5364 choke me
5365 #else
5366 char (*f) () = gethostbyname;
5367 #endif
5368 #ifdef __cplusplus
5369 }
5370 #endif
5371
5372 int
5373 main ()
5374 {
5375 return f != gethostbyname;
5376 ;
5377 return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382 (eval $ac_link) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_c_werror_flag"
5390 || test ! -s conftest.err'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_cv_func_gethostbyname=yes
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 ac_cv_func_gethostbyname=no
5408 fi
5409 rm -f conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 fi
5412 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5413 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5414
5415 if test $ac_cv_func_gethostbyname = no; then
5416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lnsl $LIBS"
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 #ifdef __cplusplus
5432 extern "C"
5433 #endif
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5436 char gethostbyname ();
5437 int
5438 main ()
5439 {
5440 gethostbyname ();
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } &&
5454 { ac_try='test -z "$ac_c_werror_flag"
5455 || test ! -s conftest.err'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; } &&
5461 { ac_try='test -s conftest$ac_exeext'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
5467 ac_cv_lib_nsl_gethostbyname=yes
5468 else
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_cv_lib_nsl_gethostbyname=no
5473 fi
5474 rm -f conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5477 fi
5478 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5480 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5481 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5482 fi
5483
5484 if test $ac_cv_lib_nsl_gethostbyname = no; then
5485 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5486 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5487 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-lbsd $LIBS"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 #ifdef __cplusplus
5501 extern "C"
5502 #endif
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5505 char gethostbyname ();
5506 int
5507 main ()
5508 {
5509 gethostbyname ();
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext conftest$ac_exeext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516 (eval $ac_link) 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_bsd_gethostbyname=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_cv_lib_bsd_gethostbyname=no
5542 fi
5543 rm -f conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5546 fi
5547 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5551 fi
5552
5553 fi
5554 fi
5555
5556 # [email protected] says without -lsocket,
5557 # socket/setsockopt and other routines are undefined under SCO ODT
5558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5559 # on later versions), says Simon Leinen: it contains gethostby*
5560 # variants that don't use the name server (or something). -lsocket
5561 # must be given before -lnsl if both are needed. We assume that
5562 # if connect needs -lnsl, so does gethostbyname.
5563 echo "$as_me:$LINENO: checking for connect" >&5
5564 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5565 if test "${ac_cv_func_connect+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5576 #define connect innocuous_connect
5577
5578 /* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char connect (); below.
5580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5581 <limits.h> exists even on freestanding compilers. */
5582
5583 #ifdef __STDC__
5584 # include <limits.h>
5585 #else
5586 # include <assert.h>
5587 #endif
5588
5589 #undef connect
5590
5591 /* Override any gcc2 internal prototype to avoid an error. */
5592 #ifdef __cplusplus
5593 extern "C"
5594 {
5595 #endif
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5598 char connect ();
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_connect) || defined (__stub___connect)
5603 choke me
5604 #else
5605 char (*f) () = connect;
5606 #endif
5607 #ifdef __cplusplus
5608 }
5609 #endif
5610
5611 int
5612 main ()
5613 {
5614 return f != connect;
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext conftest$ac_exeext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -z "$ac_c_werror_flag"
5629 || test ! -s conftest.err'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; } &&
5635 { ac_try='test -s conftest$ac_exeext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_cv_func_connect=yes
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 ac_cv_func_connect=no
5647 fi
5648 rm -f conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650 fi
5651 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5652 echo "${ECHO_T}$ac_cv_func_connect" >&6
5653
5654 if test $ac_cv_func_connect = no; then
5655 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5656 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5657 if test "${ac_cv_lib_socket_connect+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 ac_check_lib_save_LIBS=$LIBS
5661 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 #ifdef __cplusplus
5671 extern "C"
5672 #endif
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5675 char connect ();
5676 int
5677 main ()
5678 {
5679 connect ();
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext conftest$ac_exeext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5686 (eval $ac_link) 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_lib_socket_connect=yes
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_cv_lib_socket_connect=no
5712 fi
5713 rm -f conftest.err conftest.$ac_objext \
5714 conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5716 fi
5717 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5718 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5719 if test $ac_cv_lib_socket_connect = yes; then
5720 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5721 fi
5722
5723 fi
5724
5725 # Guillermo Gomez says -lposix is necessary on A/UX.
5726 echo "$as_me:$LINENO: checking for remove" >&5
5727 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5728 if test "${ac_cv_func_remove+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739 #define remove innocuous_remove
5740
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char remove (); below.
5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 <limits.h> exists even on freestanding compilers. */
5745
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5751
5752 #undef remove
5753
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 {
5758 #endif
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char remove ();
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_remove) || defined (__stub___remove)
5766 choke me
5767 #else
5768 char (*f) () = remove;
5769 #endif
5770 #ifdef __cplusplus
5771 }
5772 #endif
5773
5774 int
5775 main ()
5776 {
5777 return f != remove;
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest$ac_exeext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_func_remove=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_cv_func_remove=no
5810 fi
5811 rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5815 echo "${ECHO_T}$ac_cv_func_remove" >&6
5816
5817 if test $ac_cv_func_remove = no; then
5818 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5819 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5820 if test "${ac_cv_lib_posix_remove+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-lposix $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831
5832 /* Override any gcc2 internal prototype to avoid an error. */
5833 #ifdef __cplusplus
5834 extern "C"
5835 #endif
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5838 char remove ();
5839 int
5840 main ()
5841 {
5842 remove ();
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_lib_posix_remove=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_cv_lib_posix_remove=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 LIBS=$ac_check_lib_save_LIBS
5879 fi
5880 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5881 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5882 if test $ac_cv_lib_posix_remove = yes; then
5883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5884 fi
5885
5886 fi
5887
5888 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5889 echo "$as_me:$LINENO: checking for shmat" >&5
5890 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5891 if test "${ac_cv_func_shmat+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5902 #define shmat innocuous_shmat
5903
5904 /* System header to define __stub macros and hopefully few prototypes,
5905 which can conflict with char shmat (); below.
5906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5907 <limits.h> exists even on freestanding compilers. */
5908
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914
5915 #undef shmat
5916
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 #ifdef __cplusplus
5919 extern "C"
5920 {
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5924 char shmat ();
5925 /* The GNU C library defines this for functions which it implements
5926 to always fail with ENOSYS. Some functions are actually named
5927 something starting with __ and the normal name is an alias. */
5928 #if defined (__stub_shmat) || defined (__stub___shmat)
5929 choke me
5930 #else
5931 char (*f) () = shmat;
5932 #endif
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936
5937 int
5938 main ()
5939 {
5940 return f != shmat;
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_func_shmat=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 ac_cv_func_shmat=no
5973 fi
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5978 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5979
5980 if test $ac_cv_func_shmat = no; then
5981 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5982 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5983 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 ac_check_lib_save_LIBS=$LIBS
5987 LIBS="-lipc $LIBS"
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994
5995 /* Override any gcc2 internal prototype to avoid an error. */
5996 #ifdef __cplusplus
5997 extern "C"
5998 #endif
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6001 char shmat ();
6002 int
6003 main ()
6004 {
6005 shmat ();
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_lib_ipc_shmat=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cv_lib_ipc_shmat=no
6038 fi
6039 rm -f conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6044 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6045 if test $ac_cv_lib_ipc_shmat = yes; then
6046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6047 fi
6048
6049 fi
6050 fi
6051
6052 # Check for libraries that X11R6 Xt/Xaw programs need.
6053 ac_save_LDFLAGS=$LDFLAGS
6054 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6055 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6056 # check for ICE first), but we must link in the order -lSM -lICE or
6057 # we get undefined symbols. So assume we have SM if we have ICE.
6058 # These have to be linked with before -lX11, unlike the other
6059 # libraries we check for below, so use a different variable.
6060 # John Interrante, Karl Berry
6061 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6062 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6063 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6081 char IceConnectionNumber ();
6082 int
6083 main ()
6084 {
6085 IceConnectionNumber ();
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest$ac_exeext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_lib_ICE_IceConnectionNumber=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_lib_ICE_IceConnectionNumber=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6124 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6125 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6126 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6127 fi
6128
6129 LDFLAGS=$ac_save_LDFLAGS
6130
6131 fi
6132
6133
6134
6135
6136
6137 LIBS_saved="$LIBS"
6138 LIBS=
6139
6140 echo "$as_me:$LINENO: checking for XCreateWindow in -lX11" >&5
6141 echo $ECHO_N "checking for XCreateWindow in -lX11... $ECHO_C" >&6
6142 if test "${ac_cv_lib_X11_XCreateWindow+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 ac_check_lib_save_LIBS=$LIBS
6146 LIBS="-lX11 $LIBS_saved $X_LIBS $LIBS"
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153
6154 /* Override any gcc2 internal prototype to avoid an error. */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char XCreateWindow ();
6161 int
6162 main ()
6163 {
6164 XCreateWindow ();
6165 ;
6166 return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_c_werror_flag"
6179 || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_lib_X11_XCreateWindow=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_cv_lib_X11_XCreateWindow=no
6197 fi
6198 rm -f conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 LIBS=$ac_check_lib_save_LIBS
6201 fi
6202 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreateWindow" >&5
6203 echo "${ECHO_T}$ac_cv_lib_X11_XCreateWindow" >&6
6204 if test $ac_cv_lib_X11_XCreateWindow = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_LIBX11 1
6207 _ACEOF
6208
6209 LIBS="-lX11 $LIBS"
6210
6211 else
6212
6213 { { echo "$as_me:$LINENO: error: IMWheel depends on the X11 libraries!" >&5
6214 echo "$as_me: error: IMWheel depends on the X11 libraries!" >&2;}
6215 { (exit 1); exit 1; }; }
6216
6217 fi
6218
6219
6220 echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
6221 echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
6222 if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lXext $LIBS_saved $X_LIBS $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240 char XextAddDisplay ();
6241 int
6242 main ()
6243 {
6244 XextAddDisplay ();
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_lib_Xext_XextAddDisplay=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 ac_cv_lib_Xext_XextAddDisplay=no
6277 fi
6278 rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 LIBS=$ac_check_lib_save_LIBS
6281 fi
6282 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
6283 echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
6284 if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_LIBXEXT 1
6287 _ACEOF
6288
6289 LIBS="-lXext $LIBS"
6290
6291 fi
6292
6293
6294 echo "$as_me:$LINENO: checking for XtFree in -lXt" >&5
6295 echo $ECHO_N "checking for XtFree in -lXt... $ECHO_C" >&6
6296 if test "${ac_cv_lib_Xt_XtFree+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 ac_check_lib_save_LIBS=$LIBS
6300 LIBS="-lXt $LIBS_saved $X_LIBS $LIBS"
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 #ifdef __cplusplus
6310 extern "C"
6311 #endif
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char XtFree ();
6315 int
6316 main ()
6317 {
6318 XtFree ();
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_lib_Xt_XtFree=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_cv_lib_Xt_XtFree=no
6351 fi
6352 rm -f conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354 LIBS=$ac_check_lib_save_LIBS
6355 fi
6356 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtFree" >&5
6357 echo "${ECHO_T}$ac_cv_lib_Xt_XtFree" >&6
6358 if test $ac_cv_lib_Xt_XtFree = yes; then
6359 cat >>confdefs.h <<_ACEOF
6360 #define HAVE_LIBXT 1
6361 _ACEOF
6362
6363 LIBS="-lXt $LIBS"
6364
6365 fi
6366
6367
6368 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6369 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6370 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 ac_check_lib_save_LIBS=$LIBS
6374 LIBS="-lXmu $LIBS_saved $X_LIBS $LIBS"
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381
6382 /* Override any gcc2 internal prototype to avoid an error. */
6383 #ifdef __cplusplus
6384 extern "C"
6385 #endif
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6388 char XmuInternAtom ();
6389 int
6390 main ()
6391 {
6392 XmuInternAtom ();
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_c_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 ac_cv_lib_Xmu_XmuInternAtom=yes
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 ac_cv_lib_Xmu_XmuInternAtom=no
6425 fi
6426 rm -f conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6428 LIBS=$ac_check_lib_save_LIBS
6429 fi
6430 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6431 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6432 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_LIBXMU 1
6435 _ACEOF
6436
6437 LIBS="-lXmu $LIBS"
6438
6439 fi
6440
6441
6442 echo "$as_me:$LINENO: checking for XTestFakeDeviceKeyEvent in -lXtst" >&5
6443 echo $ECHO_N "checking for XTestFakeDeviceKeyEvent in -lXtst... $ECHO_C" >&6
6444 if test "${ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447 ac_check_lib_save_LIBS=$LIBS
6448 LIBS="-lXtst $LIBS_saved $X_LIBS $LIBS"
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455
6456 /* Override any gcc2 internal prototype to avoid an error. */
6457 #ifdef __cplusplus
6458 extern "C"
6459 #endif
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6462 char XTestFakeDeviceKeyEvent ();
6463 int
6464 main ()
6465 {
6466 XTestFakeDeviceKeyEvent ();
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest$ac_exeext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent=no
6499 fi
6500 rm -f conftest.err conftest.$ac_objext \
6501 conftest$ac_exeext conftest.$ac_ext
6502 LIBS=$ac_check_lib_save_LIBS
6503 fi
6504 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent" >&5
6505 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent" >&6
6506 if test $ac_cv_lib_Xtst_XTestFakeDeviceKeyEvent = yes; then
6507 cat >>confdefs.h <<_ACEOF
6508 #define HAVE_LIBXTST 1
6509 _ACEOF
6510
6511 LIBS="-lXtst $LIBS"
6512
6513 else
6514
6515 { { echo "$as_me:$LINENO: error: IMWheel depends on the XTest extention!" >&5
6516 echo "$as_me: error: IMWheel depends on the XTest extention!" >&2;}
6517 { (exit 1); exit 1; }; }
6518
6519 fi
6520
6521 X_LIBS="$X_LIBS $LIBS"
6522 LIBS="$LIBS_saved"
6523
6524
6525 if [ "$Warnings" != "0" ]
6526 then
6527 echo ""
6528 if [ "$Warnings" != "1" ]
6529 then
6530 echo "You had $Warnings warnings during configure, imwheel may not compile or run."
6531 else
6532 echo "You had a warning during configure, imwheel may not compile or run, or it may"
6533 echo "have an incomplete package built."
6534 fi
6535 echo ""
6536 fi
6537
6538 ac_config_files="$ac_config_files jax/Makefile Makefile mdetect/Makefile getopt/Makefile"
6539 cat >confcache <<\_ACEOF
6540 # This file is a shell script that caches the results of configure
6541 # tests run on this system so they can be shared between configure
6542 # scripts and configure runs, see configure's option --config-cache.
6543 # It is not useful on other systems. If it contains results you don't
6544 # want to keep, you may remove or edit it.
6545 #
6546 # config.status only pays attention to the cache file if you give it
6547 # the --recheck option to rerun configure.
6548 #
6549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6551 # following values.
6552
6553 _ACEOF
6554
6555 # The following way of writing the cache mishandles newlines in values,
6556 # but we know of no workaround that is simple, portable, and efficient.
6557 # So, don't put newlines in cache variables' values.
6558 # Ultrix sh set writes to stderr and can't be redirected directly,
6559 # and sets the high bit in the cache file unless we assign to the vars.
6560 {
6561 (set) 2>&1 |
6562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6563 *ac_space=\ *)
6564 # `set' does not quote correctly, so add quotes (double-quote
6565 # substitution turns \\\\ into \\, and sed turns \\ into \).
6566 sed -n \
6567 "s/'/'\\\\''/g;
6568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6569 ;;
6570 *)
6571 # `set' quotes correctly as required by POSIX, so do not add quotes.
6572 sed -n \
6573 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6574 ;;
6575 esac;
6576 } |
6577 sed '
6578 t clear
6579 : clear
6580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6581 t end
6582 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6583 : end' >>confcache
6584 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6585 if test -w $cache_file; then
6586 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6587 cat confcache >$cache_file
6588 else
6589 echo "not updating unwritable cache $cache_file"
6590 fi
6591 fi
6592 rm -f confcache
6593
6594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6595 # Let make expand exec_prefix.
6596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6597
6598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6600 # trailing colons and then remove the whole line if VPATH becomes empty
6601 # (actually we leave an empty line to preserve line numbers).
6602 if test "x$srcdir" = x.; then
6603 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6604 s/:*\$(srcdir):*/:/;
6605 s/:*\${srcdir}:*/:/;
6606 s/:*@srcdir@:*/:/;
6607 s/^\([^=]*=[ ]*\):*/\1/;
6608 s/:*$//;
6609 s/^[^=]*=[ ]*$//;
6610 }'
6611 fi
6612
6613 DEFS=-DHAVE_CONFIG_H
6614
6615 ac_libobjs=
6616 ac_ltlibobjs=
6617 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6618 # 1. Remove the extension, and $U if already installed.
6619 ac_i=`echo "$ac_i" |
6620 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6621 # 2. Add them.
6622 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6623 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6624 done
6625 LIBOBJS=$ac_libobjs
6626
6627 LTLIBOBJS=$ac_ltlibobjs
6628
6629
6630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6631 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6632 Usually this means the macro was only invoked conditionally." >&5
6633 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6634 Usually this means the macro was only invoked conditionally." >&2;}
6635 { (exit 1); exit 1; }; }
6636 fi
6637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6638 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6639 Usually this means the macro was only invoked conditionally." >&5
6640 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6641 Usually this means the macro was only invoked conditionally." >&2;}
6642 { (exit 1); exit 1; }; }
6643 fi
6644 if test -z "${SUID_TRUE}" && test -z "${SUID_FALSE}"; then
6645 { { echo "$as_me:$LINENO: error: conditional \"SUID\" was never defined.
6646 Usually this means the macro was only invoked conditionally." >&5
6647 echo "$as_me: error: conditional \"SUID\" was never defined.
6648 Usually this means the macro was only invoked conditionally." >&2;}
6649 { (exit 1); exit 1; }; }
6650 fi
6651 if test -z "${NO_GPM_DOC_TRUE}" && test -z "${NO_GPM_DOC_FALSE}"; then
6652 { { echo "$as_me:$LINENO: error: conditional \"NO_GPM_DOC\" was never defined.
6653 Usually this means the macro was only invoked conditionally." >&5
6654 echo "$as_me: error: conditional \"NO_GPM_DOC\" was never defined.
6655 Usually this means the macro was only invoked conditionally." >&2;}
6656 { (exit 1); exit 1; }; }
6657 fi
6658 if test -z "${NO_GPM_DOC_TRUE}" && test -z "${NO_GPM_DOC_FALSE}"; then
6659 { { echo "$as_me:$LINENO: error: conditional \"NO_GPM_DOC\" was never defined.
6660 Usually this means the macro was only invoked conditionally." >&5
6661 echo "$as_me: error: conditional \"NO_GPM_DOC\" was never defined.
6662 Usually this means the macro was only invoked conditionally." >&2;}
6663 { (exit 1); exit 1; }; }
6664 fi
6665 if test -z "${NO_GPM_DOC_TRUE}" && test -z "${NO_GPM_DOC_FALSE}"; then
6666 { { echo "$as_me:$LINENO: error: conditional \"NO_GPM_DOC\" was never defined.
6667 Usually this means the macro was only invoked conditionally." >&5
6668 echo "$as_me: error: conditional \"NO_GPM_DOC\" was never defined.
6669 Usually this means the macro was only invoked conditionally." >&2;}
6670 { (exit 1); exit 1; }; }
6671 fi
6672 if test -z "${NO_GPM_DOC_TRUE}" && test -z "${NO_GPM_DOC_FALSE}"; then
6673 { { echo "$as_me:$LINENO: error: conditional \"NO_GPM_DOC\" was never defined.
6674 Usually this means the macro was only invoked conditionally." >&5
6675 echo "$as_me: error: conditional \"NO_GPM_DOC\" was never defined.
6676 Usually this means the macro was only invoked conditionally." >&2;}
6677 { (exit 1); exit 1; }; }
6678 fi
6679
6680 : ${CONFIG_STATUS=./config.status}
6681 ac_clean_files_save=$ac_clean_files
6682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6683 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6684 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6685 cat >$CONFIG_STATUS <<_ACEOF
6686 #! $SHELL
6687 # Generated by $as_me.
6688 # Run this file to recreate the current configuration.
6689 # Compiler output produced by configure, useful for debugging
6690 # configure, is in config.log if it exists.
6691
6692 debug=false
6693 ac_cs_recheck=false
6694 ac_cs_silent=false
6695 SHELL=\${CONFIG_SHELL-$SHELL}
6696 _ACEOF
6697
6698 cat >>$CONFIG_STATUS <<\_ACEOF
6699 ## --------------------- ##
6700 ## M4sh Initialization. ##
6701 ## --------------------- ##
6702
6703 # Be Bourne compatible
6704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6705 emulate sh
6706 NULLCMD=:
6707 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6708 # is contrary to our usage. Disable this feature.
6709 alias -g '${1+"$@"}'='"$@"'
6710 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6711 set -o posix
6712 fi
6713 DUALCASE=1; export DUALCASE # for MKS sh
6714
6715 # Support unset when possible.
6716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6717 as_unset=unset
6718 else
6719 as_unset=false
6720 fi
6721
6722
6723 # Work around bugs in pre-3.0 UWIN ksh.
6724 $as_unset ENV MAIL MAILPATH
6725 PS1='$ '
6726 PS2='> '
6727 PS4='+ '
6728
6729 # NLS nuisances.
6730 for as_var in \
6731 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6732 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6733 LC_TELEPHONE LC_TIME
6734 do
6735 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6736 eval $as_var=C; export $as_var
6737 else
6738 $as_unset $as_var
6739 fi
6740 done
6741
6742 # Required to use basename.
6743 if expr a : '\(a\)' >/dev/null 2>&1; then
6744 as_expr=expr
6745 else
6746 as_expr=false
6747 fi
6748
6749 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6750 as_basename=basename
6751 else
6752 as_basename=false
6753 fi
6754
6755
6756 # Name of the executable.
6757 as_me=`$as_basename "$0" ||
6758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6759 X"$0" : 'X\(//\)$' \| \
6760 X"$0" : 'X\(/\)$' \| \
6761 . : '\(.\)' 2>/dev/null ||
6762 echo X/"$0" |
6763 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6764 /^X\/\(\/\/\)$/{ s//\1/; q; }
6765 /^X\/\(\/\).*/{ s//\1/; q; }
6766 s/.*/./; q'`
6767
6768
6769 # PATH needs CR, and LINENO needs CR and PATH.
6770 # Avoid depending upon Character Ranges.
6771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6774 as_cr_digits='0123456789'
6775 as_cr_alnum=$as_cr_Letters$as_cr_digits
6776
6777 # The user is always right.
6778 if test "${PATH_SEPARATOR+set}" != set; then
6779 echo "#! /bin/sh" >conf$$.sh
6780 echo "exit 0" >>conf$$.sh
6781 chmod +x conf$$.sh
6782 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6783 PATH_SEPARATOR=';'
6784 else
6785 PATH_SEPARATOR=:
6786 fi
6787 rm -f conf$$.sh
6788 fi
6789
6790
6791 as_lineno_1=$LINENO
6792 as_lineno_2=$LINENO
6793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6794 test "x$as_lineno_1" != "x$as_lineno_2" &&
6795 test "x$as_lineno_3" = "x$as_lineno_2" || {
6796 # Find who we are. Look in the path if we contain no path at all
6797 # relative or not.
6798 case $0 in
6799 *[\\/]* ) as_myself=$0 ;;
6800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6806 done
6807
6808 ;;
6809 esac
6810 # We did not find ourselves, most probably we were run as `sh COMMAND'
6811 # in which case we are not to be found in the path.
6812 if test "x$as_myself" = x; then
6813 as_myself=$0
6814 fi
6815 if test ! -f "$as_myself"; then
6816 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6817 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6818 { (exit 1); exit 1; }; }
6819 fi
6820 case $CONFIG_SHELL in
6821 '')
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for as_base in sh bash ksh sh5; do
6828 case $as_dir in
6829 /*)
6830 if ("$as_dir/$as_base" -c '
6831 as_lineno_1=$LINENO
6832 as_lineno_2=$LINENO
6833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6834 test "x$as_lineno_1" != "x$as_lineno_2" &&
6835 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6836 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6837 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6838 CONFIG_SHELL=$as_dir/$as_base
6839 export CONFIG_SHELL
6840 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6841 fi;;
6842 esac
6843 done
6844 done
6845 ;;
6846 esac
6847
6848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6849 # uniformly replaced by the line number. The first 'sed' inserts a
6850 # line-number line before each line; the second 'sed' does the real
6851 # work. The second script uses 'N' to pair each line-number line
6852 # with the numbered line, and appends trailing '-' during
6853 # substitution so that $LINENO is not a special case at line end.
6854 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6855 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6856 sed '=' <$as_myself |
6857 sed '
6858 N
6859 s,$,-,
6860 : loop
6861 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6862 t loop
6863 s,-$,,
6864 s,^['$as_cr_digits']*\n,,
6865 ' >$as_me.lineno &&
6866 chmod +x $as_me.lineno ||
6867 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6868 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6869 { (exit 1); exit 1; }; }
6870
6871 # Don't try to exec as it changes $[0], causing all sort of problems
6872 # (the dirname of $[0] is not the place where we might find the
6873 # original and so on. Autoconf is especially sensible to this).
6874 . ./$as_me.lineno
6875 # Exit status is that of the last command.
6876 exit
6877 }
6878
6879
6880 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6881 *c*,-n*) ECHO_N= ECHO_C='
6882 ' ECHO_T=' ' ;;
6883 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6884 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6885 esac
6886
6887 if expr a : '\(a\)' >/dev/null 2>&1; then
6888 as_expr=expr
6889 else
6890 as_expr=false
6891 fi
6892
6893 rm -f conf$$ conf$$.exe conf$$.file
6894 echo >conf$$.file
6895 if ln -s conf$$.file conf$$ 2>/dev/null; then
6896 # We could just check for DJGPP; but this test a) works b) is more generic
6897 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6898 if test -f conf$$.exe; then
6899 # Don't use ln at all; we don't have any links
6900 as_ln_s='cp -p'
6901 else
6902 as_ln_s='ln -s'
6903 fi
6904 elif ln conf$$.file conf$$ 2>/dev/null; then
6905 as_ln_s=ln
6906 else
6907 as_ln_s='cp -p'
6908 fi
6909 rm -f conf$$ conf$$.exe conf$$.file
6910
6911 if mkdir -p . 2>/dev/null; then
6912 as_mkdir_p=:
6913 else
6914 test -d ./-p && rmdir ./-p
6915 as_mkdir_p=false
6916 fi
6917
6918 as_executable_p="test -f"
6919
6920 # Sed expression to map a string onto a valid CPP name.
6921 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6922
6923 # Sed expression to map a string onto a valid variable name.
6924 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6925
6926
6927 # IFS
6928 # We need space, tab and new line, in precisely that order.
6929 as_nl='
6930 '
6931 IFS=" $as_nl"
6932
6933 # CDPATH.
6934 $as_unset CDPATH
6935
6936 exec 6>&1
6937
6938 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6939 # report actual input values of CONFIG_FILES etc. instead of their
6940 # values after options handling. Logging --version etc. is OK.
6941 exec 5>>config.log
6942 {
6943 echo
6944 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6945 ## Running $as_me. ##
6946 _ASBOX
6947 } >&5
6948 cat >&5 <<_CSEOF
6949
6950 This file was extended by $as_me, which was
6951 generated by GNU Autoconf 2.59. Invocation command line was
6952
6953 CONFIG_FILES = $CONFIG_FILES
6954 CONFIG_HEADERS = $CONFIG_HEADERS
6955 CONFIG_LINKS = $CONFIG_LINKS
6956 CONFIG_COMMANDS = $CONFIG_COMMANDS
6957 $ $0 $@
6958
6959 _CSEOF
6960 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6961 echo >&5
6962 _ACEOF
6963
6964 # Files that config.status was made for.
6965 if test -n "$ac_config_files"; then
6966 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6967 fi
6968
6969 if test -n "$ac_config_headers"; then
6970 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6971 fi
6972
6973 if test -n "$ac_config_links"; then
6974 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6975 fi
6976
6977 if test -n "$ac_config_commands"; then
6978 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6979 fi
6980
6981 cat >>$CONFIG_STATUS <<\_ACEOF
6982
6983 ac_cs_usage="\
6984 \`$as_me' instantiates files from templates according to the
6985 current configuration.
6986
6987 Usage: $0 [OPTIONS] [FILE]...
6988
6989 -h, --help print this help, then exit
6990 -V, --version print version number, then exit
6991 -q, --quiet do not print progress messages
6992 -d, --debug don't remove temporary files
6993 --recheck update $as_me by reconfiguring in the same conditions
6994 --file=FILE[:TEMPLATE]
6995 instantiate the configuration file FILE
6996 --header=FILE[:TEMPLATE]
6997 instantiate the configuration header FILE
6998
6999 Configuration files:
7000 $config_files
7001
7002 Configuration headers:
7003 $config_headers
7004
7005 Configuration commands:
7006 $config_commands
7007
7008 Report bugs to <[email protected]>."
7009 _ACEOF
7010
7011 cat >>$CONFIG_STATUS <<_ACEOF
7012 ac_cs_version="\\
7013 config.status
7014 configured by $0, generated by GNU Autoconf 2.59,
7015 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7016
7017 Copyright (C) 2003 Free Software Foundation, Inc.
7018 This config.status script is free software; the Free Software Foundation
7019 gives unlimited permission to copy, distribute and modify it."
7020 srcdir=$srcdir
7021 INSTALL="$INSTALL"
7022 _ACEOF
7023
7024 cat >>$CONFIG_STATUS <<\_ACEOF
7025 # If no file are specified by the user, then we need to provide default
7026 # value. By we need to know if files were specified by the user.
7027 ac_need_defaults=:
7028 while test $# != 0
7029 do
7030 case $1 in
7031 --*=*)
7032 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7033 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7034 ac_shift=:
7035 ;;
7036 -*)
7037 ac_option=$1
7038 ac_optarg=$2
7039 ac_shift=shift
7040 ;;
7041 *) # This is not an option, so the user has probably given explicit
7042 # arguments.
7043 ac_option=$1
7044 ac_need_defaults=false;;
7045 esac
7046
7047 case $ac_option in
7048 # Handling of the options.
7049 _ACEOF
7050 cat >>$CONFIG_STATUS <<\_ACEOF
7051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7052 ac_cs_recheck=: ;;
7053 --version | --vers* | -V )
7054 echo "$ac_cs_version"; exit 0 ;;
7055 --he | --h)
7056 # Conflict between --help and --header
7057 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7058 Try \`$0 --help' for more information." >&5
7059 echo "$as_me: error: ambiguous option: $1
7060 Try \`$0 --help' for more information." >&2;}
7061 { (exit 1); exit 1; }; };;
7062 --help | --hel | -h )
7063 echo "$ac_cs_usage"; exit 0 ;;
7064 --debug | --d* | -d )
7065 debug=: ;;
7066 --file | --fil | --fi | --f )
7067 $ac_shift
7068 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7069 ac_need_defaults=false;;
7070 --header | --heade | --head | --hea )
7071 $ac_shift
7072 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7073 ac_need_defaults=false;;
7074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7076 ac_cs_silent=: ;;
7077
7078 # This is an error.
7079 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7080 Try \`$0 --help' for more information." >&5
7081 echo "$as_me: error: unrecognized option: $1
7082 Try \`$0 --help' for more information." >&2;}
7083 { (exit 1); exit 1; }; } ;;
7084
7085 *) ac_config_targets="$ac_config_targets $1" ;;
7086
7087 esac
7088 shift
7089 done
7090
7091 ac_configure_extra_args=
7092
7093 if $ac_cs_silent; then
7094 exec 6>/dev/null
7095 ac_configure_extra_args="$ac_configure_extra_args --silent"
7096 fi
7097
7098 _ACEOF
7099 cat >>$CONFIG_STATUS <<_ACEOF
7100 if \$ac_cs_recheck; then
7101 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7102 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7103 fi
7104
7105 _ACEOF
7106
7107 cat >>$CONFIG_STATUS <<_ACEOF
7108 #
7109 # INIT-COMMANDS section.
7110 #
7111
7112 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7113
7114 _ACEOF
7115
7116
7117
7118 cat >>$CONFIG_STATUS <<\_ACEOF
7119 for ac_config_target in $ac_config_targets
7120 do
7121 case "$ac_config_target" in
7122 # Handling of arguments.
7123 "jax/Makefile" ) CONFIG_FILES="$CONFIG_FILES jax/Makefile" ;;
7124 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7125 "mdetect/Makefile" ) CONFIG_FILES="$CONFIG_FILES mdetect/Makefile" ;;
7126 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
7127 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7128 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7129 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7130 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7131 { (exit 1); exit 1; }; };;
7132 esac
7133 done
7134
7135 # If the user did not use the arguments to specify the items to instantiate,
7136 # then the envvar interface is used. Set only those that are not.
7137 # We use the long form for the default assignment because of an extremely
7138 # bizarre bug on SunOS 4.1.3.
7139 if $ac_need_defaults; then
7140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7143 fi
7144
7145 # Have a temporary directory for convenience. Make it in the build tree
7146 # simply because there is no reason to put it here, and in addition,
7147 # creating and moving files from /tmp can sometimes cause problems.
7148 # Create a temporary directory, and hook for its removal unless debugging.
7149 $debug ||
7150 {
7151 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7152 trap '{ (exit 1); exit 1; }' 1 2 13 15
7153 }
7154
7155 # Create a (secure) tmp directory for tmp files.
7156
7157 {
7158 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7159 test -n "$tmp" && test -d "$tmp"
7160 } ||
7161 {
7162 tmp=./confstat$$-$RANDOM
7163 (umask 077 && mkdir $tmp)
7164 } ||
7165 {
7166 echo "$me: cannot create a temporary directory in ." >&2
7167 { (exit 1); exit 1; }
7168 }
7169
7170 _ACEOF
7171
7172 cat >>$CONFIG_STATUS <<_ACEOF
7173
7174 #
7175 # CONFIG_FILES section.
7176 #
7177
7178 # No need to generate the scripts if there are no CONFIG_FILES.
7179 # This happens for instance when ./config.status config.h
7180 if test -n "\$CONFIG_FILES"; then
7181 # Protect against being on the right side of a sed subst in config.status.
7182 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7183 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7184 s,@SHELL@,$SHELL,;t t
7185 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7186 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7187 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7188 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7189 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7190 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7191 s,@exec_prefix@,$exec_prefix,;t t
7192 s,@prefix@,$prefix,;t t
7193 s,@program_transform_name@,$program_transform_name,;t t
7194 s,@bindir@,$bindir,;t t
7195 s,@sbindir@,$sbindir,;t t
7196 s,@libexecdir@,$libexecdir,;t t
7197 s,@datadir@,$datadir,;t t
7198 s,@sysconfdir@,$sysconfdir,;t t
7199 s,@sharedstatedir@,$sharedstatedir,;t t
7200 s,@localstatedir@,$localstatedir,;t t
7201 s,@libdir@,$libdir,;t t
7202 s,@includedir@,$includedir,;t t
7203 s,@oldincludedir@,$oldincludedir,;t t
7204 s,@infodir@,$infodir,;t t
7205 s,@mandir@,$mandir,;t t
7206 s,@build_alias@,$build_alias,;t t
7207 s,@host_alias@,$host_alias,;t t
7208 s,@target_alias@,$target_alias,;t t
7209 s,@DEFS@,$DEFS,;t t
7210 s,@ECHO_C@,$ECHO_C,;t t
7211 s,@ECHO_N@,$ECHO_N,;t t
7212 s,@ECHO_T@,$ECHO_T,;t t
7213 s,@LIBS@,$LIBS,;t t
7214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7217 s,@CYGPATH_W@,$CYGPATH_W,;t t
7218 s,@PACKAGE@,$PACKAGE,;t t
7219 s,@VERSION@,$VERSION,;t t
7220 s,@ACLOCAL@,$ACLOCAL,;t t
7221 s,@AUTOCONF@,$AUTOCONF,;t t
7222 s,@AUTOMAKE@,$AUTOMAKE,;t t
7223 s,@AUTOHEADER@,$AUTOHEADER,;t t
7224 s,@MAKEINFO@,$MAKEINFO,;t t
7225 s,@install_sh@,$install_sh,;t t
7226 s,@STRIP@,$STRIP,;t t
7227 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7228 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7229 s,@mkdir_p@,$mkdir_p,;t t
7230 s,@AWK@,$AWK,;t t
7231 s,@SET_MAKE@,$SET_MAKE,;t t
7232 s,@am__leading_dot@,$am__leading_dot,;t t
7233 s,@AMTAR@,$AMTAR,;t t
7234 s,@am__tar@,$am__tar,;t t
7235 s,@am__untar@,$am__untar,;t t
7236 s,@CC@,$CC,;t t
7237 s,@CFLAGS@,$CFLAGS,;t t
7238 s,@LDFLAGS@,$LDFLAGS,;t t
7239 s,@CPPFLAGS@,$CPPFLAGS,;t t
7240 s,@ac_ct_CC@,$ac_ct_CC,;t t
7241 s,@EXEEXT@,$EXEEXT,;t t
7242 s,@OBJEXT@,$OBJEXT,;t t
7243 s,@DEPDIR@,$DEPDIR,;t t
7244 s,@am__include@,$am__include,;t t
7245 s,@am__quote@,$am__quote,;t t
7246 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7247 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7248 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7249 s,@CCDEPMODE@,$CCDEPMODE,;t t
7250 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7251 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7252 s,@RANLIB@,$RANLIB,;t t
7253 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7254 s,@CPP@,$CPP,;t t
7255 s,@EGREP@,$EGREP,;t t
7256 s,@suid@,$suid,;t t
7257 s,@SUID_TRUE@,$SUID_TRUE,;t t
7258 s,@SUID_FALSE@,$SUID_FALSE,;t t
7259 s,@getopt@,$getopt,;t t
7260 s,@GETOPT_LIBS@,$GETOPT_LIBS,;t t
7261 s,@GETOPT_INCS@,$GETOPT_INCS,;t t
7262 s,@getopt_dist@,$getopt_dist,;t t
7263 s,@mdetect@,$mdetect,;t t
7264 s,@mdetect_dist@,$mdetect_dist,;t t
7265 s,@mdump@,$mdump,;t t
7266 s,@mdump_dist@,$mdump_dist,;t t
7267 s,@extras@,$extras,;t t
7268 s,@extras_dist@,$extras_dist,;t t
7269 s,@GPM_DIR@,$GPM_DIR,;t t
7270 s,@HAVE_GPM_SRC@,$HAVE_GPM_SRC,;t t
7271 s,@subdirs@,$subdirs,;t t
7272 s,@NO_GPM_DOC_TRUE@,$NO_GPM_DOC_TRUE,;t t
7273 s,@NO_GPM_DOC_FALSE@,$NO_GPM_DOC_FALSE,;t t
7274 s,@gpm_imwheel@,$gpm_imwheel,;t t
7275 s,@gpm_dist@,$gpm_dist,;t t
7276 s,@X_CFLAGS@,$X_CFLAGS,;t t
7277 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7278 s,@X_LIBS@,$X_LIBS,;t t
7279 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7280 s,@LIBOBJS@,$LIBOBJS,;t t
7281 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7282 CEOF
7283
7284 _ACEOF
7285
7286 cat >>$CONFIG_STATUS <<\_ACEOF
7287 # Split the substitutions into bite-sized pieces for seds with
7288 # small command number limits, like on Digital OSF/1 and HP-UX.
7289 ac_max_sed_lines=48
7290 ac_sed_frag=1 # Number of current file.
7291 ac_beg=1 # First line for current file.
7292 ac_end=$ac_max_sed_lines # Line after last line for current file.
7293 ac_more_lines=:
7294 ac_sed_cmds=
7295 while $ac_more_lines; do
7296 if test $ac_beg -gt 1; then
7297 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7298 else
7299 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7300 fi
7301 if test ! -s $tmp/subs.frag; then
7302 ac_more_lines=false
7303 else
7304 # The purpose of the label and of the branching condition is to
7305 # speed up the sed processing (if there are no `@' at all, there
7306 # is no need to browse any of the substitutions).
7307 # These are the two extra sed commands mentioned above.
7308 (echo ':t
7309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7310 if test -z "$ac_sed_cmds"; then
7311 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7312 else
7313 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7314 fi
7315 ac_sed_frag=`expr $ac_sed_frag + 1`
7316 ac_beg=$ac_end
7317 ac_end=`expr $ac_end + $ac_max_sed_lines`
7318 fi
7319 done
7320 if test -z "$ac_sed_cmds"; then
7321 ac_sed_cmds=cat
7322 fi
7323 fi # test -n "$CONFIG_FILES"
7324
7325 _ACEOF
7326 cat >>$CONFIG_STATUS <<\_ACEOF
7327 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7328 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7329 case $ac_file in
7330 - | *:- | *:-:* ) # input from stdin
7331 cat >$tmp/stdin
7332 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7334 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7336 * ) ac_file_in=$ac_file.in ;;
7337 esac
7338
7339 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7340 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7342 X"$ac_file" : 'X\(//\)[^/]' \| \
7343 X"$ac_file" : 'X\(//\)$' \| \
7344 X"$ac_file" : 'X\(/\)' \| \
7345 . : '\(.\)' 2>/dev/null ||
7346 echo X"$ac_file" |
7347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7349 /^X\(\/\/\)$/{ s//\1/; q; }
7350 /^X\(\/\).*/{ s//\1/; q; }
7351 s/.*/./; q'`
7352 { if $as_mkdir_p; then
7353 mkdir -p "$ac_dir"
7354 else
7355 as_dir="$ac_dir"
7356 as_dirs=
7357 while test ! -d "$as_dir"; do
7358 as_dirs="$as_dir $as_dirs"
7359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7361 X"$as_dir" : 'X\(//\)[^/]' \| \
7362 X"$as_dir" : 'X\(//\)$' \| \
7363 X"$as_dir" : 'X\(/\)' \| \
7364 . : '\(.\)' 2>/dev/null ||
7365 echo X"$as_dir" |
7366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7368 /^X\(\/\/\)$/{ s//\1/; q; }
7369 /^X\(\/\).*/{ s//\1/; q; }
7370 s/.*/./; q'`
7371 done
7372 test ! -n "$as_dirs" || mkdir $as_dirs
7373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7375 { (exit 1); exit 1; }; }; }
7376
7377 ac_builddir=.
7378
7379 if test "$ac_dir" != .; then
7380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7381 # A "../" for each directory in $ac_dir_suffix.
7382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7383 else
7384 ac_dir_suffix= ac_top_builddir=
7385 fi
7386
7387 case $srcdir in
7388 .) # No --srcdir option. We are building in place.
7389 ac_srcdir=.
7390 if test -z "$ac_top_builddir"; then
7391 ac_top_srcdir=.
7392 else
7393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7394 fi ;;
7395 [\\/]* | ?:[\\/]* ) # Absolute path.
7396 ac_srcdir=$srcdir$ac_dir_suffix;
7397 ac_top_srcdir=$srcdir ;;
7398 *) # Relative path.
7399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7401 esac
7402
7403 # Do not use `cd foo && pwd` to compute absolute paths, because
7404 # the directories may not exist.
7405 case `pwd` in
7406 .) ac_abs_builddir="$ac_dir";;
7407 *)
7408 case "$ac_dir" in
7409 .) ac_abs_builddir=`pwd`;;
7410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7412 esac;;
7413 esac
7414 case $ac_abs_builddir in
7415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7416 *)
7417 case ${ac_top_builddir}. in
7418 .) ac_abs_top_builddir=$ac_abs_builddir;;
7419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7421 esac;;
7422 esac
7423 case $ac_abs_builddir in
7424 .) ac_abs_srcdir=$ac_srcdir;;
7425 *)
7426 case $ac_srcdir in
7427 .) ac_abs_srcdir=$ac_abs_builddir;;
7428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7430 esac;;
7431 esac
7432 case $ac_abs_builddir in
7433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7434 *)
7435 case $ac_top_srcdir in
7436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7439 esac;;
7440 esac
7441
7442
7443 case $INSTALL in
7444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7445 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7446 esac
7447
7448 if test x"$ac_file" != x-; then
7449 { echo "$as_me:$LINENO: creating $ac_file" >&5
7450 echo "$as_me: creating $ac_file" >&6;}
7451 rm -f "$ac_file"
7452 fi
7453 # Let's still pretend it is `configure' which instantiates (i.e., don't
7454 # use $as_me), people would be surprised to read:
7455 # /* config.h. Generated by config.status. */
7456 if test x"$ac_file" = x-; then
7457 configure_input=
7458 else
7459 configure_input="$ac_file. "
7460 fi
7461 configure_input=$configure_input"Generated from `echo $ac_file_in |
7462 sed 's,.*/,,'` by configure."
7463
7464 # First look for the input files in the build tree, otherwise in the
7465 # src tree.
7466 ac_file_inputs=`IFS=:
7467 for f in $ac_file_in; do
7468 case $f in
7469 -) echo $tmp/stdin ;;
7470 [\\/$]*)
7471 # Absolute (can't be DOS-style, as IFS=:)
7472 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7473 echo "$as_me: error: cannot find input file: $f" >&2;}
7474 { (exit 1); exit 1; }; }
7475 echo "$f";;
7476 *) # Relative
7477 if test -f "$f"; then
7478 # Build tree
7479 echo "$f"
7480 elif test -f "$srcdir/$f"; then
7481 # Source tree
7482 echo "$srcdir/$f"
7483 else
7484 # /dev/null tree
7485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7486 echo "$as_me: error: cannot find input file: $f" >&2;}
7487 { (exit 1); exit 1; }; }
7488 fi;;
7489 esac
7490 done` || { (exit 1); exit 1; }
7491 _ACEOF
7492 cat >>$CONFIG_STATUS <<_ACEOF
7493 sed "$ac_vpsub
7494 $extrasub
7495 _ACEOF
7496 cat >>$CONFIG_STATUS <<\_ACEOF
7497 :t
7498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7499 s,@configure_input@,$configure_input,;t t
7500 s,@srcdir@,$ac_srcdir,;t t
7501 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7502 s,@top_srcdir@,$ac_top_srcdir,;t t
7503 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7504 s,@builddir@,$ac_builddir,;t t
7505 s,@abs_builddir@,$ac_abs_builddir,;t t
7506 s,@top_builddir@,$ac_top_builddir,;t t
7507 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7508 s,@INSTALL@,$ac_INSTALL,;t t
7509 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7510 rm -f $tmp/stdin
7511 if test x"$ac_file" != x-; then
7512 mv $tmp/out $ac_file
7513 else
7514 cat $tmp/out
7515 rm -f $tmp/out
7516 fi
7517
7518 done
7519 _ACEOF
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7521
7522 #
7523 # CONFIG_HEADER section.
7524 #
7525
7526 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7527 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7528 #
7529 # ac_d sets the value in "#define NAME VALUE" lines.
7530 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7531 ac_dB='[ ].*$,\1#\2'
7532 ac_dC=' '
7533 ac_dD=',;t'
7534 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7535 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7536 ac_uB='$,\1#\2define\3'
7537 ac_uC=' '
7538 ac_uD=',;t'
7539
7540 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7542 case $ac_file in
7543 - | *:- | *:-:* ) # input from stdin
7544 cat >$tmp/stdin
7545 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7547 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7549 * ) ac_file_in=$ac_file.in ;;
7550 esac
7551
7552 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7553 echo "$as_me: creating $ac_file" >&6;}
7554
7555 # First look for the input files in the build tree, otherwise in the
7556 # src tree.
7557 ac_file_inputs=`IFS=:
7558 for f in $ac_file_in; do
7559 case $f in
7560 -) echo $tmp/stdin ;;
7561 [\\/$]*)
7562 # Absolute (can't be DOS-style, as IFS=:)
7563 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7564 echo "$as_me: error: cannot find input file: $f" >&2;}
7565 { (exit 1); exit 1; }; }
7566 # Do quote $f, to prevent DOS paths from being IFS'd.
7567 echo "$f";;
7568 *) # Relative
7569 if test -f "$f"; then
7570 # Build tree
7571 echo "$f"
7572 elif test -f "$srcdir/$f"; then
7573 # Source tree
7574 echo "$srcdir/$f"
7575 else
7576 # /dev/null tree
7577 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7578 echo "$as_me: error: cannot find input file: $f" >&2;}
7579 { (exit 1); exit 1; }; }
7580 fi;;
7581 esac
7582 done` || { (exit 1); exit 1; }
7583 # Remove the trailing spaces.
7584 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7585
7586 _ACEOF
7587
7588 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7589 # `conftest.undefs', that substitutes the proper values into
7590 # config.h.in to produce config.h. The first handles `#define'
7591 # templates, and the second `#undef' templates.
7592 # And first: Protect against being on the right side of a sed subst in
7593 # config.status. Protect against being in an unquoted here document
7594 # in config.status.
7595 rm -f conftest.defines conftest.undefs
7596 # Using a here document instead of a string reduces the quoting nightmare.
7597 # Putting comments in sed scripts is not portable.
7598 #
7599 # `end' is used to avoid that the second main sed command (meant for
7600 # 0-ary CPP macros) applies to n-ary macro definitions.
7601 # See the Autoconf documentation for `clear'.
7602 cat >confdef2sed.sed <<\_ACEOF
7603 s/[\\&,]/\\&/g
7604 s,[\\$`],\\&,g
7605 t clear
7606 : clear
7607 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7608 t end
7609 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7610 : end
7611 _ACEOF
7612 # If some macros were called several times there might be several times
7613 # the same #defines, which is useless. Nevertheless, we may not want to
7614 # sort them, since we want the *last* AC-DEFINE to be honored.
7615 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7616 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7617 rm -f confdef2sed.sed
7618
7619 # This sed command replaces #undef with comments. This is necessary, for
7620 # example, in the case of _POSIX_SOURCE, which is predefined and required
7621 # on some systems where configure will not decide to define it.
7622 cat >>conftest.undefs <<\_ACEOF
7623 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7624 _ACEOF
7625
7626 # Break up conftest.defines because some shells have a limit on the size
7627 # of here documents, and old seds have small limits too (100 cmds).
7628 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7629 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7630 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7631 echo ' :' >>$CONFIG_STATUS
7632 rm -f conftest.tail
7633 while grep . conftest.defines >/dev/null
7634 do
7635 # Write a limited-size here document to $tmp/defines.sed.
7636 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7637 # Speed up: don't consider the non `#define' lines.
7638 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7639 # Work around the forget-to-reset-the-flag bug.
7640 echo 't clr' >>$CONFIG_STATUS
7641 echo ': clr' >>$CONFIG_STATUS
7642 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7643 echo 'CEOF
7644 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7645 rm -f $tmp/in
7646 mv $tmp/out $tmp/in
7647 ' >>$CONFIG_STATUS
7648 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7649 rm -f conftest.defines
7650 mv conftest.tail conftest.defines
7651 done
7652 rm -f conftest.defines
7653 echo ' fi # grep' >>$CONFIG_STATUS
7654 echo >>$CONFIG_STATUS
7655
7656 # Break up conftest.undefs because some shells have a limit on the size
7657 # of here documents, and old seds have small limits too (100 cmds).
7658 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7659 rm -f conftest.tail
7660 while grep . conftest.undefs >/dev/null
7661 do
7662 # Write a limited-size here document to $tmp/undefs.sed.
7663 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7664 # Speed up: don't consider the non `#undef'
7665 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7666 # Work around the forget-to-reset-the-flag bug.
7667 echo 't clr' >>$CONFIG_STATUS
7668 echo ': clr' >>$CONFIG_STATUS
7669 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7670 echo 'CEOF
7671 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7672 rm -f $tmp/in
7673 mv $tmp/out $tmp/in
7674 ' >>$CONFIG_STATUS
7675 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7676 rm -f conftest.undefs
7677 mv conftest.tail conftest.undefs
7678 done
7679 rm -f conftest.undefs
7680
7681 cat >>$CONFIG_STATUS <<\_ACEOF
7682 # Let's still pretend it is `configure' which instantiates (i.e., don't
7683 # use $as_me), people would be surprised to read:
7684 # /* config.h. Generated by config.status. */
7685 if test x"$ac_file" = x-; then
7686 echo "/* Generated by configure. */" >$tmp/config.h
7687 else
7688 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7689 fi
7690 cat $tmp/in >>$tmp/config.h
7691 rm -f $tmp/in
7692 if test x"$ac_file" != x-; then
7693 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7694 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7695 echo "$as_me: $ac_file is unchanged" >&6;}
7696 else
7697 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7699 X"$ac_file" : 'X\(//\)[^/]' \| \
7700 X"$ac_file" : 'X\(//\)$' \| \
7701 X"$ac_file" : 'X\(/\)' \| \
7702 . : '\(.\)' 2>/dev/null ||
7703 echo X"$ac_file" |
7704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7706 /^X\(\/\/\)$/{ s//\1/; q; }
7707 /^X\(\/\).*/{ s//\1/; q; }
7708 s/.*/./; q'`
7709 { if $as_mkdir_p; then
7710 mkdir -p "$ac_dir"
7711 else
7712 as_dir="$ac_dir"
7713 as_dirs=
7714 while test ! -d "$as_dir"; do
7715 as_dirs="$as_dir $as_dirs"
7716 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7718 X"$as_dir" : 'X\(//\)[^/]' \| \
7719 X"$as_dir" : 'X\(//\)$' \| \
7720 X"$as_dir" : 'X\(/\)' \| \
7721 . : '\(.\)' 2>/dev/null ||
7722 echo X"$as_dir" |
7723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7725 /^X\(\/\/\)$/{ s//\1/; q; }
7726 /^X\(\/\).*/{ s//\1/; q; }
7727 s/.*/./; q'`
7728 done
7729 test ! -n "$as_dirs" || mkdir $as_dirs
7730 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7731 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7732 { (exit 1); exit 1; }; }; }
7733
7734 rm -f $ac_file
7735 mv $tmp/config.h $ac_file
7736 fi
7737 else
7738 cat $tmp/config.h
7739 rm -f $tmp/config.h
7740 fi
7741 # Compute $ac_file's index in $config_headers.
7742 _am_stamp_count=1
7743 for _am_header in $config_headers :; do
7744 case $_am_header in
7745 $ac_file | $ac_file:* )
7746 break ;;
7747 * )
7748 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7749 esac
7750 done
7751 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7752 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7753 X$ac_file : 'X\(//\)[^/]' \| \
7754 X$ac_file : 'X\(//\)$' \| \
7755 X$ac_file : 'X\(/\)' \| \
7756 . : '\(.\)' 2>/dev/null ||
7757 echo X$ac_file |
7758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7760 /^X\(\/\/\)$/{ s//\1/; q; }
7761 /^X\(\/\).*/{ s//\1/; q; }
7762 s/.*/./; q'`/stamp-h$_am_stamp_count
7763 done
7764 _ACEOF
7765 cat >>$CONFIG_STATUS <<\_ACEOF
7766
7767 #
7768 # CONFIG_COMMANDS section.
7769 #
7770 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7771 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7772 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7773 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7774 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775 X"$ac_dest" : 'X\(//\)[^/]' \| \
7776 X"$ac_dest" : 'X\(//\)$' \| \
7777 X"$ac_dest" : 'X\(/\)' \| \
7778 . : '\(.\)' 2>/dev/null ||
7779 echo X"$ac_dest" |
7780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7782 /^X\(\/\/\)$/{ s//\1/; q; }
7783 /^X\(\/\).*/{ s//\1/; q; }
7784 s/.*/./; q'`
7785 { if $as_mkdir_p; then
7786 mkdir -p "$ac_dir"
7787 else
7788 as_dir="$ac_dir"
7789 as_dirs=
7790 while test ! -d "$as_dir"; do
7791 as_dirs="$as_dir $as_dirs"
7792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7794 X"$as_dir" : 'X\(//\)[^/]' \| \
7795 X"$as_dir" : 'X\(//\)$' \| \
7796 X"$as_dir" : 'X\(/\)' \| \
7797 . : '\(.\)' 2>/dev/null ||
7798 echo X"$as_dir" |
7799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7801 /^X\(\/\/\)$/{ s//\1/; q; }
7802 /^X\(\/\).*/{ s//\1/; q; }
7803 s/.*/./; q'`
7804 done
7805 test ! -n "$as_dirs" || mkdir $as_dirs
7806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7808 { (exit 1); exit 1; }; }; }
7809
7810 ac_builddir=.
7811
7812 if test "$ac_dir" != .; then
7813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7814 # A "../" for each directory in $ac_dir_suffix.
7815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7816 else
7817 ac_dir_suffix= ac_top_builddir=
7818 fi
7819
7820 case $srcdir in
7821 .) # No --srcdir option. We are building in place.
7822 ac_srcdir=.
7823 if test -z "$ac_top_builddir"; then
7824 ac_top_srcdir=.
7825 else
7826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7827 fi ;;
7828 [\\/]* | ?:[\\/]* ) # Absolute path.
7829 ac_srcdir=$srcdir$ac_dir_suffix;
7830 ac_top_srcdir=$srcdir ;;
7831 *) # Relative path.
7832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7833 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7834 esac
7835
7836 # Do not use `cd foo && pwd` to compute absolute paths, because
7837 # the directories may not exist.
7838 case `pwd` in
7839 .) ac_abs_builddir="$ac_dir";;
7840 *)
7841 case "$ac_dir" in
7842 .) ac_abs_builddir=`pwd`;;
7843 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7844 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7845 esac;;
7846 esac
7847 case $ac_abs_builddir in
7848 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7849 *)
7850 case ${ac_top_builddir}. in
7851 .) ac_abs_top_builddir=$ac_abs_builddir;;
7852 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7853 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7854 esac;;
7855 esac
7856 case $ac_abs_builddir in
7857 .) ac_abs_srcdir=$ac_srcdir;;
7858 *)
7859 case $ac_srcdir in
7860 .) ac_abs_srcdir=$ac_abs_builddir;;
7861 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7862 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7863 esac;;
7864 esac
7865 case $ac_abs_builddir in
7866 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7867 *)
7868 case $ac_top_srcdir in
7869 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7870 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7871 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7872 esac;;
7873 esac
7874
7875
7876 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7877 echo "$as_me: executing $ac_dest commands" >&6;}
7878 case $ac_dest in
7879 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7880 # Strip MF so we end up with the name of the file.
7881 mf=`echo "$mf" | sed -e 's/:.*$//'`
7882 # Check whether this is an Automake generated Makefile or not.
7883 # We used to match only the files named `Makefile.in', but
7884 # some people rename them; so instead we look at the file content.
7885 # Grep'ing the first line is not enough: some people post-process
7886 # each Makefile.in and add a new line on top of each file to say so.
7887 # So let's grep whole file.
7888 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7889 dirpart=`(dirname "$mf") 2>/dev/null ||
7890 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7891 X"$mf" : 'X\(//\)[^/]' \| \
7892 X"$mf" : 'X\(//\)$' \| \
7893 X"$mf" : 'X\(/\)' \| \
7894 . : '\(.\)' 2>/dev/null ||
7895 echo X"$mf" |
7896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7898 /^X\(\/\/\)$/{ s//\1/; q; }
7899 /^X\(\/\).*/{ s//\1/; q; }
7900 s/.*/./; q'`
7901 else
7902 continue
7903 fi
7904 # Extract the definition of DEPDIR, am__include, and am__quote
7905 # from the Makefile without running `make'.
7906 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7907 test -z "$DEPDIR" && continue
7908 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7909 test -z "am__include" && continue
7910 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7911 # When using ansi2knr, U may be empty or an underscore; expand it
7912 U=`sed -n 's/^U = //p' < "$mf"`
7913 # Find all dependency output files, they are included files with
7914 # $(DEPDIR) in their names. We invoke sed twice because it is the
7915 # simplest approach to changing $(DEPDIR) to its actual value in the
7916 # expansion.
7917 for file in `sed -n "
7918 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7919 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7920 # Make sure the directory exists.
7921 test -f "$dirpart/$file" && continue
7922 fdir=`(dirname "$file") 2>/dev/null ||
7923 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7924 X"$file" : 'X\(//\)[^/]' \| \
7925 X"$file" : 'X\(//\)$' \| \
7926 X"$file" : 'X\(/\)' \| \
7927 . : '\(.\)' 2>/dev/null ||
7928 echo X"$file" |
7929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7931 /^X\(\/\/\)$/{ s//\1/; q; }
7932 /^X\(\/\).*/{ s//\1/; q; }
7933 s/.*/./; q'`
7934 { if $as_mkdir_p; then
7935 mkdir -p $dirpart/$fdir
7936 else
7937 as_dir=$dirpart/$fdir
7938 as_dirs=
7939 while test ! -d "$as_dir"; do
7940 as_dirs="$as_dir $as_dirs"
7941 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$as_dir" : 'X\(//\)[^/]' \| \
7944 X"$as_dir" : 'X\(//\)$' \| \
7945 X"$as_dir" : 'X\(/\)' \| \
7946 . : '\(.\)' 2>/dev/null ||
7947 echo X"$as_dir" |
7948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7950 /^X\(\/\/\)$/{ s//\1/; q; }
7951 /^X\(\/\).*/{ s//\1/; q; }
7952 s/.*/./; q'`
7953 done
7954 test ! -n "$as_dirs" || mkdir $as_dirs
7955 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7956 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7957 { (exit 1); exit 1; }; }; }
7958
7959 # echo "creating $dirpart/$file"
7960 echo '# dummy' > "$dirpart/$file"
7961 done
7962 done
7963 ;;
7964 esac
7965 done
7966 _ACEOF
7967
7968 cat >>$CONFIG_STATUS <<\_ACEOF
7969
7970 { (exit 0); exit 0; }
7971 _ACEOF
7972 chmod +x $CONFIG_STATUS
7973 ac_clean_files=$ac_clean_files_save
7974
7975
7976 # configure is writing to config.log, and then calls config.status.
7977 # config.status does its own redirection, appending to config.log.
7978 # Unfortunately, on DOS this fails, as config.log is still kept open
7979 # by configure, so config.status won't be able to write to it; its
7980 # output is simply discarded. So we exec the FD to /dev/null,
7981 # effectively closing config.log, so it can be properly (re)opened and
7982 # appended to by config.status. When coming back to configure, we
7983 # need to make the FD available again.
7984 if test "$no_create" != yes; then
7985 ac_cs_success=:
7986 ac_config_status_args=
7987 test "$silent" = yes &&
7988 ac_config_status_args="$ac_config_status_args --quiet"
7989 exec 5>/dev/null
7990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7991 exec 5>>config.log
7992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7993 # would make configure fail if this is the last instruction.
7994 $ac_cs_success || { (exit 1); exit 1; }
7995 fi
7996
7997 #
7998 # CONFIG_SUBDIRS section.
7999 #
8000 if test "$no_recursion" != yes; then
8001
8002 # Remove --cache-file and --srcdir arguments so they do not pile up.
8003 ac_sub_configure_args=
8004 ac_prev=
8005 for ac_arg in $ac_configure_args; do
8006 if test -n "$ac_prev"; then
8007 ac_prev=
8008 continue
8009 fi
8010 case $ac_arg in
8011 -cache-file | --cache-file | --cache-fil | --cache-fi \
8012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8013 ac_prev=cache_file ;;
8014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8016 | --c=*)
8017 ;;
8018 --config-cache | -C)
8019 ;;
8020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8021 ac_prev=srcdir ;;
8022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8023 ;;
8024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8025 ac_prev=prefix ;;
8026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8027 ;;
8028 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8029 esac
8030 done
8031
8032 # Always prepend --prefix to ensure using the same prefix
8033 # in subdir configurations.
8034 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8035
8036 ac_popdir=`pwd`
8037 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8038
8039 # Do not complain, so a configure script can configure whichever
8040 # parts of a large source tree are present.
8041 test -d $srcdir/$ac_dir || continue
8042
8043 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8044 echo "$as_me: configuring in $ac_dir" >&6;}
8045 { if $as_mkdir_p; then
8046 mkdir -p "$ac_dir"
8047 else
8048 as_dir="$ac_dir"
8049 as_dirs=
8050 while test ! -d "$as_dir"; do
8051 as_dirs="$as_dir $as_dirs"
8052 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8054 X"$as_dir" : 'X\(//\)[^/]' \| \
8055 X"$as_dir" : 'X\(//\)$' \| \
8056 X"$as_dir" : 'X\(/\)' \| \
8057 . : '\(.\)' 2>/dev/null ||
8058 echo X"$as_dir" |
8059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8061 /^X\(\/\/\)$/{ s//\1/; q; }
8062 /^X\(\/\).*/{ s//\1/; q; }
8063 s/.*/./; q'`
8064 done
8065 test ! -n "$as_dirs" || mkdir $as_dirs
8066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8068 { (exit 1); exit 1; }; }; }
8069
8070 ac_builddir=.
8071
8072 if test "$ac_dir" != .; then
8073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8074 # A "../" for each directory in $ac_dir_suffix.
8075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8076 else
8077 ac_dir_suffix= ac_top_builddir=
8078 fi
8079
8080 case $srcdir in
8081 .) # No --srcdir option. We are building in place.
8082 ac_srcdir=.
8083 if test -z "$ac_top_builddir"; then
8084 ac_top_srcdir=.
8085 else
8086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8087 fi ;;
8088 [\\/]* | ?:[\\/]* ) # Absolute path.
8089 ac_srcdir=$srcdir$ac_dir_suffix;
8090 ac_top_srcdir=$srcdir ;;
8091 *) # Relative path.
8092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8094 esac
8095
8096 # Do not use `cd foo && pwd` to compute absolute paths, because
8097 # the directories may not exist.
8098 case `pwd` in
8099 .) ac_abs_builddir="$ac_dir";;
8100 *)
8101 case "$ac_dir" in
8102 .) ac_abs_builddir=`pwd`;;
8103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8105 esac;;
8106 esac
8107 case $ac_abs_builddir in
8108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8109 *)
8110 case ${ac_top_builddir}. in
8111 .) ac_abs_top_builddir=$ac_abs_builddir;;
8112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8114 esac;;
8115 esac
8116 case $ac_abs_builddir in
8117 .) ac_abs_srcdir=$ac_srcdir;;
8118 *)
8119 case $ac_srcdir in
8120 .) ac_abs_srcdir=$ac_abs_builddir;;
8121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8123 esac;;
8124 esac
8125 case $ac_abs_builddir in
8126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8127 *)
8128 case $ac_top_srcdir in
8129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8132 esac;;
8133 esac
8134
8135
8136 cd $ac_dir
8137
8138 # Check for guested configure; otherwise get Cygnus style configure.
8139 if test -f $ac_srcdir/configure.gnu; then
8140 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8141 elif test -f $ac_srcdir/configure; then
8142 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8143 elif test -f $ac_srcdir/configure.in; then
8144 ac_sub_configure=$ac_configure
8145 else
8146 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8147 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8148 ac_sub_configure=
8149 fi
8150
8151 # The recursion is here.
8152 if test -n "$ac_sub_configure"; then
8153 # Make the cache file name correct relative to the subdirectory.
8154 case $cache_file in
8155 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8156 *) # Relative path.
8157 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8158 esac
8159
8160 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8161 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8162 # The eval makes quoting arguments work.
8163 eval $ac_sub_configure $ac_sub_configure_args \
8164 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8165 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8166 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8167 { (exit 1); exit 1; }; }
8168 fi
8169
8170 cd $ac_popdir
8171 done
8172 fi
8173