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.17 - (show annotations) (download)
Mon Sep 24 08:36:12 2001 UTC (22 years, 6 months ago) by hiroo
Branch: MAIN
Changes since 1.16: +3 -3 lines
fix configure and makefile syntax error. ([freewnn:00753] T.Aono).

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