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.19 - (show annotations) (download)
Sat Mar 9 16:50:31 2002 UTC (22 years, 1 month ago) by aono
Branch: MAIN
Changes since 1.18: +347 -194 lines
Commit rest of my error.c rewrite. see [freewnn:00772].
Source code is changed much to match with current source policy.
Extentions to log mechanism (ex. introduce debug-level) are welcome.

Note: log_err() send messages to syslog (LOG_ERR, facility not defined (^^;)
      if -s options is *not* used. Currently it isn't used anywhere.

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