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.22 - (show annotations) (download)
Sun Mar 31 11:30:21 2002 UTC (22 years ago) by h-abe
Branch: MAIN
Changes since 1.21: +398 -217 lines
BeOS requires to link libbe.so when using syslog function.
Add JS_SUPPORTLIBS to set libraries when building [jckt]server.
Configure detects OS, and when running on BeOS, sets "-lbe" to JS_SUPPORTLIBS.

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