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