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