Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ogmmerge.cpp"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP EGREP RANLIB ac_ct_RANLIB OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS AVILIB_CFLAGS AVILIB_CXXFLAGS AVILIB_LIBS DEBUG_CFLAGS PROFILING_CFLAGS PROFILING_LIBS DVDREAD_CFLAGS DVDREAD_LIBS HAVE_LIBDVDREAD_TRUE HAVE_LIBDVDREAD_FALSE LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
325
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
330 case $ac_option in
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
336
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
357
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
366
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
399
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
548
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
561
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
588
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
592 ;;
593
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
604 *)
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610 ;;
611
612 esac
613 done
614
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635 do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688 else
689 ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_CPP_set=${CPP+set}
741 ac_env_CPP_value=$CPP
742 ac_cv_env_CPP_set=${CPP+set}
743 ac_cv_env_CPP_value=$CPP
744
745 #
746 # Report the --help message.
747 #
748 if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
751 cat <<_ACEOF
752 \`configure' configures this package to adapt to many kinds of systems.
753
754 Usage: $0 [OPTION]... [VAR=VALUE]...
755
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE. See below for descriptions of some of the useful variables.
758
759 Defaults for the options are specified in brackets.
760
761 Configuration:
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
771
772 _ACEOF
773
774 cat <<_ACEOF
775 Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
777 [$ac_default_prefix]
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
779 [PREFIX]
780
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
785
786 For better control, use the options below.
787
788 Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
801 _ACEOF
802
803 cat <<\_ACEOF
804
805 Program names:
806 --program-prefix=PREFIX prepend PREFIX to installed program names
807 --program-suffix=SUFFIX append SUFFIX to installed program names
808 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
809 _ACEOF
810 fi
811
812 if test -n "$ac_init_help"; then
813
814 cat <<\_ACEOF
815
816 Optional Features:
817 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
818 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
819 --disable-dependency-tracking Speeds up one-time builds
820 --enable-dependency-tracking Do not reject slow dependency extractors
821 --disable-oggtest Do not try to compile and run a test Ogg program
822 --disable-vorbistest Do not try to compile and run a test Vorbis program
823 --enable-debug compile with debug information
824 --enable-profiling compile with profiling information
825
826 Optional Packages:
827 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
828 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
829 --with-ogg-prefix=PFX Prefix where libogg is installed (optional)
830 --with-vorbis-prefix=PFX Prefix where libvorbis is installed (optional)
831 --with-dvdread use installed libdvdread library (default=yes)
832 --with-dvdread-includes=PFX prefix where local dvdread includes are installed (optional)
833 --with-dvdread-libs=PFX prefix where local dvdread lib is installed (optional)
834
835 Some influential environment variables:
836 CC C compiler command
837 CFLAGS C compiler flags
838 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
839 nonstandard directory <lib dir>
840 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
841 headers in a nonstandard directory <include dir>
842 CXX C++ compiler command
843 CXXFLAGS C++ compiler flags
844 CPP C preprocessor
845
846 Use these variables to override the choices made by `configure' or to help
847 it to find libraries and programs with nonstandard names/locations.
848
849 _ACEOF
850 fi
851
852 if test "$ac_init_help" = "recursive"; then
853 # If there are subdirs, report their specific --help.
854 ac_popdir=`pwd`
855 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
856 test -d $ac_dir || continue
857 ac_builddir=.
858
859 if test "$ac_dir" != .; then
860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
861 # A "../" for each directory in $ac_dir_suffix.
862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
863 else
864 ac_dir_suffix= ac_top_builddir=
865 fi
866
867 case $srcdir in
868 .) # No --srcdir option. We are building in place.
869 ac_srcdir=.
870 if test -z "$ac_top_builddir"; then
871 ac_top_srcdir=.
872 else
873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
874 fi ;;
875 [\\/]* | ?:[\\/]* ) # Absolute path.
876 ac_srcdir=$srcdir$ac_dir_suffix;
877 ac_top_srcdir=$srcdir ;;
878 *) # Relative path.
879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
881 esac
882
883 # Do not use `cd foo && pwd` to compute absolute paths, because
884 # the directories may not exist.
885 case `pwd` in
886 .) ac_abs_builddir="$ac_dir";;
887 *)
888 case "$ac_dir" in
889 .) ac_abs_builddir=`pwd`;;
890 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
891 *) ac_abs_builddir=`pwd`/"$ac_dir";;
892 esac;;
893 esac
894 case $ac_abs_builddir in
895 .) ac_abs_top_builddir=${ac_top_builddir}.;;
896 *)
897 case ${ac_top_builddir}. in
898 .) ac_abs_top_builddir=$ac_abs_builddir;;
899 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
900 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
901 esac;;
902 esac
903 case $ac_abs_builddir in
904 .) ac_abs_srcdir=$ac_srcdir;;
905 *)
906 case $ac_srcdir in
907 .) ac_abs_srcdir=$ac_abs_builddir;;
908 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
909 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
910 esac;;
911 esac
912 case $ac_abs_builddir in
913 .) ac_abs_top_srcdir=$ac_top_srcdir;;
914 *)
915 case $ac_top_srcdir in
916 .) ac_abs_top_srcdir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
918 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
919 esac;;
920 esac
921
922 cd $ac_dir
923 # Check for guested configure; otherwise get Cygnus style configure.
924 if test -f $ac_srcdir/configure.gnu; then
925 echo
926 $SHELL $ac_srcdir/configure.gnu --help=recursive
927 elif test -f $ac_srcdir/configure; then
928 echo
929 $SHELL $ac_srcdir/configure --help=recursive
930 elif test -f $ac_srcdir/configure.ac ||
931 test -f $ac_srcdir/configure.in; then
932 echo
933 $ac_configure --help
934 else
935 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936 fi
937 cd "$ac_popdir"
938 done
939 fi
940
941 test -n "$ac_init_help" && exit 0
942 if $ac_init_version; then
943 cat <<\_ACEOF
944
945 Copyright (C) 2003 Free Software Foundation, Inc.
946 This configure script is free software; the Free Software Foundation
947 gives unlimited permission to copy, distribute and modify it.
948 _ACEOF
949 exit 0
950 fi
951 exec 5>config.log
952 cat >&5 <<_ACEOF
953 This file contains any messages produced by compilers while
954 running configure, to aid debugging if configure makes a mistake.
955
956 It was created by $as_me, which was
957 generated by GNU Autoconf 2.59. Invocation command line was
958
959 $ $0 $@
960
961 _ACEOF
962 {
963 cat <<_ASUNAME
964 ## --------- ##
965 ## Platform. ##
966 ## --------- ##
967
968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
973
974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
976
977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
980 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
984
985 _ASUNAME
986
987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988 for as_dir in $PATH
989 do
990 IFS=$as_save_IFS
991 test -z "$as_dir" && as_dir=.
992 echo "PATH: $as_dir"
993 done
994
995 } >&5
996
997 cat >&5 <<_ACEOF
998
999
1000 ## ----------- ##
1001 ## Core tests. ##
1002 ## ----------- ##
1003
1004 _ACEOF
1005
1006
1007 # Keep a trace of the command line.
1008 # Strip out --no-create and --no-recursion so they do not pile up.
1009 # Strip out --silent because we don't want to record it for future runs.
1010 # Also quote any args containing shell meta-characters.
1011 # Make two passes to allow for proper duplicate-argument suppression.
1012 ac_configure_args=
1013 ac_configure_args0=
1014 ac_configure_args1=
1015 ac_sep=
1016 ac_must_keep_next=false
1017 for ac_pass in 1 2
1018 do
1019 for ac_arg
1020 do
1021 case $ac_arg in
1022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 continue ;;
1026 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1027 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028 esac
1029 case $ac_pass in
1030 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1031 2)
1032 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1033 if test $ac_must_keep_next = true; then
1034 ac_must_keep_next=false # Got value, back to normal.
1035 else
1036 case $ac_arg in
1037 *=* | --config-cache | -C | -disable-* | --disable-* \
1038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1040 | -with-* | --with-* | -without-* | --without-* | --x)
1041 case "$ac_configure_args0 " in
1042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1043 esac
1044 ;;
1045 -* ) ac_must_keep_next=true ;;
1046 esac
1047 fi
1048 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1049 # Get rid of the leading space.
1050 ac_sep=" "
1051 ;;
1052 esac
1053 done
1054 done
1055 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1056 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1057
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log. We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064 # Save into config.log some information that might help in debugging.
1065 {
1066 echo
1067
1068 cat <<\_ASBOX
1069 ## ---------------- ##
1070 ## Cache variables. ##
1071 ## ---------------- ##
1072 _ASBOX
1073 echo
1074 # The following way of writing the cache mishandles newlines in values,
1075 {
1076 (set) 2>&1 |
1077 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 *ac_space=\ *)
1079 sed -n \
1080 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 ;;
1083 *)
1084 sed -n \
1085 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1086 ;;
1087 esac;
1088 }
1089 echo
1090
1091 cat <<\_ASBOX
1092 ## ----------------- ##
1093 ## Output variables. ##
1094 ## ----------------- ##
1095 _ASBOX
1096 echo
1097 for ac_var in $ac_subst_vars
1098 do
1099 eval ac_val=$`echo $ac_var`
1100 echo "$ac_var='"'"'$ac_val'"'"'"
1101 done | sort
1102 echo
1103
1104 if test -n "$ac_subst_files"; then
1105 cat <<\_ASBOX
1106 ## ------------- ##
1107 ## Output files. ##
1108 ## ------------- ##
1109 _ASBOX
1110 echo
1111 for ac_var in $ac_subst_files
1112 do
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1117 fi
1118
1119 if test -s confdefs.h; then
1120 cat <<\_ASBOX
1121 ## ----------- ##
1122 ## confdefs.h. ##
1123 ## ----------- ##
1124 _ASBOX
1125 echo
1126 sed "/^$/d" confdefs.h | sort
1127 echo
1128 fi
1129 test "$ac_signal" != 0 &&
1130 echo "$as_me: caught signal $ac_signal"
1131 echo "$as_me: exit $exit_status"
1132 } >&5
1133 rm -f core *.core &&
1134 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 exit $exit_status
1136 ' 0
1137 for ac_signal in 1 2 13 15; do
1138 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 done
1140 ac_signal=0
1141
1142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1143 rm -rf conftest* confdefs.h
1144 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 echo >confdefs.h
1146
1147 # Predefined preprocessor variables.
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 _ACEOF
1157
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 _ACEOF
1172
1173
1174 # Let the site file select an alternate cache file if it wants to.
1175 # Prefer explicitly selected file to automatically selected ones.
1176 if test -z "$CONFIG_SITE"; then
1177 if test "x$prefix" != xNONE; then
1178 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1179 else
1180 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 fi
1182 fi
1183 for ac_site_file in $CONFIG_SITE; do
1184 if test -r "$ac_site_file"; then
1185 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1186 echo "$as_me: loading site script $ac_site_file" >&6;}
1187 sed 's/^/| /' "$ac_site_file" >&5
1188 . "$ac_site_file"
1189 fi
1190 done
1191
1192 if test -r "$cache_file"; then
1193 # Some versions of bash will fail to source /dev/null (special
1194 # files actually), so we avoid doing that.
1195 if test -f "$cache_file"; then
1196 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1197 echo "$as_me: loading cache $cache_file" >&6;}
1198 case $cache_file in
1199 [\\/]* | ?:[\\/]* ) . $cache_file;;
1200 *) . ./$cache_file;;
1201 esac
1202 fi
1203 else
1204 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1205 echo "$as_me: creating cache $cache_file" >&6;}
1206 >$cache_file
1207 fi
1208
1209 # Check that the precious variables saved in the cache have kept the same
1210 # value.
1211 ac_cache_corrupted=false
1212 for ac_var in `(set) 2>&1 |
1213 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1215 eval ac_new_set=\$ac_env_${ac_var}_set
1216 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1217 eval ac_new_val="\$ac_env_${ac_var}_value"
1218 case $ac_old_set,$ac_new_set in
1219 set,)
1220 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1221 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1222 ac_cache_corrupted=: ;;
1223 ,set)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,);;
1228 *)
1229 if test "x$ac_old_val" != "x$ac_new_val"; then
1230 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1231 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1232 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1233 echo "$as_me: former value: $ac_old_val" >&2;}
1234 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1235 echo "$as_me: current value: $ac_new_val" >&2;}
1236 ac_cache_corrupted=:
1237 fi;;
1238 esac
1239 # Pass precious variables to config.status.
1240 if test "$ac_new_set" = set; then
1241 case $ac_new_val in
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 *) ac_arg=$ac_var=$ac_new_val ;;
1245 esac
1246 case " $ac_configure_args " in
1247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1248 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 esac
1250 fi
1251 done
1252 if $ac_cache_corrupted; then
1253 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1254 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1255 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1256 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1257 { (exit 1); exit 1; }; }
1258 fi
1259
1260 ac_ext=c
1261 ac_cpp='$CPP $CPPFLAGS'
1262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284 am__api_version="1.6"
1285 ac_aux_dir=
1286 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1287 if test -f $ac_dir/install-sh; then
1288 ac_aux_dir=$ac_dir
1289 ac_install_sh="$ac_aux_dir/install-sh -c"
1290 break
1291 elif test -f $ac_dir/install.sh; then
1292 ac_aux_dir=$ac_dir
1293 ac_install_sh="$ac_aux_dir/install.sh -c"
1294 break
1295 elif test -f $ac_dir/shtool; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/shtool install -c"
1298 break
1299 fi
1300 done
1301 if test -z "$ac_aux_dir"; then
1302 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1303 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1304 { (exit 1); exit 1; }; }
1305 fi
1306 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1307 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1308 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1309
1310 # Find a good install program. We prefer a C program (faster),
1311 # so one script is as good as another. But avoid the broken or
1312 # incompatible versions:
1313 # SysV /etc/install, /usr/sbin/install
1314 # SunOS /usr/etc/install
1315 # IRIX /sbin/install
1316 # AIX /bin/install
1317 # AmigaOS /C/install, which installs bootblocks on floppy discs
1318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1321 # OS/2's system install, which has a completely different semantic
1322 # ./install, which can be erroneously created by make from ./install.sh.
1323 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1324 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1325 if test -z "$INSTALL"; then
1326 if test "${ac_cv_path_install+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330 for as_dir in $PATH
1331 do
1332 IFS=$as_save_IFS
1333 test -z "$as_dir" && as_dir=.
1334 # Account for people who put trailing slashes in PATH elements.
1335 case $as_dir/ in
1336 ./ | .// | /cC/* | \
1337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1338 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1339 /usr/ucb/* ) ;;
1340 *)
1341 # OSF1 and SCO ODT 3.0 have their own names for install.
1342 # Don't use installbsd from OSF since it installs stuff as root
1343 # by default.
1344 for ac_prog in ginstall scoinst install; do
1345 for ac_exec_ext in '' $ac_executable_extensions; do
1346 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1347 if test $ac_prog = install &&
1348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1349 # AIX install. It has an incompatible calling convention.
1350 :
1351 elif test $ac_prog = install &&
1352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1353 # program-specific install script used by HP pwplus--don't use.
1354 :
1355 else
1356 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1357 break 3
1358 fi
1359 fi
1360 done
1361 done
1362 ;;
1363 esac
1364 done
1365
1366
1367 fi
1368 if test "${ac_cv_path_install+set}" = set; then
1369 INSTALL=$ac_cv_path_install
1370 else
1371 # As a last resort, use the slow shell script. We don't cache a
1372 # path for INSTALL within a source directory, because that will
1373 # break other packages using the cache if that directory is
1374 # removed, or if the path is relative.
1375 INSTALL=$ac_install_sh
1376 fi
1377 fi
1378 echo "$as_me:$LINENO: result: $INSTALL" >&5
1379 echo "${ECHO_T}$INSTALL" >&6
1380
1381 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1382 # It thinks the first close brace ends the variable substitution.
1383 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1384
1385 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1386
1387 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1388
1389 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1390 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1391 # Just in case
1392 sleep 1
1393 echo timestamp > conftest.file
1394 # Do `set' in a subshell so we don't clobber the current shell's
1395 # arguments. Must try -L first in case configure is actually a
1396 # symlink; some systems play weird games with the mod time of symlinks
1397 # (eg FreeBSD returns the mod time of the symlink's containing
1398 # directory).
1399 if (
1400 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1401 if test "$*" = "X"; then
1402 # -L didn't work.
1403 set X `ls -t $srcdir/configure conftest.file`
1404 fi
1405 rm -f conftest.file
1406 if test "$*" != "X $srcdir/configure conftest.file" \
1407 && test "$*" != "X conftest.file $srcdir/configure"; then
1408
1409 # If neither matched, then we have a broken ls. This can happen
1410 # if, for instance, CONFIG_SHELL is bash and it inherits a
1411 # broken ls alias from the environment. This has actually
1412 # happened. Such a system could not be considered "sane".
1413 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1414 alias in your environment" >&5
1415 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1416 alias in your environment" >&2;}
1417 { (exit 1); exit 1; }; }
1418 fi
1419
1420 test "$2" = conftest.file
1421 )
1422 then
1423 # Ok.
1424 :
1425 else
1426 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1427 Check your system clock" >&5
1428 echo "$as_me: error: newly created file is older than distributed files!
1429 Check your system clock" >&2;}
1430 { (exit 1); exit 1; }; }
1431 fi
1432 echo "$as_me:$LINENO: result: yes" >&5
1433 echo "${ECHO_T}yes" >&6
1434 test "$program_prefix" != NONE &&
1435 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1436 # Use a double $ so make ignores it.
1437 test "$program_suffix" != NONE &&
1438 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1439 # Double any \ or $. echo might interpret backslashes.
1440 # By default was `s,x,x', remove it if useless.
1441 cat <<\_ACEOF >conftest.sed
1442 s/[\\$]/&&/g;s/;s,x,x,$//
1443 _ACEOF
1444 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1445 rm conftest.sed
1446
1447
1448 # expand $ac_aux_dir to an absolute path
1449 am_aux_dir=`cd $ac_aux_dir && pwd`
1450
1451 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1452 # Use eval to expand $SHELL
1453 if eval "$MISSING --run true"; then
1454 am_missing_run="$MISSING --run "
1455 else
1456 am_missing_run=
1457 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1458 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1459 fi
1460
1461 for ac_prog in gawk mawk nawk awk
1462 do
1463 # Extract the first word of "$ac_prog", so it can be a program name with args.
1464 set dummy $ac_prog; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_AWK+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 if test -n "$AWK"; then
1471 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1475 do
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_AWK="$ac_prog"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 break 2
1483 fi
1484 done
1485 done
1486
1487 fi
1488 fi
1489 AWK=$ac_cv_prog_AWK
1490 if test -n "$AWK"; then
1491 echo "$as_me:$LINENO: result: $AWK" >&5
1492 echo "${ECHO_T}$AWK" >&6
1493 else
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 test -n "$AWK" && break
1499 done
1500
1501 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1502 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1503 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1504 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 cat >conftest.make <<\_ACEOF
1508 all:
1509 @echo 'ac_maketemp="$(MAKE)"'
1510 _ACEOF
1511 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1512 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1513 if test -n "$ac_maketemp"; then
1514 eval ac_cv_prog_make_${ac_make}_set=yes
1515 else
1516 eval ac_cv_prog_make_${ac_make}_set=no
1517 fi
1518 rm -f conftest.make
1519 fi
1520 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1521 echo "$as_me:$LINENO: result: yes" >&5
1522 echo "${ECHO_T}yes" >&6
1523 SET_MAKE=
1524 else
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 SET_MAKE="MAKE=${MAKE-make}"
1528 fi
1529
1530 # test to see if srcdir already configured
1531 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1532 test -f $srcdir/config.status; then
1533 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1534 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1535 { (exit 1); exit 1; }; }
1536 fi
1537
1538 # Define the identity of the package.
1539 PACKAGE=ogmtools
1540 VERSION=1.5
1541
1542
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE "$PACKAGE"
1545 _ACEOF
1546
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define VERSION "$VERSION"
1550 _ACEOF
1551
1552 # Some tools Automake needs.
1553
1554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1555
1556
1557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1558
1559
1560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1561
1562
1563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1564
1565
1566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1567
1568
1569 AMTAR=${AMTAR-"${am_missing_run}tar"}
1570
1571 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1572
1573 # Installed binaries are usually stripped using `strip' when the user
1574 # run `make install-strip'. However `strip' might not be the right
1575 # tool to use in cross-compilation environments, therefore Automake
1576 # will honor the `STRIP' environment variable to overrule this program.
1577 if test "$cross_compiling" != no; then
1578 if test -n "$ac_tool_prefix"; then
1579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1580 set dummy ${ac_tool_prefix}strip; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_STRIP+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$STRIP"; then
1587 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 STRIP=$ac_cv_prog_STRIP
1606 if test -n "$STRIP"; then
1607 echo "$as_me:$LINENO: result: $STRIP" >&5
1608 echo "${ECHO_T}$STRIP" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614 fi
1615 if test -z "$ac_cv_prog_STRIP"; then
1616 ac_ct_STRIP=$STRIP
1617 # Extract the first word of "strip", so it can be a program name with args.
1618 set dummy strip; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$ac_ct_STRIP"; then
1625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_ac_ct_STRIP="strip"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638 done
1639 done
1640
1641 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1642 fi
1643 fi
1644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1645 if test -n "$ac_ct_STRIP"; then
1646 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1647 echo "${ECHO_T}$ac_ct_STRIP" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 STRIP=$ac_ct_STRIP
1654 else
1655 STRIP="$ac_cv_prog_STRIP"
1656 fi
1657
1658 fi
1659 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1660
1661 # We need awk for the "check" target. The system "awk" is bad on
1662 # some platforms.
1663
1664
1665
1666
1667 ac_ext=c
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1693 fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 CC=$ac_cv_prog_CC
1700 if test -n "$CC"; then
1701 echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708 fi
1709 if test -z "$ac_cv_prog_CC"; then
1710 ac_ct_CC=$CC
1711 # Extract the first word of "gcc", so it can be a program name with args.
1712 set dummy gcc; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 if test -n "$ac_ct_CC"; then
1719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_CC="gcc"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1731 fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738 if test -n "$ac_ct_CC"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1740 echo "${ECHO_T}$ac_ct_CC" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746 CC=$ac_ct_CC
1747 else
1748 CC="$ac_cv_prog_CC"
1749 fi
1750
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="${ac_tool_prefix}cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 fi
1789 if test -z "$ac_cv_prog_CC"; then
1790 ac_ct_CC=$CC
1791 # Extract the first word of "cc", so it can be a program name with args.
1792 set dummy cc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798 if test -n "$ac_ct_CC"; then
1799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804 IFS=$as_save_IFS
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_ac_ct_CC="cc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 break 2
1811 fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818 if test -n "$ac_ct_CC"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820 echo "${ECHO_T}$ac_ct_CC" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 CC=$ac_ct_CC
1827 else
1828 CC="$ac_cv_prog_CC"
1829 fi
1830
1831 fi
1832 if test -z "$CC"; then
1833 # Extract the first word of "cc", so it can be a program name with args.
1834 set dummy cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 ac_prog_rejected=no
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1852 ac_prog_rejected=yes
1853 continue
1854 fi
1855 ac_cv_prog_CC="cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1858 fi
1859 done
1860 done
1861
1862 if test $ac_prog_rejected = yes; then
1863 # We found a bogon in the path, so make sure we never use it.
1864 set dummy $ac_cv_prog_CC
1865 shift
1866 if test $# != 0; then
1867 # We chose a different compiler from the bogus one.
1868 # However, it has the same basename, so the bogon will be chosen
1869 # first if we set CC to just the basename; use the full file name.
1870 shift
1871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1872 fi
1873 fi
1874 fi
1875 fi
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 fi
1886 if test -z "$CC"; then
1887 if test -n "$ac_tool_prefix"; then
1888 for ac_prog in cl
1889 do
1890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925 test -n "$CC" && break
1926 done
1927 fi
1928 if test -z "$CC"; then
1929 ac_ct_CC=$CC
1930 for ac_prog in cl
1931 do
1932 # Extract the first word of "$ac_prog", so it can be a program name with args.
1933 set dummy $ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CC="$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967 test -n "$ac_ct_CC" && break
1968 done
1969
1970 CC=$ac_ct_CC
1971 fi
1972
1973 fi
1974
1975
1976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1977 See \`config.log' for more details." >&5
1978 echo "$as_me: error: no acceptable C compiler found in \$PATH
1979 See \`config.log' for more details." >&2;}
1980 { (exit 1); exit 1; }; }
1981
1982 # Provide some information about the compiler.
1983 echo "$as_me:$LINENO:" \
1984 "checking for C compiler version" >&5
1985 ac_compiler=`set X $ac_compile; echo $2`
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1987 (eval $ac_compiler --version </dev/null >&5) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }
1991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1992 (eval $ac_compiler -v </dev/null >&5) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1997 (eval $ac_compiler -V </dev/null >&5) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2001
2002 cat >conftest.$ac_ext <<_ACEOF
2003 /* confdefs.h. */
2004 _ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h. */
2008
2009 int
2010 main ()
2011 {
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 ac_clean_files_save=$ac_clean_files
2018 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2019 # Try to create an executable without -o first, disregard a.out.
2020 # It will help us diagnose broken compilers, and finding out an intuition
2021 # of exeext.
2022 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2023 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2024 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2025 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2026 (eval $ac_link_default) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 # Find the output, starting from the most likely. This scheme is
2031 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2032 # resort.
2033
2034 # Be careful to initialize this variable, since it used to be cached.
2035 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2036 ac_cv_exeext=
2037 # b.out is created by i960 compilers.
2038 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2039 do
2040 test -f "$ac_file" || continue
2041 case $ac_file in
2042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2043 ;;
2044 conftest.$ac_ext )
2045 # This is the source file.
2046 ;;
2047 [ab].out )
2048 # We found the default executable, but exeext='' is most
2049 # certainly right.
2050 break;;
2051 *.* )
2052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053 # FIXME: I believe we export ac_cv_exeext for Libtool,
2054 # but it would be cool to find out if it's true. Does anybody
2055 # maintain Libtool? --akim.
2056 export ac_cv_exeext
2057 break;;
2058 * )
2059 break;;
2060 esac
2061 done
2062 else
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: C compiler cannot create executables
2069 See \`config.log' for more details." >&2;}
2070 { (exit 77); exit 77; }; }
2071 fi
2072
2073 ac_exeext=$ac_cv_exeext
2074 echo "$as_me:$LINENO: result: $ac_file" >&5
2075 echo "${ECHO_T}$ac_file" >&6
2076
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2080 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2081 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2082 # If not cross compiling, check that we can run a simple program.
2083 if test "$cross_compiling" != yes; then
2084 if { ac_try='./$ac_file'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 cross_compiling=no
2091 else
2092 if test "$cross_compiling" = maybe; then
2093 cross_compiling=yes
2094 else
2095 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2096 If you meant to cross compile, use \`--host'.
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: cannot run C compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
2102 fi
2103 fi
2104 fi
2105 echo "$as_me:$LINENO: result: yes" >&5
2106 echo "${ECHO_T}yes" >&6
2107
2108 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2109 ac_clean_files=$ac_clean_files_save
2110 # Check the compiler produces executables we can run. If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2113 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2114 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2115 echo "${ECHO_T}$cross_compiling" >&6
2116
2117 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2118 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2120 (eval $ac_link) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2125 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2126 # work properly (i.e., refer to `conftest.exe'), while it won't with
2127 # `rm'.
2128 for ac_file in conftest.exe conftest conftest.*; do
2129 test -f "$ac_file" || continue
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133 export ac_cv_exeext
2134 break;;
2135 * ) break;;
2136 esac
2137 done
2138 else
2139 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2144 fi
2145
2146 rm -f conftest$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2148 echo "${ECHO_T}$ac_cv_exeext" >&6
2149
2150 rm -f conftest.$ac_ext
2151 EXEEXT=$ac_cv_exeext
2152 ac_exeext=$EXEEXT
2153 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2154 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2155 if test "${ac_cv_objext+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 cat >conftest.$ac_ext <<_ACEOF
2159 /* confdefs.h. */
2160 _ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2164
2165 int
2166 main ()
2167 {
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 rm -f conftest.o conftest.obj
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183 break;;
2184 esac
2185 done
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196
2197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2200 echo "${ECHO_T}$ac_cv_objext" >&6
2201 OBJEXT=$ac_cv_objext
2202 ac_objext=$OBJEXT
2203 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2214
2215 int
2216 main ()
2217 {
2218 #ifndef __GNUC__
2219 choke me
2220 #endif
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_compiler_gnu=yes
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_compiler_gnu=no
2253 fi
2254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2256
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2260 GCC=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CFLAGS=${CFLAGS+set}
2262 ac_save_CFLAGS=$CFLAGS
2263 CFLAGS="-g"
2264 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2265 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cc_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 cat >conftest.$ac_ext <<_ACEOF
2270 /* confdefs.h. */
2271 _ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2275
2276 int
2277 main ()
2278 {
2279
2280 ;
2281 return 0;
2282 }
2283 _ACEOF
2284 rm -f conftest.$ac_objext
2285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>conftest.er1
2287 ac_status=$?
2288 grep -v '^ *+' conftest.er1 >conftest.err
2289 rm -f conftest.er1
2290 cat conftest.err >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_cv_prog_cc_g=yes
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 ac_cv_prog_cc_g=no
2311 fi
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 fi
2314 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2315 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2316 if test "$ac_test_CFLAGS" = set; then
2317 CFLAGS=$ac_save_CFLAGS
2318 elif test $ac_cv_prog_cc_g = yes; then
2319 if test "$GCC" = yes; then
2320 CFLAGS="-g -O2"
2321 else
2322 CFLAGS="-g"
2323 fi
2324 else
2325 if test "$GCC" = yes; then
2326 CFLAGS="-O2"
2327 else
2328 CFLAGS=
2329 fi
2330 fi
2331 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2332 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2333 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 ac_cv_prog_cc_stdc=no
2337 ac_save_CC=$CC
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2344 #include <stdarg.h>
2345 #include <stdio.h>
2346 #include <sys/types.h>
2347 #include <sys/stat.h>
2348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2349 struct buf { int x; };
2350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2351 static char *e (p, i)
2352 char **p;
2353 int i;
2354 {
2355 return p[i];
2356 }
2357 static char *f (char * (*g) (char **, int), char **p, ...)
2358 {
2359 char *s;
2360 va_list v;
2361 va_start (v,p);
2362 s = g (p, va_arg (v,int));
2363 va_end (v);
2364 return s;
2365 }
2366
2367 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2368 function prototypes and stuff, but not '\xHH' hex character constants.
2369 These don't provoke an error unfortunately, instead are silently treated
2370 as 'x'. The following induces an error, until -std1 is added to get
2371 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2372 array size at least. It's necessary to write '\x00'==0 to get something
2373 that's true only with -std1. */
2374 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2375
2376 int test (int i, double x);
2377 struct s1 {int (*f) (int a);};
2378 struct s2 {int (*f) (double a);};
2379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2380 int argc;
2381 char **argv;
2382 int
2383 main ()
2384 {
2385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 # Don't try gcc -ansi; that turns off useful extensions and
2391 # breaks some systems' header files.
2392 # AIX -qlanglvl=ansi
2393 # Ultrix and OSF/1 -std1
2394 # HP-UX 10.20 and later -Ae
2395 # HP-UX older versions -Aa -D_HPUX_SOURCE
2396 # SVR4 -Xc -D__EXTENSIONS__
2397 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398 do
2399 CC="$ac_save_CC $ac_arg"
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2422 break
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext
2429 done
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2431 CC=$ac_save_CC
2432
2433 fi
2434
2435 case "x$ac_cv_prog_cc_stdc" in
2436 x|xno)
2437 echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2439 *)
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442 CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 esac
2444
2445 # Some people use a C++ compiler to compile C. Since we use `exit',
2446 # in C++ we need to declare it. In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #ifndef __cplusplus
2451 choke me
2452 #endif
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2476 '' \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2481 'void exit (int);'
2482 do
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 #include <stdlib.h>
2491 int
2492 main ()
2493 {
2494 exit (42);
2495 ;
2496 return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 :
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 continue
2526 fi
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 $ac_declaration
2535 int
2536 main ()
2537 {
2538 exit (42);
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 break
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 fi
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2577 fi
2578
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 rm -f .deps 2>/dev/null
2591 mkdir .deps 2>/dev/null
2592 if test -d .deps; then
2593 DEPDIR=.deps
2594 else
2595 # MS-DOS does not allow filenames that begin with a dot.
2596 DEPDIR=_deps
2597 fi
2598 rmdir .deps 2>/dev/null
2599
2600
2601 ac_config_commands="$ac_config_commands depfiles"
2602
2603
2604 am_make=${MAKE-make}
2605 cat > confinc << 'END'
2606 doit:
2607 @echo done
2608 END
2609 # If we don't find an include directive, just comment out the code.
2610 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2611 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2612 am__include="#"
2613 am__quote=
2614 _am_result=none
2615 # First try GNU make style include.
2616 echo "include confinc" > confmf
2617 # We grep out `Entering directory' and `Leaving directory'
2618 # messages which can occur if `w' ends up in MAKEFLAGS.
2619 # In particular we don't look at `^make:' because GNU make might
2620 # be invoked under some other name (usually "gmake"), in which
2621 # case it prints its new name instead of `make'.
2622 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2623 am__include=include
2624 am__quote=
2625 _am_result=GNU
2626 fi
2627 # Now try BSD make style include.
2628 if test "$am__include" = "#"; then
2629 echo '.include "confinc"' > confmf
2630 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2631 am__include=.include
2632 am__quote="\""
2633 _am_result=BSD
2634 fi
2635 fi
2636
2637
2638 echo "$as_me:$LINENO: result: $_am_result" >&5
2639 echo "${ECHO_T}$_am_result" >&6
2640 rm -f confinc confmf
2641
2642 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2643 if test "${enable_dependency_tracking+set}" = set; then
2644 enableval="$enable_dependency_tracking"
2645
2646 fi;
2647 if test "x$enable_dependency_tracking" != xno; then
2648 am_depcomp="$ac_aux_dir/depcomp"
2649 AMDEPBACKSLASH='\'
2650 fi
2651
2652
2653 if test "x$enable_dependency_tracking" != xno; then
2654 AMDEP_TRUE=
2655 AMDEP_FALSE='#'
2656 else
2657 AMDEP_TRUE='#'
2658 AMDEP_FALSE=
2659 fi
2660
2661
2662
2663
2664 depcc="$CC" am_compiler_list=
2665
2666 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2667 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2668 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2672 # We make a subdir and do the tests there. Otherwise we can end up
2673 # making bogus files that we don't know about and never remove. For
2674 # instance it was reported that on HP-UX the gcc test will end up
2675 # making a dummy file named `D' -- because `-MD' means `put the output
2676 # in D'.
2677 mkdir conftest.dir
2678 # Copy depcomp to subdir because otherwise we won't find it if we're
2679 # using a relative directory.
2680 cp "$am_depcomp" conftest.dir
2681 cd conftest.dir
2682
2683 am_cv_CC_dependencies_compiler_type=none
2684 if test "$am_compiler_list" = ""; then
2685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2686 fi
2687 for depmode in $am_compiler_list; do
2688 # We need to recreate these files for each test, as the compiler may
2689 # overwrite some of them when testing with obscure command lines.
2690 # This happens at least with the AIX C compiler.
2691 echo '#include "conftest.h"' > conftest.c
2692 echo 'int i;' > conftest.h
2693 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2694
2695 case $depmode in
2696 nosideeffect)
2697 # after this tag, mechanisms are not by side-effect, so they'll
2698 # only be used when explicitly requested
2699 if test "x$enable_dependency_tracking" = xyes; then
2700 continue
2701 else
2702 break
2703 fi
2704 ;;
2705 none) break ;;
2706 esac
2707 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2708 # mode. It turns out that the SunPro C++ compiler does not properly
2709 # handle `-M -o', and we need to detect this.
2710 if depmode=$depmode \
2711 source=conftest.c object=conftest.o \
2712 depfile=conftest.Po tmpdepfile=conftest.TPo \
2713 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2714 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2716 am_cv_CC_dependencies_compiler_type=$depmode
2717 break
2718 fi
2719 done
2720
2721 cd ..
2722 rm -rf conftest.dir
2723 else
2724 am_cv_CC_dependencies_compiler_type=none
2725 fi
2726
2727 fi
2728 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2729 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2731
2732
2733 ac_ext=cc
2734 ac_cpp='$CXXCPP $CPPFLAGS'
2735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2740 do
2741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CXX+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -n "$CXX"; then
2749 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764
2765 fi
2766 fi
2767 CXX=$ac_cv_prog_CXX
2768 if test -n "$CXX"; then
2769 echo "$as_me:$LINENO: result: $CXX" >&5
2770 echo "${ECHO_T}$CXX" >&6
2771 else
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774 fi
2775
2776 test -n "$CXX" && break
2777 done
2778 fi
2779 if test -z "$CXX"; then
2780 ac_ct_CXX=$CXX
2781 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2782 do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 if test -n "$ac_ct_CXX"; then
2791 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_ac_ct_CXX="$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806
2807 fi
2808 fi
2809 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2810 if test -n "$ac_ct_CXX"; then
2811 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2812 echo "${ECHO_T}$ac_ct_CXX" >&6
2813 else
2814 echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6
2816 fi
2817
2818 test -n "$ac_ct_CXX" && break
2819 done
2820 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2821
2822 CXX=$ac_ct_CXX
2823 fi
2824
2825
2826 # Provide some information about the compiler.
2827 echo "$as_me:$LINENO:" \
2828 "checking for C++ compiler version" >&5
2829 ac_compiler=`set X $ac_compile; echo $2`
2830 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2831 (eval $ac_compiler --version </dev/null >&5) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2836 (eval $ac_compiler -v </dev/null >&5) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2841 (eval $ac_compiler -V </dev/null >&5) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845
2846 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2847 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2848 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857
2858 int
2859 main ()
2860 {
2861 #ifndef __GNUC__
2862 choke me
2863 #endif
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_compiler_gnu=yes
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ac_compiler_gnu=no
2896 fi
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2899
2900 fi
2901 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2903 GXX=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CXXFLAGS=${CXXFLAGS+set}
2905 ac_save_CXXFLAGS=$CXXFLAGS
2906 CXXFLAGS="-g"
2907 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2908 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2909 if test "${ac_cv_prog_cxx_g+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918
2919 int
2920 main ()
2921 {
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_prog_cxx_g=yes
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ac_cv_prog_cxx_g=no
2954 fi
2955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 fi
2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2959 if test "$ac_test_CXXFLAGS" = set; then
2960 CXXFLAGS=$ac_save_CXXFLAGS
2961 elif test $ac_cv_prog_cxx_g = yes; then
2962 if test "$GXX" = yes; then
2963 CXXFLAGS="-g -O2"
2964 else
2965 CXXFLAGS="-g"
2966 fi
2967 else
2968 if test "$GXX" = yes; then
2969 CXXFLAGS="-O2"
2970 else
2971 CXXFLAGS=
2972 fi
2973 fi
2974 for ac_declaration in \
2975 '' \
2976 'extern "C" void std::exit (int) throw (); using std::exit;' \
2977 'extern "C" void std::exit (int); using std::exit;' \
2978 'extern "C" void exit (int) throw ();' \
2979 'extern "C" void exit (int);' \
2980 'void exit (int);'
2981 do
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 $ac_declaration
2989 #include <stdlib.h>
2990 int
2991 main ()
2992 {
2993 exit (42);
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 :
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 continue
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 $ac_declaration
3034 int
3035 main ()
3036 {
3037 exit (42);
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 break
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 done
3071 rm -f conftest*
3072 if test -n "$ac_declaration"; then
3073 echo '#ifdef __cplusplus' >>confdefs.h
3074 echo $ac_declaration >>confdefs.h
3075 echo '#endif' >>confdefs.h
3076 fi
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084 depcc="$CXX" am_compiler_list=
3085
3086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092 # We make a subdir and do the tests there. Otherwise we can end up
3093 # making bogus files that we don't know about and never remove. For
3094 # instance it was reported that on HP-UX the gcc test will end up
3095 # making a dummy file named `D' -- because `-MD' means `put the output
3096 # in D'.
3097 mkdir conftest.dir
3098 # Copy depcomp to subdir because otherwise we won't find it if we're
3099 # using a relative directory.
3100 cp "$am_depcomp" conftest.dir
3101 cd conftest.dir
3102
3103 am_cv_CXX_dependencies_compiler_type=none
3104 if test "$am_compiler_list" = ""; then
3105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3106 fi
3107 for depmode in $am_compiler_list; do
3108 # We need to recreate these files for each test, as the compiler may
3109 # overwrite some of them when testing with obscure command lines.
3110 # This happens at least with the AIX C compiler.
3111 echo '#include "conftest.h"' > conftest.c
3112 echo 'int i;' > conftest.h
3113 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3114
3115 case $depmode in
3116 nosideeffect)
3117 # after this tag, mechanisms are not by side-effect, so they'll
3118 # only be used when explicitly requested
3119 if test "x$enable_dependency_tracking" = xyes; then
3120 continue
3121 else
3122 break
3123 fi
3124 ;;
3125 none) break ;;
3126 esac
3127 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3128 # mode. It turns out that the SunPro C++ compiler does not properly
3129 # handle `-M -o', and we need to detect this.
3130 if depmode=$depmode \
3131 source=conftest.c object=conftest.o \
3132 depfile=conftest.Po tmpdepfile=conftest.TPo \
3133 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3134 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3136 am_cv_CXX_dependencies_compiler_type=$depmode
3137 break
3138 fi
3139 done
3140
3141 cd ..
3142 rm -rf conftest.dir
3143 else
3144 am_cv_CXX_dependencies_compiler_type=none
3145 fi
3146
3147 fi
3148 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3149 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3150 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3151
3152
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3160 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3161 # On Suns, sometimes $CPP names a directory.
3162 if test -n "$CPP" && test -d "$CPP"; then
3163 CPP=
3164 fi
3165 if test -z "$CPP"; then
3166 if test "${ac_cv_prog_CPP+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 # Double quotes because CPP needs to be expanded
3170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3171 do
3172 ac_preproc_ok=false
3173 for ac_c_preproc_warn_flag in '' yes
3174 do
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3178 # <limits.h> exists even on freestanding compilers.
3179 # On the NeXT, cc -E runs the code through the compiler's parser,
3180 # not just through cpp. "Syntax error" is here to catch this case.
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #ifdef __STDC__
3188 # include <limits.h>
3189 #else
3190 # include <assert.h>
3191 #endif
3192 Syntax error
3193 _ACEOF
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205 else
3206 ac_cpp_err=
3207 fi
3208 else
3209 ac_cpp_err=yes
3210 fi
3211 if test -z "$ac_cpp_err"; then
3212 :
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Broken: fails on valid input.
3218 continue
3219 fi
3220 rm -f conftest.err conftest.$ac_ext
3221
3222 # OK, works on sane cases. Now check whether non-existent headers
3223 # can be detected and how.
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <ac_nonexistent.h>
3231 _ACEOF
3232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3245 fi
3246 else
3247 ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250 # Broken: success on invalid input.
3251 continue
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 # Passes both tests.
3257 ac_preproc_ok=:
3258 break
3259 fi
3260 rm -f conftest.err conftest.$ac_ext
3261
3262 done
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.$ac_ext
3265 if $ac_preproc_ok; then
3266 break
3267 fi
3268
3269 done
3270 ac_cv_prog_CPP=$CPP
3271
3272 fi
3273 CPP=$ac_cv_prog_CPP
3274 else
3275 ac_cv_prog_CPP=$CPP
3276 fi
3277 echo "$as_me:$LINENO: result: $CPP" >&5
3278 echo "${ECHO_T}$CPP" >&6
3279 ac_preproc_ok=false
3280 for ac_c_preproc_warn_flag in '' yes
3281 do
3282 # Use a header file that comes with gcc, so configuring glibc
3283 # with a fresh cross-compiler works.
3284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3285 # <limits.h> exists even on freestanding compilers.
3286 # On the NeXT, cc -E runs the code through the compiler's parser,
3287 # not just through cpp. "Syntax error" is here to catch this case.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #ifdef __STDC__
3295 # include <limits.h>
3296 #else
3297 # include <assert.h>
3298 #endif
3299 Syntax error
3300 _ACEOF
3301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 else
3313 ac_cpp_err=
3314 fi
3315 else
3316 ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319 :
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324 # Broken: fails on valid input.
3325 continue
3326 fi
3327 rm -f conftest.err conftest.$ac_ext
3328
3329 # OK, works on sane cases. Now check whether non-existent headers
3330 # can be detected and how.
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #include <ac_nonexistent.h>
3338 _ACEOF
3339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } >/dev/null; then
3347 if test -s conftest.err; then
3348 ac_cpp_err=$ac_c_preproc_warn_flag
3349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350 else
3351 ac_cpp_err=
3352 fi
3353 else
3354 ac_cpp_err=yes
3355 fi
3356 if test -z "$ac_cpp_err"; then
3357 # Broken: success on invalid input.
3358 continue
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 # Passes both tests.
3364 ac_preproc_ok=:
3365 break
3366 fi
3367 rm -f conftest.err conftest.$ac_ext
3368
3369 done
3370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3371 rm -f conftest.err conftest.$ac_ext
3372 if $ac_preproc_ok; then
3373 :
3374 else
3375 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387
3388
3389 echo "$as_me:$LINENO: checking for egrep" >&5
3390 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3391 if test "${ac_cv_prog_egrep+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3395 then ac_cv_prog_egrep='grep -E'
3396 else ac_cv_prog_egrep='egrep'
3397 fi
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3400 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3401 EGREP=$ac_cv_prog_egrep
3402
3403
3404 if test $ac_cv_c_compiler_gnu = yes; then
3405 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3406 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3407 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 ac_pattern="Autoconf.*'x'"
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include <sgtty.h>
3418 Autoconf TIOCGETP
3419 _ACEOF
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422 ac_cv_prog_gcc_traditional=yes
3423 else
3424 ac_cv_prog_gcc_traditional=no
3425 fi
3426 rm -f conftest*
3427
3428
3429 if test $ac_cv_prog_gcc_traditional = no; then
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <termio.h>
3437 Autoconf TCGETA
3438 _ACEOF
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3441 ac_cv_prog_gcc_traditional=yes
3442 fi
3443 rm -f conftest*
3444
3445 fi
3446 fi
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3448 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3449 if test $ac_cv_prog_gcc_traditional = yes; then
3450 CC="$CC -traditional"
3451 fi
3452 fi
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3460 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3461 # On Suns, sometimes $CPP names a directory.
3462 if test -n "$CPP" && test -d "$CPP"; then
3463 CPP=
3464 fi
3465 if test -z "$CPP"; then
3466 if test "${ac_cv_prog_CPP+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 # Double quotes because CPP needs to be expanded
3470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3471 do
3472 ac_preproc_ok=false
3473 for ac_c_preproc_warn_flag in '' yes
3474 do
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 Syntax error
3493 _ACEOF
3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 else
3506 ac_cpp_err=
3507 fi
3508 else
3509 ac_cpp_err=yes
3510 fi
3511 if test -z "$ac_cpp_err"; then
3512 :
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Broken: fails on valid input.
3518 continue
3519 fi
3520 rm -f conftest.err conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether non-existent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null; then
3540 if test -s conftest.err; then
3541 ac_cpp_err=$ac_c_preproc_warn_flag
3542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 else
3544 ac_cpp_err=
3545 fi
3546 else
3547 ac_cpp_err=yes
3548 fi
3549 if test -z "$ac_cpp_err"; then
3550 # Broken: success on invalid input.
3551 continue
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566 break
3567 fi
3568
3569 done
3570 ac_cv_prog_CPP=$CPP
3571
3572 fi
3573 CPP=$ac_cv_prog_CPP
3574 else
3575 ac_cv_prog_CPP=$CPP
3576 fi
3577 echo "$as_me:$LINENO: result: $CPP" >&5
3578 echo "${ECHO_T}$CPP" >&6
3579 ac_preproc_ok=false
3580 for ac_c_preproc_warn_flag in '' yes
3581 do
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #ifdef __STDC__
3595 # include <limits.h>
3596 #else
3597 # include <assert.h>
3598 #endif
3599 Syntax error
3600 _ACEOF
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615 else
3616 ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
3619 :
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Broken: fails on valid input.
3625 continue
3626 fi
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 # OK, works on sane cases. Now check whether non-existent headers
3630 # can be detected and how.
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 #include <ac_nonexistent.h>
3638 _ACEOF
3639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653 else
3654 ac_cpp_err=yes
3655 fi
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3658 continue
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667 rm -f conftest.err conftest.$ac_ext
3668
3669 done
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then
3673 :
3674 else
3675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_RANLIB+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$RANLIB"; then
3697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712
3713 fi
3714 fi
3715 RANLIB=$ac_cv_prog_RANLIB
3716 if test -n "$RANLIB"; then
3717 echo "$as_me:$LINENO: result: $RANLIB" >&5
3718 echo "${ECHO_T}$RANLIB" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724 fi
3725 if test -z "$ac_cv_prog_RANLIB"; then
3726 ac_ct_RANLIB=$RANLIB
3727 # Extract the first word of "ranlib", so it can be a program name with args.
3728 set dummy ranlib; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if test -n "$ac_ct_RANLIB"; then
3735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_RANLIB="ranlib"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750
3751 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3752 fi
3753 fi
3754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3755 if test -n "$ac_ct_RANLIB"; then
3756 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3757 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 RANLIB=$ac_ct_RANLIB
3764 else
3765 RANLIB="$ac_cv_prog_RANLIB"
3766 fi
3767
3768
3769
3770 # Check whether --with-ogg-prefix or --without-ogg-prefix was given.
3771 if test "${with_ogg_prefix+set}" = set; then
3772 withval="$with_ogg_prefix"
3773 ogg_prefix="$withval"
3774 else
3775 ogg_prefix=""
3776 fi;
3777 # Check whether --enable-oggtest or --disable-oggtest was given.
3778 if test "${enable_oggtest+set}" = set; then
3779 enableval="$enable_oggtest"
3780
3781 else
3782 enable_oggtest=yes
3783 fi;
3784
3785 if test "x$ogg_prefix" != "x"; then
3786 ogg_args="$ogg_args --prefix=$ogg_prefix"
3787 OGG_CFLAGS="-I$ogg_prefix/include"
3788 OGG_LIBS="-L$ogg_prefix/lib"
3789 elif test "x$prefix" != "xNONE"; then
3790 ogg_args="$ogg_args --prefix=$prefix"
3791 OGG_CFLAGS="-I$prefix/include"
3792 OGG_LIBS="-L$prefix/lib"
3793 fi
3794
3795 OGG_LIBS="$OGG_LIBS -logg"
3796
3797 echo "$as_me:$LINENO: checking for Ogg" >&5
3798 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
3799 no_ogg=""
3800
3801
3802 if test "x$enable_oggtest" = "xyes" ; then
3803 ac_save_CFLAGS="$CFLAGS"
3804 ac_save_LIBS="$LIBS"
3805 CFLAGS="$CFLAGS $OGG_CFLAGS"
3806 LIBS="$LIBS $OGG_LIBS"
3807 rm -f conf.oggtest
3808 if test "$cross_compiling" = yes; then
3809 echo $ac_n "cross compiling; assumed OK... $ac_c"
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817
3818 #include <stdio.h>
3819 #include <stdlib.h>
3820 #include <string.h>
3821 #include <ogg/ogg.h>
3822
3823 int main ()
3824 {
3825 system("touch conf.oggtest");
3826 return 0;
3827 }
3828
3829
3830 _ACEOF
3831 rm -f conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 :
3843 else
3844 echo "$as_me: program exited with status $ac_status" >&5
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 ( exit $ac_status )
3849 no_ogg=yes
3850 fi
3851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3852 fi
3853 CFLAGS="$ac_save_CFLAGS"
3854 LIBS="$ac_save_LIBS"
3855 fi
3856
3857 if test "x$no_ogg" = "x" ; then
3858 echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6
3860 :
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6
3864 if test -f conf.oggtest ; then
3865 :
3866 else
3867 echo "*** Could not run Ogg test program, checking why..."
3868 CFLAGS="$CFLAGS $OGG_CFLAGS"
3869 LIBS="$LIBS $OGG_LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876
3877 #include <stdio.h>
3878 #include <ogg/ogg.h>
3879
3880 int
3881 main ()
3882 {
3883 return 0;
3884 ;
3885 return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest$ac_exeext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 echo "*** The test program compiled, but did not run. This usually means"
3910 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
3911 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
3912 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3913 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3914 echo "*** is required on your system"
3915 echo "***"
3916 echo "*** If you have an old version installed, it is best to remove it, although"
3917 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3918 else
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 echo "*** The test program failed to compile or link. See the file config.log for the"
3923 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
3924 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
3925 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
3926 fi
3927 rm -f conftest.err conftest.$ac_objext \
3928 conftest$ac_exeext conftest.$ac_ext
3929 CFLAGS="$ac_save_CFLAGS"
3930 LIBS="$ac_save_LIBS"
3931 fi
3932 OGG_CFLAGS=""
3933 OGG_LIBS=""
3934 :
3935 fi
3936
3937
3938 rm -f conf.oggtest
3939
3940
3941 # Check whether --with-vorbis-prefix or --without-vorbis-prefix was given.
3942 if test "${with_vorbis_prefix+set}" = set; then
3943 withval="$with_vorbis_prefix"
3944 vorbis_prefix="$withval"
3945 else
3946 vorbis_prefix=""
3947 fi;
3948 # Check whether --enable-vorbistest or --disable-vorbistest was given.
3949 if test "${enable_vorbistest+set}" = set; then
3950 enableval="$enable_vorbistest"
3951
3952 else
3953 enable_vorbistest=yes
3954 fi;
3955
3956 if test "x$vorbis_prefix" != "x" ; then
3957 vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
3958 VORBIS_CFLAGS="-I$vorbis_prefix/include"
3959 VORBIS_LIBDIR="-L$vorbis_prefix/lib"
3960 elif test "x$prefix" != "xNONE"; then
3961 vorbis_args="$vorbis_args --prefix=$prefix"
3962 VORBIS_CFLAGS="-I$prefix/include"
3963 VORBIS_LIBDIR="-L$prefix/lib"
3964 fi
3965
3966 VORBIS_LIBS="$VORBIS_LIBDIR -lvorbis -lm"
3967 VORBISFILE_LIBS="-lvorbisfile"
3968 VORBISENC_LIBS="-lvorbisenc"
3969
3970 echo "$as_me:$LINENO: checking for Vorbis" >&5
3971 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
3972 no_vorbis=""
3973
3974
3975 if test "x$enable_vorbistest" = "xyes" ; then
3976 ac_save_CFLAGS="$CFLAGS"
3977 ac_save_LIBS="$LIBS"
3978 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
3979 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
3980 rm -f conf.vorbistest
3981 if test "$cross_compiling" = yes; then
3982 echo $ac_n "cross compiling; assumed OK... $ac_c"
3983 else
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990
3991 #include <stdio.h>
3992 #include <stdlib.h>
3993 #include <string.h>
3994 #include <vorbis/codec.h>
3995
3996 int main ()
3997 {
3998 system("touch conf.vorbistest");
3999 return 0;
4000 }
4001
4002
4003 _ACEOF
4004 rm -f conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 :
4016 else
4017 echo "$as_me: program exited with status $ac_status" >&5
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 ( exit $ac_status )
4022 no_vorbis=yes
4023 fi
4024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 CFLAGS="$ac_save_CFLAGS"
4027 LIBS="$ac_save_LIBS"
4028 fi
4029
4030 if test "x$no_vorbis" = "x" ; then
4031 echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6
4033 :
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 if test -f conf.vorbistest ; then
4038 :
4039 else
4040 echo "*** Could not run Vorbis test program, checking why..."
4041 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
4042 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049
4050 #include <stdio.h>
4051 #include <vorbis/codec.h>
4052
4053 int
4054 main ()
4055 {
4056 return 0;
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063 (eval $ac_link) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 echo "*** The test program compiled, but did not run. This usually means"
4083 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
4084 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
4085 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4086 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4087 echo "*** is required on your system"
4088 echo "***"
4089 echo "*** If you have an old version installed, it is best to remove it, although"
4090 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 echo "*** The test program failed to compile or link. See the file config.log for the"
4096 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
4097 echo "*** or that you have moved Vorbis since it was installed."
4098 fi
4099 rm -f conftest.err conftest.$ac_objext \
4100 conftest$ac_exeext conftest.$ac_ext
4101 CFLAGS="$ac_save_CFLAGS"
4102 LIBS="$ac_save_LIBS"
4103 fi
4104 VORBIS_CFLAGS=""
4105 VORBIS_LIBS=""
4106 VORBISFILE_LIBS=""
4107 VORBISENC_LIBS=""
4108 :
4109 fi
4110
4111
4112
4113
4114 rm -f conf.vorbistest
4115
4116
4117 AVILIB_CFLAGS="-Iavilib -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4118 AVILIB_CXXFLAGS="-Iavilib -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4119 AVILIB_LIBS="-Lavilib -lavi"
4120
4121
4122
4123
4124
4125
4126 # Check whether --enable-debug or --disable-debug was given.
4127 if test "${enable_debug+set}" = set; then
4128 enableval="$enable_debug"
4129
4130 fi;
4131 if test x"$enable_debug" = x"yes"; then
4132 DEBUG_CFLAGS="-g -DDEBUG"
4133 else
4134 DEBUG_CFLAGS=""
4135 fi
4136
4137
4138
4139 # Check whether --enable-profiling or --disable-profiling was given.
4140 if test "${enable_profiling+set}" = set; then
4141 enableval="$enable_profiling"
4142
4143 fi;
4144 if test x"$enable_profiling" = x"yes"; then
4145 PROFILING_CFLAGS="-pg"
4146 PROFILING_LIBS="-lc_p"
4147 else
4148 PROFILING_CFLAGS=""
4149 PROFILING_LIBS=""
4150 fi
4151
4152
4153
4154
4155
4156 have_dvdread=no
4157
4158
4159
4160 # Check whether --with-dvdread or --without-dvdread was given.
4161 if test "${with_dvdread+set}" = set; then
4162 withval="$with_dvdread"
4163 case "${withval}" in
4164 yes) with_dvdread=yes;;
4165 no) with_dvdread=no ;;
4166 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-dvdread" >&5
4167 echo "$as_me: error: bad value ${withval} for --with-dvdread" >&2;}
4168 { (exit 1); exit 1; }; } ;;
4169 esac
4170 else
4171 with_dvdread=yes
4172 fi;
4173
4174
4175 # Check whether --with-dvdread-includes or --without-dvdread-includes was given.
4176 if test "${with_dvdread_includes+set}" = set; then
4177 withval="$with_dvdread_includes"
4178 dvdread_includes="$withval"
4179 else
4180 dvdread_includes=""
4181 fi;
4182
4183
4184 # Check whether --with-dvdread-libs or --without-dvdread-libs was given.
4185 if test "${with_dvdread_libs+set}" = set; then
4186 withval="$with_dvdread_libs"
4187 dvdread_libs="$withval"
4188 else
4189 dvdread_libs=""
4190 fi;
4191
4192 DVDREAD_LIBS=""
4193 DVDREAD_CFLAGS=""
4194
4195 have_dvdread=no
4196
4197 if test x$with_dvdread = "x"yes ; then
4198
4199 if test x$dvdread_includes != "x" ; then
4200 with_dvdread_i="$dvdread_includes/include"
4201 else
4202 with_dvdread_i="/usr/include"
4203 fi
4204
4205 if test x$dvdread_libs != x ; then
4206 with_dvdread_l="$dvdread_libs/lib"
4207 else
4208 with_dvdread_l="/usr/lib"
4209 fi
4210
4211 echo "$as_me:$LINENO: checking for DVDOpen in -ldvdread" >&5
4212 echo $ECHO_N "checking for DVDOpen in -ldvdread... $ECHO_C" >&6
4213 if test "${ac_cv_lib_dvdread_DVDOpen+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 ac_check_lib_save_LIBS=$LIBS
4217 LIBS="-ldvdread -L$with_dvdread_l -ldvdread -lm $LIBS"
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 #ifdef __cplusplus
4227 extern "C"
4228 #endif
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4231 char DVDOpen ();
4232 int
4233 main ()
4234 {
4235 DVDOpen ();
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_lib_dvdread_DVDOpen=yes
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_cv_lib_dvdread_DVDOpen=no
4267 fi
4268 rm -f conftest.err conftest.$ac_objext \
4269 conftest$ac_exeext conftest.$ac_ext
4270 LIBS=$ac_check_lib_save_LIBS
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_lib_dvdread_DVDOpen" >&5
4273 echo "${ECHO_T}$ac_cv_lib_dvdread_DVDOpen" >&6
4274 if test $ac_cv_lib_dvdread_DVDOpen = yes; then
4275 DVDREAD_CFLAGS="-I$with_dvdread_i -I/usr/local/include"
4276 DVDREAD_LIBS="-L$with_dvdread_l -ldvdread -lm"
4277 cat >>confdefs.h <<\_ACEOF
4278 #define HAVE_LIBDVDREAD 1
4279 _ACEOF
4280
4281 have_dvdread=yes
4282 else
4283 have_dvdread=no
4284 fi
4285
4286
4287 as_ac_File=`echo "ac_cv_file_$with_dvdread_i/dvdread/dvd_reader.h" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $with_dvdread_i/dvdread/dvd_reader.h" >&5
4289 echo $ECHO_N "checking for $with_dvdread_i/dvdread/dvd_reader.h... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_File+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 test "$cross_compiling" = yes &&
4294 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4295 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4296 { (exit 1); exit 1; }; }
4297 if test -r "$with_dvdread_i/dvdread/dvd_reader.h"; then
4298 eval "$as_ac_File=yes"
4299 else
4300 eval "$as_ac_File=no"
4301 fi
4302 fi
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4304 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4305 if test `eval echo '${'$as_ac_File'}'` = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define HAVE_LIBDVDREAD_INC 1
4308 _ACEOF
4309 dvdread_inc=yes
4310 fi
4311
4312 if test x"$dvdread_inc" != xyes; then
4313 echo "$as_me:$LINENO: checking for /usr/local/include/dvdread/dvd_reader.h" >&5
4314 echo $ECHO_N "checking for /usr/local/include/dvdread/dvd_reader.h... $ECHO_C" >&6
4315 if test "${ac_cv_file__usr_local_include_dvdread_dvd_reader_h+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 test "$cross_compiling" = yes &&
4319 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4320 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4321 { (exit 1); exit 1; }; }
4322 if test -r "/usr/local/include/dvdread/dvd_reader.h"; then
4323 ac_cv_file__usr_local_include_dvdread_dvd_reader_h=yes
4324 else
4325 ac_cv_file__usr_local_include_dvdread_dvd_reader_h=no
4326 fi
4327 fi
4328 echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_dvdread_dvd_reader_h" >&5
4329 echo "${ECHO_T}$ac_cv_file__usr_local_include_dvdread_dvd_reader_h" >&6
4330 if test $ac_cv_file__usr_local_include_dvdread_dvd_reader_h = yes; then
4331 cat >>confdefs.h <<\_ACEOF
4332 #define HAVE_LIBDVDREAD_INC 1
4333 _ACEOF
4334 dvdread_inc=yes
4335 fi
4336
4337 fi
4338
4339 if test x"$have_dvdread" != "xyes"; then
4340
4341
4342 with_dvdread_i="../dvdread"
4343 with_dvdread_l="../dvdread"
4344
4345 echo "$as_me:$LINENO: checking for ./dvdread/dvd_reader.h" >&5
4346 echo $ECHO_N "checking for ./dvdread/dvd_reader.h... $ECHO_C" >&6
4347 if test "${ac_cv_file___dvdread_dvd_reader_h+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 test "$cross_compiling" = yes &&
4351 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4352 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4353 { (exit 1); exit 1; }; }
4354 if test -r "./dvdread/dvd_reader.h"; then
4355 ac_cv_file___dvdread_dvd_reader_h=yes
4356 else
4357 ac_cv_file___dvdread_dvd_reader_h=no
4358 fi
4359 fi
4360 echo "$as_me:$LINENO: result: $ac_cv_file___dvdread_dvd_reader_h" >&5
4361 echo "${ECHO_T}$ac_cv_file___dvdread_dvd_reader_h" >&6
4362 if test $ac_cv_file___dvdread_dvd_reader_h = yes; then
4363 cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_LIBDVDREAD 1
4365 _ACEOF
4366
4367 have_dvdread=yes
4368 DVDREAD_CFLAGS="-I$with_dvdread_i"
4369 DVDREAD_LIBS="-L$with_dvdread_l -ldvdread_tc"
4370 else
4371 have_dvdread=no
4372 fi
4373
4374 fi
4375
4376 if test x"$have_dvdread" != "xyes"; then
4377
4378 echo '***********************************'
4379 echo 'libdvdread not found. dvdxchap will'
4380 echo 'not be compiled.'
4381 echo '***********************************'
4382
4383 fi
4384
4385 fi
4386
4387
4388
4389
4390
4391
4392 if test x"$have_dvdread" = "xyes"; then
4393 HAVE_LIBDVDREAD_TRUE=
4394 HAVE_LIBDVDREAD_FALSE='#'
4395 else
4396 HAVE_LIBDVDREAD_TRUE='#'
4397 HAVE_LIBDVDREAD_FALSE=
4398 fi
4399
4400
4401
4402 for ac_func in fseeko
4403 do
4404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4405 echo "$as_me:$LINENO: checking for $ac_func" >&5
4406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4407 if eval "test \"\${$as_ac_var+set}\" = set"; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4418 #define $ac_func innocuous_$ac_func
4419
4420 /* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char $ac_func (); below.
4422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 <limits.h> exists even on freestanding compilers. */
4424
4425 #ifdef __STDC__
4426 # include <limits.h>
4427 #else
4428 # include <assert.h>
4429 #endif
4430
4431 #undef $ac_func
4432
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 #ifdef __cplusplus
4435 extern "C"
4436 {
4437 #endif
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char $ac_func ();
4441 /* The GNU C library defines this for functions which it implements
4442 to always fail with ENOSYS. Some functions are actually named
4443 something starting with __ and the normal name is an alias. */
4444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4445 choke me
4446 #else
4447 char (*f) () = $ac_func;
4448 #endif
4449 #ifdef __cplusplus
4450 }
4451 #endif
4452
4453 int
4454 main ()
4455 {
4456 return f != $ac_func;
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 eval "$as_ac_var=yes"
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 eval "$as_ac_var=no"
4488 fi
4489 rm -f conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext conftest.$ac_ext
4491 fi
4492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4494 if test `eval echo '${'$as_ac_var'}'` = yes; then
4495 cat >>confdefs.h <<_ACEOF
4496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4497 _ACEOF
4498
4499 fi
4500 done
4501
4502 if test x${ac_cv_func_fseeko} != xyes; then
4503 cat >>confdefs.h <<\_ACEOF
4504 #define NEED_FSEEKO 1
4505 _ACEOF
4506
4507 fi
4508
4509 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4510 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4511 if test "${ac_cv_header_stdc+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <stdlib.h>
4521 #include <stdarg.h>
4522 #include <string.h>
4523 #include <float.h>
4524
4525 int
4526 main ()
4527 {
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_header_stdc=yes
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562
4563 if test $ac_cv_header_stdc = yes; then
4564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <string.h>
4572
4573 _ACEOF
4574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4575 $EGREP "memchr" >/dev/null 2>&1; then
4576 :
4577 else
4578 ac_cv_header_stdc=no
4579 fi
4580 rm -f conftest*
4581
4582 fi
4583
4584 if test $ac_cv_header_stdc = yes; then
4585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <stdlib.h>
4593
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "free" >/dev/null 2>&1; then
4597 :
4598 else
4599 ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest*
4602
4603 fi
4604
4605 if test $ac_cv_header_stdc = yes; then
4606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4607 if test "$cross_compiling" = yes; then
4608 :
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <ctype.h>
4617 #if ((' ' & 0x0FF) == 0x020)
4618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4620 #else
4621 # define ISLOWER(c) \
4622 (('a' <= (c) && (c) <= 'i') \
4623 || ('j' <= (c) && (c) <= 'r') \
4624 || ('s' <= (c) && (c) <= 'z'))
4625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4626 #endif
4627
4628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4629 int
4630 main ()
4631 {
4632 int i;
4633 for (i = 0; i < 256; i++)
4634 if (XOR (islower (i), ISLOWER (i))
4635 || toupper (i) != TOUPPER (i))
4636 exit(2);
4637 exit (0);
4638 }
4639 _ACEOF
4640 rm -f conftest$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 :
4652 else
4653 echo "$as_me: program exited with status $ac_status" >&5
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 ( exit $ac_status )
4658 ac_cv_header_stdc=no
4659 fi
4660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 fi
4662 fi
4663 fi
4664 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4665 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4666 if test $ac_cv_header_stdc = yes; then
4667
4668 cat >>confdefs.h <<\_ACEOF
4669 #define STDC_HEADERS 1
4670 _ACEOF
4671
4672 fi
4673
4674
4675 CFLAGS="-Wall -Wno-sign-compare @OGG_CFLAGS@ @VORBIS_CFLAGS@ @AVILIB_CFLAGS@ @DEBUG_CFLAGS@ @PROFILING_CFLAGS@"
4676 CXXFLAGS="-Wall -Wno-sign-compare @OGG_CFLAGS@ @VORBIS_CFLAGS@ @AVILIB_CFLAGS@ @DEBUG_CFLAGS@ @PROFILING_CFLAGS@"
4677
4678 ac_config_files="$ac_config_files Makefile avilib/Makefile"
4679 cat >confcache <<\_ACEOF
4680 # This file is a shell script that caches the results of configure
4681 # tests run on this system so they can be shared between configure
4682 # scripts and configure runs, see configure's option --config-cache.
4683 # It is not useful on other systems. If it contains results you don't
4684 # want to keep, you may remove or edit it.
4685 #
4686 # config.status only pays attention to the cache file if you give it
4687 # the --recheck option to rerun configure.
4688 #
4689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4691 # following values.
4692
4693 _ACEOF
4694
4695 # The following way of writing the cache mishandles newlines in values,
4696 # but we know of no workaround that is simple, portable, and efficient.
4697 # So, don't put newlines in cache variables' values.
4698 # Ultrix sh set writes to stderr and can't be redirected directly,
4699 # and sets the high bit in the cache file unless we assign to the vars.
4700 {
4701 (set) 2>&1 |
4702 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4703 *ac_space=\ *)
4704 # `set' does not quote correctly, so add quotes (double-quote
4705 # substitution turns \\\\ into \\, and sed turns \\ into \).
4706 sed -n \
4707 "s/'/'\\\\''/g;
4708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4709 ;;
4710 *)
4711 # `set' quotes correctly as required by POSIX, so do not add quotes.
4712 sed -n \
4713 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4714 ;;
4715 esac;
4716 } |
4717 sed '
4718 t clear
4719 : clear
4720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4721 t end
4722 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4723 : end' >>confcache
4724 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4725 if test -w $cache_file; then
4726 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4727 cat confcache >$cache_file
4728 else
4729 echo "not updating unwritable cache $cache_file"
4730 fi
4731 fi
4732 rm -f confcache
4733
4734 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4735 # Let make expand exec_prefix.
4736 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4737
4738 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4739 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4740 # trailing colons and then remove the whole line if VPATH becomes empty
4741 # (actually we leave an empty line to preserve line numbers).
4742 if test "x$srcdir" = x.; then
4743 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4744 s/:*\$(srcdir):*/:/;
4745 s/:*\${srcdir}:*/:/;
4746 s/:*@srcdir@:*/:/;
4747 s/^\([^=]*=[ ]*\):*/\1/;
4748 s/:*$//;
4749 s/^[^=]*=[ ]*$//;
4750 }'
4751 fi
4752
4753 # Transform confdefs.h into DEFS.
4754 # Protect against shell expansion while executing Makefile rules.
4755 # Protect against Makefile macro expansion.
4756 #
4757 # If the first sed substitution is executed (which looks for macros that
4758 # take arguments), then we branch to the quote section. Otherwise,
4759 # look for a macro that doesn't take arguments.
4760 cat >confdef2opt.sed <<\_ACEOF
4761 t clear
4762 : clear
4763 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4764 t quote
4765 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4766 t quote
4767 d
4768 : quote
4769 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4770 s,\[,\\&,g
4771 s,\],\\&,g
4772 s,\$,$$,g
4773 p
4774 _ACEOF
4775 # We use echo to avoid assuming a particular line-breaking character.
4776 # The extra dot is to prevent the shell from consuming trailing
4777 # line-breaks from the sub-command output. A line-break within
4778 # single-quotes doesn't work because, if this script is created in a
4779 # platform that uses two characters for line-breaks (e.g., DOS), tr
4780 # would break.
4781 ac_LF_and_DOT=`echo; echo .`
4782 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4783 rm -f confdef2opt.sed
4784
4785
4786 ac_libobjs=
4787 ac_ltlibobjs=
4788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4789 # 1. Remove the extension, and $U if already installed.
4790 ac_i=`echo "$ac_i" |
4791 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4792 # 2. Add them.
4793 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4794 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4795 done
4796 LIBOBJS=$ac_libobjs
4797
4798 LTLIBOBJS=$ac_ltlibobjs
4799
4800
4801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4802 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4803 Usually this means the macro was only invoked conditionally." >&5
4804 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4805 Usually this means the macro was only invoked conditionally." >&2;}
4806 { (exit 1); exit 1; }; }
4807 fi
4808 if test -z "${HAVE_LIBDVDREAD_TRUE}" && test -z "${HAVE_LIBDVDREAD_FALSE}"; then
4809 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDVDREAD\" was never defined.
4810 Usually this means the macro was only invoked conditionally." >&5
4811 echo "$as_me: error: conditional \"HAVE_LIBDVDREAD\" was never defined.
4812 Usually this means the macro was only invoked conditionally." >&2;}
4813 { (exit 1); exit 1; }; }
4814 fi
4815
4816 : ${CONFIG_STATUS=./config.status}
4817 ac_clean_files_save=$ac_clean_files
4818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4819 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4820 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4821 cat >$CONFIG_STATUS <<_ACEOF
4822 #! $SHELL
4823 # Generated by $as_me.
4824 # Run this file to recreate the current configuration.
4825 # Compiler output produced by configure, useful for debugging
4826 # configure, is in config.log if it exists.
4827
4828 debug=false
4829 ac_cs_recheck=false
4830 ac_cs_silent=false
4831 SHELL=\${CONFIG_SHELL-$SHELL}
4832 _ACEOF
4833
4834 cat >>$CONFIG_STATUS <<\_ACEOF
4835 ## --------------------- ##
4836 ## M4sh Initialization. ##
4837 ## --------------------- ##
4838
4839 # Be Bourne compatible
4840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4841 emulate sh
4842 NULLCMD=:
4843 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4844 # is contrary to our usage. Disable this feature.
4845 alias -g '${1+"$@"}'='"$@"'
4846 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4847 set -o posix
4848 fi
4849 DUALCASE=1; export DUALCASE # for MKS sh
4850
4851 # Support unset when possible.
4852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4853 as_unset=unset
4854 else
4855 as_unset=false
4856 fi
4857
4858
4859 # Work around bugs in pre-3.0 UWIN ksh.
4860 $as_unset ENV MAIL MAILPATH
4861 PS1='$ '
4862 PS2='> '
4863 PS4='+ '
4864
4865 # NLS nuisances.
4866 for as_var in \
4867 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4868 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4869 LC_TELEPHONE LC_TIME
4870 do
4871 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4872 eval $as_var=C; export $as_var
4873 else
4874 $as_unset $as_var
4875 fi
4876 done
4877
4878 # Required to use basename.
4879 if expr a : '\(a\)' >/dev/null 2>&1; then
4880 as_expr=expr
4881 else
4882 as_expr=false
4883 fi
4884
4885 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4886 as_basename=basename
4887 else
4888 as_basename=false
4889 fi
4890
4891
4892 # Name of the executable.
4893 as_me=`$as_basename "$0" ||
4894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4895 X"$0" : 'X\(//\)$' \| \
4896 X"$0" : 'X\(/\)$' \| \
4897 . : '\(.\)' 2>/dev/null ||
4898 echo X/"$0" |
4899 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4900 /^X\/\(\/\/\)$/{ s//\1/; q; }
4901 /^X\/\(\/\).*/{ s//\1/; q; }
4902 s/.*/./; q'`
4903
4904
4905 # PATH needs CR, and LINENO needs CR and PATH.
4906 # Avoid depending upon Character Ranges.
4907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4910 as_cr_digits='0123456789'
4911 as_cr_alnum=$as_cr_Letters$as_cr_digits
4912
4913 # The user is always right.
4914 if test "${PATH_SEPARATOR+set}" != set; then
4915 echo "#! /bin/sh" >conf$$.sh
4916 echo "exit 0" >>conf$$.sh
4917 chmod +x conf$$.sh
4918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4919 PATH_SEPARATOR=';'
4920 else
4921 PATH_SEPARATOR=:
4922 fi
4923 rm -f conf$$.sh
4924 fi
4925
4926
4927 as_lineno_1=$LINENO
4928 as_lineno_2=$LINENO
4929 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4930 test "x$as_lineno_1" != "x$as_lineno_2" &&
4931 test "x$as_lineno_3" = "x$as_lineno_2" || {
4932 # Find who we are. Look in the path if we contain no path at all
4933 # relative or not.
4934 case $0 in
4935 *[\\/]* ) as_myself=$0 ;;
4936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4942 done
4943
4944 ;;
4945 esac
4946 # We did not find ourselves, most probably we were run as `sh COMMAND'
4947 # in which case we are not to be found in the path.
4948 if test "x$as_myself" = x; then
4949 as_myself=$0
4950 fi
4951 if test ! -f "$as_myself"; then
4952 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4953 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4954 { (exit 1); exit 1; }; }
4955 fi
4956 case $CONFIG_SHELL in
4957 '')
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4960 do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for as_base in sh bash ksh sh5; do
4964 case $as_dir in
4965 /*)
4966 if ("$as_dir/$as_base" -c '
4967 as_lineno_1=$LINENO
4968 as_lineno_2=$LINENO
4969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4970 test "x$as_lineno_1" != "x$as_lineno_2" &&
4971 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4972 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4973 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4974 CONFIG_SHELL=$as_dir/$as_base
4975 export CONFIG_SHELL
4976 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4977 fi;;
4978 esac
4979 done
4980 done
4981 ;;
4982 esac
4983
4984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4985 # uniformly replaced by the line number. The first 'sed' inserts a
4986 # line-number line before each line; the second 'sed' does the real
4987 # work. The second script uses 'N' to pair each line-number line
4988 # with the numbered line, and appends trailing '-' during
4989 # substitution so that $LINENO is not a special case at line end.
4990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4991 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4992 sed '=' <$as_myself |
4993 sed '
4994 N
4995 s,$,-,
4996 : loop
4997 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4998 t loop
4999 s,-$,,
5000 s,^['$as_cr_digits']*\n,,
5001 ' >$as_me.lineno &&
5002 chmod +x $as_me.lineno ||
5003 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5004 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5005 { (exit 1); exit 1; }; }
5006
5007 # Don't try to exec as it changes $[0], causing all sort of problems
5008 # (the dirname of $[0] is not the place where we might find the
5009 # original and so on. Autoconf is especially sensible to this).
5010 . ./$as_me.lineno
5011 # Exit status is that of the last command.
5012 exit
5013 }
5014
5015
5016 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5017 *c*,-n*) ECHO_N= ECHO_C='
5018 ' ECHO_T=' ' ;;
5019 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5020 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5021 esac
5022
5023 if expr a : '\(a\)' >/dev/null 2>&1; then
5024 as_expr=expr
5025 else
5026 as_expr=false
5027 fi
5028
5029 rm -f conf$$ conf$$.exe conf$$.file
5030 echo >conf$$.file
5031 if ln -s conf$$.file conf$$ 2>/dev/null; then
5032 # We could just check for DJGPP; but this test a) works b) is more generic
5033 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5034 if test -f conf$$.exe; then
5035 # Don't use ln at all; we don't have any links
5036 as_ln_s='cp -p'
5037 else
5038 as_ln_s='ln -s'
5039 fi
5040 elif ln conf$$.file conf$$ 2>/dev/null; then
5041 as_ln_s=ln
5042 else
5043 as_ln_s='cp -p'
5044 fi
5045 rm -f conf$$ conf$$.exe conf$$.file
5046
5047 if mkdir -p . 2>/dev/null; then
5048 as_mkdir_p=:
5049 else
5050 test -d ./-p && rmdir ./-p
5051 as_mkdir_p=false
5052 fi
5053
5054 as_executable_p="test -f"
5055
5056 # Sed expression to map a string onto a valid CPP name.
5057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5058
5059 # Sed expression to map a string onto a valid variable name.
5060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5061
5062
5063 # IFS
5064 # We need space, tab and new line, in precisely that order.
5065 as_nl='
5066 '
5067 IFS=" $as_nl"
5068
5069 # CDPATH.
5070 $as_unset CDPATH
5071
5072 exec 6>&1
5073
5074 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5075 # report actual input values of CONFIG_FILES etc. instead of their
5076 # values after options handling. Logging --version etc. is OK.
5077 exec 5>>config.log
5078 {
5079 echo
5080 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5081 ## Running $as_me. ##
5082 _ASBOX
5083 } >&5
5084 cat >&5 <<_CSEOF
5085
5086 This file was extended by $as_me, which was
5087 generated by GNU Autoconf 2.59. Invocation command line was
5088
5089 CONFIG_FILES = $CONFIG_FILES
5090 CONFIG_HEADERS = $CONFIG_HEADERS
5091 CONFIG_LINKS = $CONFIG_LINKS
5092 CONFIG_COMMANDS = $CONFIG_COMMANDS
5093 $ $0 $@
5094
5095 _CSEOF
5096 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5097 echo >&5
5098 _ACEOF
5099
5100 # Files that config.status was made for.
5101 if test -n "$ac_config_files"; then
5102 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5103 fi
5104
5105 if test -n "$ac_config_headers"; then
5106 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5107 fi
5108
5109 if test -n "$ac_config_links"; then
5110 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5111 fi
5112
5113 if test -n "$ac_config_commands"; then
5114 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5115 fi
5116
5117 cat >>$CONFIG_STATUS <<\_ACEOF
5118
5119 ac_cs_usage="\
5120 \`$as_me' instantiates files from templates according to the
5121 current configuration.
5122
5123 Usage: $0 [OPTIONS] [FILE]...
5124
5125 -h, --help print this help, then exit
5126 -V, --version print version number, then exit
5127 -q, --quiet do not print progress messages
5128 -d, --debug don't remove temporary files
5129 --recheck update $as_me by reconfiguring in the same conditions
5130 --file=FILE[:TEMPLATE]
5131 instantiate the configuration file FILE
5132
5133 Configuration files:
5134 $config_files
5135
5136 Configuration commands:
5137 $config_commands
5138
5139 Report bugs to <[email protected]>."
5140 _ACEOF
5141
5142 cat >>$CONFIG_STATUS <<_ACEOF
5143 ac_cs_version="\\
5144 config.status
5145 configured by $0, generated by GNU Autoconf 2.59,
5146 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5147
5148 Copyright (C) 2003 Free Software Foundation, Inc.
5149 This config.status script is free software; the Free Software Foundation
5150 gives unlimited permission to copy, distribute and modify it."
5151 srcdir=$srcdir
5152 INSTALL="$INSTALL"
5153 _ACEOF
5154
5155 cat >>$CONFIG_STATUS <<\_ACEOF
5156 # If no file are specified by the user, then we need to provide default
5157 # value. By we need to know if files were specified by the user.
5158 ac_need_defaults=:
5159 while test $# != 0
5160 do
5161 case $1 in
5162 --*=*)
5163 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5164 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5165 ac_shift=:
5166 ;;
5167 -*)
5168 ac_option=$1
5169 ac_optarg=$2
5170 ac_shift=shift
5171 ;;
5172 *) # This is not an option, so the user has probably given explicit
5173 # arguments.
5174 ac_option=$1
5175 ac_need_defaults=false;;
5176 esac
5177
5178 case $ac_option in
5179 # Handling of the options.
5180 _ACEOF
5181 cat >>$CONFIG_STATUS <<\_ACEOF
5182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5183 ac_cs_recheck=: ;;
5184 --version | --vers* | -V )
5185 echo "$ac_cs_version"; exit 0 ;;
5186 --he | --h)
5187 # Conflict between --help and --header
5188 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5189 Try \`$0 --help' for more information." >&5
5190 echo "$as_me: error: ambiguous option: $1
5191 Try \`$0 --help' for more information." >&2;}
5192 { (exit 1); exit 1; }; };;
5193 --help | --hel | -h )
5194 echo "$ac_cs_usage"; exit 0 ;;
5195 --debug | --d* | -d )
5196 debug=: ;;
5197 --file | --fil | --fi | --f )
5198 $ac_shift
5199 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5200 ac_need_defaults=false;;
5201 --header | --heade | --head | --hea )
5202 $ac_shift
5203 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5204 ac_need_defaults=false;;
5205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5207 ac_cs_silent=: ;;
5208
5209 # This is an error.
5210 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5211 Try \`$0 --help' for more information." >&5
5212 echo "$as_me: error: unrecognized option: $1
5213 Try \`$0 --help' for more information." >&2;}
5214 { (exit 1); exit 1; }; } ;;
5215
5216 *) ac_config_targets="$ac_config_targets $1" ;;
5217
5218 esac
5219 shift
5220 done
5221
5222 ac_configure_extra_args=
5223
5224 if $ac_cs_silent; then
5225 exec 6>/dev/null
5226 ac_configure_extra_args="$ac_configure_extra_args --silent"
5227 fi
5228
5229 _ACEOF
5230 cat >>$CONFIG_STATUS <<_ACEOF
5231 if \$ac_cs_recheck; then
5232 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5233 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5234 fi
5235
5236 _ACEOF
5237
5238 cat >>$CONFIG_STATUS <<_ACEOF
5239 #
5240 # INIT-COMMANDS section.
5241 #
5242
5243 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5244
5245 _ACEOF
5246
5247
5248
5249 cat >>$CONFIG_STATUS <<\_ACEOF
5250 for ac_config_target in $ac_config_targets
5251 do
5252 case "$ac_config_target" in
5253 # Handling of arguments.
5254 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5255 "avilib/Makefile" ) CONFIG_FILES="$CONFIG_FILES avilib/Makefile" ;;
5256 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5258 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5259 { (exit 1); exit 1; }; };;
5260 esac
5261 done
5262
5263 # If the user did not use the arguments to specify the items to instantiate,
5264 # then the envvar interface is used. Set only those that are not.
5265 # We use the long form for the default assignment because of an extremely
5266 # bizarre bug on SunOS 4.1.3.
5267 if $ac_need_defaults; then
5268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5270 fi
5271
5272 # Have a temporary directory for convenience. Make it in the build tree
5273 # simply because there is no reason to put it here, and in addition,
5274 # creating and moving files from /tmp can sometimes cause problems.
5275 # Create a temporary directory, and hook for its removal unless debugging.
5276 $debug ||
5277 {
5278 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5279 trap '{ (exit 1); exit 1; }' 1 2 13 15
5280 }
5281
5282 # Create a (secure) tmp directory for tmp files.
5283
5284 {
5285 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5286 test -n "$tmp" && test -d "$tmp"
5287 } ||
5288 {
5289 tmp=./confstat$$-$RANDOM
5290 (umask 077 && mkdir $tmp)
5291 } ||
5292 {
5293 echo "$me: cannot create a temporary directory in ." >&2
5294 { (exit 1); exit 1; }
5295 }
5296
5297 _ACEOF
5298
5299 cat >>$CONFIG_STATUS <<_ACEOF
5300
5301 #
5302 # CONFIG_FILES section.
5303 #
5304
5305 # No need to generate the scripts if there are no CONFIG_FILES.
5306 # This happens for instance when ./config.status config.h
5307 if test -n "\$CONFIG_FILES"; then
5308 # Protect against being on the right side of a sed subst in config.status.
5309 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5310 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5311 s,@SHELL@,$SHELL,;t t
5312 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5313 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5314 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5315 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5316 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5317 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5318 s,@exec_prefix@,$exec_prefix,;t t
5319 s,@prefix@,$prefix,;t t
5320 s,@program_transform_name@,$program_transform_name,;t t
5321 s,@bindir@,$bindir,;t t
5322 s,@sbindir@,$sbindir,;t t
5323 s,@libexecdir@,$libexecdir,;t t
5324 s,@datadir@,$datadir,;t t
5325 s,@sysconfdir@,$sysconfdir,;t t
5326 s,@sharedstatedir@,$sharedstatedir,;t t
5327 s,@localstatedir@,$localstatedir,;t t
5328 s,@libdir@,$libdir,;t t
5329 s,@includedir@,$includedir,;t t
5330 s,@oldincludedir@,$oldincludedir,;t t
5331 s,@infodir@,$infodir,;t t
5332 s,@mandir@,$mandir,;t t
5333 s,@build_alias@,$build_alias,;t t
5334 s,@host_alias@,$host_alias,;t t
5335 s,@target_alias@,$target_alias,;t t
5336 s,@DEFS@,$DEFS,;t t
5337 s,@ECHO_C@,$ECHO_C,;t t
5338 s,@ECHO_N@,$ECHO_N,;t t
5339 s,@ECHO_T@,$ECHO_T,;t t
5340 s,@LIBS@,$LIBS,;t t
5341 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5342 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5343 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5344 s,@PACKAGE@,$PACKAGE,;t t
5345 s,@VERSION@,$VERSION,;t t
5346 s,@ACLOCAL@,$ACLOCAL,;t t
5347 s,@AUTOCONF@,$AUTOCONF,;t t
5348 s,@AUTOMAKE@,$AUTOMAKE,;t t
5349 s,@AUTOHEADER@,$AUTOHEADER,;t t
5350 s,@MAKEINFO@,$MAKEINFO,;t t
5351 s,@AMTAR@,$AMTAR,;t t
5352 s,@install_sh@,$install_sh,;t t
5353 s,@STRIP@,$STRIP,;t t
5354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5355 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5356 s,@AWK@,$AWK,;t t
5357 s,@SET_MAKE@,$SET_MAKE,;t t
5358 s,@CC@,$CC,;t t
5359 s,@CFLAGS@,$CFLAGS,;t t
5360 s,@LDFLAGS@,$LDFLAGS,;t t
5361 s,@CPPFLAGS@,$CPPFLAGS,;t t
5362 s,@ac_ct_CC@,$ac_ct_CC,;t t
5363 s,@EXEEXT@,$EXEEXT,;t t
5364 s,@OBJEXT@,$OBJEXT,;t t
5365 s,@DEPDIR@,$DEPDIR,;t t
5366 s,@am__include@,$am__include,;t t
5367 s,@am__quote@,$am__quote,;t t
5368 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5369 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5370 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5371 s,@CCDEPMODE@,$CCDEPMODE,;t t
5372 s,@CXX@,$CXX,;t t
5373 s,@CXXFLAGS@,$CXXFLAGS,;t t
5374 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5375 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
5376 s,@CPP@,$CPP,;t t
5377 s,@EGREP@,$EGREP,;t t
5378 s,@RANLIB@,$RANLIB,;t t
5379 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5380 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
5381 s,@OGG_LIBS@,$OGG_LIBS,;t t
5382 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
5383 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
5384 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
5385 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
5386 s,@AVILIB_CFLAGS@,$AVILIB_CFLAGS,;t t
5387 s,@AVILIB_CXXFLAGS@,$AVILIB_CXXFLAGS,;t t
5388 s,@AVILIB_LIBS@,$AVILIB_LIBS,;t t
5389 s,@DEBUG_CFLAGS@,$DEBUG_CFLAGS,;t t
5390 s,@PROFILING_CFLAGS@,$PROFILING_CFLAGS,;t t
5391 s,@PROFILING_LIBS@,$PROFILING_LIBS,;t t
5392 s,@DVDREAD_CFLAGS@,$DVDREAD_CFLAGS,;t t
5393 s,@DVDREAD_LIBS@,$DVDREAD_LIBS,;t t
5394 s,@HAVE_LIBDVDREAD_TRUE@,$HAVE_LIBDVDREAD_TRUE,;t t
5395 s,@HAVE_LIBDVDREAD_FALSE@,$HAVE_LIBDVDREAD_FALSE,;t t
5396 s,@LIBOBJS@,$LIBOBJS,;t t
5397 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5398 CEOF
5399
5400 _ACEOF
5401
5402 cat >>$CONFIG_STATUS <<\_ACEOF
5403 # Split the substitutions into bite-sized pieces for seds with
5404 # small command number limits, like on Digital OSF/1 and HP-UX.
5405 ac_max_sed_lines=48
5406 ac_sed_frag=1 # Number of current file.
5407 ac_beg=1 # First line for current file.
5408 ac_end=$ac_max_sed_lines # Line after last line for current file.
5409 ac_more_lines=:
5410 ac_sed_cmds=
5411 while $ac_more_lines; do
5412 if test $ac_beg -gt 1; then
5413 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5414 else
5415 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5416 fi
5417 if test ! -s $tmp/subs.frag; then
5418 ac_more_lines=false
5419 else
5420 # The purpose of the label and of the branching condition is to
5421 # speed up the sed processing (if there are no `@' at all, there
5422 # is no need to browse any of the substitutions).
5423 # These are the two extra sed commands mentioned above.
5424 (echo ':t
5425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5426 if test -z "$ac_sed_cmds"; then
5427 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5428 else
5429 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5430 fi
5431 ac_sed_frag=`expr $ac_sed_frag + 1`
5432 ac_beg=$ac_end
5433 ac_end=`expr $ac_end + $ac_max_sed_lines`
5434 fi
5435 done
5436 if test -z "$ac_sed_cmds"; then
5437 ac_sed_cmds=cat
5438 fi
5439 fi # test -n "$CONFIG_FILES"
5440
5441 _ACEOF
5442 cat >>$CONFIG_STATUS <<\_ACEOF
5443 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5445 case $ac_file in
5446 - | *:- | *:-:* ) # input from stdin
5447 cat >$tmp/stdin
5448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5452 * ) ac_file_in=$ac_file.in ;;
5453 esac
5454
5455 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5458 X"$ac_file" : 'X\(//\)[^/]' \| \
5459 X"$ac_file" : 'X\(//\)$' \| \
5460 X"$ac_file" : 'X\(/\)' \| \
5461 . : '\(.\)' 2>/dev/null ||
5462 echo X"$ac_file" |
5463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5465 /^X\(\/\/\)$/{ s//\1/; q; }
5466 /^X\(\/\).*/{ s//\1/; q; }
5467 s/.*/./; q'`
5468 { if $as_mkdir_p; then
5469 mkdir -p "$ac_dir"
5470 else
5471 as_dir="$ac_dir"
5472 as_dirs=
5473 while test ! -d "$as_dir"; do
5474 as_dirs="$as_dir $as_dirs"
5475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5477 X"$as_dir" : 'X\(//\)[^/]' \| \
5478 X"$as_dir" : 'X\(//\)$' \| \
5479 X"$as_dir" : 'X\(/\)' \| \
5480 . : '\(.\)' 2>/dev/null ||
5481 echo X"$as_dir" |
5482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5484 /^X\(\/\/\)$/{ s//\1/; q; }
5485 /^X\(\/\).*/{ s//\1/; q; }
5486 s/.*/./; q'`
5487 done
5488 test ! -n "$as_dirs" || mkdir $as_dirs
5489 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5490 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5491 { (exit 1); exit 1; }; }; }
5492
5493 ac_builddir=.
5494
5495 if test "$ac_dir" != .; then
5496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5497 # A "../" for each directory in $ac_dir_suffix.
5498 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5499 else
5500 ac_dir_suffix= ac_top_builddir=
5501 fi
5502
5503 case $srcdir in
5504 .) # No --srcdir option. We are building in place.
5505 ac_srcdir=.
5506 if test -z "$ac_top_builddir"; then
5507 ac_top_srcdir=.
5508 else
5509 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5510 fi ;;
5511 [\\/]* | ?:[\\/]* ) # Absolute path.
5512 ac_srcdir=$srcdir$ac_dir_suffix;
5513 ac_top_srcdir=$srcdir ;;
5514 *) # Relative path.
5515 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5516 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5517 esac
5518
5519 # Do not use `cd foo && pwd` to compute absolute paths, because
5520 # the directories may not exist.
5521 case `pwd` in
5522 .) ac_abs_builddir="$ac_dir";;
5523 *)
5524 case "$ac_dir" in
5525 .) ac_abs_builddir=`pwd`;;
5526 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5527 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5528 esac;;
5529 esac
5530 case $ac_abs_builddir in
5531 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5532 *)
5533 case ${ac_top_builddir}. in
5534 .) ac_abs_top_builddir=$ac_abs_builddir;;
5535 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5536 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5537 esac;;
5538 esac
5539 case $ac_abs_builddir in
5540 .) ac_abs_srcdir=$ac_srcdir;;
5541 *)
5542 case $ac_srcdir in
5543 .) ac_abs_srcdir=$ac_abs_builddir;;
5544 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5545 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5546 esac;;
5547 esac
5548 case $ac_abs_builddir in
5549 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5550 *)
5551 case $ac_top_srcdir in
5552 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5553 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5554 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5555 esac;;
5556 esac
5557
5558
5559 case $INSTALL in
5560 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5561 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5562 esac
5563
5564 # Let's still pretend it is `configure' which instantiates (i.e., don't
5565 # use $as_me), people would be surprised to read:
5566 # /* config.h. Generated by config.status. */
5567 if test x"$ac_file" = x-; then
5568 configure_input=
5569 else
5570 configure_input="$ac_file. "
5571 fi
5572 configure_input=$configure_input"Generated from `echo $ac_file_in |
5573 sed 's,.*/,,'` by configure."
5574
5575 # First look for the input files in the build tree, otherwise in the
5576 # src tree.
5577 ac_file_inputs=`IFS=:
5578 for f in $ac_file_in; do
5579 case $f in
5580 -) echo $tmp/stdin ;;
5581 [\\/$]*)
5582 # Absolute (can't be DOS-style, as IFS=:)
5583 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5584 echo "$as_me: error: cannot find input file: $f" >&2;}
5585 { (exit 1); exit 1; }; }
5586 echo "$f";;
5587 *) # Relative
5588 if test -f "$f"; then
5589 # Build tree
5590 echo "$f"
5591 elif test -f "$srcdir/$f"; then
5592 # Source tree
5593 echo "$srcdir/$f"
5594 else
5595 # /dev/null tree
5596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5597 echo "$as_me: error: cannot find input file: $f" >&2;}
5598 { (exit 1); exit 1; }; }
5599 fi;;
5600 esac
5601 done` || { (exit 1); exit 1; }
5602
5603 if test x"$ac_file" != x-; then
5604 { echo "$as_me:$LINENO: creating $ac_file" >&5
5605 echo "$as_me: creating $ac_file" >&6;}
5606 rm -f "$ac_file"
5607 fi
5608 _ACEOF
5609 cat >>$CONFIG_STATUS <<_ACEOF
5610 sed "$ac_vpsub
5611 $extrasub
5612 _ACEOF
5613 cat >>$CONFIG_STATUS <<\_ACEOF
5614 :t
5615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5616 s,@configure_input@,$configure_input,;t t
5617 s,@srcdir@,$ac_srcdir,;t t
5618 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5619 s,@top_srcdir@,$ac_top_srcdir,;t t
5620 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5621 s,@builddir@,$ac_builddir,;t t
5622 s,@abs_builddir@,$ac_abs_builddir,;t t
5623 s,@top_builddir@,$ac_top_builddir,;t t
5624 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5625 s,@INSTALL@,$ac_INSTALL,;t t
5626 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5627 rm -f $tmp/stdin
5628 if test x"$ac_file" != x-; then
5629 mv $tmp/out $ac_file
5630 else
5631 cat $tmp/out
5632 rm -f $tmp/out
5633 fi
5634
5635 done
5636 _ACEOF
5637 cat >>$CONFIG_STATUS <<\_ACEOF
5638
5639 #
5640 # CONFIG_COMMANDS section.
5641 #
5642 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5643 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5644 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5645 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5646 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5647 X"$ac_dest" : 'X\(//\)[^/]' \| \
5648 X"$ac_dest" : 'X\(//\)$' \| \
5649 X"$ac_dest" : 'X\(/\)' \| \
5650 . : '\(.\)' 2>/dev/null ||
5651 echo X"$ac_dest" |
5652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5654 /^X\(\/\/\)$/{ s//\1/; q; }
5655 /^X\(\/\).*/{ s//\1/; q; }
5656 s/.*/./; q'`
5657 { if $as_mkdir_p; then
5658 mkdir -p "$ac_dir"
5659 else
5660 as_dir="$ac_dir"
5661 as_dirs=
5662 while test ! -d "$as_dir"; do
5663 as_dirs="$as_dir $as_dirs"
5664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5666 X"$as_dir" : 'X\(//\)[^/]' \| \
5667 X"$as_dir" : 'X\(//\)$' \| \
5668 X"$as_dir" : 'X\(/\)' \| \
5669 . : '\(.\)' 2>/dev/null ||
5670 echo X"$as_dir" |
5671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5673 /^X\(\/\/\)$/{ s//\1/; q; }
5674 /^X\(\/\).*/{ s//\1/; q; }
5675 s/.*/./; q'`
5676 done
5677 test ! -n "$as_dirs" || mkdir $as_dirs
5678 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5679 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5680 { (exit 1); exit 1; }; }; }
5681
5682 ac_builddir=.
5683
5684 if test "$ac_dir" != .; then
5685 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5686 # A "../" for each directory in $ac_dir_suffix.
5687 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5688 else
5689 ac_dir_suffix= ac_top_builddir=
5690 fi
5691
5692 case $srcdir in
5693 .) # No --srcdir option. We are building in place.
5694 ac_srcdir=.
5695 if test -z "$ac_top_builddir"; then
5696 ac_top_srcdir=.
5697 else
5698 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5699 fi ;;
5700 [\\/]* | ?:[\\/]* ) # Absolute path.
5701 ac_srcdir=$srcdir$ac_dir_suffix;
5702 ac_top_srcdir=$srcdir ;;
5703 *) # Relative path.
5704 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5705 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5706 esac
5707
5708 # Do not use `cd foo && pwd` to compute absolute paths, because
5709 # the directories may not exist.
5710 case `pwd` in
5711 .) ac_abs_builddir="$ac_dir";;
5712 *)
5713 case "$ac_dir" in
5714 .) ac_abs_builddir=`pwd`;;
5715 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5716 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5717 esac;;
5718 esac
5719 case $ac_abs_builddir in
5720 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5721 *)
5722 case ${ac_top_builddir}. in
5723 .) ac_abs_top_builddir=$ac_abs_builddir;;
5724 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5725 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5726 esac;;
5727 esac
5728 case $ac_abs_builddir in
5729 .) ac_abs_srcdir=$ac_srcdir;;
5730 *)
5731 case $ac_srcdir in
5732 .) ac_abs_srcdir=$ac_abs_builddir;;
5733 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5734 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5735 esac;;
5736 esac
5737 case $ac_abs_builddir in
5738 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5739 *)
5740 case $ac_top_srcdir in
5741 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5742 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5743 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5744 esac;;
5745 esac
5746
5747
5748 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5749 echo "$as_me: executing $ac_dest commands" >&6;}
5750 case $ac_dest in
5751 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5752 # Strip MF so we end up with the name of the file.
5753 mf=`echo "$mf" | sed -e 's/:.*$//'`
5754 # Check whether this is an Automake generated Makefile or not.
5755 # We used to match only the files named `Makefile.in', but
5756 # some people rename them; so instead we look at the file content.
5757 # Grep'ing the first line is not enough: some people post-process
5758 # each Makefile.in and add a new line on top of each file to say so.
5759 # So let's grep whole file.
5760 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5761 dirpart=`(dirname "$mf") 2>/dev/null ||
5762 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5763 X"$mf" : 'X\(//\)[^/]' \| \
5764 X"$mf" : 'X\(//\)$' \| \
5765 X"$mf" : 'X\(/\)' \| \
5766 . : '\(.\)' 2>/dev/null ||
5767 echo X"$mf" |
5768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5770 /^X\(\/\/\)$/{ s//\1/; q; }
5771 /^X\(\/\).*/{ s//\1/; q; }
5772 s/.*/./; q'`
5773 else
5774 continue
5775 fi
5776 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5777 # Extract the definition of DEP_FILES from the Makefile without
5778 # running `make'.
5779 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5780 test -z "$DEPDIR" && continue
5781 # When using ansi2knr, U may be empty or an underscore; expand it
5782 U=`sed -n -e '/^U = / s///p' < "$mf"`
5783 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5784 # We invoke sed twice because it is the simplest approach to
5785 # changing $(DEPDIR) to its actual value in the expansion.
5786 for file in `sed -n -e '
5787 /^DEP_FILES = .*\\\\$/ {
5788 s/^DEP_FILES = //
5789 :loop
5790 s/\\\\$//
5791 p
5792 n
5793 /\\\\$/ b loop
5794 p
5795 }
5796 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5798 # Make sure the directory exists.
5799 test -f "$dirpart/$file" && continue
5800 fdir=`(dirname "$file") 2>/dev/null ||
5801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5802 X"$file" : 'X\(//\)[^/]' \| \
5803 X"$file" : 'X\(//\)$' \| \
5804 X"$file" : 'X\(/\)' \| \
5805 . : '\(.\)' 2>/dev/null ||
5806 echo X"$file" |
5807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5809 /^X\(\/\/\)$/{ s//\1/; q; }
5810 /^X\(\/\).*/{ s//\1/; q; }
5811 s/.*/./; q'`
5812 { if $as_mkdir_p; then
5813 mkdir -p $dirpart/$fdir
5814 else
5815 as_dir=$dirpart/$fdir
5816 as_dirs=
5817 while test ! -d "$as_dir"; do
5818 as_dirs="$as_dir $as_dirs"
5819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5821 X"$as_dir" : 'X\(//\)[^/]' \| \
5822 X"$as_dir" : 'X\(//\)$' \| \
5823 X"$as_dir" : 'X\(/\)' \| \
5824 . : '\(.\)' 2>/dev/null ||
5825 echo X"$as_dir" |
5826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5828 /^X\(\/\/\)$/{ s//\1/; q; }
5829 /^X\(\/\).*/{ s//\1/; q; }
5830 s/.*/./; q'`
5831 done
5832 test ! -n "$as_dirs" || mkdir $as_dirs
5833 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5834 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5835 { (exit 1); exit 1; }; }; }
5836
5837 # echo "creating $dirpart/$file"
5838 echo '# dummy' > "$dirpart/$file"
5839 done
5840 done
5841 ;;
5842 esac
5843 done
5844 _ACEOF
5845
5846 cat >>$CONFIG_STATUS <<\_ACEOF
5847
5848 { (exit 0); exit 0; }
5849 _ACEOF
5850 chmod +x $CONFIG_STATUS
5851 ac_clean_files=$ac_clean_files_save
5852
5853
5854 # configure is writing to config.log, and then calls config.status.
5855 # config.status does its own redirection, appending to config.log.
5856 # Unfortunately, on DOS this fails, as config.log is still kept open
5857 # by configure, so config.status won't be able to write to it; its
5858 # output is simply discarded. So we exec the FD to /dev/null,
5859 # effectively closing config.log, so it can be properly (re)opened and
5860 # appended to by config.status. When coming back to configure, we
5861 # need to make the FD available again.
5862 if test "$no_create" != yes; then
5863 ac_cs_success=:
5864 ac_config_status_args=
5865 test "$silent" = yes &&
5866 ac_config_status_args="$ac_config_status_args --quiet"
5867 exec 5>/dev/null
5868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5869 exec 5>>config.log
5870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5871 # would make configure fail if this is the last instruction.
5872 $ac_cs_success || { (exit 1); exit 1; }
5873 fi
5874