Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/configure

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


Revision 1.24 - (show annotations) (download)
Sun May 12 01:01:46 2002 UTC (21 years, 11 months ago) by hiroo
Branch: MAIN
Changes since 1.23: +78 -0 lines
* Check for bcopy/bzero/bcmp
* Remove `register'

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