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.15 - (show annotations) (download)
Tue Aug 14 13:43:20 2001 UTC (22 years, 8 months ago) by hiroo
Branch: MAIN
Changes since 1.14: +4244 -1011 lines
IPv6+CPP patch [freewnn:00673] Katsuomi Hamajima, Tomoki Aono
beos patch for configure.in [freewnn:00677] Hiroaki Abe
libtoolized by libtool-1.4

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