/[debian]/cdck/trunk/configure
ViewVC logotype

Contents of /cdck/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1198 - (show annotations)
Wed Mar 5 15:26:44 2008 UTC (13 years, 4 months ago) by gregoa
File size: 329558 byte(s)
New upstream release: adds a warning about misleading error output
  (closes: #438631).
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29 ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
35 shift
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
38 :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
41 :
42 else
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
49 shift
50 cat <<EOF
51
52 EOF
53 exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68 then
69 break
70 fi
71 done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
77 :
78 else
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
82 #
83 # So, first we look for a working echo in the user's PATH.
84
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
91 echo="$dir/echo"
92 break
93 fi
94 done
95 IFS="$save_ifs"
96
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
103 echo='print -r'
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
110 export CONFIG_SHELL
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112 else
113 # Try using printf.
114 echo='printf %s\n'
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
118 # Cool, printf works
119 :
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 export CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
127 export SHELL
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
134 else
135 # maybe with a smaller string...
136 prev=:
137
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140 then
141 break
142 fi
143 prev="$cmd"
144 done
145
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 else
151 # Oops. We lost completely, so just stick with echo.
152 echo=echo
153 fi
154 fi
155 fi
156 fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170 as_expr=expr
171 else
172 as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182 emulate sh
183 NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185 set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191 as_unset=unset
192 else
193 as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
232 s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
246 chmod +x conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248 PATH_SEPARATOR=';'
249 else
250 PATH_SEPARATOR=:
251 fi
252 rm -f conftest.sh
253 fi
254
255
256 as_lineno_1=$LINENO
257 as_lineno_2=$LINENO
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
262 # relative or not.
263 case $0 in
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268 IFS=$as_save_IFS
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273 ;;
274 esac
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
278 as_myself=$0
279 fi
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
283 fi
284 case $CONFIG_SHELL in
285 '')
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289 IFS=$as_save_IFS
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
292 case $as_dir in
293 /*)
294 if ("$as_dir/$as_base" -c '
295 as_lineno_1=$LINENO
296 as_lineno_2=$LINENO
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
301 export CONFIG_SHELL
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303 fi;;
304 esac
305 done
306 done
307 ;;
308 esac
309
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
319 sed '
320 N
321 s,$,-,
322 : loop
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324 t loop
325 s,-$,,
326 s,^['$as_cr_digits']*\n,,
327 ' >$as_me.lineno &&
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
331
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
335 . ./$as_me.lineno
336 # Exit status is that of the last command.
337 exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T=' ' ;;
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349 as_expr=expr
350 else
351 as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
361 as_ln_s='cp -p'
362 else
363 as_ln_s='ln -s'
364 fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366 as_ln_s=ln
367 else
368 as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS=" $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 # Factoring default headers for most tests.
421 ac_includes_default="\
422 #include <stdio.h>
423 #if HAVE_SYS_TYPES_H
424 # include <sys/types.h>
425 #endif
426 #if HAVE_SYS_STAT_H
427 # include <sys/stat.h>
428 #endif
429 #if STDC_HEADERS
430 # include <stdlib.h>
431 # include <stddef.h>
432 #else
433 # if HAVE_STDLIB_H
434 # include <stdlib.h>
435 # endif
436 #endif
437 #if HAVE_STRING_H
438 # if !STDC_HEADERS && HAVE_MEMORY_H
439 # include <memory.h>
440 # endif
441 # include <string.h>
442 #endif
443 #if HAVE_STRINGS_H
444 # include <strings.h>
445 #endif
446 #if HAVE_INTTYPES_H
447 # include <inttypes.h>
448 #else
449 # if HAVE_STDINT_H
450 # include <stdint.h>
451 # endif
452 #endif
453 #if HAVE_UNISTD_H
454 # include <unistd.h>
455 #endif"
456
457 ac_default_prefix=/usr/local
458
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
478
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 ac_prev=
498 for ac_option
499 do
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
503 ac_prev=
504 continue
505 fi
506
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509 # Accept the important Cygnus configure options, so we can diagnose typos.
510
511 case $ac_option in
512
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
514 ac_prev=bindir ;;
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516 bindir=$ac_optarg ;;
517
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
522
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
529
530 --config-cache | -C)
531 cache_file=config.cache ;;
532
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534 ac_prev=datadir ;;
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536 | --da=*)
537 datadir=$ac_optarg ;;
538
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
547
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "enable_$ac_feature='$ac_optarg'" ;;
560
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
569
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
572 with_gas=yes ;;
573
574 -help | --help | --hel | --he | -h)
575 ac_init_help=long ;;
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
580
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
585
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
592
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
594 ac_prev=infodir ;;
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
597
598 -libdir | --libdir | --libdi | --libd)
599 ac_prev=libdir ;;
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
601 libdir=$ac_optarg ;;
602
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
609
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
618
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620 ac_prev=mandir ;;
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622 mandir=$ac_optarg ;;
623
624 -nfp | --nfp | --nf)
625 # Obsolete; use --without-fp.
626 with_fp=no ;;
627
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
630 no_create=yes ;;
631
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634 no_recursion=yes ;;
635
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
644
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646 ac_prev=prefix ;;
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648 prefix=$ac_optarg ;;
649
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
656
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
663
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
680
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
683 silent=yes ;;
684
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686 ac_prev=sbindir ;;
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688 | --sbi=* | --sb=*)
689 sbindir=$ac_optarg ;;
690
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
694 | --sha | --sh)
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699 | --sha=* | --sh=*)
700 sharedstatedir=$ac_optarg ;;
701
702 -site | --site | --sit)
703 ac_prev=site ;;
704 -site=* | --site=* | --sit=*)
705 site=$ac_optarg ;;
706
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708 ac_prev=srcdir ;;
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710 srcdir=$ac_optarg ;;
711
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
718
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
723
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
725 verbose=yes ;;
726
727 -version | --version | --versio | --versi | --vers | -V)
728 ac_init_version=: ;;
729
730 -with-* | --with-*)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
737 case $ac_option in
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739 *) ac_optarg=yes ;;
740 esac
741 eval "with_$ac_package='$ac_optarg'" ;;
742
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
751
752 --x)
753 # Obsolete; use --with-x.
754 with_x=yes ;;
755
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
762
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
769
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
773 ;;
774
775 *=*)
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
783 export $ac_envvar ;;
784
785 *)
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791 ;;
792
793 esac
794 done
795
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
800 fi
801
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
804 do
805 eval ac_val=$`echo $ac_var`
806 case $ac_val in
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
810 esac
811 done
812
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
831
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
839 cross_compiling=yes
840 fi
841 fi
842
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846 test "$silent" = yes && exec 6>/dev/null
847
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
864 s/.*/./; q'`
865 srcdir=$ac_confdir
866 if test ! -r $srcdir/$ac_unique_file; then
867 srcdir=..
868 fi
869 else
870 ac_srcdir_defaulted=no
871 fi
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
876 else
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
879 fi
880 fi
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
980
981 cat <<\_ACEOF
982
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking Speeds up one-time builds
1003 --enable-dependency-tracking Do not reject slow dependency extractors
1004 --disable-largefile omit support for large files
1005 --enable-shared=PKGS build shared libraries default=no
1006 --enable-static=PKGS build static libraries default=yes
1007 --enable-fast-install=PKGS optimize for fast installation default=yes
1008 --disable-libtool-lock avoid locking (might break parallel builds)
1009
1010 Optional Packages:
1011 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1012 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1013 --with-gnu-ld assume the C compiler uses GNU ld default=no
1014 --with-pic try to use only PIC/non-PIC objects default=use both
1015 --with-debug Compile with '-g -O0' and enable global DEBUG
1016 --with-debug-libcdck Compile with DEBUG_LIBCDCK
1017
1018 Some influential environment variables:
1019 CC C compiler command
1020 CFLAGS C compiler flags
1021 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1022 nonstandard directory <lib dir>
1023 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024 headers in a nonstandard directory <include dir>
1025 CXX C++ compiler command
1026 CXXFLAGS C++ compiler flags
1027 CPP C preprocessor
1028
1029 Use these variables to override the choices made by `configure' or to help
1030 it to find libraries and programs with nonstandard names/locations.
1031
1032 _ACEOF
1033 fi
1034
1035 if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1041
1042 if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 else
1047 ac_dir_suffix= ac_top_builddir=
1048 fi
1049
1050 case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 esac
1065 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066 # absolute.
1067 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1068 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1069 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1070 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1071
1072 cd $ac_dir
1073 # Check for guested configure; otherwise get Cygnus style configure.
1074 if test -f $ac_srcdir/configure.gnu; then
1075 echo
1076 $SHELL $ac_srcdir/configure.gnu --help=recursive
1077 elif test -f $ac_srcdir/configure; then
1078 echo
1079 $SHELL $ac_srcdir/configure --help=recursive
1080 elif test -f $ac_srcdir/configure.ac ||
1081 test -f $ac_srcdir/configure.in; then
1082 echo
1083 $ac_configure --help
1084 else
1085 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1086 fi
1087 cd $ac_popdir
1088 done
1089 fi
1090
1091 test -n "$ac_init_help" && exit 0
1092 if $ac_init_version; then
1093 cat <<\_ACEOF
1094
1095 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1096 Free Software Foundation, Inc.
1097 This configure script is free software; the Free Software Foundation
1098 gives unlimited permission to copy, distribute and modify it.
1099 _ACEOF
1100 exit 0
1101 fi
1102 exec 5>config.log
1103 cat >&5 <<_ACEOF
1104 This file contains any messages produced by compilers while
1105 running configure, to aid debugging if configure makes a mistake.
1106
1107 It was created by $as_me, which was
1108 generated by GNU Autoconf 2.53. Invocation command line was
1109
1110 $ $0 $@
1111
1112 _ACEOF
1113 {
1114 cat <<_ASUNAME
1115 ## --------- ##
1116 ## Platform. ##
1117 ## --------- ##
1118
1119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1124
1125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1127
1128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1131 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1135
1136 _ASUNAME
1137
1138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1139 for as_dir in $PATH
1140 do
1141 IFS=$as_save_IFS
1142 test -z "$as_dir" && as_dir=.
1143 echo "PATH: $as_dir"
1144 done
1145
1146 } >&5
1147
1148 cat >&5 <<_ACEOF
1149
1150
1151 ## ----------- ##
1152 ## Core tests. ##
1153 ## ----------- ##
1154
1155 _ACEOF
1156
1157
1158 # Keep a trace of the command line.
1159 # Strip out --no-create and --no-recursion so they do not pile up.
1160 # Also quote any args containing shell meta-characters.
1161 ac_configure_args=
1162 ac_sep=
1163 for ac_arg
1164 do
1165 case $ac_arg in
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n ) continue ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 continue ;;
1171 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1173 esac
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177 ac_sep=" " ;;
1178 esac
1179 # Get rid of the leading space.
1180 done
1181
1182 # When interrupted or exit'd, cleanup temporary files, and complete
1183 # config.log. We remove comments because anyway the quotes in there
1184 # would cause problems or look ugly.
1185 # WARNING: Be sure not to use single quotes in there, as some shells,
1186 # such as our DU 5.0 friend, will then `close' the trap.
1187 trap 'exit_status=$?
1188 # Save into config.log some information that might help in debugging.
1189 {
1190 echo
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1198 {
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 ;;
1206 *)
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1209 ;;
1210 esac;
1211 }
1212 echo
1213 if test -s confdefs.h; then
1214 cat <<\_ASBOX
1215 ## ----------- ##
1216 ## confdefs.h. ##
1217 ## ----------- ##
1218 _ASBOX
1219 echo
1220 sed "/^$/d" confdefs.h
1221 echo
1222 fi
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1226 } >&5
1227 rm -f core core.* *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 exit $exit_status
1230 ' 0
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 done
1234 ac_signal=0
1235
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 echo >confdefs.h
1240
1241 # Predefined preprocessor variables.
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 _ACEOF
1266
1267
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273 else
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275 fi
1276 fi
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1282 . "$ac_site_file"
1283 fi
1284 done
1285
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1292 case $cache_file in
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1295 esac
1296 fi
1297 else
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1300 >$cache_file
1301 fi
1302
1303 # Check that the precious variables saved in the cache have kept the same
1304 # value.
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1313 set,)
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1317 ,set)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,);;
1322 *)
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1331 fi;;
1332 esac
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1335 case $ac_new_val in
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1339 esac
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343 esac
1344 fi
1345 done
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1352 fi
1353
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377 ac_aux_dir=
1378 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1379 if test -f $ac_dir/install-sh; then
1380 ac_aux_dir=$ac_dir
1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 break
1383 elif test -f $ac_dir/install.sh; then
1384 ac_aux_dir=$ac_dir
1385 ac_install_sh="$ac_aux_dir/install.sh -c"
1386 break
1387 elif test -f $ac_dir/shtool; then
1388 ac_aux_dir=$ac_dir
1389 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 break
1391 fi
1392 done
1393 if test -z "$ac_aux_dir"; then
1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1395 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1396 { (exit 1); exit 1; }; }
1397 fi
1398 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1399 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1400 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401
1402 # Make sure we can run config.sub.
1403 $ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408 echo "$as_me:$LINENO: checking build system type" >&5
1409 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410 if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_build_alias=$build_alias
1414 test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416 test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425 fi
1426 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427 echo "${ECHO_T}$ac_cv_build" >&6
1428 build=$ac_cv_build
1429 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434 echo "$as_me:$LINENO: checking host system type" >&5
1435 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436 if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_host_alias=$host_alias
1440 test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1446
1447 fi
1448 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449 echo "${ECHO_T}$ac_cv_host" >&6
1450 host=$ac_cv_host
1451 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1455
1456 echo "$as_me:$LINENO: checking target system type" >&5
1457 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1458 if test "${ac_cv_target+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 ac_cv_target_alias=$target_alias
1462 test "x$ac_cv_target_alias" = "x" &&
1463 ac_cv_target_alias=$ac_cv_host_alias
1464 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1465 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1466 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1467 { (exit 1); exit 1; }; }
1468
1469 fi
1470 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1471 echo "${ECHO_T}$ac_cv_target" >&6
1472 target=$ac_cv_target
1473 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1474 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1475 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476
1477
1478 # The aliases save the names the user supplied, while $host etc.
1479 # will get canonicalized.
1480 test -n "$target_alias" &&
1481 test "$program_prefix$program_suffix$program_transform_name" = \
1482 NONENONEs,x,x, &&
1483 program_prefix=${target_alias}-
1484 am__api_version="1.6"
1485 # Find a good install program. We prefer a C program (faster),
1486 # so one script is as good as another. But avoid the broken or
1487 # incompatible versions:
1488 # SysV /etc/install, /usr/sbin/install
1489 # SunOS /usr/etc/install
1490 # IRIX /sbin/install
1491 # AIX /bin/install
1492 # AmigaOS /C/install, which installs bootblocks on floppy discs
1493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1496 # ./install, which can be erroneously created by make from ./install.sh.
1497 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1498 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1499 if test -z "$INSTALL"; then
1500 if test "${ac_cv_path_install+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 # Account for people who put trailing slashes in PATH elements.
1509 case $as_dir/ in
1510 ./ | .// | /cC/* | \
1511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1512 /usr/ucb/* ) ;;
1513 *)
1514 # OSF1 and SCO ODT 3.0 have their own names for install.
1515 # Don't use installbsd from OSF since it installs stuff as root
1516 # by default.
1517 for ac_prog in ginstall scoinst install; do
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1520 if test $ac_prog = install &&
1521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1522 # AIX install. It has an incompatible calling convention.
1523 :
1524 elif test $ac_prog = install &&
1525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526 # program-specific install script used by HP pwplus--don't use.
1527 :
1528 else
1529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1530 break 3
1531 fi
1532 fi
1533 done
1534 done
1535 ;;
1536 esac
1537 done
1538
1539
1540 fi
1541 if test "${ac_cv_path_install+set}" = set; then
1542 INSTALL=$ac_cv_path_install
1543 else
1544 # As a last resort, use the slow shell script. We don't cache a
1545 # path for INSTALL within a source directory, because that will
1546 # break other packages using the cache if that directory is
1547 # removed, or if the path is relative.
1548 INSTALL=$ac_install_sh
1549 fi
1550 fi
1551 echo "$as_me:$LINENO: result: $INSTALL" >&5
1552 echo "${ECHO_T}$INSTALL" >&6
1553
1554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1555 # It thinks the first close brace ends the variable substitution.
1556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1557
1558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1559
1560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1561
1562 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1563 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1564 # Just in case
1565 sleep 1
1566 echo timestamp > conftest.file
1567 # Do `set' in a subshell so we don't clobber the current shell's
1568 # arguments. Must try -L first in case configure is actually a
1569 # symlink; some systems play weird games with the mod time of symlinks
1570 # (eg FreeBSD returns the mod time of the symlink's containing
1571 # directory).
1572 if (
1573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1574 if test "$*" = "X"; then
1575 # -L didn't work.
1576 set X `ls -t $srcdir/configure conftest.file`
1577 fi
1578 rm -f conftest.file
1579 if test "$*" != "X $srcdir/configure conftest.file" \
1580 && test "$*" != "X conftest.file $srcdir/configure"; then
1581
1582 # If neither matched, then we have a broken ls. This can happen
1583 # if, for instance, CONFIG_SHELL is bash and it inherits a
1584 # broken ls alias from the environment. This has actually
1585 # happened. Such a system could not be considered "sane".
1586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1587 alias in your environment" >&5
1588 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1589 alias in your environment" >&2;}
1590 { (exit 1); exit 1; }; }
1591 fi
1592
1593 test "$2" = conftest.file
1594 )
1595 then
1596 # Ok.
1597 :
1598 else
1599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1600 Check your system clock" >&5
1601 echo "$as_me: error: newly created file is older than distributed files!
1602 Check your system clock" >&2;}
1603 { (exit 1); exit 1; }; }
1604 fi
1605 echo "$as_me:$LINENO: result: yes" >&5
1606 echo "${ECHO_T}yes" >&6
1607 test "$program_prefix" != NONE &&
1608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1609 # Use a double $ so make ignores it.
1610 test "$program_suffix" != NONE &&
1611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1612 # Double any \ or $. echo might interpret backslashes.
1613 # By default was `s,x,x', remove it if useless.
1614 cat <<\_ACEOF >conftest.sed
1615 s/[\\$]/&&/g;s/;s,x,x,$//
1616 _ACEOF
1617 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1618 rm conftest.sed
1619
1620
1621 # expand $ac_aux_dir to an absolute path
1622 am_aux_dir=`cd $ac_aux_dir && pwd`
1623
1624 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1625 # Use eval to expand $SHELL
1626 if eval "$MISSING --run true"; then
1627 am_missing_run="$MISSING --run "
1628 else
1629 am_missing_run=
1630 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1631 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1632 fi
1633
1634 for ac_prog in gawk mawk nawk awk
1635 do
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_AWK+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$AWK"; then
1644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_AWK="$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 AWK=$ac_cv_prog_AWK
1663 if test -n "$AWK"; then
1664 echo "$as_me:$LINENO: result: $AWK" >&5
1665 echo "${ECHO_T}$AWK" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 test -n "$AWK" && break
1672 done
1673
1674 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1675 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1677 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 cat >conftest.make <<\_ACEOF
1681 all:
1682 @echo 'ac_maketemp="${MAKE}"'
1683 _ACEOF
1684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1685 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1686 if test -n "$ac_maketemp"; then
1687 eval ac_cv_prog_make_${ac_make}_set=yes
1688 else
1689 eval ac_cv_prog_make_${ac_make}_set=no
1690 fi
1691 rm -f conftest.make
1692 fi
1693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1694 echo "$as_me:$LINENO: result: yes" >&5
1695 echo "${ECHO_T}yes" >&6
1696 SET_MAKE=
1697 else
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 SET_MAKE="MAKE=${MAKE-make}"
1701 fi
1702
1703 # test to see if srcdir already configured
1704 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1705 test -f $srcdir/config.status; then
1706 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1707 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1708 { (exit 1); exit 1; }; }
1709 fi
1710
1711 # Define the identity of the package.
1712 PACKAGE=cdck
1713 VERSION=0.7.0
1714
1715
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE "$PACKAGE"
1718 _ACEOF
1719
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define VERSION "$VERSION"
1723 _ACEOF
1724
1725 # Some tools Automake needs.
1726
1727 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1728
1729
1730 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1731
1732
1733 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1734
1735
1736 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1737
1738
1739 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1740
1741
1742 AMTAR=${AMTAR-"${am_missing_run}tar"}
1743
1744 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1745
1746 # Installed binaries are usually stripped using `strip' when the user
1747 # run `make install-strip'. However `strip' might not be the right
1748 # tool to use in cross-compilation environments, therefore Automake
1749 # will honor the `STRIP' environment variable to overrule this program.
1750 if test "$cross_compiling" != no; then
1751 if test -n "$ac_tool_prefix"; then
1752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1753 set dummy ${ac_tool_prefix}strip; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_STRIP+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$STRIP"; then
1760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 STRIP=$ac_cv_prog_STRIP
1779 if test -n "$STRIP"; then
1780 echo "$as_me:$LINENO: result: $STRIP" >&5
1781 echo "${ECHO_T}$STRIP" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 fi
1788 if test -z "$ac_cv_prog_STRIP"; then
1789 ac_ct_STRIP=$STRIP
1790 # Extract the first word of "strip", so it can be a program name with args.
1791 set dummy strip; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$ac_ct_STRIP"; then
1798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_STRIP="strip"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1815 fi
1816 fi
1817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1818 if test -n "$ac_ct_STRIP"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1820 echo "${ECHO_T}$ac_ct_STRIP" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 STRIP=$ac_ct_STRIP
1827 else
1828 STRIP="$ac_cv_prog_STRIP"
1829 fi
1830
1831 fi
1832 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1833
1834 # We need awk for the "check" target. The system "awk" is bad on
1835 # some platforms.
1836
1837
1838
1839
1840 S_CFLAGS=${CFLAGS}
1841
1842 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1843 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1844 # Just in case
1845 sleep 1
1846 echo timestamp > conftest.file
1847 # Do `set' in a subshell so we don't clobber the current shell's
1848 # arguments. Must try -L first in case configure is actually a
1849 # symlink; some systems play weird games with the mod time of symlinks
1850 # (eg FreeBSD returns the mod time of the symlink's containing
1851 # directory).
1852 if (
1853 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1854 if test "$*" = "X"; then
1855 # -L didn't work.
1856 set X `ls -t $srcdir/configure conftest.file`
1857 fi
1858 rm -f conftest.file
1859 if test "$*" != "X $srcdir/configure conftest.file" \
1860 && test "$*" != "X conftest.file $srcdir/configure"; then
1861
1862 # If neither matched, then we have a broken ls. This can happen
1863 # if, for instance, CONFIG_SHELL is bash and it inherits a
1864 # broken ls alias from the environment. This has actually
1865 # happened. Such a system could not be considered "sane".
1866 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1867 alias in your environment" >&5
1868 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1869 alias in your environment" >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872
1873 test "$2" = conftest.file
1874 )
1875 then
1876 # Ok.
1877 :
1878 else
1879 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1880 Check your system clock" >&5
1881 echo "$as_me: error: newly created file is older than distributed files!
1882 Check your system clock" >&2;}
1883 { (exit 1); exit 1; }; }
1884 fi
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1887 # Find a good install program. We prefer a C program (faster),
1888 # so one script is as good as another. But avoid the broken or
1889 # incompatible versions:
1890 # SysV /etc/install, /usr/sbin/install
1891 # SunOS /usr/etc/install
1892 # IRIX /sbin/install
1893 # AIX /bin/install
1894 # AmigaOS /C/install, which installs bootblocks on floppy discs
1895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1898 # ./install, which can be erroneously created by make from ./install.sh.
1899 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1901 if test -z "$INSTALL"; then
1902 if test "${ac_cv_path_install+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 # Account for people who put trailing slashes in PATH elements.
1911 case $as_dir/ in
1912 ./ | .// | /cC/* | \
1913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1914 /usr/ucb/* ) ;;
1915 *)
1916 # OSF1 and SCO ODT 3.0 have their own names for install.
1917 # Don't use installbsd from OSF since it installs stuff as root
1918 # by default.
1919 for ac_prog in ginstall scoinst install; do
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1922 if test $ac_prog = install &&
1923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1924 # AIX install. It has an incompatible calling convention.
1925 :
1926 elif test $ac_prog = install &&
1927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1928 # program-specific install script used by HP pwplus--don't use.
1929 :
1930 else
1931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1932 break 3
1933 fi
1934 fi
1935 done
1936 done
1937 ;;
1938 esac
1939 done
1940
1941
1942 fi
1943 if test "${ac_cv_path_install+set}" = set; then
1944 INSTALL=$ac_cv_path_install
1945 else
1946 # As a last resort, use the slow shell script. We don't cache a
1947 # path for INSTALL within a source directory, because that will
1948 # break other packages using the cache if that directory is
1949 # removed, or if the path is relative.
1950 INSTALL=$ac_install_sh
1951 fi
1952 fi
1953 echo "$as_me:$LINENO: result: $INSTALL" >&5
1954 echo "${ECHO_T}$INSTALL" >&6
1955
1956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1957 # It thinks the first close brace ends the variable substitution.
1958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1959
1960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1961
1962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1963
1964 rm -f .deps 2>/dev/null
1965 mkdir .deps 2>/dev/null
1966 if test -d .deps; then
1967 DEPDIR=.deps
1968 else
1969 # MS-DOS does not allow filenames that begin with a dot.
1970 DEPDIR=_deps
1971 fi
1972 rmdir .deps 2>/dev/null
1973
1974
1975 ac_config_commands="$ac_config_commands depfiles"
1976
1977
1978 am_make=${MAKE-make}
1979 cat > confinc << 'END'
1980 doit:
1981 @echo done
1982 END
1983 # If we don't find an include directive, just comment out the code.
1984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1986 am__include="#"
1987 am__quote=
1988 _am_result=none
1989 # First try GNU make style include.
1990 echo "include confinc" > confmf
1991 # We grep out `Entering directory' and `Leaving directory'
1992 # messages which can occur if `w' ends up in MAKEFLAGS.
1993 # In particular we don't look at `^make:' because GNU make might
1994 # be invoked under some other name (usually "gmake"), in which
1995 # case it prints its new name instead of `make'.
1996 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1997 am__include=include
1998 am__quote=
1999 _am_result=GNU
2000 fi
2001 # Now try BSD make style include.
2002 if test "$am__include" = "#"; then
2003 echo '.include "confinc"' > confmf
2004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2005 am__include=.include
2006 am__quote="\""
2007 _am_result=BSD
2008 fi
2009 fi
2010
2011
2012 echo "$as_me:$LINENO: result: $_am_result" >&5
2013 echo "${ECHO_T}$_am_result" >&6
2014 rm -f confinc confmf
2015
2016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2017 if test "${enable_dependency_tracking+set}" = set; then
2018 enableval="$enable_dependency_tracking"
2019
2020 fi;
2021 if test "x$enable_dependency_tracking" != xno; then
2022 am_depcomp="$ac_aux_dir/depcomp"
2023 AMDEPBACKSLASH='\'
2024 fi
2025
2026
2027 if test "x$enable_dependency_tracking" != xno; then
2028 AMDEP_TRUE=
2029 AMDEP_FALSE='#'
2030 else
2031 AMDEP_TRUE='#'
2032 AMDEP_FALSE=
2033 fi
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 break 2
2063 fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078 fi
2079 if test -z "$ac_cv_prog_CC"; then
2080 ac_ct_CC=$CC
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2101 fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116 CC=$ac_ct_CC
2117 else
2118 CC="$ac_cv_prog_CC"
2119 fi
2120
2121 if test -z "$CC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_CC="${ac_tool_prefix}cc"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 break 2
2143 fi
2144 done
2145 done
2146
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158 fi
2159 if test -z "$ac_cv_prog_CC"; then
2160 ac_ct_CC=$CC
2161 # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$ac_ct_CC"; then
2169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_ac_ct_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2181 fi
2182 done
2183 done
2184
2185 fi
2186 fi
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6
2191 else
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2194 fi
2195
2196 CC=$ac_ct_CC
2197 else
2198 CC="$ac_cv_prog_CC"
2199 fi
2200
2201 fi
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 ac_prog_rejected=no
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222 ac_prog_rejected=yes
2223 continue
2224 fi
2225 ac_cv_prog_CC="cc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229 done
2230 done
2231
2232 if test $ac_prog_rejected = yes; then
2233 # We found a bogon in the path, so make sure we never use it.
2234 set dummy $ac_cv_prog_CC
2235 shift
2236 if test $# != 0; then
2237 # We chose a different compiler from the bogus one.
2238 # However, it has the same basename, so the bogon will be chosen
2239 # first if we set CC to just the basename; use the full file name.
2240 shift
2241 set dummy "$as_dir/$ac_word" ${1+"$@"}
2242 shift
2243 ac_cv_prog_CC="$@"
2244 fi
2245 fi
2246 fi
2247 fi
2248 CC=$ac_cv_prog_CC
2249 if test -n "$CC"; then
2250 echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6
2252 else
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2255 fi
2256
2257 fi
2258 if test -z "$CC"; then
2259 if test -n "$ac_tool_prefix"; then
2260 for ac_prog in cl
2261 do
2262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 CC=$ac_cv_prog_CC
2289 if test -n "$CC"; then
2290 echo "$as_me:$LINENO: result: $CC" >&5
2291 echo "${ECHO_T}$CC" >&6
2292 else
2293 echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297 test -n "$CC" && break
2298 done
2299 fi
2300 if test -z "$CC"; then
2301 ac_ct_CC=$CC
2302 for ac_prog in cl
2303 do
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321 ac_cv_prog_ac_ct_CC="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2334 else
2335 echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339 test -n "$ac_ct_CC" && break
2340 done
2341
2342 CC=$ac_ct_CC
2343 fi
2344
2345 fi
2346
2347
2348 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2349 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2350 { (exit 1); exit 1; }; }
2351
2352 # Provide some information about the compiler.
2353 echo "$as_me:$LINENO:" \
2354 "checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357 (eval $ac_compiler --version </dev/null >&5) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362 (eval $ac_compiler -v </dev/null >&5) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367 (eval $ac_compiler -V </dev/null >&5) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2374 #include "confdefs.h"
2375
2376 #ifdef F77_DUMMY_MAIN
2377 # ifdef __cplusplus
2378 extern "C"
2379 # endif
2380 int F77_DUMMY_MAIN() { return 1; }
2381 #endif
2382 int
2383 main ()
2384 {
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2394 # of exeext.
2395 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2396 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2399 (eval $ac_link_default) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # Find the output, starting from the most likely. This scheme is
2404 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2405 # resort.
2406
2407 # Be careful to initialize this variable, since it used to be cached.
2408 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2409 ac_cv_exeext=
2410 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2411 ls a.out conftest 2>/dev/null;
2412 ls a.* conftest.* 2>/dev/null`; do
2413 case $ac_file in
2414 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2415 a.out ) # We found the default executable, but exeext='' is most
2416 # certainly right.
2417 break;;
2418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2420 export ac_cv_exeext
2421 break;;
2422 * ) break;;
2423 esac
2424 done
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2429 echo "$as_me: error: C compiler cannot create executables" >&2;}
2430 { (exit 77); exit 77; }; }
2431 fi
2432
2433 ac_exeext=$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_file" >&5
2435 echo "${ECHO_T}$ac_file" >&6
2436
2437 # Check the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2440 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2441 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2442 # If not cross compiling, check that we can run a simple program.
2443 if test "$cross_compiling" != yes; then
2444 if { ac_try='./$ac_file'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 cross_compiling=no
2451 else
2452 if test "$cross_compiling" = maybe; then
2453 cross_compiling=yes
2454 else
2455 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2456 If you meant to cross compile, use \`--host'." >&5
2457 echo "$as_me: error: cannot run C compiled programs.
2458 If you meant to cross compile, use \`--host'." >&2;}
2459 { (exit 1); exit 1; }; }
2460 fi
2461 fi
2462 fi
2463 echo "$as_me:$LINENO: result: yes" >&5
2464 echo "${ECHO_T}yes" >&6
2465
2466 rm -f a.out a.exe conftest$ac_cv_exeext
2467 ac_clean_files=$ac_clean_files_save
2468 # Check the compiler produces executables we can run. If not, either
2469 # the compiler is broken, or we cross compile.
2470 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2471 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2472 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2473 echo "${ECHO_T}$cross_compiling" >&6
2474
2475 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2476 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2478 (eval $ac_link) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2484 # work properly (i.e., refer to `conftest.exe'), while it won't with
2485 # `rm'.
2486 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2487 case $ac_file in
2488 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490 export ac_cv_exeext
2491 break;;
2492 * ) break;;
2493 esac
2494 done
2495 else
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2497 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2498 { (exit 1); exit 1; }; }
2499 fi
2500
2501 rm -f conftest$ac_cv_exeext
2502 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2503 echo "${ECHO_T}$ac_cv_exeext" >&6
2504
2505 rm -f conftest.$ac_ext
2506 EXEEXT=$ac_cv_exeext
2507 ac_exeext=$EXEEXT
2508 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2509 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2510 if test "${ac_cv_objext+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 #include "confdefs.h"
2516
2517 #ifdef F77_DUMMY_MAIN
2518 # ifdef __cplusplus
2519 extern "C"
2520 # endif
2521 int F77_DUMMY_MAIN() { return 1; }
2522 #endif
2523 int
2524 main ()
2525 {
2526
2527 ;
2528 return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.o conftest.obj
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2541 break;;
2542 esac
2543 done
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2548 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2549 { (exit 1); exit 1; }; }
2550 fi
2551
2552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2553 fi
2554 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2555 echo "${ECHO_T}$ac_cv_objext" >&6
2556 OBJEXT=$ac_cv_objext
2557 ac_objext=$OBJEXT
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2560 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2566
2567 #ifdef F77_DUMMY_MAIN
2568 # ifdef __cplusplus
2569 extern "C"
2570 # endif
2571 int F77_DUMMY_MAIN() { return 1; }
2572 #endif
2573 int
2574 main ()
2575 {
2576 #ifndef __GNUC__
2577 choke me
2578 #endif
2579
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_compiler_gnu=yes
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 ac_compiler_gnu=no
2601 fi
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 CFLAGS="-g"
2612 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2613 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2614 if test "${ac_cv_prog_cc_g+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620
2621 #ifdef F77_DUMMY_MAIN
2622 # ifdef __cplusplus
2623 extern "C"
2624 # endif
2625 int F77_DUMMY_MAIN() { return 1; }
2626 #endif
2627 int
2628 main ()
2629 {
2630
2631 ;
2632 return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_prog_cc_g=yes
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 ac_cv_prog_cc_g=no
2652 fi
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2654 fi
2655 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657 if test "$ac_test_CFLAGS" = set; then
2658 CFLAGS=$ac_save_CFLAGS
2659 elif test $ac_cv_prog_cc_g = yes; then
2660 if test "$GCC" = yes; then
2661 CFLAGS="-g -O2"
2662 else
2663 CFLAGS="-g"
2664 fi
2665 else
2666 if test "$GCC" = yes; then
2667 CFLAGS="-O2"
2668 else
2669 CFLAGS=
2670 fi
2671 fi
2672 # Some people use a C++ compiler to compile C. Since we use `exit',
2673 # in C++ we need to declare it. In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #ifndef __cplusplus
2678 choke me
2679 #endif
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 for ac_declaration in \
2694 ''\
2695 '#include <stdlib.h>' \
2696 'extern "C" void std::exit (int) throw (); using std::exit;' \
2697 'extern "C" void std::exit (int); using std::exit;' \
2698 'extern "C" void exit (int) throw ();' \
2699 'extern "C" void exit (int);' \
2700 'void exit (int);'
2701 do
2702 cat >conftest.$ac_ext <<_ACEOF
2703 #line $LINENO "configure"
2704 #include "confdefs.h"
2705 #include <stdlib.h>
2706 $ac_declaration
2707 #ifdef F77_DUMMY_MAIN
2708 # ifdef __cplusplus
2709 extern "C"
2710 # endif
2711 int F77_DUMMY_MAIN() { return 1; }
2712 #endif
2713 int
2714 main ()
2715 {
2716 exit (42);
2717 ;
2718 return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 :
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 continue
2738 fi
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line $LINENO "configure"
2742 #include "confdefs.h"
2743 $ac_declaration
2744 #ifdef F77_DUMMY_MAIN
2745 # ifdef __cplusplus
2746 extern "C"
2747 # endif
2748 int F77_DUMMY_MAIN() { return 1; }
2749 #endif
2750 int
2751 main ()
2752 {
2753 exit (42);
2754 ;
2755 return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 fi
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 done
2777 rm -f conftest*
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2782 fi
2783
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 fi
2788 rm -f conftest.$ac_objext conftest.$ac_ext
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795 depcc="$CC" am_compiler_list=
2796
2797 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2798 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2799 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2803 # We make a subdir and do the tests there. Otherwise we can end up
2804 # making bogus files that we don't know about and never remove. For
2805 # instance it was reported that on HP-UX the gcc test will end up
2806 # making a dummy file named `D' -- because `-MD' means `put the output
2807 # in D'.
2808 mkdir conftest.dir
2809 # Copy depcomp to subdir because otherwise we won't find it if we're
2810 # using a relative directory.
2811 cp "$am_depcomp" conftest.dir
2812 cd conftest.dir
2813
2814 am_cv_CC_dependencies_compiler_type=none
2815 if test "$am_compiler_list" = ""; then
2816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2817 fi
2818 for depmode in $am_compiler_list; do
2819 # We need to recreate these files for each test, as the compiler may
2820 # overwrite some of them when testing with obscure command lines.
2821 # This happens at least with the AIX C compiler.
2822 echo '#include "conftest.h"' > conftest.c
2823 echo 'int i;' > conftest.h
2824 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2825
2826 case $depmode in
2827 nosideeffect)
2828 # after this tag, mechanisms are not by side-effect, so they'll
2829 # only be used when explicitly requested
2830 if test "x$enable_dependency_tracking" = xyes; then
2831 continue
2832 else
2833 break
2834 fi
2835 ;;
2836 none) break ;;
2837 esac
2838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2839 # mode. It turns out that the SunPro C++ compiler does not properly
2840 # handle `-M -o', and we need to detect this.
2841 if depmode=$depmode \
2842 source=conftest.c object=conftest.o \
2843 depfile=conftest.Po tmpdepfile=conftest.TPo \
2844 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2845 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2847 am_cv_CC_dependencies_compiler_type=$depmode
2848 break
2849 fi
2850 done
2851
2852 cd ..
2853 rm -rf conftest.dir
2854 else
2855 am_cv_CC_dependencies_compiler_type=none
2856 fi
2857
2858 fi
2859 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2860 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2861 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2862
2863
2864
2865
2866 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2867 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2868 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 ac_check_lib_save_LIBS=$LIBS
2872 LIBS="-lcposix $LIBS"
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #line $LINENO "configure"
2875 #include "confdefs.h"
2876
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 #ifdef __cplusplus
2879 extern "C"
2880 #endif
2881 /* We use char because int might match the return type of a gcc2
2882 builtin and then its argument prototype would still apply. */
2883 char strerror ();
2884 #ifdef F77_DUMMY_MAIN
2885 # ifdef __cplusplus
2886 extern "C"
2887 # endif
2888 int F77_DUMMY_MAIN() { return 1; }
2889 #endif
2890 int
2891 main ()
2892 {
2893 strerror ();
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext conftest$ac_exeext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900 (eval $ac_link) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -s conftest$ac_exeext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 ac_cv_lib_cposix_strerror=yes
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 ac_cv_lib_cposix_strerror=no
2915 fi
2916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2917 LIBS=$ac_check_lib_save_LIBS
2918 fi
2919 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2920 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2921 if test $ac_cv_lib_cposix_strerror = yes; then
2922 LIBS="$LIBS -lcposix"
2923 fi
2924
2925
2926
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6
2963 else
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 fi
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970 ac_ct_CC=$CC
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994
2995 fi
2996 fi
2997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998 if test -n "$ac_ct_CC"; then
2999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3000 echo "${ECHO_T}$ac_ct_CC" >&6
3001 else
3002 echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3004 fi
3005
3006 CC=$ac_ct_CC
3007 else
3008 CC="$ac_cv_prog_CC"
3009 fi
3010
3011 if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3017 if test "${ac_cv_prog_CC+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_CC="${ac_tool_prefix}cc"
3031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6
3043 else
3044 echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6
3046 fi
3047
3048 fi
3049 if test -z "$ac_cv_prog_CC"; then
3050 ac_ct_CC=$CC
3051 # Extract the first word of "cc", so it can be a program name with args.
3052 set dummy cc; ac_word=$2
3053 echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_ac_ct_CC="cc"
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074
3075 fi
3076 fi
3077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3078 if test -n "$ac_ct_CC"; then
3079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3080 echo "${ECHO_T}$ac_ct_CC" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3084 fi
3085
3086 CC=$ac_ct_CC
3087 else
3088 CC="$ac_cv_prog_CC"
3089 fi
3090
3091 fi
3092 if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc; ac_word=$2
3095 echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097 if test "${ac_cv_prog_CC+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 ac_prog_rejected=no
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121
3122 if test $ac_prog_rejected = yes; then
3123 # We found a bogon in the path, so make sure we never use it.
3124 set dummy $ac_cv_prog_CC
3125 shift
3126 if test $# != 0; then
3127 # We chose a different compiler from the bogus one.
3128 # However, it has the same basename, so the bogon will be chosen
3129 # first if we set CC to just the basename; use the full file name.
3130 shift
3131 set dummy "$as_dir/$ac_word" ${1+"$@"}
3132 shift
3133 ac_cv_prog_CC="$@"
3134 fi
3135 fi
3136 fi
3137 fi
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 echo "$as_me:$LINENO: result: $CC" >&5
3141 echo "${ECHO_T}$CC" >&6
3142 else
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3145 fi
3146
3147 fi
3148 if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154 echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_prog_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180 echo "$as_me:$LINENO: result: $CC" >&5
3181 echo "${ECHO_T}$CC" >&6
3182 else
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185 fi
3186
3187 test -n "$CC" && break
3188 done
3189 fi
3190 if test -z "$CC"; then
3191 ac_ct_CC=$CC
3192 for ac_prog in cl
3193 do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217
3218 fi
3219 fi
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223 echo "${ECHO_T}$ac_ct_CC" >&6
3224 else
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3227 fi
3228
3229 test -n "$ac_ct_CC" && break
3230 done
3231
3232 CC=$ac_ct_CC
3233 fi
3234
3235 fi
3236
3237
3238 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
3239 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
3240 { (exit 1); exit 1; }; }
3241
3242 # Provide some information about the compiler.
3243 echo "$as_me:$LINENO:" \
3244 "checking for C compiler version" >&5
3245 ac_compiler=`set X $ac_compile; echo $2`
3246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3247 (eval $ac_compiler --version </dev/null >&5) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3252 (eval $ac_compiler -v </dev/null >&5) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }
3256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3257 (eval $ac_compiler -V </dev/null >&5) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }
3261
3262 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3263 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3264 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line $LINENO "configure"
3269 #include "confdefs.h"
3270
3271 #ifdef F77_DUMMY_MAIN
3272 # ifdef __cplusplus
3273 extern "C"
3274 # endif
3275 int F77_DUMMY_MAIN() { return 1; }
3276 #endif
3277 int
3278 main ()
3279 {
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_compiler_gnu=yes
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3304 ac_compiler_gnu=no
3305 fi
3306 rm -f conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS=${CFLAGS+set}
3314 ac_save_CFLAGS=$CFLAGS
3315 CFLAGS="-g"
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 #line $LINENO "configure"
3323 #include "confdefs.h"
3324
3325 #ifdef F77_DUMMY_MAIN
3326 # ifdef __cplusplus
3327 extern "C"
3328 # endif
3329 int F77_DUMMY_MAIN() { return 1; }
3330 #endif
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_g=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 ac_cv_prog_cc_g=no
3356 fi
3357 rm -f conftest.$ac_objext conftest.$ac_ext
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3361 if test "$ac_test_CFLAGS" = set; then
3362 CFLAGS=$ac_save_CFLAGS
3363 elif test $ac_cv_prog_cc_g = yes; then
3364 if test "$GCC" = yes; then
3365 CFLAGS="-g -O2"
3366 else
3367 CFLAGS="-g"
3368 fi
3369 else
3370 if test "$GCC" = yes; then
3371 CFLAGS="-O2"
3372 else
3373 CFLAGS=
3374 fi
3375 fi
3376 # Some people use a C++ compiler to compile C. Since we use `exit',
3377 # in C++ we need to declare it. In case someone uses the same compiler
3378 # for both compiling C and C++ we need to have the C++ compiler decide
3379 # the declaration of exit, since it's the most demanding environment.
3380 cat >conftest.$ac_ext <<_ACEOF
3381 #ifndef __cplusplus
3382 choke me
3383 #endif
3384 _ACEOF
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 for ac_declaration in \
3398 ''\
3399 '#include <stdlib.h>' \
3400 'extern "C" void std::exit (int) throw (); using std::exit;' \
3401 'extern "C" void std::exit (int); using std::exit;' \
3402 'extern "C" void exit (int) throw ();' \
3403 'extern "C" void exit (int);' \
3404 'void exit (int);'
3405 do
3406 cat >conftest.$ac_ext <<_ACEOF
3407 #line $LINENO "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 $ac_declaration
3411 #ifdef F77_DUMMY_MAIN
3412 # ifdef __cplusplus
3413 extern "C"
3414 # endif
3415 int F77_DUMMY_MAIN() { return 1; }
3416 #endif
3417 int
3418 main ()
3419 {
3420 exit (42);
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -s conftest.$ac_objext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 :
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 continue
3442 fi
3443 rm -f conftest.$ac_objext conftest.$ac_ext
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 #include "confdefs.h"
3447 $ac_declaration
3448 #ifdef F77_DUMMY_MAIN
3449 # ifdef __cplusplus
3450 extern "C"
3451 # endif
3452 int F77_DUMMY_MAIN() { return 1; }
3453 #endif
3454 int
3455 main ()
3456 {
3457 exit (42);
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 break
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 fi
3479 rm -f conftest.$ac_objext conftest.$ac_ext
3480 done
3481 rm -f conftest*
3482 if test -n "$ac_declaration"; then
3483 echo '#ifdef __cplusplus' >>confdefs.h
3484 echo $ac_declaration >>confdefs.h
3485