Develop and Download Open Source Software

Browse CVS Repository

Contents of /malonnote/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download)
Thu Sep 29 04:15:30 2005 UTC (18 years, 5 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_4, dev_1_4-0003, dev_1_4-0002, dev_1_4-0005, dev_1_4-0006
Changes since 1.10: +10 -10 lines
use XRC file for mnFrame

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