libftdi: (gerd) add a real libftdi with autoconf stuff, remove include of usb.h in...
[libftdi] / configure
CommitLineData
a3da1d95
GE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10
11# Check that we are running under the correct shell.
12SHELL=${CONFIG_SHELL-/bin/sh}
13
14case X$ECHO in
15X*--fallback-echo)
16 # Remove one level of quotation (which was required for Make).
17 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
18 ;;
19esac
20
21echo=${ECHO-echo}
22if test "X$1" = X--no-reexec; then
23 # Discard the --no-reexec flag, and continue.
24 shift
25elif test "X$1" = X--fallback-echo; then
26 # Avoid inline document here, it may be left over
27 :
28elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
29 # Yippee, $echo works!
30 :
31else
32 # Restart under the correct shell.
33 exec $SHELL "$0" --no-reexec ${1+"$@"}
34fi
35
36if test "X$1" = X--fallback-echo; then
37 # used as fallback echo
38 shift
39 cat <<EOF
40$*
41EOF
42 exit 0
43fi
44
45# The HP-UX ksh and POSIX shell print the target directory to stdout
46# if CDPATH is set.
47if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
48
49if test -z "$ECHO"; then
50if test "X${echo_test_string+set}" != Xset; then
51# find a string as large as possible, as long as the shell can cope with it
52 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
53 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
54 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
55 echo_test_string="`eval $cmd`" &&
56 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
57 then
58 break
59 fi
60 done
61fi
62
63if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
64 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
65 test "X$echo_testing_string" = "X$echo_test_string"; then
66 :
67else
68 # The Solaris, AIX, and Digital Unix default echo programs unquote
69 # backslashes. This makes it impossible to quote backslashes using
70 # echo "$something" | sed 's/\\/\\\\/g'
71 #
72 # So, first we look for a working echo in the user's PATH.
73
74 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
75 for dir in $PATH /usr/ucb; do
76 IFS="$lt_save_ifs"
77 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
78 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
79 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
80 test "X$echo_testing_string" = "X$echo_test_string"; then
81 echo="$dir/echo"
82 break
83 fi
84 done
85 IFS="$lt_save_ifs"
86
87 if test "X$echo" = Xecho; then
88 # We didn't find a better echo, so look for alternatives.
89 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
90 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
91 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # This shell has a builtin print -r that does the trick.
93 echo='print -r'
94 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
95 test "X$CONFIG_SHELL" != X/bin/ksh; then
96 # If we have ksh, try running configure again with it.
97 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
98 export ORIGINAL_CONFIG_SHELL
99 CONFIG_SHELL=/bin/ksh
100 export CONFIG_SHELL
101 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
102 else
103 # Try using printf.
104 echo='printf %s\n'
105 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
106 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
107 test "X$echo_testing_string" = "X$echo_test_string"; then
108 # Cool, printf works
109 :
110 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
111 test "X$echo_testing_string" = 'X\t' &&
112 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
115 export CONFIG_SHELL
116 SHELL="$CONFIG_SHELL"
117 export SHELL
118 echo="$CONFIG_SHELL $0 --fallback-echo"
119 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 echo="$CONFIG_SHELL $0 --fallback-echo"
124 else
125 # maybe with a smaller string...
126 prev=:
127
128 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
129 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
130 then
131 break
132 fi
133 prev="$cmd"
134 done
135
136 if test "$prev" != 'sed 50q "$0"'; then
137 echo_test_string=`eval $prev`
138 export echo_test_string
139 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
140 else
141 # Oops. We lost completely, so just stick with echo.
142 echo=echo
143 fi
144 fi
145 fi
146 fi
147fi
148fi
149
150# Copy echo and quote the copy suitably for passing to libtool from
151# the Makefile, instead of quoting the original, which is used later.
152ECHO=$echo
153if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
154 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
155fi
156
157
158
159
160# Check that we are running under the correct shell.
161SHELL=${CONFIG_SHELL-/bin/sh}
162
163case X$ECHO in
164X*--fallback-echo)
165 # Remove one level of quotation (which was required for Make).
166 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
167 ;;
168esac
169
170echo=${ECHO-echo}
171if test "X$1" = X--no-reexec; then
172 # Discard the --no-reexec flag, and continue.
173 shift
174elif test "X$1" = X--fallback-echo; then
175 # Avoid inline document here, it may be left over
176 :
177elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
178 # Yippee, $echo works!
179 :
180else
181 # Restart under the correct shell.
182 exec $SHELL "$0" --no-reexec ${1+"$@"}
183fi
184
185if test "X$1" = X--fallback-echo; then
186 # used as fallback echo
187 shift
188 cat <<EOF
189$*
190EOF
191 exit 0
192fi
193
194# The HP-UX ksh and POSIX shell print the target directory to stdout
195# if CDPATH is set.
196if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
197
198if test -z "$ECHO"; then
199if test "X${echo_test_string+set}" != Xset; then
200# find a string as large as possible, as long as the shell can cope with it
201 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
202 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
203 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
204 echo_test_string="`eval $cmd`" &&
205 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
206 then
207 break
208 fi
209 done
210fi
211
212if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
213 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
214 test "X$echo_testing_string" = "X$echo_test_string"; then
215 :
216else
217 # The Solaris, AIX, and Digital Unix default echo programs unquote
218 # backslashes. This makes it impossible to quote backslashes using
219 # echo "$something" | sed 's/\\/\\\\/g'
220 #
221 # So, first we look for a working echo in the user's PATH.
222
223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
224 for dir in $PATH /usr/ucb; do
225 IFS="$lt_save_ifs"
226 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
227 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
228 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
229 test "X$echo_testing_string" = "X$echo_test_string"; then
230 echo="$dir/echo"
231 break
232 fi
233 done
234 IFS="$lt_save_ifs"
235
236 if test "X$echo" = Xecho; then
237 # We didn't find a better echo, so look for alternatives.
238 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
241 # This shell has a builtin print -r that does the trick.
242 echo='print -r'
243 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
244 test "X$CONFIG_SHELL" != X/bin/ksh; then
245 # If we have ksh, try running configure again with it.
246 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
247 export ORIGINAL_CONFIG_SHELL
248 CONFIG_SHELL=/bin/ksh
249 export CONFIG_SHELL
250 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
251 else
252 # Try using printf.
253 echo='printf %s\n'
254 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
257 # Cool, printf works
258 :
259 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
260 test "X$echo_testing_string" = 'X\t' &&
261 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
263 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
264 export CONFIG_SHELL
265 SHELL="$CONFIG_SHELL"
266 export SHELL
267 echo="$CONFIG_SHELL $0 --fallback-echo"
268 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 echo="$CONFIG_SHELL $0 --fallback-echo"
273 else
274 # maybe with a smaller string...
275 prev=:
276
277 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
278 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
279 then
280 break
281 fi
282 prev="$cmd"
283 done
284
285 if test "$prev" != 'sed 50q "$0"'; then
286 echo_test_string=`eval $prev`
287 export echo_test_string
288 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
289 else
290 # Oops. We lost completely, so just stick with echo.
291 echo=echo
292 fi
293 fi
294 fi
295 fi
296fi
297fi
298
299# Copy echo and quote the copy suitably for passing to libtool from
300# the Makefile, instead of quoting the original, which is used later.
301ECHO=$echo
302if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
303 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
304fi
305
306
307
308if expr a : '\(a\)' >/dev/null 2>&1; then
309 as_expr=expr
310else
311 as_expr=false
312fi
313
314
315## --------------------- ##
316## M4sh Initialization. ##
317## --------------------- ##
318
319# Be Bourne compatible
320if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
321 emulate sh
322 NULLCMD=:
323elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
324 set -o posix
325fi
326
327# NLS nuisances.
328# Support unset when possible.
329if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
330 as_unset=unset
331else
332 as_unset=false
333fi
334
335(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
336 { $as_unset LANG || test "${LANG+set}" != set; } ||
337 { LANG=C; export LANG; }
338(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
339 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
340 { LC_ALL=C; export LC_ALL; }
341(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
342 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
343 { LC_TIME=C; export LC_TIME; }
344(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
345 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
346 { LC_CTYPE=C; export LC_CTYPE; }
347(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
348 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
349 { LANGUAGE=C; export LANGUAGE; }
350(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
351 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
352 { LC_COLLATE=C; export LC_COLLATE; }
353(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
354 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
355 { LC_NUMERIC=C; export LC_NUMERIC; }
356(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
357 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
358 { LC_MESSAGES=C; export LC_MESSAGES; }
359
360
361# Name of the executable.
362as_me=`(basename "$0") 2>/dev/null ||
363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
364 X"$0" : 'X\(//\)$' \| \
365 X"$0" : 'X\(/\)$' \| \
366 . : '\(.\)' 2>/dev/null ||
367echo X/"$0" |
368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
369 /^X\/\(\/\/\)$/{ s//\1/; q; }
370 /^X\/\(\/\).*/{ s//\1/; q; }
371 s/.*/./; q'`
372
373# PATH needs CR, and LINENO needs CR and PATH.
374# Avoid depending upon Character Ranges.
375as_cr_letters='abcdefghijklmnopqrstuvwxyz'
376as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
377as_cr_Letters=$as_cr_letters$as_cr_LETTERS
378as_cr_digits='0123456789'
379as_cr_alnum=$as_cr_Letters$as_cr_digits
380
381# The user is always right.
382if test "${PATH_SEPARATOR+set}" != set; then
383 echo "#! /bin/sh" >conftest.sh
384 echo "exit 0" >>conftest.sh
385 chmod +x conftest.sh
386 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
387 PATH_SEPARATOR=';'
388 else
389 PATH_SEPARATOR=:
390 fi
391 rm -f conftest.sh
392fi
393
394
395 as_lineno_1=$LINENO
396 as_lineno_2=$LINENO
397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
398 test "x$as_lineno_1" != "x$as_lineno_2" &&
399 test "x$as_lineno_3" = "x$as_lineno_2" || {
400 # Find who we are. Look in the path if we contain no path at all
401 # relative or not.
402 case $0 in
403 *[\\/]* ) as_myself=$0 ;;
404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
405for as_dir in $PATH
406do
407 IFS=$as_save_IFS
408 test -z "$as_dir" && as_dir=.
409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
410done
411
412 ;;
413 esac
414 # We did not find ourselves, most probably we were run as `sh COMMAND'
415 # in which case we are not to be found in the path.
416 if test "x$as_myself" = x; then
417 as_myself=$0
418 fi
419 if test ! -f "$as_myself"; then
420 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
421 { (exit 1); exit 1; }; }
422 fi
423 case $CONFIG_SHELL in
424 '')
425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
426for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
427do
428 IFS=$as_save_IFS
429 test -z "$as_dir" && as_dir=.
430 for as_base in sh bash ksh sh5; do
431 case $as_dir in
432 /*)
433 if ("$as_dir/$as_base" -c '
434 as_lineno_1=$LINENO
435 as_lineno_2=$LINENO
436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
437 test "x$as_lineno_1" != "x$as_lineno_2" &&
438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
439 CONFIG_SHELL=$as_dir/$as_base
440 export CONFIG_SHELL
441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
442 fi;;
443 esac
444 done
445done
446;;
447 esac
448
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line before each line; the second 'sed' does the real
452 # work. The second script uses 'N' to pair each line-number line
453 # with the numbered line, and appends trailing '-' during
454 # substitution so that $LINENO is not a special case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
457 sed '=' <$as_myself |
458 sed '
459 N
460 s,$,-,
461 : loop
462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
463 t loop
464 s,-$,,
465 s,^['$as_cr_digits']*\n,,
466 ' >$as_me.lineno &&
467 chmod +x $as_me.lineno ||
468 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
469 { (exit 1); exit 1; }; }
470
471 # Don't try to exec as it changes $[0], causing all sort of problems
472 # (the dirname of $[0] is not the place where we might find the
473 # original and so on. Autoconf is especially sensible to this).
474 . ./$as_me.lineno
475 # Exit status is that of the last command.
476 exit
477}
478
479
480case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
481 *c*,-n*) ECHO_N= ECHO_C='
482' ECHO_T=' ' ;;
483 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
484 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494echo >conf$$.file
495if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # We could just check for DJGPP; but this test a) works b) is more generic
497 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
498 if test -f conf$$.exe; then
499 # Don't use ln at all; we don't have any links
500 as_ln_s='cp -p'
501 else
502 as_ln_s='ln -s'
503 fi
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.file
510
511as_executable_p="test -f"
512
513# Sed expression to map a string onto a valid CPP name.
514as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
515
516# Sed expression to map a string onto a valid variable name.
517as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
518
519
520# IFS
521# We need space, tab and new line, in precisely that order.
522as_nl='
523'
524IFS=" $as_nl"
525
526# CDPATH.
527$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
528
529
530# Name of the host.
531# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
532# so uname gets run too.
533ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
534
535exec 6>&1
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545SHELL=${CONFIG_SHELL-/bin/sh}
546
547# Maximum number of lines to put in a shell here document.
548# This variable seems obsolete. It should probably be removed, and
549# only ac_max_sed_lines should be used.
550: ${ac_max_here_lines=38}
551
552# Identity of this package.
553PACKAGE_NAME=
554PACKAGE_TARNAME=
555PACKAGE_VERSION=
556PACKAGE_STRING=
557PACKAGE_BUGREPORT=
558
559ac_unique_file="acinclude.m4"
560ac_default_prefix=/usr/local
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#if HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#if HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#if STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# if HAVE_STDLIB_H
575# include <stdlib.h>
576# endif
577#endif
578#if HAVE_STRING_H
579# if !STDC_HEADERS && HAVE_MEMORY_H
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
584#if HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#if HAVE_INTTYPES_H
588# include <inttypes.h>
589#else
590# if HAVE_STDINT_H
591# include <stdint.h>
592# endif
593#endif
594#if HAVE_UNISTD_H
595# include <unistd.h>
596#endif"
597
598
599# Initialize some variables set by options.
600ac_init_help=
601ac_init_version=false
602# The variables have the same names as the options, with
603# dashes changed to underlines.
604cache_file=/dev/null
605exec_prefix=NONE
606no_create=
607no_recursion=
608prefix=NONE
609program_prefix=NONE
610program_suffix=NONE
611program_transform_name=s,x,x,
612silent=
613site=
614srcdir=
615verbose=
616x_includes=NONE
617x_libraries=NONE
618
619# Installation directory options.
620# These are left unexpanded so users can "make install exec_prefix=/foo"
621# and all the variables that are supposed to be based on exec_prefix
622# by default will actually change.
623# Use braces instead of parens because sh, perl, etc. also accept them.
624bindir='${exec_prefix}/bin'
625sbindir='${exec_prefix}/sbin'
626libexecdir='${exec_prefix}/libexec'
627datadir='${prefix}/share'
628sysconfdir='${prefix}/etc'
629sharedstatedir='${prefix}/com'
630localstatedir='${prefix}/var'
631libdir='${exec_prefix}/lib'
632includedir='${prefix}/include'
633oldincludedir='/usr/include'
634infodir='${prefix}/info'
635mandir='${prefix}/man'
636
637ac_prev=
638for ac_option
639do
640 # If the previous option needs an argument, assign it.
641 if test -n "$ac_prev"; then
642 eval "$ac_prev=\$ac_option"
643 ac_prev=
644 continue
645 fi
646
647 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
648
649 # Accept the important Cygnus configure options, so we can diagnose typos.
650
651 case $ac_option in
652
653 -bindir | --bindir | --bindi | --bind | --bin | --bi)
654 ac_prev=bindir ;;
655 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
656 bindir=$ac_optarg ;;
657
658 -build | --build | --buil | --bui | --bu)
659 ac_prev=build_alias ;;
660 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
661 build_alias=$ac_optarg ;;
662
663 -cache-file | --cache-file | --cache-fil | --cache-fi \
664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
665 ac_prev=cache_file ;;
666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
668 cache_file=$ac_optarg ;;
669
670 --config-cache | -C)
671 cache_file=config.cache ;;
672
673 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
674 ac_prev=datadir ;;
675 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
676 | --da=*)
677 datadir=$ac_optarg ;;
678
679 -disable-* | --disable-*)
680 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
681 # Reject names that are not valid shell variable names.
682 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
683 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
684 { (exit 1); exit 1; }; }
685 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
686 eval "enable_$ac_feature=no" ;;
687
688 -enable-* | --enable-*)
689 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
690 # Reject names that are not valid shell variable names.
691 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
692 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
693 { (exit 1); exit 1; }; }
694 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
695 case $ac_option in
696 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
697 *) ac_optarg=yes ;;
698 esac
699 eval "enable_$ac_feature='$ac_optarg'" ;;
700
701 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
702 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
703 | --exec | --exe | --ex)
704 ac_prev=exec_prefix ;;
705 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
706 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
707 | --exec=* | --exe=* | --ex=*)
708 exec_prefix=$ac_optarg ;;
709
710 -gas | --gas | --ga | --g)
711 # Obsolete; use --with-gas.
712 with_gas=yes ;;
713
714 -help | --help | --hel | --he | -h)
715 ac_init_help=long ;;
716 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
717 ac_init_help=recursive ;;
718 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
719 ac_init_help=short ;;
720
721 -host | --host | --hos | --ho)
722 ac_prev=host_alias ;;
723 -host=* | --host=* | --hos=* | --ho=*)
724 host_alias=$ac_optarg ;;
725
726 -includedir | --includedir | --includedi | --included | --include \
727 | --includ | --inclu | --incl | --inc)
728 ac_prev=includedir ;;
729 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
730 | --includ=* | --inclu=* | --incl=* | --inc=*)
731 includedir=$ac_optarg ;;
732
733 -infodir | --infodir | --infodi | --infod | --info | --inf)
734 ac_prev=infodir ;;
735 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
736 infodir=$ac_optarg ;;
737
738 -libdir | --libdir | --libdi | --libd)
739 ac_prev=libdir ;;
740 -libdir=* | --libdir=* | --libdi=* | --libd=*)
741 libdir=$ac_optarg ;;
742
743 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
744 | --libexe | --libex | --libe)
745 ac_prev=libexecdir ;;
746 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
747 | --libexe=* | --libex=* | --libe=*)
748 libexecdir=$ac_optarg ;;
749
750 -localstatedir | --localstatedir | --localstatedi | --localstated \
751 | --localstate | --localstat | --localsta | --localst \
752 | --locals | --local | --loca | --loc | --lo)
753 ac_prev=localstatedir ;;
754 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
755 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
756 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
757 localstatedir=$ac_optarg ;;
758
759 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
760 ac_prev=mandir ;;
761 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
762 mandir=$ac_optarg ;;
763
764 -nfp | --nfp | --nf)
765 # Obsolete; use --without-fp.
766 with_fp=no ;;
767
768 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
769 | --no-cr | --no-c | -n)
770 no_create=yes ;;
771
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
774 no_recursion=yes ;;
775
776 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
777 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
778 | --oldin | --oldi | --old | --ol | --o)
779 ac_prev=oldincludedir ;;
780 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
781 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
782 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
783 oldincludedir=$ac_optarg ;;
784
785 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
786 ac_prev=prefix ;;
787 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
788 prefix=$ac_optarg ;;
789
790 -program-prefix | --program-prefix | --program-prefi | --program-pref \
791 | --program-pre | --program-pr | --program-p)
792 ac_prev=program_prefix ;;
793 -program-prefix=* | --program-prefix=* | --program-prefi=* \
794 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
795 program_prefix=$ac_optarg ;;
796
797 -program-suffix | --program-suffix | --program-suffi | --program-suff \
798 | --program-suf | --program-su | --program-s)
799 ac_prev=program_suffix ;;
800 -program-suffix=* | --program-suffix=* | --program-suffi=* \
801 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
802 program_suffix=$ac_optarg ;;
803
804 -program-transform-name | --program-transform-name \
805 | --program-transform-nam | --program-transform-na \
806 | --program-transform-n | --program-transform- \
807 | --program-transform | --program-transfor \
808 | --program-transfo | --program-transf \
809 | --program-trans | --program-tran \
810 | --progr-tra | --program-tr | --program-t)
811 ac_prev=program_transform_name ;;
812 -program-transform-name=* | --program-transform-name=* \
813 | --program-transform-nam=* | --program-transform-na=* \
814 | --program-transform-n=* | --program-transform-=* \
815 | --program-transform=* | --program-transfor=* \
816 | --program-transfo=* | --program-transf=* \
817 | --program-trans=* | --program-tran=* \
818 | --progr-tra=* | --program-tr=* | --program-t=*)
819 program_transform_name=$ac_optarg ;;
820
821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
822 | -silent | --silent | --silen | --sile | --sil)
823 silent=yes ;;
824
825 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
826 ac_prev=sbindir ;;
827 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
828 | --sbi=* | --sb=*)
829 sbindir=$ac_optarg ;;
830
831 -sharedstatedir | --sharedstatedir | --sharedstatedi \
832 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
833 | --sharedst | --shareds | --shared | --share | --shar \
834 | --sha | --sh)
835 ac_prev=sharedstatedir ;;
836 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
837 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
838 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
839 | --sha=* | --sh=*)
840 sharedstatedir=$ac_optarg ;;
841
842 -site | --site | --sit)
843 ac_prev=site ;;
844 -site=* | --site=* | --sit=*)
845 site=$ac_optarg ;;
846
847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
848 ac_prev=srcdir ;;
849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
850 srcdir=$ac_optarg ;;
851
852 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
853 | --syscon | --sysco | --sysc | --sys | --sy)
854 ac_prev=sysconfdir ;;
855 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
856 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
857 sysconfdir=$ac_optarg ;;
858
859 -target | --target | --targe | --targ | --tar | --ta | --t)
860 ac_prev=target_alias ;;
861 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
862 target_alias=$ac_optarg ;;
863
864 -v | -verbose | --verbose | --verbos | --verbo | --verb)
865 verbose=yes ;;
866
867 -version | --version | --versio | --versi | --vers | -V)
868 ac_init_version=: ;;
869
870 -with-* | --with-*)
871 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid package name: $ac_package" >&2
875 { (exit 1); exit 1; }; }
876 ac_package=`echo $ac_package| sed 's/-/_/g'`
877 case $ac_option in
878 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
879 *) ac_optarg=yes ;;
880 esac
881 eval "with_$ac_package='$ac_optarg'" ;;
882
883 -without-* | --without-*)
884 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid package name: $ac_package" >&2
888 { (exit 1); exit 1; }; }
889 ac_package=`echo $ac_package | sed 's/-/_/g'`
890 eval "with_$ac_package=no" ;;
891
892 --x)
893 # Obsolete; use --with-x.
894 with_x=yes ;;
895
896 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
897 | --x-incl | --x-inc | --x-in | --x-i)
898 ac_prev=x_includes ;;
899 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
900 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
901 x_includes=$ac_optarg ;;
902
903 -x-libraries | --x-libraries | --x-librarie | --x-librari \
904 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
905 ac_prev=x_libraries ;;
906 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
907 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
908 x_libraries=$ac_optarg ;;
909
910 -*) { echo "$as_me: error: unrecognized option: $ac_option
911Try \`$0 --help' for more information." >&2
912 { (exit 1); exit 1; }; }
913 ;;
914
915 *=*)
916 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
920 { (exit 1); exit 1; }; }
921 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
922 eval "$ac_envvar='$ac_optarg'"
923 export $ac_envvar ;;
924
925 *)
926 # FIXME: should be removed in autoconf 3.0.
927 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
928 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
929 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
930 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
931 ;;
932
933 esac
934done
935
936if test -n "$ac_prev"; then
937 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
938 { echo "$as_me: error: missing argument to $ac_option" >&2
939 { (exit 1); exit 1; }; }
940fi
941
942# Be sure to have absolute paths.
943for ac_var in exec_prefix prefix
944do
945 eval ac_val=$`echo $ac_var`
946 case $ac_val in
947 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
948 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
949 { (exit 1); exit 1; }; };;
950 esac
951done
952
953# Be sure to have absolute paths.
954for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
955 localstatedir libdir includedir oldincludedir infodir mandir
956do
957 eval ac_val=$`echo $ac_var`
958 case $ac_val in
959 [\\/$]* | ?:[\\/]* ) ;;
960 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
961 { (exit 1); exit 1; }; };;
962 esac
963done
964
965# There might be people who depend on the old broken behavior: `$host'
966# used to hold the argument of --host etc.
967# FIXME: To remove some day.
968build=$build_alias
969host=$host_alias
970target=$target_alias
971
972# FIXME: To remove some day.
973if test "x$host_alias" != x; then
974 if test "x$build_alias" = x; then
975 cross_compiling=maybe
976 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
977 If a cross compiler is detected then cross compile mode will be used." >&2
978 elif test "x$build_alias" != "x$host_alias"; then
979 cross_compiling=yes
980 fi
981fi
982
983ac_tool_prefix=
984test -n "$host_alias" && ac_tool_prefix=$host_alias-
985
986test "$silent" = yes && exec 6>/dev/null
987
988
989# Find the source files, if location was not specified.
990if test -z "$srcdir"; then
991 ac_srcdir_defaulted=yes
992 # Try the directory containing this script, then its parent.
993 ac_confdir=`(dirname "$0") 2>/dev/null ||
994$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
995 X"$0" : 'X\(//\)[^/]' \| \
996 X"$0" : 'X\(//\)$' \| \
997 X"$0" : 'X\(/\)' \| \
998 . : '\(.\)' 2>/dev/null ||
999echo X"$0" |
1000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1002 /^X\(\/\/\)$/{ s//\1/; q; }
1003 /^X\(\/\).*/{ s//\1/; q; }
1004 s/.*/./; q'`
1005 srcdir=$ac_confdir
1006 if test ! -r $srcdir/$ac_unique_file; then
1007 srcdir=..
1008 fi
1009else
1010 ac_srcdir_defaulted=no
1011fi
1012if test ! -r $srcdir/$ac_unique_file; then
1013 if test "$ac_srcdir_defaulted" = yes; then
1014 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1015 { (exit 1); exit 1; }; }
1016 else
1017 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1018 { (exit 1); exit 1; }; }
1019 fi
1020fi
1021srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1022ac_env_build_alias_set=${build_alias+set}
1023ac_env_build_alias_value=$build_alias
1024ac_cv_env_build_alias_set=${build_alias+set}
1025ac_cv_env_build_alias_value=$build_alias
1026ac_env_host_alias_set=${host_alias+set}
1027ac_env_host_alias_value=$host_alias
1028ac_cv_env_host_alias_set=${host_alias+set}
1029ac_cv_env_host_alias_value=$host_alias
1030ac_env_target_alias_set=${target_alias+set}
1031ac_env_target_alias_value=$target_alias
1032ac_cv_env_target_alias_set=${target_alias+set}
1033ac_cv_env_target_alias_value=$target_alias
1034ac_env_CC_set=${CC+set}
1035ac_env_CC_value=$CC
1036ac_cv_env_CC_set=${CC+set}
1037ac_cv_env_CC_value=$CC
1038ac_env_CFLAGS_set=${CFLAGS+set}
1039ac_env_CFLAGS_value=$CFLAGS
1040ac_cv_env_CFLAGS_set=${CFLAGS+set}
1041ac_cv_env_CFLAGS_value=$CFLAGS
1042ac_env_LDFLAGS_set=${LDFLAGS+set}
1043ac_env_LDFLAGS_value=$LDFLAGS
1044ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1045ac_cv_env_LDFLAGS_value=$LDFLAGS
1046ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1047ac_env_CPPFLAGS_value=$CPPFLAGS
1048ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1049ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1050ac_env_CXX_set=${CXX+set}
1051ac_env_CXX_value=$CXX
1052ac_cv_env_CXX_set=${CXX+set}
1053ac_cv_env_CXX_value=$CXX
1054ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1055ac_env_CXXFLAGS_value=$CXXFLAGS
1056ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1057ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1058ac_env_CPP_set=${CPP+set}
1059ac_env_CPP_value=$CPP
1060ac_cv_env_CPP_set=${CPP+set}
1061ac_cv_env_CPP_value=$CPP
1062ac_env_CXXCPP_set=${CXXCPP+set}
1063ac_env_CXXCPP_value=$CXXCPP
1064ac_cv_env_CXXCPP_set=${CXXCPP+set}
1065ac_cv_env_CXXCPP_value=$CXXCPP
1066
1067#
1068# Report the --help message.
1069#
1070if test "$ac_init_help" = "long"; then
1071 # Omit some internal or obsolete options to make the list less imposing.
1072 # This message is too long to be a string in the A/UX 3.1 sh.
1073 cat <<_ACEOF
1074\`configure' configures this package to adapt to many kinds of systems.
1075
1076Usage: $0 [OPTION]... [VAR=VALUE]...
1077
1078To assign environment variables (e.g., CC, CFLAGS...), specify them as
1079VAR=VALUE. See below for descriptions of some of the useful variables.
1080
1081Defaults for the options are specified in brackets.
1082
1083Configuration:
1084 -h, --help display this help and exit
1085 --help=short display options specific to this package
1086 --help=recursive display the short help of all the included packages
1087 -V, --version display version information and exit
1088 -q, --quiet, --silent do not print \`checking...' messages
1089 --cache-file=FILE cache test results in FILE [disabled]
1090 -C, --config-cache alias for \`--cache-file=config.cache'
1091 -n, --no-create do not create output files
1092 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1093
1094_ACEOF
1095
1096 cat <<_ACEOF
1097Installation directories:
1098 --prefix=PREFIX install architecture-independent files in PREFIX
1099 [$ac_default_prefix]
1100 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1101 [PREFIX]
1102
1103By default, \`make install' will install all the files in
1104\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1105an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1106for instance \`--prefix=\$HOME'.
1107
1108For better control, use the options below.
1109
1110Fine tuning of the installation directories:
1111 --bindir=DIR user executables [EPREFIX/bin]
1112 --sbindir=DIR system admin executables [EPREFIX/sbin]
1113 --libexecdir=DIR program executables [EPREFIX/libexec]
1114 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1118 --libdir=DIR object code libraries [EPREFIX/lib]
1119 --includedir=DIR C header files [PREFIX/include]
1120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1121 --infodir=DIR info documentation [PREFIX/info]
1122 --mandir=DIR man documentation [PREFIX/man]
1123_ACEOF
1124
1125 cat <<\_ACEOF
1126
1127Program names:
1128 --program-prefix=PREFIX prepend PREFIX to installed program names
1129 --program-suffix=SUFFIX append SUFFIX to installed program names
1130 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1131
1132System types:
1133 --build=BUILD configure for building on BUILD [guessed]
1134 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1135 --target=TARGET configure for building compilers for TARGET [HOST]
1136_ACEOF
1137fi
1138
1139if test -n "$ac_init_help"; then
1140
1141 cat <<\_ACEOF
1142
1143Optional Features:
1144 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1145 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1146 --disable-dependency-tracking Speeds up one-time builds
1147 --enable-dependency-tracking Do not reject slow dependency extractors
1148 --enable-debug enables debug symbols default=no
1149 --disable-debug disables debug output and debug symbols default=no
1150 --enable-strict compiles with strict compiler options (may not work!)
1151 --enable-profile creates profiling infos default=no
1152 --enable-final build size optimized apps (experimental - needs lots of memory)
1153 --disable-closure don't delay template instantiation
1154 --enable-shared[=PKGS]
1155 build shared libraries [default=yes]
1156 --enable-static[=PKGS]
1157 build static libraries [default=yes]
1158 --enable-fast-install[=PKGS]
1159 optimize for fast installation [default=yes]
1160 --disable-libtool-lock avoid locking (might break parallel builds)
1161
1162Optional Packages:
1163 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1164 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1165 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1166 --with-pic try to use only PIC/non-PIC objects [default=use
1167 both]
1168 --with-tags=TAGS include additional configurations [CXX,GCJ]
1169
1170Some influential environment variables:
1171 CC C compiler command
1172 CFLAGS C compiler flags
1173 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1174 nonstandard directory <lib dir>
1175 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1176 headers in a nonstandard directory <include dir>
1177 CXX C++ compiler command
1178 CXXFLAGS C++ compiler flags
1179 CPP C preprocessor
1180 CXXCPP C++ preprocessor
1181
1182Use these variables to override the choices made by `configure' or to help
1183it to find libraries and programs with nonstandard names/locations.
1184
1185_ACEOF
1186fi
1187
1188if test "$ac_init_help" = "recursive"; then
1189 # If there are subdirs, report their specific --help.
1190 ac_popdir=`pwd`
1191 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1192 test -d $ac_dir || continue
1193 ac_builddir=.
1194
1195if test "$ac_dir" != .; then
1196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1197 # A "../" for each directory in $ac_dir_suffix.
1198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1199else
1200 ac_dir_suffix= ac_top_builddir=
1201fi
1202
1203case $srcdir in
1204 .) # No --srcdir option. We are building in place.
1205 ac_srcdir=.
1206 if test -z "$ac_top_builddir"; then
1207 ac_top_srcdir=.
1208 else
1209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1210 fi ;;
1211 [\\/]* | ?:[\\/]* ) # Absolute path.
1212 ac_srcdir=$srcdir$ac_dir_suffix;
1213 ac_top_srcdir=$srcdir ;;
1214 *) # Relative path.
1215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1217esac
1218# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1219# absolute.
1220ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1221ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1222ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1223ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1224
1225 cd $ac_dir
1226 # Check for guested configure; otherwise get Cygnus style configure.
1227 if test -f $ac_srcdir/configure.gnu; then
1228 echo
1229 $SHELL $ac_srcdir/configure.gnu --help=recursive
1230 elif test -f $ac_srcdir/configure; then
1231 echo
1232 $SHELL $ac_srcdir/configure --help=recursive
1233 elif test -f $ac_srcdir/configure.ac ||
1234 test -f $ac_srcdir/configure.in; then
1235 echo
1236 $ac_configure --help
1237 else
1238 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1239 fi
1240 cd $ac_popdir
1241 done
1242fi
1243
1244test -n "$ac_init_help" && exit 0
1245if $ac_init_version; then
1246 cat <<\_ACEOF
1247
1248Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1249Free Software Foundation, Inc.
1250This configure script is free software; the Free Software Foundation
1251gives unlimited permission to copy, distribute and modify it.
1252_ACEOF
1253 exit 0
1254fi
1255exec 5>config.log
1256cat >&5 <<_ACEOF
1257This file contains any messages produced by compilers while
1258running configure, to aid debugging if configure makes a mistake.
1259
1260It was created by $as_me, which was
1261generated by GNU Autoconf 2.53. Invocation command line was
1262
1263 $ $0 $@
1264
1265_ACEOF
1266{
1267cat <<_ASUNAME
1268## --------- ##
1269## Platform. ##
1270## --------- ##
1271
1272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1273uname -m = `(uname -m) 2>/dev/null || echo unknown`
1274uname -r = `(uname -r) 2>/dev/null || echo unknown`
1275uname -s = `(uname -s) 2>/dev/null || echo unknown`
1276uname -v = `(uname -v) 2>/dev/null || echo unknown`
1277
1278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1279/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1280
1281/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1282/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1284hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1285/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1286/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1287/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1288
1289_ASUNAME
1290
1291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292for as_dir in $PATH
1293do
1294 IFS=$as_save_IFS
1295 test -z "$as_dir" && as_dir=.
1296 echo "PATH: $as_dir"
1297done
1298
1299} >&5
1300
1301cat >&5 <<_ACEOF
1302
1303
1304## ----------- ##
1305## Core tests. ##
1306## ----------- ##
1307
1308_ACEOF
1309
1310
1311# Keep a trace of the command line.
1312# Strip out --no-create and --no-recursion so they do not pile up.
1313# Also quote any args containing shell meta-characters.
1314ac_configure_args=
1315ac_sep=
1316for ac_arg
1317do
1318 case $ac_arg in
1319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1320 | --no-cr | --no-c | -n ) continue ;;
1321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1323 continue ;;
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326 esac
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330 ac_sep=" " ;;
1331 esac
1332 # Get rid of the leading space.
1333done
1334
1335# When interrupted or exit'd, cleanup temporary files, and complete
1336# config.log. We remove comments because anyway the quotes in there
1337# would cause problems or look ugly.
1338# WARNING: Be sure not to use single quotes in there, as some shells,
1339# such as our DU 5.0 friend, will then `close' the trap.
1340trap 'exit_status=$?
1341 # Save into config.log some information that might help in debugging.
1342 {
1343 echo
1344 cat <<\_ASBOX
1345## ---------------- ##
1346## Cache variables. ##
1347## ---------------- ##
1348_ASBOX
1349 echo
1350 # The following way of writing the cache mishandles newlines in values,
1351{
1352 (set) 2>&1 |
1353 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1354 *ac_space=\ *)
1355 sed -n \
1356 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358 ;;
1359 *)
1360 sed -n \
1361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1362 ;;
1363 esac;
1364}
1365 echo
1366 if test -s confdefs.h; then
1367 cat <<\_ASBOX
1368## ----------- ##
1369## confdefs.h. ##
1370## ----------- ##
1371_ASBOX
1372 echo
1373 sed "/^$/d" confdefs.h
1374 echo
1375 fi
1376 test "$ac_signal" != 0 &&
1377 echo "$as_me: caught signal $ac_signal"
1378 echo "$as_me: exit $exit_status"
1379 } >&5
1380 rm -f core core.* *.core &&
1381 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382 exit $exit_status
1383 ' 0
1384for ac_signal in 1 2 13 15; do
1385 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386done
1387ac_signal=0
1388
1389# confdefs.h avoids OS command line length limits that DEFS can exceed.
1390rm -rf conftest* confdefs.h
1391# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392echo >confdefs.h
1393
1394# Predefined preprocessor variables.
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_NAME "$PACKAGE_NAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_VERSION "$PACKAGE_VERSION"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_STRING "$PACKAGE_STRING"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418_ACEOF
1419
1420
1421# Let the site file select an alternate cache file if it wants to.
1422# Prefer explicitly selected file to automatically selected ones.
1423if test -z "$CONFIG_SITE"; then
1424 if test "x$prefix" != xNONE; then
1425 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1426 else
1427 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1428 fi
1429fi
1430for ac_site_file in $CONFIG_SITE; do
1431 if test -r "$ac_site_file"; then
1432 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433echo "$as_me: loading site script $ac_site_file" >&6;}
1434 sed 's/^/| /' "$ac_site_file" >&5
1435 . "$ac_site_file"
1436 fi
1437done
1438
1439if test -r "$cache_file"; then
1440 # Some versions of bash will fail to source /dev/null (special
1441 # files actually), so we avoid doing that.
1442 if test -f "$cache_file"; then
1443 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444echo "$as_me: loading cache $cache_file" >&6;}
1445 case $cache_file in
1446 [\\/]* | ?:[\\/]* ) . $cache_file;;
1447 *) . ./$cache_file;;
1448 esac
1449 fi
1450else
1451 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452echo "$as_me: creating cache $cache_file" >&6;}
1453 >$cache_file
1454fi
1455
1456# Check that the precious variables saved in the cache have kept the same
1457# value.
1458ac_cache_corrupted=false
1459for ac_var in `(set) 2>&1 |
1460 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462 eval ac_new_set=\$ac_env_${ac_var}_set
1463 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464 eval ac_new_val="\$ac_env_${ac_var}_value"
1465 case $ac_old_set,$ac_new_set in
1466 set,)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,set)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,);;
1475 *)
1476 if test "x$ac_old_val" != "x$ac_new_val"; then
1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1480echo "$as_me: former value: $ac_old_val" >&2;}
1481 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1482echo "$as_me: current value: $ac_new_val" >&2;}
1483 ac_cache_corrupted=:
1484 fi;;
1485 esac
1486 # Pass precious variables to config.status.
1487 if test "$ac_new_set" = set; then
1488 case $ac_new_val in
1489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 *) ac_arg=$ac_var=$ac_new_val ;;
1492 esac
1493 case " $ac_configure_args " in
1494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1496 esac
1497 fi
1498done
1499if $ac_cache_corrupted; then
1500 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504 { (exit 1); exit 1; }; }
1505fi
1506
1507ac_ext=c
1508ac_cpp='$CPP $CPPFLAGS'
1509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530ac_aux_dir=
1531for ac_dir in admin $srcdir/admin; do
1532 if test -f $ac_dir/install-sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 break
1536 elif test -f $ac_dir/install.sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 break
1540 elif test -f $ac_dir/shtool; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 break
1544 fi
1545done
1546if test -z "$ac_aux_dir"; then
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1548echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1549 { (exit 1); exit 1; }; }
1550fi
1551ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
1555
1556unset CDPATH
1557
1558# Make sure we can run config.sub.
1559$ac_config_sub sun4 >/dev/null 2>&1 ||
1560 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1561echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564echo "$as_me:$LINENO: checking build system type" >&5
1565echo $ECHO_N "checking build system type... $ECHO_C" >&6
1566if test "${ac_cv_build+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 ac_cv_build_alias=$build_alias
1570test -z "$ac_cv_build_alias" &&
1571 ac_cv_build_alias=`$ac_config_guess`
1572test -z "$ac_cv_build_alias" &&
1573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1574echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1575 { (exit 1); exit 1; }; }
1576ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1583echo "${ECHO_T}$ac_cv_build" >&6
1584build=$ac_cv_build
1585build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590echo "$as_me:$LINENO: checking host system type" >&5
1591echo $ECHO_N "checking host system type... $ECHO_C" >&6
1592if test "${ac_cv_host+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_host_alias=$host_alias
1596test -z "$ac_cv_host_alias" &&
1597 ac_cv_host_alias=$ac_cv_build_alias
1598ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
1603fi
1604echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1605echo "${ECHO_T}$ac_cv_host" >&6
1606host=$ac_cv_host
1607host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612echo "$as_me:$LINENO: checking target system type" >&5
1613echo $ECHO_N "checking target system type... $ECHO_C" >&6
1614if test "${ac_cv_target+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 ac_cv_target_alias=$target_alias
1618test "x$ac_cv_target_alias" = "x" &&
1619 ac_cv_target_alias=$ac_cv_host_alias
1620ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625fi
1626echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1627echo "${ECHO_T}$ac_cv_target" >&6
1628target=$ac_cv_target
1629target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634# The aliases save the names the user supplied, while $host etc.
1635# will get canonicalized.
1636test -n "$target_alias" &&
1637 test "$program_prefix$program_suffix$program_transform_name" = \
1638 NONENONEs,x,x, &&
1639 program_prefix=${target_alias}-
1640test "$program_prefix" != NONE &&
1641 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1642# Use a double $ so make ignores it.
1643test "$program_suffix" != NONE &&
1644 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1645# Double any \ or $. echo might interpret backslashes.
1646# By default was `s,x,x', remove it if useless.
1647cat <<\_ACEOF >conftest.sed
1648s/[\\$]/&&/g;s/;s,x,x,$//
1649_ACEOF
1650program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1651rm conftest.sed
1652
1653
1654
1655
1656 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1657 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1658 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1659 # Find a good install program. We prefer a C program (faster),
1660# so one script is as good as another. But avoid the broken or
1661# incompatible versions:
1662# SysV /etc/install, /usr/sbin/install
1663# SunOS /usr/etc/install
1664# IRIX /sbin/install
1665# AIX /bin/install
1666# AmigaOS /C/install, which installs bootblocks on floppy discs
1667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670# ./install, which can be erroneously created by make from ./install.sh.
1671echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1672echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1673if test -z "$INSTALL"; then
1674if test "${ac_cv_path_install+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 # Account for people who put trailing slashes in PATH elements.
1683case $as_dir/ in
1684 ./ | .// | /cC/* | \
1685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1686 /usr/ucb/* ) ;;
1687 *)
1688 # OSF1 and SCO ODT 3.0 have their own names for install.
1689 # Don't use installbsd from OSF since it installs stuff as root
1690 # by default.
1691 for ac_prog in ginstall scoinst install; do
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1694 if test $ac_prog = install &&
1695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1696 # AIX install. It has an incompatible calling convention.
1697 :
1698 elif test $ac_prog = install &&
1699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1700 # program-specific install script used by HP pwplus--don't use.
1701 :
1702 else
1703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1704 break 3
1705 fi
1706 fi
1707 done
1708 done
1709 ;;
1710esac
1711done
1712
1713
1714fi
1715 if test "${ac_cv_path_install+set}" = set; then
1716 INSTALL=$ac_cv_path_install
1717 else
1718 # As a last resort, use the slow shell script. We don't cache a
1719 # path for INSTALL within a source directory, because that will
1720 # break other packages using the cache if that directory is
1721 # removed, or if the path is relative.
1722 INSTALL=$ac_install_sh
1723 fi
1724fi
1725echo "$as_me:$LINENO: result: $INSTALL" >&5
1726echo "${ECHO_T}$INSTALL" >&6
1727
1728# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1729# It thinks the first close brace ends the variable substitution.
1730test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1731
1732test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1733
1734test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1735
1736
1737 if test -z "$kde_save_INSTALL_given" ; then
1738 # OK, user hasn't given any INSTALL, autoconf found one for us
1739 # now we test, if it supports the -p flag
1740 echo "$as_me:$LINENO: checking for -p flag to install" >&5
1741echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1742 rm -f confinst.$$.* > /dev/null 2>&1
1743 echo "Testtest" > confinst.$$.orig
1744 ac_res=no
1745 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1746 if test -f confinst.$$.new ; then
1747 # OK, -p seems to do no harm to install
1748 INSTALL="${INSTALL} -p"
1749 ac_res=yes
1750 fi
1751 fi
1752 rm -f confinst.$$.*
1753 echo "$as_me:$LINENO: result: $ac_res" >&5
1754echo "${ECHO_T}$ac_res" >&6
1755 fi
1756
1757 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1758 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1759 fi
1760 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1761 INSTALL_SCRIPT='${INSTALL}'
1762 fi
1763
1764echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1765echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1766# Just in case
1767sleep 1
1768echo timestamp > conftest.file
1769# Do `set' in a subshell so we don't clobber the current shell's
1770# arguments. Must try -L first in case configure is actually a
1771# symlink; some systems play weird games with the mod time of symlinks
1772# (eg FreeBSD returns the mod time of the symlink's containing
1773# directory).
1774if (
1775 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1776 if test "$*" = "X"; then
1777 # -L didn't work.
1778 set X `ls -t $srcdir/configure conftest.file`
1779 fi
1780 rm -f conftest.file
1781 if test "$*" != "X $srcdir/configure conftest.file" \
1782 && test "$*" != "X conftest.file $srcdir/configure"; then
1783
1784 # If neither matched, then we have a broken ls. This can happen
1785 # if, for instance, CONFIG_SHELL is bash and it inherits a
1786 # broken ls alias from the environment. This has actually
1787 # happened. Such a system could not be considered "sane".
1788 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1789alias in your environment" >&5
1790echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1791alias in your environment" >&2;}
1792 { (exit 1); exit 1; }; }
1793 fi
1794
1795 test "$2" = conftest.file
1796 )
1797then
1798 # Ok.
1799 :
1800else
1801 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1802Check your system clock" >&5
1803echo "$as_me: error: newly created file is older than distributed files!
1804Check your system clock" >&2;}
1805 { (exit 1); exit 1; }; }
1806fi
1807echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809
1810# expand $ac_aux_dir to an absolute path
1811am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1812
1813test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1814# Use eval to expand $SHELL
1815if eval "$MISSING --run true"; then
1816 am_missing_run="$MISSING --run "
1817else
1818 am_missing_run=
1819 am_backtick='`'
1820 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1821echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1822fi
1823
1824for ac_prog in gawk mawk nawk awk
1825do
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827set dummy $ac_prog; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_AWK+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833 if test -n "$AWK"; then
1834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_AWK="$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847done
1848done
1849
1850fi
1851fi
1852AWK=$ac_cv_prog_AWK
1853if test -n "$AWK"; then
1854 echo "$as_me:$LINENO: result: $AWK" >&5
1855echo "${ECHO_T}$AWK" >&6
1856else
1857 echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861 test -n "$AWK" && break
1862done
1863
1864echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1865echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1866set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1867if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 cat >conftest.make <<\_ACEOF
1871all:
1872 @echo 'ac_maketemp="${MAKE}"'
1873_ACEOF
1874# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876if test -n "$ac_maketemp"; then
1877 eval ac_cv_prog_make_${ac_make}_set=yes
1878else
1879 eval ac_cv_prog_make_${ac_make}_set=no
1880fi
1881rm -f conftest.make
1882fi
1883if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884 echo "$as_me:$LINENO: result: yes" >&5
1885echo "${ECHO_T}yes" >&6
1886 SET_MAKE=
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890 SET_MAKE="MAKE=${MAKE-make}"
1891fi
1892
1893# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1894if test "${enable_dependency_tracking+set}" = set; then
1895 enableval="$enable_dependency_tracking"
1896
1897fi;
1898if test "x$enable_dependency_tracking" != xno; then
1899 am_depcomp="$ac_aux_dir/depcomp"
1900 AMDEPBACKSLASH='\'
1901fi
1902
1903
1904if test "x$enable_dependency_tracking" != xno; then
1905 AMDEP_TRUE=
1906 AMDEP_FALSE='#'
1907else
1908 AMDEP_TRUE='#'
1909 AMDEP_FALSE=
1910fi
1911
1912
1913
1914
1915rm -f .deps 2>/dev/null
1916mkdir .deps 2>/dev/null
1917if test -d .deps; then
1918 DEPDIR=.deps
1919else
1920 # MS-DOS does not allow filenames that begin with a dot.
1921 DEPDIR=_deps
1922fi
1923rmdir .deps 2>/dev/null
1924
1925
1926# test to see if srcdir already configured
1927if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1928 test -f $srcdir/config.status; then
1929 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1930echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1931 { (exit 1); exit 1; }; }
1932fi
1933
1934# Define the identity of the package.
1935PACKAGE=libftdi
1936VERSION=0.1
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE "$PACKAGE"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define VERSION "$VERSION"
1945_ACEOF
1946
1947
1948# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1949# the ones we care about.
1950
1951# Autoconf 2.50 always computes EXEEXT. However we need to be
1952# compatible with 2.13, for now. So we always define EXEEXT, but we
1953# don't compute it.
1954
1955# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1956# requests that it be used. This is a bit dumb.
1957: ${OBJEXT=o}
1958
1959
1960# Some tools Automake needs.
1961
1962ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1963
1964
1965AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1966
1967
1968AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1969
1970
1971AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1972
1973
1974MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1975
1976
1977AMTAR=${AMTAR-"${am_missing_run}tar"}
1978
1979install_sh=${install_sh-"$am_aux_dir/install-sh"}
1980
1981INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1982
1983# We need awk for the "check" target. The system "awk" is bad on
1984# some platforms.
1985
1986unset CDPATH
1987
1988
1989if test "x$prefix" = "xNONE"; then
1990 prefix=$ac_default_prefix
1991 ac_configure_args="$ac_configure_args --prefix $prefix"
1992fi
1993
1994
1995
1996
1997 ac_config_headers="$ac_config_headers config.h"
1998
1999
2000
2001ac_config_commands="$ac_config_commands default-1"
2002
2003am_make=${MAKE-make}
2004cat > confinc << 'END'
2005doit:
2006 @echo done
2007END
2008# If we don't find an include directive, just comment out the code.
2009echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2010echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2011am__include='#'
2012am__quote=
2013_am_result=none
2014# First try GNU make style include.
2015echo "include confinc" > confmf
2016# We grep out `Entering directory' and `Leaving directory'
2017# messages which can occur if `w' ends up in MAKEFLAGS.
2018# In particular we don't look at `^make:' because GNU make might
2019# be invoked under some other name (usually "gmake"), in which
2020# case it prints its new name instead of `make'.
2021if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2022 am__include=include
2023 am__quote=
2024 _am_result=GNU
2025fi
2026# Now try BSD make style include.
2027if test "$am__include" = "#"; then
2028 echo '.include "confinc"' > confmf
2029 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2030 am__include=.include
2031 am__quote='"'
2032 _am_result=BSD
2033 fi
2034fi
2035
2036
2037echo "$as_me:$LINENO: result: $_am_result" >&5
2038echo "${ECHO_T}$_am_result" >&6
2039rm -f confinc confmf
2040
2041ac_ext=cc
2042ac_cpp='$CXXCPP $CPPFLAGS'
2043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2046if test -n "$ac_tool_prefix"; then
2047 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2048 do
2049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_CXX+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056 if test -n "$CXX"; then
2057 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 break 2
2069 fi
2070done
2071done
2072
2073fi
2074fi
2075CXX=$ac_cv_prog_CXX
2076if test -n "$CXX"; then
2077 echo "$as_me:$LINENO: result: $CXX" >&5
2078echo "${ECHO_T}$CXX" >&6
2079else
2080 echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084 test -n "$CXX" && break
2085 done
2086fi
2087if test -z "$CXX"; then
2088 ac_ct_CXX=$CXX
2089 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2090do
2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092set dummy $ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 if test -n "$ac_ct_CXX"; then
2099 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_ac_ct_CXX="$ac_prog"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2111 fi
2112done
2113done
2114
2115fi
2116fi
2117ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2118if test -n "$ac_ct_CXX"; then
2119 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2120echo "${ECHO_T}$ac_ct_CXX" >&6
2121else
2122 echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126 test -n "$ac_ct_CXX" && break
2127done
2128test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2129
2130 CXX=$ac_ct_CXX
2131fi
2132
2133
2134# Provide some information about the compiler.
2135echo "$as_me:$LINENO:" \
2136 "checking for C++ compiler version" >&5
2137ac_compiler=`set X $ac_compile; echo $2`
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153
2154echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2156if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 cat >conftest.$ac_ext <<_ACEOF
2160#line $LINENO "configure"
2161#include "confdefs.h"
2162
2163#ifdef F77_DUMMY_MAIN
2164# ifdef __cplusplus
2165 extern "C"
2166# endif
2167 int F77_DUMMY_MAIN() { return 1; }
2168#endif
2169int
2170main ()
2171{
2172#ifndef __GNUC__
2173 choke me
2174#endif
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180rm -f conftest.$ac_objext
2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_compiler_gnu=yes
2193else
2194 echo "$as_me: failed program was:" >&5
2195cat conftest.$ac_ext >&5
2196ac_compiler_gnu=no
2197fi
2198rm -f conftest.$ac_objext conftest.$ac_ext
2199ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2203echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2204GXX=`test $ac_compiler_gnu = yes && echo yes`
2205ac_test_CXXFLAGS=${CXXFLAGS+set}
2206ac_save_CXXFLAGS=$CXXFLAGS
2207CXXFLAGS="-g"
2208echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2209echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2210if test "${ac_cv_prog_cxx_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 cat >conftest.$ac_ext <<_ACEOF
2214#line $LINENO "configure"
2215#include "confdefs.h"
2216
2217#ifdef F77_DUMMY_MAIN
2218# ifdef __cplusplus
2219 extern "C"
2220# endif
2221 int F77_DUMMY_MAIN() { return 1; }
2222#endif
2223int
2224main ()
2225{
2226
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_cv_prog_cxx_g=yes
2244else
2245 echo "$as_me: failed program was:" >&5
2246cat conftest.$ac_ext >&5
2247ac_cv_prog_cxx_g=no
2248fi
2249rm -f conftest.$ac_objext conftest.$ac_ext
2250fi
2251echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2252echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2253if test "$ac_test_CXXFLAGS" = set; then
2254 CXXFLAGS=$ac_save_CXXFLAGS
2255elif test $ac_cv_prog_cxx_g = yes; then
2256 if test "$GXX" = yes; then
2257 CXXFLAGS="-g -O2"
2258 else
2259 CXXFLAGS="-g"
2260 fi
2261else
2262 if test "$GXX" = yes; then
2263 CXXFLAGS="-O2"
2264 else
2265 CXXFLAGS=
2266 fi
2267fi
2268for ac_declaration in \
2269 ''\
2270 '#include <stdlib.h>' \
2271 'extern "C" void std::exit (int) throw (); using std::exit;' \
2272 'extern "C" void std::exit (int); using std::exit;' \
2273 'extern "C" void exit (int) throw ();' \
2274 'extern "C" void exit (int);' \
2275 'void exit (int);'
2276do
2277 cat >conftest.$ac_ext <<_ACEOF
2278#line $LINENO "configure"
2279#include "confdefs.h"
2280#include <stdlib.h>
2281$ac_declaration
2282#ifdef F77_DUMMY_MAIN
2283# ifdef __cplusplus
2284 extern "C"
2285# endif
2286 int F77_DUMMY_MAIN() { return 1; }
2287#endif
2288int
2289main ()
2290{
2291exit (42);
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 :
2309else
2310 echo "$as_me: failed program was:" >&5
2311cat conftest.$ac_ext >&5
2312continue
2313fi
2314rm -f conftest.$ac_objext conftest.$ac_ext
2315 cat >conftest.$ac_ext <<_ACEOF
2316#line $LINENO "configure"
2317#include "confdefs.h"
2318$ac_declaration
2319#ifdef F77_DUMMY_MAIN
2320# ifdef __cplusplus
2321 extern "C"
2322# endif
2323 int F77_DUMMY_MAIN() { return 1; }
2324#endif
2325int
2326main ()
2327{
2328exit (42);
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333rm -f conftest.$ac_objext
2334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 break
2346else
2347 echo "$as_me: failed program was:" >&5
2348cat conftest.$ac_ext >&5
2349fi
2350rm -f conftest.$ac_objext conftest.$ac_ext
2351done
2352rm -f conftest*
2353if test -n "$ac_declaration"; then
2354 echo '#ifdef __cplusplus' >>confdefs.h
2355 echo $ac_declaration >>confdefs.h
2356 echo '#endif' >>confdefs.h
2357fi
2358
2359ac_ext=cc
2360ac_cpp='$CXXCPP $CPPFLAGS'
2361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2364
2365depcc="$CXX" am_compiler_list=
2366
2367echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2368echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2369if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2373 # We make a subdir and do the tests there. Otherwise we can end up
2374 # making bogus files that we don't know about and never remove. For
2375 # instance it was reported that on HP-UX the gcc test will end up
2376 # making a dummy file named `D' -- because `-MD' means `put the output
2377 # in D'.
2378 mkdir conftest.dir
2379 # Copy depcomp to subdir because otherwise we won't find it if we're
2380 # using a relative directory.
2381 cp "$am_depcomp" conftest.dir
2382 cd conftest.dir
2383
2384 am_cv_CXX_dependencies_compiler_type=none
2385 if test "$am_compiler_list" = ""; then
2386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2387 fi
2388 for depmode in $am_compiler_list; do
2389 # We need to recreate these files for each test, as the compiler may
2390 # overwrite some of them when testing with obscure command lines.
2391 # This happens at least with the AIX C compiler.
2392 echo '#include "conftest.h"' > conftest.c
2393 echo 'int i;' > conftest.h
2394 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2395
2396 case $depmode in
2397 nosideeffect)
2398 # after this tag, mechanisms are not by side-effect, so they'll
2399 # only be used when explicitly requested
2400 if test "x$enable_dependency_tracking" = xyes; then
2401 continue
2402 else
2403 break
2404 fi
2405 ;;
2406 none) break ;;
2407 esac
2408 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2409 # mode. It turns out that the SunPro C++ compiler does not properly
2410 # handle `-M -o', and we need to detect this.
2411 if depmode=$depmode \
2412 source=conftest.c object=conftest.o \
2413 depfile=conftest.Po tmpdepfile=conftest.TPo \
2414 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2415 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2417 am_cv_CXX_dependencies_compiler_type=$depmode
2418 break
2419 fi
2420 done
2421
2422 cd ..
2423 rm -rf conftest.dir
2424else
2425 am_cv_CXX_dependencies_compiler_type=none
2426fi
2427
2428fi
2429echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2430echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2431CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
2432
2433
2434
2435
2436 # Check whether --enable-debug or --disable-debug was given.
2437if test "${enable_debug+set}" = set; then
2438 enableval="$enable_debug"
2439
2440 if test $enableval = "no"; then
2441 kde_use_debug_code="no"
2442 kde_use_debug_define=yes
2443 else
2444 kde_use_debug_code="yes"
2445 kde_use_debug_define=no
2446 fi
2447
2448else
2449 kde_use_debug_code="no"
2450 kde_use_debug_define=no
2451
2452fi;
2453
2454 # Check whether --enable-dummyoption or --disable-dummyoption was given.
2455if test "${enable_dummyoption+set}" = set; then
2456 enableval="$enable_dummyoption"
2457
2458fi;
2459
2460 # Check whether --enable-strict or --disable-strict was given.
2461if test "${enable_strict+set}" = set; then
2462 enableval="$enable_strict"
2463
2464 if test $enableval = "no"; then
2465 kde_use_strict_options="no"
2466 else
2467 kde_use_strict_options="yes"
2468 fi
2469
2470else
2471 kde_use_strict_options="no"
2472fi;
2473
2474 # Check whether --enable-profile or --disable-profile was given.
2475if test "${enable_profile+set}" = set; then
2476 enableval="$enable_profile"
2477 kde_use_profiling=$enableval
2478else
2479 kde_use_profiling="no"
2480
2481fi;
2482
2483 CFLAGS=" $CFLAGS"
2484
2485 ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2492set dummy ${ac_tool_prefix}gcc; ac_word=$2
2493echo "$as_me:$LINENO: checking for $ac_word" >&5
2494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512done
2513done
2514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
2519 echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6
2521else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524fi
2525
2526fi
2527if test -z "$ac_cv_prog_CC"; then
2528 ac_ct_CC=$CC
2529 # Extract the first word of "gcc", so it can be a program name with args.
2530set dummy gcc; ac_word=$2
2531echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536 if test -n "$ac_ct_CC"; then
2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_CC="gcc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551done
2552
2553fi
2554fi
2555ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556if test -n "$ac_ct_CC"; then
2557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558echo "${ECHO_T}$ac_ct_CC" >&6
2559else
2560 echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6
2562fi
2563
2564 CC=$ac_ct_CC
2565else
2566 CC="$ac_cv_prog_CC"
2567fi
2568
2569if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}cc; ac_word=$2
2573echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_CC="${ac_tool_prefix}cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
2594
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
2599 echo "$as_me:$LINENO: result: $CC" >&5
2600echo "${ECHO_T}$CC" >&6
2601else
2602 echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
2604fi
2605
2606fi
2607if test -z "$ac_cv_prog_CC"; then
2608 ac_ct_CC=$CC
2609 # Extract the first word of "cc", so it can be a program name with args.
2610set dummy cc; ac_word=$2
2611echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_CC="cc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
2632
2633fi
2634fi
2635ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636if test -n "$ac_ct_CC"; then
2637 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638echo "${ECHO_T}$ac_ct_CC" >&6
2639else
2640 echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6
2642fi
2643
2644 CC=$ac_ct_CC
2645else
2646 CC="$ac_cv_prog_CC"
2647fi
2648
2649fi
2650if test -z "$CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652set dummy cc; ac_word=$2
2653echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655if test "${ac_cv_prog_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661 ac_prog_rejected=no
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670 ac_prog_rejected=yes
2671 continue
2672 fi
2673 ac_cv_prog_CC="cc"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677done
2678done
2679
2680if test $ac_prog_rejected = yes; then
2681 # We found a bogon in the path, so make sure we never use it.
2682 set dummy $ac_cv_prog_CC
2683 shift
2684 if test $# != 0; then
2685 # We chose a different compiler from the bogus one.
2686 # However, it has the same basename, so the bogon will be chosen
2687 # first if we set CC to just the basename; use the full file name.
2688 shift
2689 set dummy "$as_dir/$ac_word" ${1+"$@"}
2690 shift
2691 ac_cv_prog_CC="$@"
2692 fi
2693fi
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698 echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6
2700else
2701 echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703fi
2704
2705fi
2706if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 for ac_prog in cl
2709 do
2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712echo "$as_me:$LINENO: checking for $ac_word" >&5
2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732done
2733
2734fi
2735fi
2736CC=$ac_cv_prog_CC
2737if test -n "$CC"; then
2738 echo "$as_me:$LINENO: result: $CC" >&5
2739echo "${ECHO_T}$CC" >&6
2740else
2741 echo "$as_me:$LINENO: result: no" >&5
2742echo "${ECHO_T}no" >&6
2743fi
2744
2745 test -n "$CC" && break
2746 done
2747fi
2748if test -z "$CC"; then
2749 ac_ct_CC=$CC
2750 for ac_prog in cl
2751do
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753set dummy $ac_prog; ac_word=$2
2754echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774done
2775
2776fi
2777fi
2778ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779if test -n "$ac_ct_CC"; then
2780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781echo "${ECHO_T}$ac_ct_CC" >&6
2782else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785fi
2786
2787 test -n "$ac_ct_CC" && break
2788done
2789
2790 CC=$ac_ct_CC
2791fi
2792
2793fi
2794
2795
2796test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2797echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2798 { (exit 1); exit 1; }; }
2799
2800# Provide some information about the compiler.
2801echo "$as_me:$LINENO:" \
2802 "checking for C compiler version" >&5
2803ac_compiler=`set X $ac_compile; echo $2`
2804{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2805 (eval $ac_compiler --version </dev/null >&5) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2810 (eval $ac_compiler -v </dev/null >&5) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2815 (eval $ac_compiler -V </dev/null >&5) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819
2820cat >conftest.$ac_ext <<_ACEOF
2821#line $LINENO "configure"
2822#include "confdefs.h"
2823
2824#ifdef F77_DUMMY_MAIN
2825# ifdef __cplusplus
2826 extern "C"
2827# endif
2828 int F77_DUMMY_MAIN() { return 1; }
2829#endif
2830int
2831main ()
2832{
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838ac_clean_files_save=$ac_clean_files
2839ac_clean_files="$ac_clean_files a.out a.exe"
2840# Try to create an executable without -o first, disregard a.out.
2841# It will help us diagnose broken compilers, and finding out an intuition
2842# of exeext.
2843echo "$as_me:$LINENO: checking for C compiler default output" >&5
2844echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2845ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2846if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2847 (eval $ac_link_default) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 # Find the output, starting from the most likely. This scheme is
2852# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2853# resort.
2854
2855# Be careful to initialize this variable, since it used to be cached.
2856# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2857ac_cv_exeext=
2858for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2859 ls a.out conftest 2>/dev/null;
2860 ls a.* conftest.* 2>/dev/null`; do
2861 case $ac_file in
2862 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2863 a.out ) # We found the default executable, but exeext='' is most
2864 # certainly right.
2865 break;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2868 export ac_cv_exeext
2869 break;;
2870 * ) break;;
2871 esac
2872done
2873else
2874 echo "$as_me: failed program was:" >&5
2875cat conftest.$ac_ext >&5
2876{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2877echo "$as_me: error: C compiler cannot create executables" >&2;}
2878 { (exit 77); exit 77; }; }
2879fi
2880
2881ac_exeext=$ac_cv_exeext
2882echo "$as_me:$LINENO: result: $ac_file" >&5
2883echo "${ECHO_T}$ac_file" >&6
2884
2885# Check the compiler produces executables we can run. If not, either
2886# the compiler is broken, or we cross compile.
2887echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2888echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2889# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2890# If not cross compiling, check that we can run a simple program.
2891if test "$cross_compiling" != yes; then
2892 if { ac_try='./$ac_file'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 cross_compiling=no
2899 else
2900 if test "$cross_compiling" = maybe; then
2901 cross_compiling=yes
2902 else
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904If you meant to cross compile, use \`--host'." >&5
2905echo "$as_me: error: cannot run C compiled programs.
2906If you meant to cross compile, use \`--host'." >&2;}
2907 { (exit 1); exit 1; }; }
2908 fi
2909 fi
2910fi
2911echo "$as_me:$LINENO: result: yes" >&5
2912echo "${ECHO_T}yes" >&6
2913
2914rm -f a.out a.exe conftest$ac_cv_exeext
2915ac_clean_files=$ac_clean_files_save
2916# Check the compiler produces executables we can run. If not, either
2917# the compiler is broken, or we cross compile.
2918echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2920echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921echo "${ECHO_T}$cross_compiling" >&6
2922
2923echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932# work properly (i.e., refer to `conftest.exe'), while it won't with
2933# `rm'.
2934for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2935 case $ac_file in
2936 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 export ac_cv_exeext
2939 break;;
2940 * ) break;;
2941 esac
2942done
2943else
2944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2945echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2946 { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest$ac_cv_exeext
2950echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951echo "${ECHO_T}$ac_cv_exeext" >&6
2952
2953rm -f conftest.$ac_ext
2954EXEEXT=$ac_cv_exeext
2955ac_exeext=$EXEEXT
2956echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2958if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960else
2961 cat >conftest.$ac_ext <<_ACEOF
2962#line $LINENO "configure"
2963#include "confdefs.h"
2964
2965#ifdef F77_DUMMY_MAIN
2966# ifdef __cplusplus
2967 extern "C"
2968# endif
2969 int F77_DUMMY_MAIN() { return 1; }
2970#endif
2971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.o conftest.obj
2980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2989 break;;
2990 esac
2991done
2992else
2993 echo "$as_me: failed program was:" >&5
2994cat conftest.$ac_ext >&5
2995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2996echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
3002echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003echo "${ECHO_T}$ac_cv_objext" >&6
3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
3006echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
3012#line $LINENO "configure"
3013#include "confdefs.h"
3014
3015#ifdef F77_DUMMY_MAIN
3016# ifdef __cplusplus
3017 extern "C"
3018# endif
3019 int F77_DUMMY_MAIN() { return 1; }
3020#endif
3021int
3022main ()
3023{
3024#ifndef __GNUC__
3025 choke me
3026#endif
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032rm -f conftest.$ac_objext
3033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_compiler_gnu=yes
3045else
3046 echo "$as_me: failed program was:" >&5
3047cat conftest.$ac_ext >&5
3048ac_compiler_gnu=no
3049fi
3050rm -f conftest.$ac_objext conftest.$ac_ext
3051ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
3053fi
3054echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3056GCC=`test $ac_compiler_gnu = yes && echo yes`
3057ac_test_CFLAGS=${CFLAGS+set}
3058ac_save_CFLAGS=$CFLAGS
3059CFLAGS="-g"
3060echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3062if test "${ac_cv_prog_cc_g+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067#include "confdefs.h"
3068
3069#ifdef F77_DUMMY_MAIN
3070# ifdef __cplusplus
3071 extern "C"
3072# endif
3073 int F77_DUMMY_MAIN() { return 1; }
3074#endif
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_prog_cc_g=yes
3096else
3097 echo "$as_me: failed program was:" >&5
3098cat conftest.$ac_ext >&5
3099ac_cv_prog_cc_g=no
3100fi
3101rm -f conftest.$ac_objext conftest.$ac_ext
3102fi
3103echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3104echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3105if test "$ac_test_CFLAGS" = set; then
3106 CFLAGS=$ac_save_CFLAGS
3107elif test $ac_cv_prog_cc_g = yes; then
3108 if test "$GCC" = yes; then
3109 CFLAGS="-g -O2"
3110 else
3111 CFLAGS="-g"
3112 fi
3113else
3114 if test "$GCC" = yes; then
3115 CFLAGS="-O2"
3116 else
3117 CFLAGS=
3118 fi
3119fi
3120# Some people use a C++ compiler to compile C. Since we use `exit',
3121# in C++ we need to declare it. In case someone uses the same compiler
3122# for both compiling C and C++ we need to have the C++ compiler decide
3123# the declaration of exit, since it's the most demanding environment.
3124cat >conftest.$ac_ext <<_ACEOF
3125#ifndef __cplusplus
3126 choke me
3127#endif
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 for ac_declaration in \
3142 ''\
3143 '#include <stdlib.h>' \
3144 'extern "C" void std::exit (int) throw (); using std::exit;' \
3145 'extern "C" void std::exit (int); using std::exit;' \
3146 'extern "C" void exit (int) throw ();' \
3147 'extern "C" void exit (int);' \
3148 'void exit (int);'
3149do
3150 cat >conftest.$ac_ext <<_ACEOF
3151#line $LINENO "configure"
3152#include "confdefs.h"
3153#include <stdlib.h>
3154$ac_declaration
3155#ifdef F77_DUMMY_MAIN
3156# ifdef __cplusplus
3157 extern "C"
3158# endif
3159 int F77_DUMMY_MAIN() { return 1; }
3160#endif
3161int
3162main ()
3163{
3164exit (42);
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 :
3182else
3183 echo "$as_me: failed program was:" >&5
3184cat conftest.$ac_ext >&5
3185continue
3186fi
3187rm -f conftest.$ac_objext conftest.$ac_ext
3188 cat >conftest.$ac_ext <<_ACEOF
3189#line $LINENO "configure"
3190#include "confdefs.h"
3191$ac_declaration
3192#ifdef F77_DUMMY_MAIN
3193# ifdef __cplusplus
3194 extern "C"
3195# endif
3196 int F77_DUMMY_MAIN() { return 1; }
3197#endif
3198int
3199main ()
3200{
3201exit (42);
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 break
3219else
3220 echo "$as_me: failed program was:" >&5
3221cat conftest.$ac_ext >&5
3222fi
3223rm -f conftest.$ac_objext conftest.$ac_ext
3224done
3225rm -f conftest*
3226if test -n "$ac_declaration"; then
3227 echo '#ifdef __cplusplus' >>confdefs.h
3228 echo $ac_declaration >>confdefs.h
3229 echo '#endif' >>confdefs.h
3230fi
3231
3232else
3233 echo "$as_me: failed program was:" >&5
3234cat conftest.$ac_ext >&5
3235fi
3236rm -f conftest.$ac_objext conftest.$ac_ext
3237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243depcc="$CC" am_compiler_list=
3244
3245echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3246echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3247if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3251 # We make a subdir and do the tests there. Otherwise we can end up
3252 # making bogus files that we don't know about and never remove. For
3253 # instance it was reported that on HP-UX the gcc test will end up
3254 # making a dummy file named `D' -- because `-MD' means `put the output
3255 # in D'.
3256 mkdir conftest.dir
3257 # Copy depcomp to subdir because otherwise we won't find it if we're
3258 # using a relative directory.
3259 cp "$am_depcomp" conftest.dir
3260 cd conftest.dir
3261
3262 am_cv_CC_dependencies_compiler_type=none
3263 if test "$am_compiler_list" = ""; then
3264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3265 fi
3266 for depmode in $am_compiler_list; do
3267 # We need to recreate these files for each test, as the compiler may
3268 # overwrite some of them when testing with obscure command lines.
3269 # This happens at least with the AIX C compiler.
3270 echo '#include "conftest.h"' > conftest.c
3271 echo 'int i;' > conftest.h
3272 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3273
3274 case $depmode in
3275 nosideeffect)
3276 # after this tag, mechanisms are not by side-effect, so they'll
3277 # only be used when explicitly requested
3278 if test "x$enable_dependency_tracking" = xyes; then
3279 continue
3280 else
3281 break
3282 fi
3283 ;;
3284 none) break ;;
3285 esac
3286 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3287 # mode. It turns out that the SunPro C++ compiler does not properly
3288 # handle `-M -o', and we need to detect this.
3289 if depmode=$depmode \
3290 source=conftest.c object=conftest.o \
3291 depfile=conftest.Po tmpdepfile=conftest.TPo \
3292 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3293 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3295 am_cv_CC_dependencies_compiler_type=$depmode
3296 break
3297 fi
3298 done
3299
3300 cd ..
3301 rm -rf conftest.dir
3302else
3303 am_cv_CC_dependencies_compiler_type=none
3304fi
3305
3306fi
3307echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3308echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3309CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
3310
3311
3312
3313 if test "$GCC" = "yes"; then
3314 if test "$kde_use_debug_code" = "yes"; then
3315 CFLAGS="-g -O2 $CFLAGS"
3316 case $host in
3317 *-*-linux-gnu)
3318 CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3319 ;;
3320 esac
3321 else
3322 CFLAGS="-O2 $CFLAGS"
3323 fi
3324 fi
3325
3326 if test "$kde_use_debug_define" = "yes"; then
3327 CFLAGS="-DNDEBUG $CFLAGS"
3328 fi
3329
3330 case "$host" in
3331 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3332 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3333 esac
3334
3335 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3336 LDFLAGS=""
3337 fi
3338
3339 if test "$kde_use_profiling" = "yes"; then
3340
3341echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
3342echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3343kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
3344if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347
3348
3349
3350
3351ac_ext=cc
3352ac_cpp='$CXXCPP $CPPFLAGS'
3353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3356
3357ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3358
3359
3360
3361 save_CXXFLAGS="$CXXFLAGS"
3362 CXXFLAGS="$CXXFLAGS -pg"
3363 cat >conftest.$ac_ext <<_ACEOF
3364#line $LINENO "configure"
3365#include "confdefs.h"
3366
3367#ifdef F77_DUMMY_MAIN
3368# ifdef __cplusplus
3369 extern "C"
3370# endif
3371 int F77_DUMMY_MAIN() { return 1; }
3372#endif
3373int
3374main ()
3375{
3376 return 0;
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext conftest$ac_exeext
3382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -s conftest$ac_exeext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 eval "kde_cv_prog_cxx_$kde_cache=yes"
3394else
3395 echo "$as_me: failed program was:" >&5
3396cat conftest.$ac_ext >&5
3397fi
3398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 CXXFLAGS="$save_CXXFLAGS"
3400 ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407fi
3408
3409if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3410 echo "$as_me:$LINENO: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
3412 :
3413
3414 CFLAGS="-pg $CFLAGS"
3415
3416else
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419 :
3420
3421fi
3422
3423 fi
3424
3425 USE_EXCEPTIONS=
3426
3427 USE_RTTI=
3428
3429
3430 ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3437# On Suns, sometimes $CPP names a directory.
3438if test -n "$CPP" && test -d "$CPP"; then
3439 CPP=
3440fi
3441if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 # Double quotes because CPP needs to be expanded
3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447 do
3448 ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.$ac_ext <<_ACEOF
3456#line $LINENO "configure"
3457#include "confdefs.h"
3458#include <assert.h>
3459 Syntax error
3460_ACEOF
3461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463 ac_status=$?
3464 egrep -v '^ *\+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3471 else
3472 ac_cpp_err=
3473 fi
3474else
3475 ac_cpp_err=yes
3476fi
3477if test -z "$ac_cpp_err"; then
3478 :
3479else
3480 echo "$as_me: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3483continue
3484fi
3485rm -f conftest.err conftest.$ac_ext
3486
3487 # OK, works on sane cases. Now check whether non-existent headers
3488 # can be detected and how.
3489 cat >conftest.$ac_ext <<_ACEOF
3490#line $LINENO "configure"
3491#include "confdefs.h"
3492#include <ac_nonexistent.h>
3493_ACEOF
3494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496 ac_status=$?
3497 egrep -v '^ *\+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
3511 # Broken: success on invalid input.
3512continue
3513else
3514 echo "$as_me: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 # Passes both tests.
3517ac_preproc_ok=:
3518break
3519fi
3520rm -f conftest.err conftest.$ac_ext
3521
3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524rm -f conftest.err conftest.$ac_ext
3525if $ac_preproc_ok; then
3526 break
3527fi
3528
3529 done
3530 ac_cv_prog_CPP=$CPP
3531
3532fi
3533 CPP=$ac_cv_prog_CPP
3534else
3535 ac_cv_prog_CPP=$CPP
3536fi
3537echo "$as_me:$LINENO: result: $CPP" >&5
3538echo "${ECHO_T}$CPP" >&6
3539ac_preproc_ok=false
3540for ac_c_preproc_warn_flag in '' yes
3541do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3547#line $LINENO "configure"
3548#include "confdefs.h"
3549#include <assert.h>
3550 Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554 ac_status=$?
3555 egrep -v '^ *\+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 :
3570else
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3574continue
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577
3578 # OK, works on sane cases. Now check whether non-existent headers
3579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3581#line $LINENO "configure"
3582#include "confdefs.h"
3583#include <ac_nonexistent.h>
3584_ACEOF
3585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3587 ac_status=$?
3588 egrep -v '^ *\+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null; then
3593 if test -s conftest.err; then
3594 ac_cpp_err=$ac_c_preproc_warn_flag
3595 else
3596 ac_cpp_err=
3597 fi
3598else
3599 ac_cpp_err=yes
3600fi
3601if test -z "$ac_cpp_err"; then
3602 # Broken: success on invalid input.
3603continue
3604else
3605 echo "$as_me: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
3611rm -f conftest.err conftest.$ac_ext
3612
3613done
3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615rm -f conftest.err conftest.$ac_ext
3616if $ac_preproc_ok; then
3617 :
3618else
3619 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3620echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3621 { (exit 1); exit 1; }; }
3622fi
3623
3624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631 # the following is to allow programs, that are known to
3632 # have problems when compiled with -O2
3633 if test -n "$CFLAGS"; then
3634 kde_safe_IFS=$IFS
3635 IFS=" "
3636 NOOPT_CFLAGS=""
3637 for i in $CFLAGS; do
3638 case $i in
3639 -O*)
3640 ;;
3641 *)
3642 NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
3643 ;;
3644 esac
3645 done
3646 IFS=$kde_safe_IFS
3647 fi
3648
3649
3650
3651
3652 # Check whether --enable-final or --disable-final was given.
3653if test "${enable_final+set}" = set; then
3654 enableval="$enable_final"
3655 kde_use_final=$enableval
3656else
3657 kde_use_final=no
3658fi;
3659
3660
3661 REPO=""
3662 NOREPO=""
3663
3664
3665echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
3666echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
3667kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
3668if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671
3672
3673
3674 ac_ext=cc
3675ac_cpp='$CXXCPP $CPPFLAGS'
3676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3679
3680ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3681
3682
3683 save_CXXFLAGS="$CXXFLAGS"
3684 CXXFLAGS="$CXXFLAGS -frepo"
3685 cat >conftest.$ac_ext <<_ACEOF
3686#line $LINENO "configure"
3687#include "confdefs.h"
3688
3689#ifdef F77_DUMMY_MAIN
3690# ifdef __cplusplus
3691 extern "C"
3692# endif
3693 int F77_DUMMY_MAIN() { return 1; }
3694#endif
3695int
3696main ()
3697{
3698 return 0;
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 eval "kde_cv_prog_cxx_$kde_cache=yes"
3716else
3717 echo "$as_me: failed program was:" >&5
3718cat conftest.$ac_ext >&5
3719fi
3720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3721 CXXFLAGS="$save_CXXFLAGS"
3722 ac_ext=c
3723ac_cpp='$CPP $CPPFLAGS'
3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728
3729fi
3730
3731if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
3734 :
3735
3736 REPO="-frepo"
3737 NOREPO="-fno-repo"
3738
3739else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 :
3743
3744fi
3745
3746
3747 if test -z "$REPO"; then
3748
3749echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
3750echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
3751kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
3752if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755
3756
3757
3758 ac_ext=cc
3759ac_cpp='$CXXCPP $CPPFLAGS'
3760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763
3764ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3765
3766
3767 save_CXXFLAGS="$CXXFLAGS"
3768 CXXFLAGS="$CXXFLAGS -instances=explicit"
3769 cat >conftest.$ac_ext <<_ACEOF
3770#line $LINENO "configure"
3771#include "confdefs.h"
3772
3773#ifdef F77_DUMMY_MAIN
3774# ifdef __cplusplus
3775 extern "C"
3776# endif
3777 int F77_DUMMY_MAIN() { return 1; }
3778#endif
3779int
3780main ()
3781{
3782 return 0;
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787rm -f conftest.$ac_objext conftest$ac_exeext
3788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 eval "kde_cv_prog_cxx_$kde_cache=yes"
3800else
3801 echo "$as_me: failed program was:" >&5
3802cat conftest.$ac_ext >&5
3803fi
3804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805 CXXFLAGS="$save_CXXFLAGS"
3806 ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812
3813fi
3814
3815if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3816 echo "$as_me:$LINENO: result: yes" >&5
3817echo "${ECHO_T}yes" >&6
3818 :
3819
3820 REPO="-instances=explicit"
3821 NOREPO="-instances=extern"
3822
3823else
3824 echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6
3826 :
3827
3828fi
3829
3830 fi
3831
3832 if test -n "$REPO"; then
3833
3834cat >>confdefs.h <<_ACEOF
3835#define HAVE_TEMPLATE_REPOSITORY 1
3836_ACEOF
3837
3838
3839 fi
3840
3841
3842
3843
3844 if test "x$kde_use_final" = "xyes"; then
3845 KDE_USE_FINAL_TRUE=""
3846 KDE_USE_FINAL_FALSE="#"
3847 else
3848 KDE_USE_FINAL_TRUE="#"
3849 KDE_USE_FINAL_FALSE=""
3850 fi
3851
3852
3853
3854 # Check whether --enable-closure or --disable-closure was given.
3855if test "${enable_closure+set}" = set; then
3856 enableval="$enable_closure"
3857 kde_use_closure=$enableval
3858else
3859 kde_use_closure=yes
3860fi;
3861
3862 if test "x$kde_use_closure" = "xyes"; then
3863 KDE_USE_CLOSURE_TRUE=""
3864 KDE_USE_CLOSURE_FALSE="#"
3865# CXXFLAGS="$CXXFLAGS $REPO"
3866 else
3867 KDE_USE_CLOSURE_TRUE="#"
3868 KDE_USE_CLOSURE_FALSE=""
3869 fi
3870
3871
3872
3873
3874
3875
3876 KDE_CXXFLAGS=
3877
3878
3879
3880
3881# Check whether --enable-shared or --disable-shared was given.
3882if test "${enable_shared+set}" = set; then
3883 enableval="$enable_shared"
3884 p=${PACKAGE-default}
3885 case $enableval in
3886 yes) enable_shared=yes ;;
3887 no) enable_shared=no ;;
3888 *)
3889 enable_shared=no
3890 # Look at the argument we got. We use all the common list separators.
3891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3892 for pkg in $enableval; do
3893 IFS="$lt_save_ifs"
3894 if test "X$pkg" = "X$p"; then
3895 enable_shared=yes
3896 fi
3897 done
3898 IFS="$lt_save_ifs"
3899 ;;
3900 esac
3901else
3902 enable_shared=yes
3903fi;
3904
3905
3906# Check whether --enable-static or --disable-static was given.
3907if test "${enable_static+set}" = set; then
3908 enableval="$enable_static"
3909 p=${PACKAGE-default}
3910 case $enableval in
3911 yes) enable_static=yes ;;
3912 no) enable_static=no ;;
3913 *)
3914 enable_static=no
3915 # Look at the argument we got. We use all the common list separators.
3916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3917 for pkg in $enableval; do
3918 IFS="$lt_save_ifs"
3919 if test "X$pkg" = "X$p"; then
3920 enable_static=yes
3921 fi
3922 done
3923 IFS="$lt_save_ifs"
3924 ;;
3925 esac
3926else
3927 enable_static=yes
3928fi;
3929
3930
3931
3932
3933# Check whether --enable-fast-install or --disable-fast-install was given.
3934if test "${enable_fast_install+set}" = set; then
3935 enableval="$enable_fast_install"
3936 p=${PACKAGE-default}
3937 case $enableval in
3938 yes) enable_fast_install=yes ;;
3939 no) enable_fast_install=no ;;
3940 *)
3941 enable_fast_install=no
3942 # Look at the argument we got. We use all the common list separators.
3943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944 for pkg in $enableval; do
3945 IFS="$lt_save_ifs"
3946 if test "X$pkg" = "X$p"; then
3947 enable_fast_install=yes
3948 fi
3949 done
3950 IFS="$lt_save_ifs"
3951 ;;
3952 esac
3953else
3954 enable_fast_install=yes
3955fi;
3956
3957
3958# Check whether --with-gnu-ld or --without-gnu-ld was given.
3959if test "${with_gnu_ld+set}" = set; then
3960 withval="$with_gnu_ld"
3961 test "$withval" = no || with_gnu_ld=yes
3962else
3963 with_gnu_ld=no
3964fi;
3965ac_prog=ld
3966if test "$GCC" = yes; then
3967 # Check if gcc -print-prog-name=ld gives a path.
3968 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3969echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3970 case $host in
3971 *-*-mingw*)
3972 # gcc leaves a trailing carriage return which upsets mingw
3973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3974 *)
3975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3976 esac
3977 case $ac_prog in
3978 # Accept absolute paths.
3979 [\\/]* | ?:[\\/]*)
3980 re_direlt='/[^/][^/]*/\.\./'
3981 # Canonicalize the path of ld
3982 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3983 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3984 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3985 done
3986 test -z "$LD" && LD="$ac_prog"
3987 ;;
3988 "")
3989 # If it fails, then pretend we aren't using GCC.
3990 ac_prog=ld
3991 ;;
3992 *)
3993 # If it is relative, then search for the first ld in PATH.
3994 with_gnu_ld=unknown
3995 ;;
3996 esac
3997elif test "$with_gnu_ld" = yes; then
3998 echo "$as_me:$LINENO: checking for GNU ld" >&5
3999echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4000else
4001 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4002echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4003fi
4004if test "${lt_cv_path_LD+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007 if test -z "$LD"; then
4008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4009 for ac_dir in $PATH; do
4010 IFS="$lt_save_ifs"
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4013 lt_cv_path_LD="$ac_dir/$ac_prog"
4014 # Check to see if the program is GNU ld. I'd rather use --version,
4015 # but apparently some GNU ld's only accept -v.
4016 # Break only if it was the GNU/non-GNU ld that we prefer.
4017 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4018 test "$with_gnu_ld" != no && break
4019 else
4020 test "$with_gnu_ld" != yes && break
4021 fi
4022 fi
4023 done
4024 IFS="$lt_save_ifs"
4025else
4026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027fi
4028fi
4029
4030LD="$lt_cv_path_LD"
4031if test -n "$LD"; then
4032 echo "$as_me:$LINENO: result: $LD" >&5
4033echo "${ECHO_T}$LD" >&6
4034else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037fi
4038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040 { (exit 1); exit 1; }; }
4041echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4043if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4047if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4048 lt_cv_prog_gnu_ld=yes
4049else
4050 lt_cv_prog_gnu_ld=no
4051fi
4052fi
4053echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4054echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4055with_gnu_ld=$lt_cv_prog_gnu_ld
4056
4057
4058echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4059echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4060if test "${lt_cv_ld_reload_flag+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 lt_cv_ld_reload_flag='-r'
4064fi
4065echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4066echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4067reload_flag=$lt_cv_ld_reload_flag
4068case $reload_flag in
4069"" | " "*) ;;
4070*) reload_flag=" $reload_flag" ;;
4071esac
4072reload_cmds='$LD$reload_flag -o $output$reload_objs'
4073
4074echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4075echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4076if test "${lt_cv_path_NM+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 if test -n "$NM"; then
4080 # Let the user override the test.
4081 lt_cv_path_NM="$NM"
4082else
4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4085 IFS="$lt_save_ifs"
4086 test -z "$ac_dir" && ac_dir=.
4087 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
4093 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4094 lt_cv_path_NM="$tmp_nm -B"
4095 break
4096 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4097 lt_cv_path_NM="$tmp_nm -p"
4098 break
4099 else
4100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4101 continue # so that we can try to find one that supports BSD flags
4102 fi
4103 fi
4104 done
4105 IFS="$lt_save_ifs"
4106 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4107fi
4108fi
4109echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4110echo "${ECHO_T}$lt_cv_path_NM" >&6
4111NM="$lt_cv_path_NM"
4112
4113echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4114echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4115if test "${lt_cv_path_SED+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 # Loop through the user's path and test for sed and gsed.
4119# Then use that list of sed's as ones to test for truncation.
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in sed gsed; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4128 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4129 fi
4130 done
4131 done
4132done
4133
4134 # Create a temporary directory, and hook for its removal unless debugging.
4135$debug ||
4136{
4137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4138 trap '{ (exit 1); exit 1; }' 1 2 13 15
4139}
4140
4141# Create a (secure) tmp directory for tmp files.
4142: ${TMPDIR=/tmp}
4143{
4144 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4145 test -n "$tmp" && test -d "$tmp"
4146} ||
4147{
4148 tmp=$TMPDIR/sed$$-$RANDOM
4149 (umask 077 && mkdir $tmp)
4150} ||
4151{
4152 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4153 { (exit 1); exit 1; }
4154}
4155 _max=0
4156 _count=0
4157 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4158 # along with /bin/sed that truncates output.
4159 for _sed in $_sed_list /usr/xpg4/bin/sed; do
4160 test ! -f ${_sed} && break
4161 cat /dev/null > "$tmp/sed.in"
4162 _count=0
4163 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
4164 # Check for GNU sed and select it if it is found.
4165 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4166 lt_cv_path_SED=${_sed}
4167 break;
4168 fi
4169 while true; do
4170 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4171 mv "$tmp/sed.tmp" "$tmp/sed.in"
4172 cp "$tmp/sed.in" "$tmp/sed.nl"
4173 echo >>"$tmp/sed.nl"
4174 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4175 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4176 # 10000 chars as input seems more than enough
4177 test $_count -gt 10 && break
4178 _count=`expr $_count + 1`
4179 if test $_count -gt $_max; then
4180 _max=$_count
4181 lt_cv_path_SED=$_sed
4182 fi
4183 done
4184 done
4185 rm -rf "$tmp"
4186
4187fi
4188
4189echo "$as_me:$LINENO: result: $SED" >&5
4190echo "${ECHO_T}$SED" >&6
4191
4192echo "$as_me:$LINENO: checking whether ln -s works" >&5
4193echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4194LN_S=$as_ln_s
4195if test "$LN_S" = "ln -s"; then
4196 echo "$as_me:$LINENO: result: yes" >&5
4197echo "${ECHO_T}yes" >&6
4198else
4199 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4200echo "${ECHO_T}no, using $LN_S" >&6
4201fi
4202
4203echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4204echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4205if test "${lt_cv_deplibs_check_method+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 lt_cv_file_magic_cmd='$MAGIC_CMD'
4209lt_cv_file_magic_test_file=
4210lt_cv_deplibs_check_method='unknown'
4211# Need to set the preceding variable on all platforms that support
4212# interlibrary dependencies.
4213# 'none' -- dependencies not supported.
4214# `unknown' -- same as none, but documents that we really don't know.
4215# 'pass_all' -- all dependencies passed with no checks.
4216# 'test_compile' -- check by making test program.
4217# 'file_magic [[regex]]' -- check by looking for files in library path
4218# which responds to the $file_magic_cmd with a given egrep regex.
4219# If you have `file' or equivalent on your system and you're not sure
4220# whether `pass_all' will *always* work, you probably want this one.
4221
4222case $host_os in
4223aix4* | aix5*)
4224 lt_cv_deplibs_check_method=pass_all
4225 ;;
4226
4227beos*)
4228 lt_cv_deplibs_check_method=pass_all
4229 ;;
4230
4231bsdi4*)
4232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4233 lt_cv_file_magic_cmd='/usr/bin/file -L'
4234 lt_cv_file_magic_test_file=/shlib/libc.so
4235 ;;
4236
4237cygwin* | mingw* | pw32*)
4238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4239 lt_cv_file_magic_cmd='$OBJDUMP -f'
4240 ;;
4241
4242darwin* | rhapsody*)
4243 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4244 lt_cv_file_magic_cmd='/usr/bin/file -L'
4245 case "$host_os" in
4246 rhapsody* | darwin1.[012])
4247 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4248 ;;
4249 *) # Darwin 1.3 on
4250 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4251 ;;
4252 esac
4253 ;;
4254
4255freebsd*)
4256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4257 case $host_cpu in
4258 i*86 )
4259 # Not sure whether the presence of OpenBSD here was a mistake.
4260 # Let's accept both of them until this is cleared up.
4261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4262 lt_cv_file_magic_cmd=/usr/bin/file
4263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4264 ;;
4265 esac
4266 else
4267 lt_cv_deplibs_check_method=pass_all
4268 fi
4269 ;;
4270
4271gnu*)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274
4275hpux10.20* | hpux11*)
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 if test "$host_cpu" = ia64; then
4278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4279 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4280 else
4281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4282 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4283 fi
4284 ;;
4285
4286irix5* | irix6* | nonstopux*)
4287 case $host_os in
4288 irix5* | nonstopux*)
4289 # this will be overridden with pass_all, but let us keep it just in case
4290 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4291 ;;
4292 *)
4293 case $LD in
4294 *-32|*"-32 ") libmagic=32-bit;;
4295 *-n32|*"-n32 ") libmagic=N32;;
4296 *-64|*"-64 ") libmagic=64-bit;;
4297 *) libmagic=never-match;;
4298 esac
4299 # this will be overridden with pass_all, but let us keep it just in case
4300 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4301 ;;
4302 esac
4303 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307# This must be Linux ELF.
4308linux*)
4309 case $host_cpu in
4310 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
4311 lt_cv_deplibs_check_method=pass_all ;;
4312 *)
4313 # glibc up to 2.1.1 does not perform some relocations on ARM
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4315 esac
4316 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4317 ;;
4318
4319netbsd*)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4322 else
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4324 fi
4325 ;;
4326
4327newos6*)
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 ;;
4332
4333nto-qnx)
4334 lt_cv_deplibs_check_method=unknown
4335 ;;
4336
4337openbsd*)
4338 lt_cv_file_magic_cmd=/usr/bin/file
4339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4342 else
4343 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4344 fi
4345 ;;
4346
4347osf3* | osf4* | osf5*)
4348 # this will be overridden with pass_all, but let us keep it just in case
4349 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4350 lt_cv_file_magic_test_file=/shlib/libc.so
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354sco3.2v5*)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
4357
4358solaris*)
4359 lt_cv_deplibs_check_method=pass_all
4360 lt_cv_file_magic_test_file=/lib/libc.so
4361 ;;
4362
4363sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4364 case $host_vendor in
4365 motorola)
4366 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]'
4367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4368 ;;
4369 ncr)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372 sequent)
4373 lt_cv_file_magic_cmd='/bin/file'
4374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4375 ;;
4376 sni)
4377 lt_cv_file_magic_cmd='/bin/file'
4378 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4379 lt_cv_file_magic_test_file=/lib/libc.so
4380 ;;
4381 esac
4382 ;;
4383
4384sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4385 lt_cv_deplibs_check_method=pass_all
4386 ;;
4387esac
4388
4389fi
4390echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4391echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4392file_magic_cmd=$lt_cv_file_magic_cmd
4393deplibs_check_method=$lt_cv_deplibs_check_method
4394test -z "$deplibs_check_method" && deplibs_check_method=unknown
4395
4396
4397# If no C compiler was specified, use CC.
4398LTCC=${LTCC-"$CC"}
4399
4400# Allow CC to be a program name with arguments.
4401set dummy $CC
4402compiler="$2"
4403
4404
4405# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4406if test "${enable_libtool_lock+set}" = set; then
4407 enableval="$enable_libtool_lock"
4408
4409fi;
4410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4411
4412# Some flags need to be propagated to the compiler or linker for good
4413# libtool support.
4414case $host in
4415ia64-*-hpux*)
4416 # Find out which ABI we are using.
4417 echo 'int i;' > conftest.$ac_ext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 case `/usr/bin/file conftest.$ac_objext` in
4424 *ELF-32*)
4425 HPUX_IA64_MODE="32"
4426 ;;
4427 *ELF-64*)
4428 HPUX_IA64_MODE="64"
4429 ;;
4430 esac
4431 fi
4432 rm -rf conftest*
4433 ;;
4434*-*-irix6*)
4435 # Find out which ABI we are using.
4436 echo '#line 4436 "configure"' > conftest.$ac_ext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
4442 case `/usr/bin/file conftest.$ac_objext` in
4443 *32-bit*)
4444 LD="${LD-ld} -32"
4445 ;;
4446 *N32*)
4447 LD="${LD-ld} -n32"
4448 ;;
4449 *64-bit*)
4450 LD="${LD-ld} -64"
4451 ;;
4452 esac
4453 fi
4454 rm -rf conftest*
4455 ;;
4456
4457*-*-linux*)
4458 # Test if the compiler is 64bit
4459 echo 'int i;' > conftest.$ac_ext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; then
4465 case `/usr/bin/file conftest.$ac_objext` in
4466 *"ELF 32"*)
4467 LINUX_64_MODE="32"
4468 ;;
4469 *"ELF 64"*)
4470 LINUX_64_MODE="64"
4471 ;;
4472 esac
4473 fi
4474 rm -rf conftest*
4475 ;;
4476
4477*-*-sco3.2v5*)
4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479 SAVE_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS -belf"
4481 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4482echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4483if test "${lt_cv_cc_needs_belf+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 ac_ext=c
4487ac_cpp='$CPP $CPPFLAGS'
4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 cat >conftest.$ac_ext <<_ACEOF
4493#line $LINENO "configure"
4494#include "confdefs.h"
4495
4496#ifdef F77_DUMMY_MAIN
4497# ifdef __cplusplus
4498 extern "C"
4499# endif
4500 int F77_DUMMY_MAIN() { return 1; }
4501#endif
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 lt_cv_cc_needs_belf=yes
4523else
4524 echo "$as_me: failed program was:" >&5
4525cat conftest.$ac_ext >&5
4526lt_cv_cc_needs_belf=no
4527fi
4528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535fi
4536echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4538 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540 CFLAGS="$SAVE_CFLAGS"
4541 fi
4542 ;;
4543
4544esac
4545
4546need_locks="$enable_libtool_lock"
4547
4548
4549
4550echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4551echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4552if test "${ac_cv_header_stdc+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 cat >conftest.$ac_ext <<_ACEOF
4556#line $LINENO "configure"
4557#include "confdefs.h"
4558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
4563_ACEOF
4564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4566 ac_status=$?
4567 egrep -v '^ *\+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null; then
4572 if test -s conftest.err; then
4573 ac_cpp_err=$ac_c_preproc_warn_flag
4574 else
4575 ac_cpp_err=
4576 fi
4577else
4578 ac_cpp_err=yes
4579fi
4580if test -z "$ac_cpp_err"; then
4581 ac_cv_header_stdc=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 ac_cv_header_stdc=no
4586fi
4587rm -f conftest.err conftest.$ac_ext
4588
4589if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.$ac_ext <<_ACEOF
4592#line $LINENO "configure"
4593#include "confdefs.h"
4594#include <string.h>
4595
4596_ACEOF
4597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 egrep "memchr" >/dev/null 2>&1; then
4599 :
4600else
4601 ac_cv_header_stdc=no
4602fi
4603rm -f conftest*
4604
4605fi
4606
4607if test $ac_cv_header_stdc = yes; then
4608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609 cat >conftest.$ac_ext <<_ACEOF
4610#line $LINENO "configure"
4611#include "confdefs.h"
4612#include <stdlib.h>
4613
4614_ACEOF
4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 egrep "free" >/dev/null 2>&1; then
4617 :
4618else
4619 ac_cv_header_stdc=no
4620fi
4621rm -f conftest*
4622
4623fi
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then
4628 :
4629else
4630 cat >conftest.$ac_ext <<_ACEOF
4631#line $LINENO "configure"
4632#include "confdefs.h"
4633#include <ctype.h>
4634#if ((' ' & 0x0FF) == 0x020)
4635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4637#else
4638# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4639 || ('j' <= (c) && (c) <= 'r') \
4640 || ('s' <= (c) && (c) <= 'z'))
4641# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4642#endif
4643
4644#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4645int
4646main ()
4647{
4648 int i;
4649 for (i = 0; i < 256; i++)
4650 if (XOR (islower (i), ISLOWER (i))
4651 || toupper (i) != TOUPPER (i))
4652 exit(2);
4653 exit (0);
4654}
4655_ACEOF
4656rm -f conftest$ac_exeext
4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 :
4668else
4669 echo "$as_me: program exited with status $ac_status" >&5
4670echo "$as_me: failed program was:" >&5
4671cat conftest.$ac_ext >&5
4672( exit $ac_status )
4673ac_cv_header_stdc=no
4674fi
4675rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4676fi
4677fi
4678fi
4679echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4680echo "${ECHO_T}$ac_cv_header_stdc" >&6
4681if test $ac_cv_header_stdc = yes; then
4682
4683cat >>confdefs.h <<\_ACEOF
4684#define STDC_HEADERS 1
4685_ACEOF
4686
4687fi
4688
4689# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4700 inttypes.h stdint.h unistd.h
4701do
4702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703echo "$as_me:$LINENO: checking for $ac_header" >&5
4704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4705if eval "test \"\${$as_ac_Header+set}\" = set"; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
4708 cat >conftest.$ac_ext <<_ACEOF
4709#line $LINENO "configure"
4710#include "confdefs.h"
4711$ac_includes_default
4712
4713#include <$ac_header>
4714_ACEOF
4715rm -f conftest.$ac_objext
4716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 eval "$as_ac_Header=yes"
4728else
4729 echo "$as_me: failed program was:" >&5
4730cat conftest.$ac_ext >&5
4731eval "$as_ac_Header=no"
4732fi
4733rm -f conftest.$ac_objext conftest.$ac_ext
4734fi
4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737if test `eval echo '${'$as_ac_Header'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4740_ACEOF
4741
4742fi
4743
4744done
4745
4746
4747
4748for ac_header in dlfcn.h
4749do
4750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4751if eval "test \"\${$as_ac_Header+set}\" = set"; then
4752 echo "$as_me:$LINENO: checking for $ac_header" >&5
4753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756fi
4757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4759else
4760 # Is the header compilable?
4761echo "$as_me:$LINENO: checking $ac_header usability" >&5
4762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4763cat >conftest.$ac_ext <<_ACEOF
4764#line $LINENO "configure"
4765#include "confdefs.h"
4766$ac_includes_default
4767#include <$ac_header>
4768_ACEOF
4769rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_header_compiler=yes
4782else
4783 echo "$as_me: failed program was:" >&5
4784cat conftest.$ac_ext >&5
4785ac_header_compiler=no
4786fi
4787rm -f conftest.$ac_objext conftest.$ac_ext
4788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4789echo "${ECHO_T}$ac_header_compiler" >&6
4790
4791# Is the header present?
4792echo "$as_me:$LINENO: checking $ac_header presence" >&5
4793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4794cat >conftest.$ac_ext <<_ACEOF
4795#line $LINENO "configure"
4796#include "confdefs.h"
4797#include <$ac_header>
4798_ACEOF
4799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4801 ac_status=$?
4802 egrep -v '^ *\+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null; then
4807 if test -s conftest.err; then
4808 ac_cpp_err=$ac_c_preproc_warn_flag
4809 else
4810 ac_cpp_err=
4811 fi
4812else
4813 ac_cpp_err=yes
4814fi
4815if test -z "$ac_cpp_err"; then
4816 ac_header_preproc=yes
4817else
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 ac_header_preproc=no
4821fi
4822rm -f conftest.err conftest.$ac_ext
4823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4824echo "${ECHO_T}$ac_header_preproc" >&6
4825
4826# So? What about this header?
4827case $ac_header_compiler:$ac_header_preproc in
4828 yes:no )
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4833 no:yes )
4834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4840esac
4841echo "$as_me:$LINENO: checking for $ac_header" >&5
4842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4843if eval "test \"\${$as_ac_Header+set}\" = set"; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846 eval "$as_ac_Header=$ac_header_preproc"
4847fi
4848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4850
4851fi
4852if test `eval echo '${'$as_ac_Header'}'` = yes; then
4853 cat >>confdefs.h <<_ACEOF
4854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4855_ACEOF
4856
4857fi
4858
4859done
4860
4861ac_ext=cc
4862ac_cpp='$CXXCPP $CPPFLAGS'
4863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4867echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4868if test -z "$CXXCPP"; then
4869 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 # Double quotes because CXXCPP needs to be expanded
4873 for CXXCPP in "$CXX -E" "/lib/cpp"
4874 do
4875 ac_preproc_ok=false
4876for ac_cxx_preproc_warn_flag in '' yes
4877do
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # On the NeXT, cc -E runs the code through the compiler's parser,
4881 # not just through cpp. "Syntax error" is here to catch this case.
4882 cat >conftest.$ac_ext <<_ACEOF
4883#line $LINENO "configure"
4884#include "confdefs.h"
4885#include <assert.h>
4886 Syntax error
4887_ACEOF
4888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4890 ac_status=$?
4891 egrep -v '^ *\+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null; then
4896 if test -s conftest.err; then
4897 ac_cpp_err=$ac_cxx_preproc_warn_flag
4898 else
4899 ac_cpp_err=
4900 fi
4901else
4902 ac_cpp_err=yes
4903fi
4904if test -z "$ac_cpp_err"; then
4905 :
4906else
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4909 # Broken: fails on valid input.
4910continue
4911fi
4912rm -f conftest.err conftest.$ac_ext
4913
4914 # OK, works on sane cases. Now check whether non-existent headers
4915 # can be detected and how.
4916 cat >conftest.$ac_ext <<_ACEOF
4917#line $LINENO "configure"
4918#include "confdefs.h"
4919#include <ac_nonexistent.h>
4920_ACEOF
4921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 ac_status=$?
4924 egrep -v '^ *\+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_cxx_preproc_warn_flag
4931 else
4932 ac_cpp_err=
4933 fi
4934else
4935 ac_cpp_err=yes
4936fi
4937if test -z "$ac_cpp_err"; then
4938 # Broken: success on invalid input.
4939continue
4940else
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 # Passes both tests.
4944ac_preproc_ok=:
4945break
4946fi
4947rm -f conftest.err conftest.$ac_ext
4948
4949done
4950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951rm -f conftest.err conftest.$ac_ext
4952if $ac_preproc_ok; then
4953 break
4954fi
4955
4956 done
4957 ac_cv_prog_CXXCPP=$CXXCPP
4958
4959fi
4960 CXXCPP=$ac_cv_prog_CXXCPP
4961else
4962 ac_cv_prog_CXXCPP=$CXXCPP
4963fi
4964echo "$as_me:$LINENO: result: $CXXCPP" >&5
4965echo "${ECHO_T}$CXXCPP" >&6
4966ac_preproc_ok=false
4967for ac_cxx_preproc_warn_flag in '' yes
4968do
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4974#line $LINENO "configure"
4975#include "confdefs.h"
4976#include <assert.h>
4977 Syntax error
4978_ACEOF
4979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 ac_status=$?
4982 egrep -v '^ *\+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4989 else
4990 ac_cpp_err=
4991 fi
4992else
4993 ac_cpp_err=yes
4994fi
4995if test -z "$ac_cpp_err"; then
4996 :
4997else
4998 echo "$as_me: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 # Broken: fails on valid input.
5001continue
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004
5005 # OK, works on sane cases. Now check whether non-existent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5008#line $LINENO "configure"
5009#include "confdefs.h"
5010#include <ac_nonexistent.h>
5011_ACEOF
5012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5014 ac_status=$?
5015 egrep -v '^ *\+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null; then
5020 if test -s conftest.err; then
5021 ac_cpp_err=$ac_cxx_preproc_warn_flag
5022 else
5023 ac_cpp_err=
5024 fi
5025else
5026 ac_cpp_err=yes
5027fi
5028if test -z "$ac_cpp_err"; then
5029 # Broken: success on invalid input.
5030continue
5031else
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 # Passes both tests.
5035ac_preproc_ok=:
5036break
5037fi
5038rm -f conftest.err conftest.$ac_ext
5039
5040done
5041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042rm -f conftest.err conftest.$ac_ext
5043if $ac_preproc_ok; then
5044 :
5045else
5046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
5047echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
5048 { (exit 1); exit 1; }; }
5049fi
5050
5051ac_ext=cc
5052ac_cpp='$CXXCPP $CPPFLAGS'
5053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5056
5057
5058# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5059
5060# find the maximum length of command line arguments
5061echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5062echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5063if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 i=0
5067 testring="ABCD"
5068
5069 case $host_os in
5070 msdosdjgpp*)
5071 # On DJGPP, this test can blow up pretty badly due to problems in libc
5072 # (any single argument exceeding 2000 bytes causes a buffer overrun
5073 # during glob expansion). Even if it were fixed, the result of this
5074 # check would be larger than it should be.
5075 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5076 ;;
5077
5078 gnu*)
5079 # Under GNU Hurd, this test is not required because there is
5080 # no limit to the length of command line arguments.
5081 # Libtool will interpret -1 as no limit whatsoever
5082 lt_cv_sys_max_cmd_len=-1;
5083 ;;
5084
5085 *)
5086 # If test is not a shell built-in, we'll probably end up computing a
5087 # maximum length that is only half of the actual maximum length, but
5088 # we can't tell.
5089 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5090 = "XX$testring") >/dev/null 2>&1 &&
5091 new_result=`expr "X$testring" : ".*" 2>&1` &&
5092 lt_cv_sys_max_cmd_len=$new_result &&
5093 test $i != 17 # 1/2 MB should be enough
5094 do
5095 i=`expr $i + 1`
5096 testring=$testring$testring
5097 done
5098 testring=
5099 # Add a significant safety factor because C++ compilers can tack on massive
5100 # amounts of additional arguments before passing them to the linker.
5101 # It appears as though 1/2 is a usable value.
5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5103 ;;
5104 esac
5105
5106fi
5107
5108if test -n $lt_cv_sys_max_cmd_len ; then
5109 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5110echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5111else
5112 echo "$as_me:$LINENO: result: none" >&5
5113echo "${ECHO_T}none" >&6
5114fi
5115
5116
5117
5118
5119# Check for command to grab the raw symbol name followed by C symbol from nm.
5120echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5121echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5122if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125
5126# These are sane defaults that work on at least a few old systems.
5127# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5128
5129# Character class describing NM global symbol codes.
5130symcode='[BCDEGRST]'
5131
5132# Regexp to match symbols that can be accessed directly from C.
5133sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5134
5135# Transform the above into a raw symbol and a C symbol.
5136symxfrm='\1 \2\3 \3'
5137
5138# Transform an extracted symbol line into a proper C declaration
5139lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5140
5141# Transform an extracted symbol line into symbol name and symbol address
5142lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5143
5144# Define system-specific variables.
5145case $host_os in
5146aix*)
5147 symcode='[BCDT]'
5148 ;;
5149cygwin* | mingw* | pw32*)
5150 symcode='[ABCDGISTW]'
5151 ;;
5152hpux*) # Its linker distinguishes data from code symbols
5153 if test "$host_cpu" = ia64; then
5154 symcode='[ABCDEGRST]'
5155 fi
5156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5157 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5158 ;;
5159irix* | nonstopux*)
5160 symcode='[BCDEGRST]'
5161 ;;
5162solaris* | sysv5*)
5163 symcode='[BDT]'
5164 ;;
5165sysv4)
5166 symcode='[DFNSTU]'
5167 ;;
5168esac
5169
5170# Handle CRLF in mingw tool chain
5171opt_cr=
5172case $host_os in
5173mingw*)
5174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5175 ;;
5176esac
5177
5178# If we're using GNU nm, then use its standard symbol codes.
5179if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5180 symcode='[ABCDGISTW]'
5181fi
5182
5183# Try without a prefix undercore, then with it.
5184for ac_symprfx in "" "_"; do
5185
5186 # Write the raw and C identifiers.
5187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5188
5189 # Check to see that the pipe works correctly.
5190 pipe_works=no
5191
5192 rm -f conftest*
5193 cat > conftest.$ac_ext <<EOF
5194#ifdef __cplusplus
5195extern "C" {
5196#endif
5197char nm_test_var;
5198void nm_test_func(){}
5199#ifdef __cplusplus
5200}
5201#endif
5202int main(){nm_test_var='a';nm_test_func();return(0);}
5203EOF
5204
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 # Now try to grab the symbols.
5211 nlist=conftest.nm
5212 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && test -s "$nlist"; then
5217 # Try sorting and uniquifying the output.
5218 if sort "$nlist" | uniq > "$nlist"T; then
5219 mv -f "$nlist"T "$nlist"
5220 else
5221 rm -f "$nlist"T
5222 fi
5223
5224 # Make sure that we snagged all the symbols we need.
5225 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5226 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5227 cat <<EOF > conftest.$ac_ext
5228#ifdef __cplusplus
5229extern "C" {
5230#endif
5231
5232EOF
5233 # Now generate the symbol file.
5234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5235
5236 cat <<EOF >> conftest.$ac_ext
5237#if defined (__STDC__) && __STDC__
5238# define lt_ptr_t void *
5239#else
5240# define lt_ptr_t char *
5241# define const
5242#endif
5243
5244/* The mapping between symbol names and symbols. */
5245const struct {
5246 const char *name;
5247 lt_ptr_t address;
5248}
5249lt_preloaded_symbols[] =
5250{
5251EOF
5252 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5253 cat <<\EOF >> conftest.$ac_ext
5254 {0, (lt_ptr_t) 0}
5255};
5256
5257#ifdef __cplusplus
5258}
5259#endif
5260EOF
5261 # Now try linking the two files.
5262 mv conftest.$ac_objext conftstm.$ac_objext
5263 lt_save_LIBS="$LIBS"
5264 lt_save_CFLAGS="$CFLAGS"
5265 LIBS="conftstm.$ac_objext"
5266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5272 pipe_works=yes
5273 fi
5274 LIBS="$lt_save_LIBS"
5275 CFLAGS="$lt_save_CFLAGS"
5276 else
5277 echo "cannot find nm_test_func in $nlist" >&5
5278 fi
5279 else
5280 echo "cannot find nm_test_var in $nlist" >&5
5281 fi
5282 else
5283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5284 fi
5285 else
5286 echo "$progname: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 fi
5289 rm -f conftest* conftst*
5290
5291 # Do not use the global_symbol_pipe unless it works.
5292 if test "$pipe_works" = yes; then
5293 break
5294 else
5295 lt_cv_sys_global_symbol_pipe=
5296 fi
5297done
5298
5299fi
5300
5301if test -z "$lt_cv_sys_global_symbol_pipe"; then
5302 lt_cv_sys_global_symbol_to_cdecl=
5303fi
5304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5305 echo "$as_me:$LINENO: result: failed" >&5
5306echo "${ECHO_T}failed" >&6
5307else
5308 echo "$as_me:$LINENO: result: ok" >&5
5309echo "${ECHO_T}ok" >&6
5310fi
5311
5312echo "$as_me:$LINENO: checking for objdir" >&5
5313echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5314if test "${lt_cv_objdir+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 rm -f .libs 2>/dev/null
5318mkdir .libs 2>/dev/null
5319if test -d .libs; then
5320 lt_cv_objdir=.libs
5321else
5322 # MS-DOS does not allow filenames that begin with a dot.
5323 lt_cv_objdir=_libs
5324fi
5325rmdir .libs 2>/dev/null
5326fi
5327echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5328echo "${ECHO_T}$lt_cv_objdir" >&6
5329objdir=$lt_cv_objdir
5330
5331
5332
5333
5334
5335case $host_os in
5336aix3*)
5337 # AIX sometimes has problems with the GCC collect2 program. For some
5338 # reason, if we set the COLLECT_NAMES environment variable, the problems
5339 # vanish in a puff of smoke.
5340 if test "X${COLLECT_NAMES+set}" != Xset; then
5341 COLLECT_NAMES=
5342 export COLLECT_NAMES
5343 fi
5344 ;;
5345esac
5346
5347# Sed substitution that helps us do robust quoting. It backslashifies
5348# metacharacters that are still active within double-quoted strings.
5349Xsed='sed -e s/^X//'
5350sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5351
5352# Same as above, but do not quote variable references.
5353double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5354
5355# Sed substitution to delay expansion of an escaped shell variable in a
5356# double_quote_subst'ed string.
5357delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5358
5359# Sed substitution to avoid accidental globbing in evaled expressions
5360no_glob_subst='s/\*/\\\*/g'
5361
5362# Constants:
5363rm="rm -f"
5364
5365# Global variables:
5366default_ofile=libtool
5367can_build_shared=yes
5368
5369# All known linkers require a `.a' archive for static linking (except M$VC,
5370# which needs '.lib').
5371libext=a
5372ltmain="$ac_aux_dir/ltmain.sh"
5373ofile="$default_ofile"
5374with_gnu_ld="$lt_cv_prog_gnu_ld"
5375
5376if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5379echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381if test "${ac_cv_prog_RANLIB+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 if test -n "$RANLIB"; then
5385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398done
5399done
5400
5401fi
5402fi
5403RANLIB=$ac_cv_prog_RANLIB
5404if test -n "$RANLIB"; then
5405 echo "$as_me:$LINENO: result: $RANLIB" >&5
5406echo "${ECHO_T}$RANLIB" >&6
5407else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410fi
5411
5412fi
5413if test -z "$ac_cv_prog_RANLIB"; then
5414 ac_ct_RANLIB=$RANLIB
5415 # Extract the first word of "ranlib", so it can be a program name with args.
5416set dummy ranlib; ac_word=$2
5417echo "$as_me:$LINENO: checking for $ac_word" >&5
5418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 if test -n "$ac_ct_RANLIB"; then
5423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5424else
5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_ac_ct_RANLIB="ranlib"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
5436done
5437done
5438
5439 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5440fi
5441fi
5442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5443if test -n "$ac_ct_RANLIB"; then
5444 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5445echo "${ECHO_T}$ac_ct_RANLIB" >&6
5446else
5447 echo "$as_me:$LINENO: result: no" >&5
5448echo "${ECHO_T}no" >&6
5449fi
5450
5451 RANLIB=$ac_ct_RANLIB
5452else
5453 RANLIB="$ac_cv_prog_RANLIB"
5454fi
5455
5456if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5458set dummy ${ac_tool_prefix}strip; ac_word=$2
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461if test "${ac_cv_prog_STRIP+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 if test -n "$STRIP"; then
5465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478done
5479done
5480
5481fi
5482fi
5483STRIP=$ac_cv_prog_STRIP
5484if test -n "$STRIP"; then
5485 echo "$as_me:$LINENO: result: $STRIP" >&5
5486echo "${ECHO_T}$STRIP" >&6
5487else
5488 echo "$as_me:$LINENO: result: no" >&5
5489echo "${ECHO_T}no" >&6
5490fi
5491
5492fi
5493if test -z "$ac_cv_prog_STRIP"; then
5494 ac_ct_STRIP=$STRIP
5495 # Extract the first word of "strip", so it can be a program name with args.
5496set dummy strip; ac_word=$2
5497echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 if test -n "$ac_ct_STRIP"; then
5503 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_STRIP="strip"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518
5519 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5520fi
5521fi
5522ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5523if test -n "$ac_ct_STRIP"; then
5524 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5525echo "${ECHO_T}$ac_ct_STRIP" >&6
5526else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529fi
5530
5531 STRIP=$ac_ct_STRIP
5532else
5533 STRIP="$ac_cv_prog_STRIP"
5534fi
5535
5536
5537old_CC="$CC"
5538old_CFLAGS="$CFLAGS"
5539
5540# Set sane defaults for various variables
5541test -z "$AR" && AR=ar
5542test -z "$AR_FLAGS" && AR_FLAGS=cru
5543test -z "$AS" && AS=as
5544test -z "$CC" && CC=cc
5545test -z "$LTCC" && LTCC=$CC
5546test -z "$DLLTOOL" && DLLTOOL=dlltool
5547test -z "$LD" && LD=ld
5548test -z "$LN_S" && LN_S="ln -s"
5549test -z "$MAGIC_CMD" && MAGIC_CMD=file
5550test -z "$NM" && NM=nm
5551test -z "$SED" && SED=sed
5552test -z "$OBJDUMP" && OBJDUMP=objdump
5553test -z "$RANLIB" && RANLIB=:
5554test -z "$STRIP" && STRIP=:
5555test -z "$ac_objext" && ac_objext=o
5556
5557# Determine commands to create old-style static archives.
5558old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5559old_postinstall_cmds='chmod 644 $oldlib'
5560old_postuninstall_cmds=
5561
5562if test -n "$RANLIB"; then
5563 case $host_os in
5564 openbsd*)
5565 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5566 ;;
5567 *)
5568 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5569 ;;
5570 esac
5571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5572fi
5573
5574# Only perform the check for file, if the check method requires it
5575case $deplibs_check_method in
5576file_magic*)
5577 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5578 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5579echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5580if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 case $MAGIC_CMD in
5584[\\/*] | ?:[\\/]*)
5585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5586 ;;
5587*)
5588 lt_save_MAGIC_CMD="$MAGIC_CMD"
5589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5591 for ac_dir in $ac_dummy; do
5592 IFS="$lt_save_ifs"
5593 test -z "$ac_dir" && ac_dir=.
5594 if test -f $ac_dir/${ac_tool_prefix}file; then
5595 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5596 if test -n "$file_magic_test_file"; then
5597 case $deplibs_check_method in
5598 "file_magic "*)
5599 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5602 egrep "$file_magic_regex" > /dev/null; then
5603 :
5604 else
5605 cat <<EOF 1>&2
5606
5607*** Warning: the command libtool uses to detect shared libraries,
5608*** $file_magic_cmd, produces output that libtool cannot recognize.
5609*** The result is that libtool may fail to recognize shared libraries
5610*** as such. This will affect the creation of libtool libraries that
5611*** depend on shared libraries, but programs linked with such libtool
5612*** libraries will work regardless of this problem. Nevertheless, you
5613*** may want to report the problem to your system manager and/or to
5614*** bug-libtool@gnu.org
5615
5616EOF
5617 fi ;;
5618 esac
5619 fi
5620 break
5621 fi
5622 done
5623 IFS="$lt_save_ifs"
5624 MAGIC_CMD="$lt_save_MAGIC_CMD"
5625 ;;
5626esac
5627fi
5628
5629MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5630if test -n "$MAGIC_CMD"; then
5631 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5632echo "${ECHO_T}$MAGIC_CMD" >&6
5633else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638if test -z "$lt_cv_path_MAGIC_CMD"; then
5639 if test -n "$ac_tool_prefix"; then
5640 echo "$as_me:$LINENO: checking for file" >&5
5641echo $ECHO_N "checking for file... $ECHO_C" >&6
5642if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 case $MAGIC_CMD in
5646[\\/*] | ?:[\\/]*)
5647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5648 ;;
5649*)
5650 lt_save_MAGIC_CMD="$MAGIC_CMD"
5651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5653 for ac_dir in $ac_dummy; do
5654 IFS="$lt_save_ifs"
5655 test -z "$ac_dir" && ac_dir=.
5656 if test -f $ac_dir/file; then
5657 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5658 if test -n "$file_magic_test_file"; then
5659 case $deplibs_check_method in
5660 "file_magic "*)
5661 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5664 egrep "$file_magic_regex" > /dev/null; then
5665 :
5666 else
5667 cat <<EOF 1>&2
5668
5669*** Warning: the command libtool uses to detect shared libraries,
5670*** $file_magic_cmd, produces output that libtool cannot recognize.
5671*** The result is that libtool may fail to recognize shared libraries
5672*** as such. This will affect the creation of libtool libraries that
5673*** depend on shared libraries, but programs linked with such libtool
5674*** libraries will work regardless of this problem. Nevertheless, you
5675*** may want to report the problem to your system manager and/or to
5676*** bug-libtool@gnu.org
5677
5678EOF
5679 fi ;;
5680 esac
5681 fi
5682 break
5683 fi
5684 done
5685 IFS="$lt_save_ifs"
5686 MAGIC_CMD="$lt_save_MAGIC_CMD"
5687 ;;
5688esac
5689fi
5690
5691MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5692if test -n "$MAGIC_CMD"; then
5693 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5694echo "${ECHO_T}$MAGIC_CMD" >&6
5695else
5696 echo "$as_me:$LINENO: result: no" >&5
5697echo "${ECHO_T}no" >&6
5698fi
5699
5700 else
5701 MAGIC_CMD=:
5702 fi
5703fi
5704
5705 fi
5706 ;;
5707esac
5708
5709enable_dlopen=no
5710enable_win32_dll=no
5711
5712# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5713if test "${enable_libtool_lock+set}" = set; then
5714 enableval="$enable_libtool_lock"
5715
5716fi;
5717test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5718
5719
5720# Check whether --with-pic or --without-pic was given.
5721if test "${with_pic+set}" = set; then
5722 withval="$with_pic"
5723 pic_mode="$withval"
5724else
5725 pic_mode=default
5726fi;
5727test -z "$pic_mode" && pic_mode=default
5728
5729# Use C for the default configuration in the libtool script
5730tagname=
5731lt_save_CC="$CC"
5732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737
5738
5739# Source file extension for C test sources.
5740ac_ext=c
5741
5742# Object file extension for compiled C test sources.
5743objext=o
5744objext=$objext
5745
5746# Code to be used in simple compile tests
5747lt_simple_compile_test_code="int some_variable = 0;"
5748
5749# Code to be used in simple link tests
5750lt_simple_link_test_code='main(){return(0);}'
5751
5752
5753# If no C compiler was specified, use CC.
5754LTCC=${LTCC-"$CC"}
5755
5756# Allow CC to be a program name with arguments.
5757set dummy $CC
5758compiler="$2"
5759
5760
5761#
5762# Check for any special shared library compilation flags.
5763#
5764lt_prog_cc_shlib=
5765if test "$GCC" = no; then
5766 case $host_os in
5767 sco3.2v5*)
5768 lt_prog_cc_shlib='-belf'
5769 ;;
5770 esac
5771fi
5772if test -n "$lt_prog_cc_shlib"; then
5773 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5774echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5775 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5776 else
5777 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5778echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5779 lt_cv_prog_cc_can_build_shared=no
5780 fi
5781fi
5782
5783
5784#
5785# Check to make sure the static flag actually works.
5786#
5787echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5788echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5789if test "${lt_prog_compiler_static_works+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 lt_prog_compiler_static_works=no
5793 save_LDFLAGS="$LDFLAGS"
5794 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5797 # The compiler can only warn and ignore the option if not recognized
5798 # So say no if there are warnings
5799 if test -s conftest.err; then
5800 # Append any errors to the config.log.
5801 cat conftest.err 1>&5
5802 else
5803 lt_prog_compiler_static_works=yes
5804 fi
5805 fi
5806 $rm conftest*
5807 LDFLAGS="$save_LDFLAGS"
5808
5809fi
5810echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5811echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5812
5813if test x"$lt_prog_compiler_static_works" = xyes; then
5814 :
5815else
5816 lt_prog_compiler_static=
5817fi
5818
5819
5820
5821
5822lt_prog_compiler_no_builtin_flag=
5823
5824if test "$GCC" = yes; then
5825 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5826
5827 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5828echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5829if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 lt_cv_prog_compiler_rtti_exceptions=no
5833 ac_outfile=conftest.$ac_objext
5834 save_CFLAGS="$CFLAGS"
5835 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5837 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5838 # The compiler can only warn and ignore the option if not recognized
5839 # So say no if there are warnings
5840 if test -s conftest.err; then
5841 # Append any errors to the config.log.
5842 cat conftest.err 1>&5
5843 else
5844 lt_cv_prog_compiler_rtti_exceptions=yes
5845 fi
5846 fi
5847 $rm conftest*
5848 CFLAGS="$save_CFLAGS"
5849
5850fi
5851echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5852echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5853
5854if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5856else
5857 :
5858fi
5859
5860fi
5861
5862lt_prog_compiler_wl=
5863lt_prog_compiler_pic=
5864lt_prog_compiler_static=
5865
5866echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5868
5869 if test "$GCC" = yes; then
5870 lt_prog_compiler_wl='-Wl,'
5871 lt_prog_compiler_static='-static'
5872
5873 case $host_os in
5874 aix*)
5875 # All AIX code is PIC.
5876 if test "$host_cpu" = ia64; then
5877 # AIX 5 now supports IA64 processor
5878 lt_prog_compiler_static='-Bstatic'
5879 fi
5880 ;;
5881
5882 amigaos*)
5883 # FIXME: we need at least 68020 code to build shared libraries, but
5884 # adding the `-m68020' flag to GCC prevents building anything better,
5885 # like `-m68040'.
5886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5887 ;;
5888
5889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5890 # PIC is the default for these OSes.
5891 ;;
5892
5893 cygwin* | mingw* | pw32* | os2*)
5894 # This hack is so that the source file can tell whether it is being
5895 # built for inclusion in a dll (and should export symbols for example).
5896 lt_prog_compiler_pic='-DDLL_EXPORT'
5897 ;;
5898
5899 darwin* | rhapsody*)
5900 # PIC is the default on this platform
5901 # Common symbols not allowed in MH_DYLIB files
5902 lt_prog_compiler_pic='-fno-common'
5903 ;;
5904
5905 msdosdjgpp*)
5906 # Just because we use GCC doesn't mean we suddenly get shared libraries
5907 # on systems that don't support them.
5908 lt_prog_compiler_can_build_shared=no
5909 enable_shared=no
5910 ;;
5911
5912 sysv4*MP*)
5913 if test -d /usr/nec; then
5914 lt_prog_compiler_pic=-Kconform_pic
5915 fi
5916 ;;
5917
5918 hpux*)
5919 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5920 if test "$host_cpu" != ia64; then
5921 lt_prog_compiler_pic='-fPIC'
5922 fi
5923 ;;
5924
5925 *)
5926 lt_prog_compiler_pic='-fPIC'
5927 ;;
5928 esac
5929 else
5930 # PORTME Check for flag to pass linker flags through the system compiler.
5931 case $host_os in
5932 aix*)
5933 lt_prog_compiler_wl='-Wl,'
5934 if test "$host_cpu" = ia64; then
5935 # AIX 5 now supports IA64 processor
5936 lt_prog_compiler_static='-Bstatic'
5937 else
5938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5939 fi
5940 ;;
5941
5942 cygwin* | mingw* | pw32* | os2*)
5943 # This hack is so that the source file can tell whether it is being
5944 # built for inclusion in a dll (and should export symbols for example).
5945 lt_prog_compiler_pic='-DDLL_EXPORT'
5946 ;;
5947
5948 hpux9* | hpux10* | hpux11*)
5949 lt_prog_compiler_wl='-Wl,'
5950 if test "$host_cpu" != ia64; then
5951 lt_prog_compiler_pic='+Z'
5952 fi
5953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5954 lt_prog_compiler_static='${wl}-a ${wl}archive'
5955 ;;
5956
5957 irix5* | irix6* | nonstopux*)
5958 lt_prog_compiler_wl='-Wl,'
5959 # PIC (with -KPIC) is the default.
5960 lt_prog_compiler_static='-non_shared'
5961 ;;
5962
5963 newsos6)
5964 lt_prog_compiler_pic='-KPIC'
5965 lt_prog_compiler_static='-Bstatic'
5966 ;;
5967
5968 osf3* | osf4* | osf5*)
5969 lt_prog_compiler_wl='-Wl,'
5970 # All OSF/1 code is PIC.
5971 lt_prog_compiler_static='-non_shared'
5972 ;;
5973
5974 sco3.2v5*)
5975 lt_prog_compiler_pic='-Kpic'
5976 lt_prog_compiler_static='-dn'
5977 ;;
5978
5979 solaris*)
5980 lt_prog_compiler_wl='-Wl,'
5981 lt_prog_compiler_pic='-KPIC'
5982 lt_prog_compiler_static='-Bstatic'
5983 ;;
5984
5985 sunos4*)
5986 lt_prog_compiler_wl='-Qoption ld '
5987 lt_prog_compiler_pic='-PIC'
5988 lt_prog_compiler_static='-Bstatic'
5989 ;;
5990
5991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5992 if test "x$host_vendor" = xsni; then
5993 lt_prog_compiler_wl='-LD'
5994 else
5995 lt_prog_compiler_wl='-Wl,'
5996 fi
5997 lt_prog_compiler_pic='-KPIC'
5998 lt_prog_compiler_static='-Bstatic'
5999 ;;
6000
6001 sysv4*MP*)
6002 if test -d /usr/nec ;then
6003 lt_prog_compiler_pic='-Kconform_pic'
6004 lt_prog_compiler_static='-Bstatic'
6005 fi
6006 ;;
6007
6008 uts4*)
6009 lt_prog_compiler_pic='-pic'
6010 lt_prog_compiler_static='-Bstatic'
6011 ;;
6012
6013 *)
6014 lt_prog_compiler_can_build_shared=no
6015 ;;
6016 esac
6017 fi
6018
6019echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6020echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6021
6022#
6023# Check to make sure the PIC flag actually works.
6024#
6025if test -n "$lt_prog_compiler_pic"; then
6026 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6027echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6028if test "${lt_prog_compiler_pic_works+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031 lt_prog_compiler_pic_works=no
6032 ac_outfile=conftest.$ac_objext
6033 save_CFLAGS="$CFLAGS"
6034 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6036 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6037 # The compiler can only warn and ignore the option if not recognized
6038 # So say no if there are warnings
6039 if test -s conftest.err; then
6040 # Append any errors to the config.log.
6041 cat conftest.err 1>&5
6042 else
6043 lt_prog_compiler_pic_works=yes
6044 fi
6045 fi
6046 $rm conftest*
6047 CFLAGS="$save_CFLAGS"
6048
6049fi
6050echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6051echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6052
6053if test x"$lt_prog_compiler_pic_works" = xyes; then
6054 case $lt_prog_compiler_pic in
6055 "" | " "*) ;;
6056 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6057 esac
6058else
6059 lt_prog_compiler_pic=
6060 lt_prog_compiler_can_build_shared=no
6061fi
6062
6063fi
6064case "$host_os" in
6065 # For platforms which do not support PIC, -DPIC is meaningless:
6066 *djgpp*)
6067 lt_prog_compiler_pic=
6068 ;;
6069 *)
6070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6071 ;;
6072esac
6073
6074echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6075echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6076if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079 lt_cv_prog_compiler_c_o=no
6080 $rm -r conftest 2>/dev/null
6081 mkdir conftest
6082 cd conftest
6083 mkdir out
6084 save_CFLAGS="$CFLAGS"
6085 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6087
6088 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6089 # that will create temporary files in the current directory regardless of
6090 # the output directory. Thus, making CWD read-only will cause this test
6091 # to fail, enabling locking or at least warning the user not to do parallel
6092 # builds.
6093 chmod -w .
6094
6095 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6096 then
6097 # The compiler can only warn and ignore the option if not recognized
6098 # So say no if there are warnings
6099 if test -s out/conftest.err; then
6100 # Append any errors to the config.log.
6101 cat out/conftest.err 1>&5
6102 else
6103 lt_cv_prog_compiler_c_o=yes
6104 fi
6105 fi
6106 CFLAGS="$save_CFLAGS"
6107 chmod u+w .
6108 $rm conftest* out/*
6109 rmdir out
6110 cd ..
6111 rmdir conftest
6112 $rm conftest*
6113
6114fi
6115echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6116echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6117
6118
6119hard_links="nottested"
6120if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6121 # do not overwrite the value of need_locks provided by the user
6122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6123echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6124 hard_links=yes
6125 $rm conftest*
6126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6127 touch conftest.a
6128 ln conftest.a conftest.b 2>&5 || hard_links=no
6129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6130 echo "$as_me:$LINENO: result: $hard_links" >&5
6131echo "${ECHO_T}$hard_links" >&6
6132 if test "$hard_links" = no; then
6133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6134echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6135 need_locks=warn
6136 fi
6137else
6138 need_locks=no
6139fi
6140
6141echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6142echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6143
6144 runpath_var=
6145 allow_undefined_flag=
6146
6147 archive_cmds=
6148 archive_cmds_need_lc=
6149 archive_expsym_cmds=
6150 old_archive_From_new_cmds=
6151 old_archive_from_expsyms_cmds=
6152 export_dynamic_flag_spec=
6153 whole_archive_flag_spec=
6154 thread_safe_flag_spec=
6155 hardcode_libdir_flag_spec=
6156 hardcode_libdir_separator=
6157 hardcode_direct=no
6158 hardcode_minus_L=no
6159 hardcode_shlibpath_var=unsupported
6160 link_all_deplibs=unknown
6161 always_export_symbols=no
6162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6163 # include_expsyms should be a list of space-separated symbols to be *always*
6164 # included in the symbol list
6165 include_expsyms=
6166 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6169 # as well as any symbol that contains `d'.
6170 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6172 # platforms (ab)use it in PIC code, but their linkers get confused if
6173 # the symbol is explicitly referenced. Since portable code cannot
6174 # rely on this symbol name, it's probably fine to never include it in
6175 # preloaded symbol tables.
6176 extract_expsyms_cmds=
6177
6178 case $host_os in
6179 cygwin* | mingw* | pw32*)
6180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6181 # When not using gcc, we currently assume that we are using
6182 # Microsoft Visual C++.
6183 if test "$GCC" != yes; then
6184 with_gnu_ld=no
6185 fi
6186 ;;
6187 openbsd*)
6188 with_gnu_ld=no
6189 ;;
6190 esac
6191
6192 ld_shlibs=yes
6193 if test "$with_gnu_ld" = yes; then
6194 # If archive_cmds runs LD, not CC, wlarc should be empty
6195 wlarc='${wl}'
6196
6197 # See if GNU ld supports shared libraries.
6198 case $host_os in
6199 aix3* | aix4* | aix5*)
6200 # On AIX/PPC, the GNU linker is very broken
6201 if test "$host_cpu" != ia64; then
6202 ld_shlibs=no
6203 cat <<EOF 1>&2
6204
6205*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6206*** to be unable to reliably create shared libraries on AIX.
6207*** Therefore, libtool is disabling shared libraries support. If you
6208*** really care for shared libraries, you may want to modify your PATH
6209*** so that a non-GNU linker is found, and then restart.
6210
6211EOF
6212 fi
6213 ;;
6214
6215 amigaos*)
6216 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)'
6217 hardcode_libdir_flag_spec='-L$libdir'
6218 hardcode_minus_L=yes
6219
6220 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6221 # that the semantics of dynamic libraries on AmigaOS, at least up
6222 # to version 4, is to share data among multiple programs linked
6223 # with the same dynamic library. Since this doesn't match the
6224 # behavior of shared libraries on other platforms, we can't use
6225 # them.
6226 ld_shlibs=no
6227 ;;
6228
6229 beos*)
6230 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6231 allow_undefined_flag=unsupported
6232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6233 # support --undefined. This deserves some investigation. FIXME
6234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6235 else
6236 ld_shlibs=no
6237 fi
6238 ;;
6239
6240 cygwin* | mingw* | pw32*)
6241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6242 # no search path for DLLs.
6243 hardcode_libdir_flag_spec='-L$libdir'
6244 allow_undefined_flag=unsupported
6245 always_export_symbols=yes
6246
6247 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6248 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6249 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6250 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6251 else $CC -o impgen impgen.c ; fi)~
6252 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6253
6254 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6255
6256 # cygwin and mingw dlls have different entry points and sets of symbols
6257 # to exclude.
6258 # FIXME: what about values for MSVC?
6259 dll_entry=__cygwin_dll_entry@12
6260 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6261 case $host_os in
6262 mingw*)
6263 # mingw values
6264 dll_entry=_DllMainCRTStartup@12
6265 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6266 ;;
6267 esac
6268
6269 # mingw and cygwin differ, and it's simplest to just exclude the union
6270 # of the two symbol sets.
6271 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6272
6273 # recent cygwin and mingw systems supply a stub DllMain which the user
6274 # can override, but on older systems we have to supply one (in ltdll.c)
6275 if test "x$lt_cv_need_dllmain" = "xyes"; then
6276 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6277 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~
6278 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6279 else
6280 ltdll_obj=
6281 ltdll_cmds=
6282 fi
6283
6284 # Extract the symbol export list from an `--export-all' def file,
6285 # then regenerate the def file from the symbol export list, so that
6286 # the compiled dll only exports the symbol export list.
6287 # Be careful not to strip the DATA tag left by newer dlltools.
6288 export_symbols_cmds="$ltdll_cmds"'
6289 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6290 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6291
6292 # If the export-symbols file already is a .def file (1st line
6293 # is EXPORTS), use it as is.
6294 # If DATA tags from a recent dlltool are present, honour them!
6295 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6296 cp $export_symbols $output_objdir/$soname-def;
6297 else
6298 echo EXPORTS > $output_objdir/$soname-def;
6299 _lt_hint=1;
6300 cat $export_symbols | while read symbol; do
6301 set dummy \$symbol;
6302 case \$# in
6303 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6304 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6305 esac;
6306 _lt_hint=`expr 1 + \$_lt_hint`;
6307 done;
6308 fi~
6309 '"$ltdll_cmds"'
6310 $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~
6311 $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~
6312 $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~
6313 $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~
6314 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6315 ;;
6316
6317 netbsd*)
6318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6320 wlarc=
6321 else
6322 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6323 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6324 fi
6325 ;;
6326
6327 solaris* | sysv5*)
6328 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6329 ld_shlibs=no
6330 cat <<EOF 1>&2
6331
6332*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6333*** create shared libraries on Solaris systems. Therefore, libtool
6334*** is disabling shared libraries support. We urge you to upgrade GNU
6335*** binutils to release 2.9.1 or newer. Another option is to modify
6336*** your PATH or compiler configuration so that the native linker is
6337*** used, and then restart.
6338
6339EOF
6340 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6343 else
6344 ld_shlibs=no
6345 fi
6346 ;;
6347
6348 sunos4*)
6349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6350 wlarc=
6351 hardcode_direct=yes
6352 hardcode_shlibpath_var=no
6353 ;;
6354
6355 *)
6356 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6359 else
6360 ld_shlibs=no
6361 fi
6362 ;;
6363 esac
6364
6365 if test "$ld_shlibs" = yes; then
6366 runpath_var=LD_RUN_PATH
6367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6368 export_dynamic_flag_spec='${wl}--export-dynamic'
6369 case $host_os in
6370 cygwin* | mingw* | pw32*)
6371 # dlltool doesn't understand --whole-archive et. al.
6372 whole_archive_flag_spec=
6373 ;;
6374 *)
6375 # ancient GNU ld didn't support --whole-archive et. al.
6376 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6378 else
6379 whole_archive_flag_spec=
6380 fi
6381 ;;
6382 esac
6383 fi
6384 else
6385 # PORTME fill in a description of your system's linker (not GNU ld)
6386 case $host_os in
6387 aix3*)
6388 allow_undefined_flag=unsupported
6389 always_export_symbols=yes
6390 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'
6391 # Note: this linker hardcodes the directories in LIBPATH if there
6392 # are no directories specified by -L.
6393 hardcode_minus_L=yes
6394 if test "$GCC" = yes && test -z "$link_static_flag"; then
6395 # Neither direct hardcoding nor static linking is supported with a
6396 # broken collect2.
6397 hardcode_direct=unsupported
6398 fi
6399 ;;
6400
6401 aix4* | aix5*)
6402 if test "$host_cpu" = ia64; then
6403 # On IA64, the linker does run time linking by default, so we don't
6404 # have to do anything special.
6405 aix_use_runtimelinking=no
6406 exp_sym_flag='-Bexport'
6407 no_entry_flag=""
6408 else
6409 # If we're using GNU nm, then we don't want the "-C" option.
6410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6411 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6412 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6413 else
6414 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6415 fi
6416
6417 # KDE requires run time linking. Make it the default.
6418 aix_use_runtimelinking=yes
6419 exp_sym_flag='-bexport'
6420 no_entry_flag='-bnoentry'
6421 fi
6422
6423 # When large executables or shared objects are built, AIX ld can
6424 # have problems creating the table of contents. If linking a library
6425 # or program results in "error TOC overflow" add -mminimal-toc to
6426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6428
6429 archive_cmds=''
6430 hardcode_direct=yes
6431 hardcode_libdir_separator=':'
6432 link_all_deplibs=yes
6433
6434 if test "$GCC" = yes; then
6435 case $host_os in aix4.012|aix4.012.*)
6436 # We only want to do this on AIX 4.2 and lower, the check
6437 # below for broken collect2 doesn't work under 4.3+
6438 collect2name=`${CC} -print-prog-name=collect2`
6439 if test -f "$collect2name" && \
6440 strings "$collect2name" | grep resolve_lib_name >/dev/null
6441 then
6442 # We have reworked collect2
6443 hardcode_direct=yes
6444 else
6445 # We have old collect2
6446 hardcode_direct=unsupported
6447 # It fails to find uninstalled libraries when the uninstalled
6448 # path is not listed in the libpath. Setting hardcode_minus_L
6449 # to unsupported forces relinking
6450 hardcode_minus_L=yes
6451 hardcode_libdir_flag_spec='-L$libdir'
6452 hardcode_libdir_separator=
6453 fi
6454 esac
6455 shared_flag='-shared'
6456 else
6457 # not using gcc
6458 if test "$host_cpu" = ia64; then
6459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6460 # chokes on -Wl,-G. The following line is correct:
6461 shared_flag='-G'
6462 else
6463 if test "$aix_use_runtimelinking" = yes; then
6464 shared_flag='-qmkshrobj ${wl}-G'
6465 else
6466 shared_flag='-qmkshrobj'
6467 fi
6468 fi
6469 fi
6470
6471 # Let the compiler handle the export list.
6472 always_export_symbols=no
6473 if test "$aix_use_runtimelinking" = yes; then
6474 # Warning - without using the other runtime loading flags (-brtl),
6475 # -berok will link without error, but may produce a broken library.
6476 allow_undefined_flag='-berok'
6477 # Determine the default libpath from the value encoded in an empty executable.
6478 cat >conftest.$ac_ext <<_ACEOF
6479#line $LINENO "configure"
6480#include "confdefs.h"
6481
6482#ifdef F77_DUMMY_MAIN
6483# ifdef __cplusplus
6484 extern "C"
6485# endif
6486 int F77_DUMMY_MAIN() { return 1; }
6487#endif
6488int
6489main ()
6490{
6491
6492 ;
6493 return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
6497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508
6509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6510}'`
6511# Check for a 64-bit object if we didn't find anything.
6512if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6513}'`; fi
6514else
6515 echo "$as_me: failed program was:" >&5
6516cat conftest.$ac_ext >&5
6517fi
6518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6520
6521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6522 archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
6523 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6524 else
6525 if test "$host_cpu" = ia64; then
6526 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6527 allow_undefined_flag="-z nodefs"
6528 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6529 else
6530 # Determine the default libpath from the value encoded in an empty executable.
6531 cat >conftest.$ac_ext <<_ACEOF
6532#line $LINENO "configure"
6533#include "confdefs.h"
6534
6535#ifdef F77_DUMMY_MAIN
6536# ifdef __cplusplus
6537 extern "C"
6538# endif
6539 int F77_DUMMY_MAIN() { return 1; }
6540#endif
6541int
6542main ()
6543{
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext conftest$ac_exeext
6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561
6562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6563}'`
6564# Check for a 64-bit object if we didn't find anything.
6565if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6566}'`; fi
6567else
6568 echo "$as_me: failed program was:" >&5
6569cat conftest.$ac_ext >&5
6570fi
6571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6573
6574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6575 # Warning - without using the other run time loading flags,
6576 # -berok will link without error, but may produce a broken library.
6577 no_undefined_flag=' ${wl}-bernotok'
6578 allow_undefined_flag=' ${wl}-berok'
6579 # -bexpall does not export symbols beginning with underscore (_)
6580 always_export_symbols=yes
6581 # Exported symbols can be pulled into shared objects from archives
6582 whole_archive_flag_spec=' '
6583 archive_cmds_need_lc=yes
6584 # This is similar to how AIX traditionally builds it's shared libraries.
6585 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6586 fi
6587 fi
6588 ;;
6589
6590 amigaos*)
6591 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)'
6592 hardcode_libdir_flag_spec='-L$libdir'
6593 hardcode_minus_L=yes
6594 # see comment about different semantics on the GNU ld section
6595 ld_shlibs=no
6596 ;;
6597
6598 bsdi4*)
6599 export_dynamic_flag_spec=-rdynamic
6600 ;;
6601
6602 cygwin* | mingw* | pw32*)
6603 # When not using gcc, we currently assume that we are using
6604 # Microsoft Visual C++.
6605 # hardcode_libdir_flag_spec is actually meaningless, as there is
6606 # no search path for DLLs.
6607 hardcode_libdir_flag_spec=' '
6608 allow_undefined_flag=unsupported
6609 # Tell ltmain to make .lib files, not .a files.
6610 libext=lib
6611 # FIXME: Setting linknames here is a bad hack.
6612 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6613 # The linker will automatically build a .lib file if we build a DLL.
6614 old_archive_From_new_cmds='true'
6615 # FIXME: Should let the user specify the lib program.
6616 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6617 fix_srcfile_path='`cygpath -w "$srcfile"`'
6618 ;;
6619
6620 darwin* | rhapsody*)
6621 case "$host_os" in
6622 rhapsody* | darwin1.[012])
6623 allow_undefined_flag='-undefined suppress'
6624 ;;
6625 *) # Darwin 1.3 on
6626 allow_undefined_flag='-flat_namespace -undefined suppress'
6627 ;;
6628 esac
6629
6630 # FIXME: Relying on posixy $() will cause problems for
6631 # cross-compilation, but unfortunately the echo tests do not
6632 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6633 # `"' quotes if we put them in here... so don't!
6634 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6635 # We need to add '_' to the symbols in $export_symbols first
6636 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6637 hardcode_direct=yes
6638 hardcode_shlibpath_var=no
6639 whole_archive_flag_spec='-all_load $convenience'
6640 ;;
6641
6642 dgux*)
6643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 hardcode_shlibpath_var=no
6646 ;;
6647
6648 freebsd1*)
6649 ld_shlibs=no
6650 ;;
6651
6652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6653 # support. Future versions do this automatically, but an explicit c++rt0.o
6654 # does not break anything, and helps significantly (at the cost of a little
6655 # extra space).
6656 freebsd2.2*)
6657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6658 hardcode_libdir_flag_spec='-R$libdir'
6659 hardcode_direct=yes
6660 hardcode_shlibpath_var=no
6661 ;;
6662
6663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6664 freebsd2*)
6665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6666 hardcode_direct=yes
6667 hardcode_minus_L=yes
6668 hardcode_shlibpath_var=no
6669 ;;
6670
6671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6672 freebsd*)
6673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6674 hardcode_libdir_flag_spec='-R$libdir'
6675 hardcode_direct=yes
6676 hardcode_shlibpath_var=no
6677 ;;
6678
6679 hpux9* | hpux10* | hpux11*)
6680 if test "$GCC" = yes; then
6681 case $host_os in
6682 hpux9*)
6683 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6684 ;;
6685 *)
6686 if test "$host_cpu" = ia64; then
6687 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6688 else
6689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6690 fi
6691 ;;
6692 esac
6693 else
6694 case $host_os in
6695 hpux9*)
6696 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'
6697 ;;
6698 *)
6699 if test "$host_cpu" = ia64; then
6700 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6701 else
6702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6703 fi
6704 ;;
6705 esac
6706 fi
6707 if test "$host_cpu" = ia64; then
6708 hardcode_libdir_flag_spec='-L$libdir'
6709 hardcode_direct=no
6710 hardcode_shlibpath_var=no
6711 else
6712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6713 hardcode_libdir_separator=:
6714 hardcode_direct=yes
6715 fi
6716 # hardcode_minus_L: Not really in the search PATH,
6717 # but as the default location of the library.
6718 hardcode_minus_L=yes
6719 export_dynamic_flag_spec='${wl}-E'
6720 ;;
6721
6722 irix5* | irix6* | nonstopux*)
6723 if test "$GCC" = yes; then
6724 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'
6725 else
6726 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'
6727 fi
6728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6729 hardcode_libdir_separator=:
6730 link_all_deplibs=yes
6731 ;;
6732
6733 netbsd*)
6734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6736 else
6737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6738 fi
6739 hardcode_libdir_flag_spec='-R$libdir'
6740 hardcode_direct=yes
6741 hardcode_shlibpath_var=no
6742 ;;
6743
6744 newsos6)
6745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6746 hardcode_direct=yes
6747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6748 hardcode_libdir_separator=:
6749 hardcode_shlibpath_var=no
6750 ;;
6751
6752 openbsd*)
6753 hardcode_direct=yes
6754 hardcode_shlibpath_var=no
6755
6756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6759 export_dynamic_flag_spec='${wl}-E'
6760 else
6761 case $host_os in
6762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6764 hardcode_libdir_flag_spec='-R$libdir'
6765 ;;
6766 *)
6767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6769 ;;
6770 esac
6771 fi
6772 ;;
6773
6774 os2*)
6775 hardcode_libdir_flag_spec='-L$libdir'
6776 hardcode_minus_L=yes
6777 allow_undefined_flag=unsupported
6778 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'
6779 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6780 ;;
6781
6782 osf3*)
6783 if test "$GCC" = yes; then
6784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6785 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'
6786 else
6787 allow_undefined_flag=' -expect_unresolved \*'
6788 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'
6789 fi
6790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6791 hardcode_libdir_separator=:
6792 ;;
6793
6794 osf4* | osf5*) # as osf3* with the addition of -msym flag
6795 if test "$GCC" = yes; then
6796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6797 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6799 else
6800 allow_undefined_flag=' -expect_unresolved \*'
6801 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6803 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6804
6805 # Both c and cxx compiler support -rpath directly
6806 hardcode_libdir_flag_spec='-rpath $libdir'
6807 fi
6808 hardcode_libdir_separator=:
6809 ;;
6810
6811 sco3.2v5*)
6812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6813 hardcode_shlibpath_var=no
6814 export_dynamic_flag_spec='${wl}-Bexport'
6815 runpath_var=LD_RUN_PATH
6816 hardcode_runpath_var=yes
6817 ;;
6818
6819 solaris*)
6820 no_undefined_flag=' -z text'
6821 if test "$GCC" = yes; then
6822 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6825 else
6826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6829 fi
6830 hardcode_libdir_flag_spec='-R$libdir'
6831 hardcode_shlibpath_var=no
6832 case $host_os in
6833 solaris2.[0-5] | solaris2.[0-5].*) ;;
6834 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6835 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6836 esac
6837 link_all_deplibs=yes
6838 ;;
6839
6840 sunos4*)
6841 if test "x$host_vendor" = xsequent; then
6842 # Use $CC to link under sequent, because it throws in some extra .o
6843 # files that make .init and .fini sections work.
6844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6845 else
6846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6847 fi
6848 hardcode_libdir_flag_spec='-L$libdir'
6849 hardcode_direct=yes
6850 hardcode_minus_L=yes
6851 hardcode_shlibpath_var=no
6852 ;;
6853
6854 sysv4)
6855 if test "x$host_vendor" = xsni; then
6856 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_direct=yes # is this really true???
6858 else
6859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6860 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6861 fi
6862 runpath_var='LD_RUN_PATH'
6863 hardcode_shlibpath_var=no
6864 ;;
6865
6866 sysv4.3*)
6867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6868 hardcode_shlibpath_var=no
6869 export_dynamic_flag_spec='-Bexport'
6870 ;;
6871
6872 sysv4*MP*)
6873 if test -d /usr/nec; then
6874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6875 hardcode_shlibpath_var=no
6876 runpath_var=LD_RUN_PATH
6877 hardcode_runpath_var=yes
6878 ld_shlibs=yes
6879 fi
6880 ;;
6881
6882 sysv4.2uw2*)
6883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6884 hardcode_direct=yes
6885 hardcode_minus_L=no
6886 hardcode_shlibpath_var=no
6887 hardcode_runpath_var=yes
6888 runpath_var=LD_RUN_PATH
6889 ;;
6890
6891 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6892 no_undefined_flag='${wl}-z ${wl}text'
6893 if test "$GCC" = yes; then
6894 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6895 else
6896 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6897 fi
6898 runpath_var='LD_RUN_PATH'
6899 hardcode_shlibpath_var=no
6900 ;;
6901
6902 sysv5*)
6903 no_undefined_flag=' -z text'
6904 # $CC -shared without GNU ld will not create a library from C++
6905 # object files and a static libstdc++, better avoid it by now
6906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6909 hardcode_libdir_flag_spec=
6910 hardcode_shlibpath_var=no
6911 runpath_var='LD_RUN_PATH'
6912 ;;
6913
6914 uts4*)
6915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_shlibpath_var=no
6918 ;;
6919
6920 *)
6921 ld_shlibs=no
6922 ;;
6923 esac
6924 fi
6925
6926echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6927echo "${ECHO_T}$ld_shlibs" >&6
6928test "$ld_shlibs" = no && can_build_shared=no
6929
6930variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6931if test "$GCC" = yes; then
6932 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6933fi
6934
6935#
6936# Do we need to explicitly link libc?
6937#
6938archive_cmds_need_lc=yes
6939if test "$enable_shared" = yes && test "$GCC" = yes; then
6940 case $archive_cmds in
6941 *'~'*)
6942 # FIXME: we may have to deal with multi-command sequences.
6943 ;;
6944 '$CC '*)
6945 # Test whether the compiler implicitly links with -lc since on some
6946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6947 # to ld, don't add -lc before -lgcc.
6948 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6949echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6950 $rm conftest*
6951 echo 'static int dummy;' > conftest.$ac_ext
6952
6953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } 2>conftest.err; then
6958 soname=conftest
6959 lib=conftest
6960 libobjs=conftest.$ac_objext
6961 deplibs=
6962 wl=$lt_prog_compiler_wl
6963 compiler_flags=-v
6964 linker_flags=-v
6965 verstring=
6966 output_objdir=.
6967 libname=conftest
6968 lt_save_allow_undefined_flag=$allow_undefined_flag
6969 allow_undefined_flag=
6970 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6971 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }
6975 then
6976 archive_cmds_need_lc=no
6977 else
6978 archive_cmds_need_lc=yes
6979 fi
6980 allow_undefined_flag=$lt_save_allow_undefined_flag
6981 else
6982 cat conftest.err 1>&5
6983 fi
6984 $rm conftest*
6985 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6986echo "${ECHO_T}$archive_cmds_need_lc" >&6
6987 ;;
6988 esac
6989fi
6990
6991echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6993hardcode_action=
6994if test -n "$hardcode_libdir_flag_spec" || \
6995 test -n "$runpath_var "; then
6996
6997 # We can hardcode non-existant directories.
6998 if test "$hardcode_direct" != no &&
6999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7000 # have to relink, otherwise we might link with an installed library
7001 # when we should be linking with a yet-to-be-installed one
7002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7003 test "$hardcode_minus_L" != no; then
7004 # Linking always hardcodes the temporary library directory.
7005 hardcode_action=relink
7006 else
7007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7008 hardcode_action=immediate
7009 fi
7010else
7011 # We cannot hardcode anything, or else we can only hardcode existing
7012 # directories.
7013 hardcode_action=unsupported
7014fi
7015echo "$as_me:$LINENO: result: $hardcode_action" >&5
7016echo "${ECHO_T}$hardcode_action" >&6
7017
7018if test "$hardcode_action" = relink; then
7019 # Fast installation is not supported
7020 enable_fast_install=no
7021elif test "$shlibpath_overrides_runpath" = yes ||
7022 test "$enable_shared" = no; then
7023 # Fast installation is not necessary
7024 enable_fast_install=needless
7025fi
7026
7027striplib=
7028old_striplib=
7029echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7030echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7031if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7032 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7033 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7034 echo "$as_me:$LINENO: result: yes" >&5
7035echo "${ECHO_T}yes" >&6
7036else
7037 echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6
7039fi
7040
7041echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7042echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7043library_names_spec=
7044libname_spec='lib$name'
7045soname_spec=
7046postinstall_cmds=
7047postuninstall_cmds=
7048finish_cmds=
7049finish_eval=
7050shlibpath_var=
7051shlibpath_overrides_runpath=unknown
7052version_type=none
7053dynamic_linker="$host_os ld.so"
7054sys_lib_dlsearch_path_spec="/lib /usr/lib"
7055sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7056need_lib_prefix=unknown
7057hardcode_into_libs=no
7058
7059# when you set need_version to no, make sure it does not cause -set_version
7060# flags to be left without arguments
7061need_version=unknown
7062
7063case $host_os in
7064aix3*)
7065 version_type=linux
7066 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7067 shlibpath_var=LIBPATH
7068
7069 # AIX 3 has no versioning support, so we append a major version to the name.
7070 soname_spec='${libname}${release}.so$major'
7071 ;;
7072
7073aix4* | aix5*)
7074 version_type=linux
7075 if test "$host_cpu" = ia64; then
7076 # AIX 5 supports IA64
7077 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 else
7080 # With GCC up to 2.95.x, collect2 would create an import file
7081 # for dependence libraries. The import file would start with
7082 # the line `#! .'. This would cause the generated library to
7083 # depend on `.', always an invalid library. This was fixed in
7084 # development snapshots of GCC prior to 3.0.
7085 case $host_os in
7086 aix4 | aix4.[01] | aix4.[01].*)
7087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7088 echo ' yes '
7089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7090 :
7091 else
7092 can_build_shared=no
7093 fi
7094 ;;
7095 esac
7096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7097 # soname into executable. Probably we can add versioning support to
7098 # collect2, so additional links can be useful in future.
7099 if test "$aix_use_runtimelinking" = yes; then
7100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7101 # instead of lib<name>.a to let people know that these are not
7102 # typical AIX shared libraries.
7103 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7104 else
7105 # We preserve .a as extension for shared libraries through AIX4.2
7106 # and later when we are not doing run time linking.
7107 library_names_spec='${libname}${release}.a $libname.a'
7108 soname_spec='${libname}${release}.so$major'
7109 fi
7110 shlibpath_var=LIBPATH
7111 fi
7112 ;;
7113
7114amigaos*)
7115 library_names_spec='$libname.ixlibrary $libname.a'
7116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7117 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7118 ;;
7119
7120beos*)
7121 library_names_spec='${libname}.so'
7122 dynamic_linker="$host_os ld.so"
7123 shlibpath_var=LIBRARY_PATH
7124 ;;
7125
7126bsdi4*)
7127 version_type=linux
7128 need_version=no
7129 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7130 soname_spec='${libname}${release}.so$major'
7131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7132 shlibpath_var=LD_LIBRARY_PATH
7133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7135 # the default ld.so.conf also contains /usr/contrib/lib and
7136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7137 # libtool to hard-code these into programs
7138 ;;
7139
7140cygwin* | mingw* | pw32*)
7141 version_type=windows
7142 need_version=no
7143 need_lib_prefix=no
7144 case $GCC,$host_os in
7145 yes,cygwin*)
7146 library_names_spec='$libname.dll.a'
7147 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7149 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7150 dldir=$destdir/`dirname \$dlpath`~
7151 test -d \$dldir || mkdir -p \$dldir~
7152 $install_prog .libs/$dlname \$dldir/$dlname'
7153 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7154 dlpath=$dir/\$dldll~
7155 $rm \$dlpath'
7156 ;;
7157 yes,mingw*)
7158 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7160 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7161 # It is most probably a Windows format PATH printed by
7162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7163 # path with ; separators, and with drive letters. We can handle the
7164 # drive letters (cygwin fileutils understands them), so leave them,
7165 # especially as we might pass files found there to a mingw objdump,
7166 # which wouldn't understand a cygwinified path. Ahh.
7167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7168 else
7169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7170 fi
7171 ;;
7172 yes,pw32*)
7173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7174 ;;
7175 *)
7176 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7177 ;;
7178 esac
7179 dynamic_linker='Win32 ld.exe'
7180 # FIXME: first we should search . and the directory the executable is in
7181 shlibpath_var=PATH
7182 ;;
7183
7184darwin* | rhapsody*)
7185 dynamic_linker="$host_os dyld"
7186 version_type=darwin
7187 need_lib_prefix=no
7188 need_version=no
7189 # FIXME: Relying on posixy $() will cause problems for
7190 # cross-compilation, but unfortunately the echo tests do not
7191 # yet detect zsh echo's removal of \ escapes.
7192 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7193 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7194 shlibpath_overrides_runpath=yes
7195 shlibpath_var=DYLD_LIBRARY_PATH
7196 ;;
7197
7198dgux*)
7199 version_type=linux
7200 need_lib_prefix=no
7201 need_version=no
7202 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7203 soname_spec='${libname}${release}.so$major'
7204 shlibpath_var=LD_LIBRARY_PATH
7205 ;;
7206
7207freebsd1*)
7208 dynamic_linker=no
7209 ;;
7210
7211freebsd*)
7212 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7213 version_type=freebsd-$objformat
7214 case $version_type in
7215 freebsd-elf*)
7216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7217 need_version=no
7218 need_lib_prefix=no
7219 ;;
7220 freebsd-*)
7221 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7222 need_version=yes
7223 ;;
7224 esac
7225 shlibpath_var=LD_LIBRARY_PATH
7226 case $host_os in
7227 freebsd2*)
7228 shlibpath_overrides_runpath=yes
7229 ;;
7230 freebsd3.01* | freebsdelf3.01*)
7231 shlibpath_overrides_runpath=yes
7232 hardcode_into_libs=yes
7233 ;;
7234 *) # from 3.2 on
7235 shlibpath_overrides_runpath=no
7236 hardcode_into_libs=yes
7237 ;;
7238 esac
7239 ;;
7240
7241gnu*)
7242 version_type=linux
7243 need_lib_prefix=no
7244 need_version=no
7245 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7246 soname_spec='${libname}${release}.so$major'
7247 shlibpath_var=LD_LIBRARY_PATH
7248 hardcode_into_libs=yes
7249 ;;
7250
7251hpux9* | hpux10* | hpux11*)
7252 # Give a soname corresponding to the major version so that dld.sl refuses to
7253 # link against other versions.
7254 version_type=sunos
7255 need_lib_prefix=no
7256 need_version=no
7257 if test "$host_cpu" = ia64; then
7258 hardcode_into_libs=yes
7259 dynamic_linker="$host_os dld.so"
7260 shlibpath_var=LD_LIBRARY_PATH
7261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7262 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7263 soname_spec='${libname}${release}.so$major'
7264 if test "X$HPUX_IA64_MODE" = X32; then
7265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7266 else
7267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7268 fi
7269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7270 else
7271 dynamic_linker="$host_os dld.sl"
7272 shlibpath_var=SHLIB_PATH
7273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7274 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7275 soname_spec='${libname}${release}.sl$major'
7276 fi
7277 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7278 postinstall_cmds='chmod 555 $lib'
7279 ;;
7280
7281irix5* | irix6* | nonstopux*)
7282 case $host_os in
7283 nonstopux*) version_type=nonstopux ;;
7284 *) version_type=irix ;;
7285 esac
7286 need_lib_prefix=no
7287 need_version=no
7288 soname_spec='${libname}${release}.so$major'
7289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7290 case $host_os in
7291 irix5* | nonstopux*)
7292 libsuff= shlibsuff=
7293 ;;
7294 *)
7295 case $LD in # libtool.m4 will add one of these switches to LD
7296 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7297 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7298 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7299 *) libsuff= shlibsuff= libmagic=never-match;;
7300 esac
7301 ;;
7302 esac
7303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7304 shlibpath_overrides_runpath=no
7305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7307 ;;
7308
7309# No shared lib support for Linux oldld, aout, or coff.
7310linux*oldld* | linux*aout* | linux*coff*)
7311 dynamic_linker=no
7312 ;;
7313
7314# This must be Linux ELF.
7315linux*)
7316 version_type=linux
7317 need_lib_prefix=no
7318 need_version=no
7319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7320 soname_spec='${libname}${release}.so$major'
7321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7322 libsuff=
7323 if test "x$LINUX_64_MODE" = x64; then
7324 # Some platforms are per default 64-bit, so there's no /lib64
7325 if test -d /lib64; then
7326 libsuff=64
7327 fi
7328 fi
7329 shlibpath_var=LD_LIBRARY_PATH
7330 shlibpath_overrides_runpath=no
7331 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7332 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7333 # This implies no fast_install, which is unacceptable.
7334 # Some rework will be needed to allow for fast_install
7335 # before this can be enabled.
7336 hardcode_into_libs=yes
7337
7338 # We used to test for /lib/ld.so.1 and disable shared libraries on
7339 # powerpc, because MkLinux only supported shared libraries with the
7340 # GNU dynamic linker. Since this was broken with cross compilers,
7341 # most powerpc-linux boxes support dynamic linking these days and
7342 # people can always --disable-shared, the test was removed, and we
7343 # assume the GNU/Linux dynamic linker is in use.
7344 dynamic_linker='GNU/Linux ld.so'
7345 ;;
7346
7347netbsd*)
7348 version_type=sunos
7349 need_lib_prefix=no
7350 need_version=no
7351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7352 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7354 dynamic_linker='NetBSD (a.out) ld.so'
7355 else
7356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7357 soname_spec='${libname}${release}.so$major'
7358 dynamic_linker='NetBSD ld.elf_so'
7359 fi
7360 shlibpath_var=LD_LIBRARY_PATH
7361 shlibpath_overrides_runpath=yes
7362 hardcode_into_libs=yes
7363 ;;
7364
7365newsos6)
7366 version_type=linux
7367 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=yes
7370 ;;
7371
7372nto-qnx)
7373 version_type=linux
7374 need_lib_prefix=no
7375 need_version=no
7376 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7377 soname_spec='${libname}${release}.so$major'
7378 shlibpath_var=LD_LIBRARY_PATH
7379 shlibpath_overrides_runpath=yes
7380 ;;
7381
7382openbsd*)
7383 version_type=sunos
7384 need_lib_prefix=no
7385 need_version=no
7386 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7388 shlibpath_var=LD_LIBRARY_PATH
7389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7390 case $host_os in
7391 openbsd2.[89] | openbsd2.[89].*)
7392 shlibpath_overrides_runpath=no
7393 ;;
7394 *)
7395 shlibpath_overrides_runpath=yes
7396 ;;
7397 esac
7398 else
7399 shlibpath_overrides_runpath=yes
7400 fi
7401 ;;
7402
7403os2*)
7404 libname_spec='$name'
7405 need_lib_prefix=no
7406 library_names_spec='$libname.dll $libname.a'
7407 dynamic_linker='OS/2 ld.exe'
7408 shlibpath_var=LIBPATH
7409 ;;
7410
7411osf3* | osf4* | osf5*)
7412 version_type=osf
7413 need_lib_prefix=no
7414 need_version=no
7415 soname_spec='${libname}${release}.so'
7416 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7417 shlibpath_var=LD_LIBRARY_PATH
7418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7420 ;;
7421
7422sco3.2v5*)
7423 version_type=osf
7424 soname_spec='${libname}${release}.so$major'
7425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7426 shlibpath_var=LD_LIBRARY_PATH
7427 ;;
7428
7429solaris*)
7430 version_type=linux
7431 need_lib_prefix=no
7432 need_version=no
7433 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7434 soname_spec='${libname}${release}.so$major'
7435 shlibpath_var=LD_LIBRARY_PATH
7436 shlibpath_overrides_runpath=yes
7437 hardcode_into_libs=yes
7438 # ldd complains unless libraries are executable
7439 postinstall_cmds='chmod +x $lib'
7440 ;;
7441
7442sunos4*)
7443 version_type=sunos
7444 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7446 shlibpath_var=LD_LIBRARY_PATH
7447 shlibpath_overrides_runpath=yes
7448 if test "$with_gnu_ld" = yes; then
7449 need_lib_prefix=no
7450 fi
7451 need_version=yes
7452 ;;
7453
7454sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7455 version_type=linux
7456 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7457 soname_spec='${libname}${release}.so$major'
7458 shlibpath_var=LD_LIBRARY_PATH
7459 case $host_vendor in
7460 sni)
7461 shlibpath_overrides_runpath=no
7462 ;;
7463 motorola)
7464 need_lib_prefix=no
7465 need_version=no
7466 shlibpath_overrides_runpath=no
7467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7468 ;;
7469 esac
7470 ;;
7471
7472sysv4*MP*)
7473 if test -d /usr/nec ;then
7474 version_type=linux
7475 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7476 soname_spec='$libname.so.$major'
7477 shlibpath_var=LD_LIBRARY_PATH
7478 fi
7479 ;;
7480
7481uts4*)
7482 version_type=linux
7483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7484 soname_spec='${libname}${release}.so$major'
7485 shlibpath_var=LD_LIBRARY_PATH
7486 ;;
7487
7488*)
7489 dynamic_linker=no
7490 ;;
7491esac
7492echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7493echo "${ECHO_T}$dynamic_linker" >&6
7494test "$dynamic_linker" = no && can_build_shared=no
7495
7496if test "x$enable_dlopen" != xyes; then
7497 enable_dlopen=unknown
7498 enable_dlopen_self=unknown
7499 enable_dlopen_self_static=unknown
7500else
7501 lt_cv_dlopen=no
7502 lt_cv_dlopen_libs=
7503
7504 case $host_os in
7505 beos*)
7506 lt_cv_dlopen="load_add_on"
7507 lt_cv_dlopen_libs=
7508 lt_cv_dlopen_self=yes
7509 ;;
7510
7511 cygwin* | mingw* | pw32*)
7512 lt_cv_dlopen="LoadLibrary"
7513 lt_cv_dlopen_libs=
7514 ;;
7515
7516 *)
7517 echo "$as_me:$LINENO: checking for shl_load" >&5
7518echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7519if test "${ac_cv_func_shl_load+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 cat >conftest.$ac_ext <<_ACEOF
7523#line $LINENO "configure"
7524#include "confdefs.h"
7525/* System header to define __stub macros and hopefully few prototypes,
7526 which can conflict with char shl_load (); below. */
7527#include <assert.h>
7528/* Override any gcc2 internal prototype to avoid an error. */
7529#ifdef __cplusplus
7530extern "C"
7531#endif
7532/* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534char shl_load ();
7535char (*f) ();
7536
7537#ifdef F77_DUMMY_MAIN
7538# ifdef __cplusplus
7539 extern "C"
7540# endif
7541 int F77_DUMMY_MAIN() { return 1; }
7542#endif
7543int
7544main ()
7545{
7546/* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549#if defined (__stub_shl_load) || defined (__stub___shl_load)
7550choke me
7551#else
7552f = shl_load;
7553#endif
7554
7555 ;
7556 return 0;
7557}
7558_ACEOF
7559rm -f conftest.$ac_objext conftest$ac_exeext
7560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -s conftest$ac_exeext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_cv_func_shl_load=yes
7572else
7573 echo "$as_me: failed program was:" >&5
7574cat conftest.$ac_ext >&5
7575ac_cv_func_shl_load=no
7576fi
7577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7578fi
7579echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7580echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7581if test $ac_cv_func_shl_load = yes; then
7582 lt_cv_dlopen="shl_load"
7583else
7584 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7585echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7586if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 ac_check_lib_save_LIBS=$LIBS
7590LIBS="-ldld $LIBS"
7591cat >conftest.$ac_ext <<_ACEOF
7592#line $LINENO "configure"
7593#include "confdefs.h"
7594
7595/* Override any gcc2 internal prototype to avoid an error. */
7596#ifdef __cplusplus
7597extern "C"
7598#endif
7599/* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7601char shl_load ();
7602#ifdef F77_DUMMY_MAIN
7603# ifdef __cplusplus
7604 extern "C"
7605# endif
7606 int F77_DUMMY_MAIN() { return 1; }
7607#endif
7608int
7609main ()
7610{
7611shl_load ();
7612 ;
7613 return 0;
7614}
7615_ACEOF
7616rm -f conftest.$ac_objext conftest$ac_exeext
7617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_dld_shl_load=yes
7629else
7630 echo "$as_me: failed program was:" >&5
7631cat conftest.$ac_ext >&5
7632ac_cv_lib_dld_shl_load=no
7633fi
7634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7635LIBS=$ac_check_lib_save_LIBS
7636fi
7637echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7638echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7639if test $ac_cv_lib_dld_shl_load = yes; then
7640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7641else
7642 echo "$as_me:$LINENO: checking for dlopen" >&5
7643echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7644if test "${ac_cv_func_dlopen+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 cat >conftest.$ac_ext <<_ACEOF
7648#line $LINENO "configure"
7649#include "confdefs.h"
7650/* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char dlopen (); below. */
7652#include <assert.h>
7653/* Override any gcc2 internal prototype to avoid an error. */
7654#ifdef __cplusplus
7655extern "C"
7656#endif
7657/* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659char dlopen ();
7660char (*f) ();
7661
7662#ifdef F77_DUMMY_MAIN
7663# ifdef __cplusplus
7664 extern "C"
7665# endif
7666 int F77_DUMMY_MAIN() { return 1; }
7667#endif
7668int
7669main ()
7670{
7671/* The GNU C library defines this for functions which it implements
7672 to always fail with ENOSYS. Some functions are actually named
7673 something starting with __ and the normal name is an alias. */
7674#if defined (__stub_dlopen) || defined (__stub___dlopen)
7675choke me
7676#else
7677f = dlopen;
7678#endif
7679
7680 ;
7681 return 0;
7682}
7683_ACEOF
7684rm -f conftest.$ac_objext conftest$ac_exeext
7685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_func_dlopen=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699cat conftest.$ac_ext >&5
7700ac_cv_func_dlopen=no
7701fi
7702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7703fi
7704echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7705echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7706if test $ac_cv_func_dlopen = yes; then
7707 lt_cv_dlopen="dlopen"
7708else
7709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 ac_check_lib_save_LIBS=$LIBS
7715LIBS="-ldl $LIBS"
7716cat >conftest.$ac_ext <<_ACEOF
7717#line $LINENO "configure"
7718#include "confdefs.h"
7719
7720/* Override any gcc2 internal prototype to avoid an error. */
7721#ifdef __cplusplus
7722extern "C"
7723#endif
7724/* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7726char dlopen ();
7727#ifdef F77_DUMMY_MAIN
7728# ifdef __cplusplus
7729 extern "C"
7730# endif
7731 int F77_DUMMY_MAIN() { return 1; }
7732#endif
7733int
7734main ()
7735{
7736dlopen ();
7737 ;
7738 return 0;
7739}
7740_ACEOF
7741rm -f conftest.$ac_objext conftest$ac_exeext
7742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest$ac_exeext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_cv_lib_dl_dlopen=yes
7754else
7755 echo "$as_me: failed program was:" >&5
7756cat conftest.$ac_ext >&5
7757ac_cv_lib_dl_dlopen=no
7758fi
7759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760LIBS=$ac_check_lib_save_LIBS
7761fi
7762echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7763echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7764if test $ac_cv_lib_dl_dlopen = yes; then
7765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7766else
7767 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7768echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7769if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772 ac_check_lib_save_LIBS=$LIBS
7773LIBS="-lsvld $LIBS"
7774cat >conftest.$ac_ext <<_ACEOF
7775#line $LINENO "configure"
7776#include "confdefs.h"
7777
7778/* Override any gcc2 internal prototype to avoid an error. */
7779#ifdef __cplusplus
7780extern "C"
7781#endif
7782/* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784char dlopen ();
7785#ifdef F77_DUMMY_MAIN
7786# ifdef __cplusplus
7787 extern "C"
7788# endif
7789 int F77_DUMMY_MAIN() { return 1; }
7790#endif
7791int
7792main ()
7793{
7794dlopen ();
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext conftest$ac_exeext
7800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_svld_dlopen=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814cat conftest.$ac_ext >&5
7815ac_cv_lib_svld_dlopen=no
7816fi
7817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7818LIBS=$ac_check_lib_save_LIBS
7819fi
7820echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7821echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7822if test $ac_cv_lib_svld_dlopen = yes; then
7823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7824else
7825 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7826echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7827if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 ac_check_lib_save_LIBS=$LIBS
7831LIBS="-ldld $LIBS"
7832cat >conftest.$ac_ext <<_ACEOF
7833#line $LINENO "configure"
7834#include "confdefs.h"
7835
7836/* Override any gcc2 internal prototype to avoid an error. */
7837#ifdef __cplusplus
7838extern "C"
7839#endif
7840/* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842char dld_link ();
7843#ifdef F77_DUMMY_MAIN
7844# ifdef __cplusplus
7845 extern "C"
7846# endif
7847 int F77_DUMMY_MAIN() { return 1; }
7848#endif
7849int
7850main ()
7851{
7852dld_link ();
7853 ;
7854 return 0;
7855}
7856_ACEOF
7857rm -f conftest.$ac_objext conftest$ac_exeext
7858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_lib_dld_dld_link=yes
7870else
7871 echo "$as_me: failed program was:" >&5
7872cat conftest.$ac_ext >&5
7873ac_cv_lib_dld_dld_link=no
7874fi
7875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7876LIBS=$ac_check_lib_save_LIBS
7877fi
7878echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7879echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7880if test $ac_cv_lib_dld_dld_link = yes; then
7881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7882fi
7883
7884
7885fi
7886
7887
7888fi
7889
7890
7891fi
7892
7893
7894fi
7895
7896
7897fi
7898
7899 ;;
7900 esac
7901
7902 if test "x$lt_cv_dlopen" != xno; then
7903 enable_dlopen=yes
7904 else
7905 enable_dlopen=no
7906 fi
7907
7908 case $lt_cv_dlopen in
7909 dlopen)
7910 save_CPPFLAGS="$CPPFLAGS"
7911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7912
7913 save_LDFLAGS="$LDFLAGS"
7914 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7915
7916 save_LIBS="$LIBS"
7917 LIBS="$lt_cv_dlopen_libs $LIBS"
7918
7919 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7920echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7921if test "${lt_cv_dlopen_self+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 if test "$cross_compiling" = yes; then :
7925 lt_cv_dlopen_self=cross
7926else
7927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7928 lt_status=$lt_dlunknown
7929 cat > conftest.$ac_ext <<EOF
7930#line 7930 "configure"
7931#include "confdefs.h"
7932
7933#if HAVE_DLFCN_H
7934#include <dlfcn.h>
7935#endif
7936
7937#include <stdio.h>
7938
7939#ifdef RTLD_GLOBAL
7940# define LT_DLGLOBAL RTLD_GLOBAL
7941#else
7942# ifdef DL_GLOBAL
7943# define LT_DLGLOBAL DL_GLOBAL
7944# else
7945# define LT_DLGLOBAL 0
7946# endif
7947#endif
7948
7949/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7950 find out it does not work in some platform. */
7951#ifndef LT_DLLAZY_OR_NOW
7952# ifdef RTLD_LAZY
7953# define LT_DLLAZY_OR_NOW RTLD_LAZY
7954# else
7955# ifdef DL_LAZY
7956# define LT_DLLAZY_OR_NOW DL_LAZY
7957# else
7958# ifdef RTLD_NOW
7959# define LT_DLLAZY_OR_NOW RTLD_NOW
7960# else
7961# ifdef DL_NOW
7962# define LT_DLLAZY_OR_NOW DL_NOW
7963# else
7964# define LT_DLLAZY_OR_NOW 0
7965# endif
7966# endif
7967# endif
7968# endif
7969#endif
7970
7971#ifdef __cplusplus
7972extern "C" void exit (int);
7973#endif
7974
7975void fnord() { int i=42;}
7976int main ()
7977{
7978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7979 int status = $lt_dlunknown;
7980
7981 if (self)
7982 {
7983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7984 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7985 /* dlclose (self); */
7986 }
7987
7988 exit (status);
7989}
7990EOF
7991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7992 (eval $ac_link) 2>&5
7993 ac_status=$?
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7996 (./conftest; exit; ) 2>/dev/null
7997 lt_status=$?
7998 case x$lt_status in
7999 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8000 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8001 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8002 esac
8003 else :
8004 # compilation failed
8005 lt_cv_dlopen_self=no
8006 fi
8007fi
8008rm -fr conftest*
8009
8010
8011fi
8012echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8013echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8014
8015 if test "x$lt_cv_dlopen_self" = xyes; then
8016 LDFLAGS="$LDFLAGS $link_static_flag"
8017 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8018echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8019if test "${lt_cv_dlopen_self_static+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 if test "$cross_compiling" = yes; then :
8023 lt_cv_dlopen_self_static=cross
8024else
8025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8026 lt_status=$lt_dlunknown
8027 cat > conftest.$ac_ext <<EOF
8028#line 8028 "configure"
8029#include "confdefs.h"
8030
8031#if HAVE_DLFCN_H
8032#include <dlfcn.h>
8033#endif
8034
8035#include <stdio.h>
8036
8037#ifdef RTLD_GLOBAL
8038# define LT_DLGLOBAL RTLD_GLOBAL
8039#else
8040# ifdef DL_GLOBAL
8041# define LT_DLGLOBAL DL_GLOBAL
8042# else
8043# define LT_DLGLOBAL 0
8044# endif
8045#endif
8046
8047/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8048 find out it does not work in some platform. */
8049#ifndef LT_DLLAZY_OR_NOW
8050# ifdef RTLD_LAZY
8051# define LT_DLLAZY_OR_NOW RTLD_LAZY
8052# else
8053# ifdef DL_LAZY
8054# define LT_DLLAZY_OR_NOW DL_LAZY
8055# else
8056# ifdef RTLD_NOW
8057# define LT_DLLAZY_OR_NOW RTLD_NOW
8058# else
8059# ifdef DL_NOW
8060# define LT_DLLAZY_OR_NOW DL_NOW
8061# else
8062# define LT_DLLAZY_OR_NOW 0
8063# endif
8064# endif
8065# endif
8066# endif
8067#endif
8068
8069#ifdef __cplusplus
8070extern "C" void exit (int);
8071#endif
8072
8073void fnord() { int i=42;}
8074int main ()
8075{
8076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8077 int status = $lt_dlunknown;
8078
8079 if (self)
8080 {
8081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8083 /* dlclose (self); */
8084 }
8085
8086 exit (status);
8087}
8088EOF
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8094 (./conftest; exit; ) 2>/dev/null
8095 lt_status=$?
8096 case x$lt_status in
8097 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8098 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8099 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8100 esac
8101 else :
8102 # compilation failed
8103 lt_cv_dlopen_self_static=no
8104 fi
8105fi
8106rm -fr conftest*
8107
8108
8109fi
8110echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8111echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8112 fi
8113
8114 CPPFLAGS="$save_CPPFLAGS"
8115 LDFLAGS="$save_LDFLAGS"
8116 LIBS="$save_LIBS"
8117 ;;
8118 esac
8119
8120 case $lt_cv_dlopen_self in
8121 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8122 *) enable_dlopen_self=unknown ;;
8123 esac
8124
8125 case $lt_cv_dlopen_self_static in
8126 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8127 *) enable_dlopen_self_static=unknown ;;
8128 esac
8129fi
8130
8131
8132# Report which librarie types wil actually be built
8133echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8134echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8135echo "$as_me:$LINENO: result: $can_build_shared" >&5
8136echo "${ECHO_T}$can_build_shared" >&6
8137
8138echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8139echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8140test "$can_build_shared" = "no" && enable_shared=no
8141
8142# On AIX, shared libraries and static libraries use the same namespace, and
8143# are all built from PIC.
8144case "$host_os" in
8145aix3*)
8146 test "$enable_shared" = yes && enable_static=no
8147 if test -n "$RANLIB"; then
8148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8149 postinstall_cmds='$RANLIB $lib'
8150 fi
8151 ;;
8152
8153aix4*)
8154 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8155 test "$enable_shared" = yes && enable_static=no
8156 fi
8157 ;;
8158esac
8159echo "$as_me:$LINENO: result: $enable_shared" >&5
8160echo "${ECHO_T}$enable_shared" >&6
8161
8162echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8163echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8164# Make sure either enable_shared or enable_static is yes.
8165test "$enable_shared" = yes || enable_static=yes
8166echo "$as_me:$LINENO: result: $enable_static" >&5
8167echo "${ECHO_T}$enable_static" >&6
8168
8169# The else clause should only fire when bootstrapping the
8170# libtool distribution, otherwise you forgot to ship ltmain.sh
8171# with your package, and you will get complaints that there are
8172# no rules to generate ltmain.sh.
8173if test -f "$ltmain"; then
8174 # Now quote all the things that may contain metacharacters while being
8175 # careful not to overquote the AC_SUBSTed values. We take copies of the
8176 # variables and quote the copies for generation of the libtool script.
8177 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8180 deplibs_check_method reload_flag reload_cmds need_locks \
8181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8182 lt_cv_sys_global_symbol_to_c_name_address \
8183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8184 old_postinstall_cmds old_postuninstall_cmds \
8185 compiler \
8186 CC \
8187 LD \
8188 lt_prog_compiler_wl \
8189 lt_prog_compiler_pic \
8190 lt_prog_compiler_static \
8191 lt_prog_compiler_no_builtin_flag \
8192 export_dynamic_flag_spec \
8193 thread_safe_flag_spec \
8194 whole_archive_flag_spec \
8195 old_archive_cmds \
8196 old_archive_from_new_cmds \
8197 predep_objects \
8198 postdep_objects \
8199 predeps \
8200 postdeps \
8201 compiler_lib_search_path \
8202 archive_cmds \
8203 archive_expsym_cmds \
8204 postinstall_cmds \
8205 postuninstall_cmds \
8206 old_archive_from_expsyms_cmds \
8207 allow_undefined_flag \
8208 no_undefined_flag \
8209 export_symbols_cmds \
8210 hardcode_libdir_flag_spec \
8211 hardcode_libdir_separator \
8212 lt_cv_prog_compiler_c_o \
8213 exclude_expsyms \
8214 include_expsyms; do
8215
8216 case $var in
8217 old_archive_cmds | \
8218 old_archive_from_new_cmds | \
8219 archive_cmds | \
8220 archive_expsym_cmds | \
8221 old_archive_from_expsyms_cmds | \
8222 export_symbols_cmds | \
8223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8224 postinstall_cmds | postuninstall_cmds | \
8225 old_postinstall_cmds | old_postuninstall_cmds | \
8226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8227 # Double-quote double-evaled strings.
8228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8229 ;;
8230 *)
8231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8232 ;;
8233 esac
8234 done
8235
8236 case $lt_echo in
8237 *'\$0 --fallback-echo"')
8238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8239 ;;
8240 esac
8241
8242cfgfile="${ofile}T"
8243 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8244 $rm -f "$cfgfile"
8245 { echo "$as_me:$LINENO: creating $ofile" >&5
8246echo "$as_me: creating $ofile" >&6;}
8247
8248 cat <<__EOF__ >> "$cfgfile"
8249#! $SHELL
8250
8251# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8252# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8253# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8254#
8255# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8256# Free Software Foundation, Inc.
8257#
8258# This file is part of GNU Libtool:
8259# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8260#
8261# This program is free software; you can redistribute it and/or modify
8262# it under the terms of the GNU General Public License as published by
8263# the Free Software Foundation; either version 2 of the License, or
8264# (at your option) any later version.
8265#
8266# This program is distributed in the hope that it will be useful, but
8267# WITHOUT ANY WARRANTY; without even the implied warranty of
8268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8269# General Public License for more details.
8270#
8271# You should have received a copy of the GNU General Public License
8272# along with this program; if not, write to the Free Software
8273# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8274#
8275# As a special exception to the GNU General Public License, if you
8276# distribute this file as part of a program that contains a
8277# configuration script generated by Autoconf, you may include it under
8278# the same distribution terms that you use for the rest of that program.
8279
8280# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8281Xsed="sed -e s/^X//"
8282
8283# The HP-UX ksh and POSIX shell print the target directory to stdout
8284# if CDPATH is set.
8285if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8286
8287# The names of the tagged configurations supported by this script.
8288available_tags=
8289
8290# ### BEGIN LIBTOOL CONFIG
8291
8292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8293
8294# Shell to use when invoking shell scripts.
8295SHELL=$lt_SHELL
8296
8297# Whether or not to build shared libraries.
8298build_libtool_libs=$enable_shared
8299
8300# Whether or not to build static libraries.
8301build_old_libs=$enable_static
8302
8303# Whether or not to add -lc for building shared libraries.
8304build_libtool_need_lc=$archive_cmds_need_lc
8305
8306# Whether or not to optimize for fast installation.
8307fast_install=$enable_fast_install
8308
8309# The host system.
8310host_alias=$host_alias
8311host=$host
8312
8313# An echo program that does not interpret backslashes.
8314echo=$lt_echo
8315
8316# The archiver.
8317AR=$lt_AR
8318AR_FLAGS=$lt_AR_FLAGS
8319
8320# A C compiler.
8321LTCC=$lt_LTCC
8322
8323# A language-specific compiler.
8324CC=$lt_compiler
8325
8326# Is the compiler the GNU C compiler?
8327with_gcc=$GCC
8328
8329# The linker used to build libraries.
8330LD=$lt_LD
8331
8332# Whether we need hard or soft links.
8333LN_S=$lt_LN_S
8334
8335# A BSD-compatible nm program.
8336NM=$lt_NM
8337
8338# A sed program that does not truncate output.
8339SED=$lt_SED
8340
8341# A symbol stripping program
8342STRIP=$STRIP
8343
8344# Used to examine libraries when file_magic_cmd begins "file"
8345MAGIC_CMD=$MAGIC_CMD
8346
8347# Used on cygwin: DLL creation program.
8348DLLTOOL="$DLLTOOL"
8349
8350# Used on cygwin: object dumper.
8351OBJDUMP="$OBJDUMP"
8352
8353# Used on cygwin: assembler.
8354AS="$AS"
8355
8356# The name of the directory that contains temporary libtool files.
8357objdir=$objdir
8358
8359# How to create reloadable object files.
8360reload_flag=$lt_reload_flag
8361reload_cmds=$lt_reload_cmds
8362
8363# How to pass a linker flag through the compiler.
8364wl=$lt_lt_prog_compiler_wl
8365
8366# Object file suffix (normally "o").
8367objext="$ac_objext"
8368
8369# Old archive suffix (normally "a").
8370libext="$libext"
8371
8372# Executable file suffix (normally "").
8373exeext="$exeext"
8374
8375# Additional compiler flags for building library objects.
8376pic_flag=$lt_lt_prog_compiler_pic
8377pic_mode=$pic_mode
8378
8379# What is the maximum length of a command?
8380max_cmd_len=$lt_cv_sys_max_cmd_len
8381
8382# Does compiler simultaneously support -c and -o options?
8383compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8384
8385# Must we lock files when doing compilation ?
8386need_locks=$lt_need_locks
8387
8388# Do we need the lib prefix for modules?
8389need_lib_prefix=$need_lib_prefix
8390
8391# Do we need a version for libraries?
8392need_version=$need_version
8393
8394# Whether dlopen is supported.
8395dlopen_support=$enable_dlopen
8396
8397# Whether dlopen of programs is supported.
8398dlopen_self=$enable_dlopen_self
8399
8400# Whether dlopen of statically linked programs is supported.
8401dlopen_self_static=$enable_dlopen_self_static
8402
8403# Compiler flag to prevent dynamic linking.
8404link_static_flag=$lt_lt_prog_compiler_static
8405
8406# Compiler flag to turn off builtin functions.
8407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8408
8409# Compiler flag to allow reflexive dlopens.
8410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8411
8412# Compiler flag to generate shared objects directly from archives.
8413whole_archive_flag_spec=$lt_whole_archive_flag_spec
8414
8415# Compiler flag to generate thread-safe objects.
8416thread_safe_flag_spec=$lt_thread_safe_flag_spec
8417
8418# Library versioning type.
8419version_type=$version_type
8420
8421# Format of library name prefix.
8422libname_spec=$lt_libname_spec
8423
8424# List of archive names. First name is the real one, the rest are links.
8425# The last name is the one that the linker finds with -lNAME.
8426library_names_spec=$lt_library_names_spec
8427
8428# The coded name of the library, if different from the real name.
8429soname_spec=$lt_soname_spec
8430
8431# Commands used to build and install an old-style archive.
8432RANLIB=$lt_RANLIB
8433old_archive_cmds=$lt_old_archive_cmds
8434old_postinstall_cmds=$lt_old_postinstall_cmds
8435old_postuninstall_cmds=$lt_old_postuninstall_cmds
8436
8437# Create an old-style archive from a shared archive.
8438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8439
8440# Create a temporary old-style archive to link instead of a shared archive.
8441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8442
8443# Commands used to build and install a shared archive.
8444archive_cmds=$lt_archive_cmds
8445archive_expsym_cmds=$lt_archive_expsym_cmds
8446postinstall_cmds=$lt_postinstall_cmds
8447postuninstall_cmds=$lt_postuninstall_cmds
8448
8449# Commands to strip libraries.
8450old_striplib=$lt_old_striplib
8451striplib=$lt_striplib
8452
8453# Dependencies to place before the objects being linked to create a
8454# shared library.
8455predep_objects=$lt_predep_objects
8456
8457# Dependencies to place after the objects being linked to create a
8458# shared library.
8459postdep_objects=$lt_postdep_objects
8460
8461# Dependencies to place before the objects being linked to create a
8462# shared library.
8463predeps=$lt_predeps
8464
8465# Dependencies to place after the objects being linked to create a
8466# shared library.
8467postdeps=$lt_postdeps
8468
8469# The library search path used internally by the compiler when linking
8470# a shared library.
8471compiler_lib_search_path=$lt_compiler_lib_search_path
8472
8473# Method to check whether dependent libraries are shared objects.
8474deplibs_check_method=$lt_deplibs_check_method
8475
8476# Command to use when deplibs_check_method == file_magic.
8477file_magic_cmd=$lt_file_magic_cmd
8478
8479# Flag that allows shared libraries with undefined symbols to be built.
8480allow_undefined_flag=$lt_allow_undefined_flag
8481
8482# Flag that forces no undefined symbols.
8483no_undefined_flag=$lt_no_undefined_flag
8484
8485# Commands used to finish a libtool library installation in a directory.
8486finish_cmds=$lt_finish_cmds
8487
8488# Same as above, but a single script fragment to be evaled but not shown.
8489finish_eval=$lt_finish_eval
8490
8491# Take the output of nm and produce a listing of raw symbols and C names.
8492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8493
8494# Transform the output of nm in a proper C declaration
8495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8496
8497# Transform the output of nm in a C name address pair
8498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8499
8500# This is the shared library runtime path variable.
8501runpath_var=$runpath_var
8502
8503# This is the shared library path variable.
8504shlibpath_var=$shlibpath_var
8505
8506# Is shlibpath searched before the hard-coded library search path?
8507shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8508
8509# How to hardcode a shared library path into an executable.
8510hardcode_action=$hardcode_action
8511
8512# Whether we should hardcode library paths into libraries.
8513hardcode_into_libs=$hardcode_into_libs
8514
8515# Flag to hardcode \$libdir into a binary during linking.
8516# This must work even if \$libdir does not exist.
8517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8518
8519# Whether we need a single -rpath flag with a separated argument.
8520hardcode_libdir_separator=$lt_hardcode_libdir_separator
8521
8522# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8523# resulting binary.
8524hardcode_direct=$hardcode_direct
8525
8526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8527# resulting binary.
8528hardcode_minus_L=$hardcode_minus_L
8529
8530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8531# the resulting binary.
8532hardcode_shlibpath_var=$hardcode_shlibpath_var
8533
8534# Variables whose values should be saved in libtool wrapper scripts and
8535# restored at relink time.
8536variables_saved_for_relink="$variables_saved_for_relink"
8537
8538# Whether libtool must link a program against all its dependency libraries.
8539link_all_deplibs=$link_all_deplibs
8540
8541# Compile-time system search path for libraries
8542sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8543
8544# Run-time system search path for libraries
8545sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8546
8547# Fix the shell variable \$srcfile for the compiler.
8548fix_srcfile_path="$fix_srcfile_path"
8549
8550# Set to yes if exported symbols are required.
8551always_export_symbols=$always_export_symbols
8552
8553# The commands to list exported symbols.
8554export_symbols_cmds=$lt_export_symbols_cmds
8555
8556# The commands to extract the exported symbol list from a shared archive.
8557extract_expsyms_cmds=$lt_extract_expsyms_cmds
8558
8559# Symbols that should not be listed in the preloaded symbols.
8560exclude_expsyms=$lt_exclude_expsyms
8561
8562# Symbols that must always be exported.
8563include_expsyms=$lt_include_expsyms
8564
8565# ### END LIBTOOL CONFIG
8566
8567__EOF__
8568
8569
8570 case $host_os in
8571 aix3*)
8572 cat <<\EOF >> "$cfgfile"
8573
8574# AIX sometimes has problems with the GCC collect2 program. For some
8575# reason, if we set the COLLECT_NAMES environment variable, the problems
8576# vanish in a puff of smoke.
8577if test "X${COLLECT_NAMES+set}" != Xset; then
8578 COLLECT_NAMES=
8579 export COLLECT_NAMES
8580fi
8581EOF
8582 ;;
8583
8584 cygwin* | mingw* | pw32* | os2*)
8585 cat <<'EOF' >> "$cfgfile"
8586 # This is a source program that is used to create dlls on Windows
8587 # Don't remove nor modify the starting and closing comments
8588
8589# /* ltdll.c starts here */
8590# #define WIN32_LEAN_AND_MEAN
8591# #include <windows.h>
8592# #undef WIN32_LEAN_AND_MEAN
8593# #include <stdio.h>
8594#
8595# #ifndef __CYGWIN__
8596# # ifdef __CYGWIN32__
8597# # define __CYGWIN__ __CYGWIN32__
8598# # endif
8599# #endif
8600#
8601# #ifdef __cplusplus
8602# extern "C" {
8603# #endif
8604# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8605# #ifdef __cplusplus
8606# }
8607# #endif
8608#
8609# #ifdef __CYGWIN__
8610# #include <cygwin/cygwin_dll.h>
8611# DECLARE_CYGWIN_DLL( DllMain );
8612# #endif
8613# HINSTANCE __hDllInstance_base;
8614#
8615# BOOL APIENTRY
8616# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8617# {
8618# __hDllInstance_base = hInst;
8619# return TRUE;
8620# }
8621# /* ltdll.c ends here */
8622
8623 # This is a source program that is used to create import libraries
8624 # on Windows for dlls which lack them. Don't remove nor modify the
8625 # starting and closing comments
8626
8627# /* impgen.c starts here */
8628# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8629#
8630# This file is part of GNU libtool.
8631#
8632# This program is free software; you can redistribute it and/or modify
8633# it under the terms of the GNU General Public License as published by
8634# the Free Software Foundation; either version 2 of the License, or
8635# (at your option) any later version.
8636#
8637# This program is distributed in the hope that it will be useful,
8638# but WITHOUT ANY WARRANTY; without even the implied warranty of
8639# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8640# GNU General Public License for more details.
8641#
8642# You should have received a copy of the GNU General Public License
8643# along with this program; if not, write to the Free Software
8644# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8645# */
8646#
8647# #include <stdio.h> /* for printf() */
8648# #include <unistd.h> /* for open(), lseek(), read() */
8649# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8650# #include <string.h> /* for strdup() */
8651#
8652# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8653# #ifndef O_BINARY
8654# #define O_BINARY 0
8655# #endif
8656#
8657# static unsigned int
8658# pe_get16 (fd, offset)
8659# int fd;
8660# int offset;
8661# {
8662# unsigned char b[2];
8663# lseek (fd, offset, SEEK_SET);
8664# read (fd, b, 2);
8665# return b[0] + (b[1]<<8);
8666# }
8667#
8668# static unsigned int
8669# pe_get32 (fd, offset)
8670# int fd;
8671# int offset;
8672# {
8673# unsigned char b[4];
8674# lseek (fd, offset, SEEK_SET);
8675# read (fd, b, 4);
8676# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8677# }
8678#
8679# static unsigned int
8680# pe_as32 (ptr)
8681# void *ptr;
8682# {
8683# unsigned char *b = ptr;
8684# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8685# }
8686#
8687# int
8688# main (argc, argv)
8689# int argc;
8690# char *argv[];
8691# {
8692# int dll;
8693# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8694# unsigned long export_rva, export_size, nsections, secptr, expptr;
8695# unsigned long name_rvas, nexp;
8696# unsigned char *expdata, *erva;
8697# char *filename, *dll_name;
8698#
8699# filename = argv[1];
8700#
8701# dll = open(filename, O_RDONLY|O_BINARY);
8702# if (dll < 1)
8703# return 1;
8704#
8705# dll_name = filename;
8706#
8707# for (i=0; filename[i]; i++)
8708# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8709# dll_name = filename + i +1;
8710#
8711# pe_header_offset = pe_get32 (dll, 0x3c);
8712# opthdr_ofs = pe_header_offset + 4 + 20;
8713# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8714#
8715# if (num_entries < 1) /* no exports */
8716# return 1;
8717#
8718# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8719# export_size = pe_get32 (dll, opthdr_ofs + 100);
8720# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8721# secptr = (pe_header_offset + 4 + 20 +
8722# pe_get16 (dll, pe_header_offset + 4 + 16));
8723#
8724# expptr = 0;
8725# for (i = 0; i < nsections; i++)
8726# {
8727# char sname[8];
8728# unsigned long secptr1 = secptr + 40 * i;
8729# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8730# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8731# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8732# lseek(dll, secptr1, SEEK_SET);
8733# read(dll, sname, 8);
8734# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8735# {
8736# expptr = fptr + (export_rva - vaddr);
8737# if (export_rva + export_size > vaddr + vsize)
8738# export_size = vsize - (export_rva - vaddr);
8739# break;
8740# }
8741# }
8742#
8743# expdata = (unsigned char*)malloc(export_size);
8744# lseek (dll, expptr, SEEK_SET);
8745# read (dll, expdata, export_size);
8746# erva = expdata - export_rva;
8747#
8748# nexp = pe_as32 (expdata+24);
8749# name_rvas = pe_as32 (expdata+32);
8750#
8751# printf ("EXPORTS\n");
8752# for (i = 0; i<nexp; i++)
8753# {
8754# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8755# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8756# }
8757#
8758# return 0;
8759# }
8760# /* impgen.c ends here */
8761
8762EOF
8763 ;;
8764 esac
8765
8766 # We use sed instead of cat because bash on DJGPP gets confused if
8767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8768 # text mode, it properly converts lines to CR/LF. This bash problem
8769 # is reportedly fixed, but why not run on old versions too?
8770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8771
8772 mv -f "$cfgfile" "$ofile" || \
8773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8774 chmod +x "$ofile"
8775
8776else
8777 # If there is no Makefile yet, we rely on a make rule to execute
8778 # `config.status --recheck' to rerun these tests and create the
8779 # libtool script then.
8780 test -f Makefile && make "$ltmain"
8781fi
8782
8783
8784ac_ext=c
8785ac_cpp='$CPP $CPPFLAGS'
8786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8788ac_compiler_gnu=$ac_cv_c_compiler_gnu
8789
8790CC="$lt_save_CC"
8791
8792
8793# Check whether --with-tags or --without-tags was given.
8794if test "${with_tags+set}" = set; then
8795 withval="$with_tags"
8796 tagnames="$withval"
8797else
8798 tagnames="CXX,GCJ"
8799 case $host_os in
8800 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8801 esac
8802fi;
8803
8804if test -f "$ltmain" && test -n "$tagnames"; then
8805 if test ! -f "${ofile}"; then
8806 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8807echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8808 fi
8809
8810 if test -z "$LTCC"; then
8811 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8812 if test -z "$LTCC"; then
8813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8814echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8815 else
8816 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8817echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8818 fi
8819 fi
8820
8821 # Extract list of available tagged configurations in $ofile.
8822 # Note that this assumes the entire list is on one line.
8823 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8824
8825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8826 for tagname in $tagnames; do
8827 IFS="$lt_save_ifs"
8828 # Check whether tagname contains only valid characters
8829 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8830 "") ;;
8831 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8832echo "$as_me: error: invalid tag name: $tagname" >&2;}
8833 { (exit 1); exit 1; }; }
8834 ;;
8835 esac
8836
8837 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8838 then
8839 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8840echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8841 { (exit 1); exit 1; }; }
8842 fi
8843
8844 # Update the list of available tags.
8845 if test -n "$tagname"; then
8846 echo appending configuration tag \"$tagname\" to $ofile
8847
8848 case $tagname in
8849 CXX)
8850 ac_ext=cc
8851ac_cpp='$CXXCPP $CPPFLAGS'
8852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8855
8856
8857
8858
8859archive_cmds_need_lc_CXX=no
8860allow_undefined_flag_CXX=
8861always_export_symbols_CXX=no
8862archive_expsym_cmds_CXX=
8863export_dynamic_flag_spec_CXX=
8864hardcode_direct_CXX=no
8865hardcode_libdir_flag_spec_CXX=
8866hardcode_libdir_separator_CXX=
8867hardcode_minus_L_CXX=no
8868link_all_deplibs_CXX=unknown
8869old_archive_cmds_CXX=$old_archive_cmds
8870no_undefined_flag_CXX=
8871whole_archive_flag_spec_CXX=
8872
8873# Dependencies to place before and after the object being linked:
8874predep_objects_CXX=
8875postdep_objects_CXX=
8876predeps_CXX=
8877postdeps_CXX=
8878compiler_lib_search_path_CXX=
8879
8880# Source file extension for C test sources.
8881ac_ext=cc
8882
8883# Object file extension for compiled C test sources.
8884objext=o
8885objext_CXX=$objext
8886
8887# Code to be used in simple compile tests
8888lt_simple_compile_test_code="int some_variable = 0;"
8889
8890# Code to be used in simple link tests
8891lt_simple_link_test_code='int main(int char *) { return(0); }'
8892
8893# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8894
8895# If no C compiler was specified, use CC.
8896LTCC=${LTCC-"$CC"}
8897
8898# Allow CC to be a program name with arguments.
8899set dummy $CC
8900compiler="$2"
8901
8902
8903# Allow CC to be a program name with arguments.
8904lt_save_CC="$CC"
8905CC=${CXX-"c++"}
8906set dummy $CC
8907compiler="$2"
8908compiler_CXX=$CC
8909cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8910
8911# We don't want -fno-exception wen compiling C++ code, so set the
8912# no_builtin_flag separately
8913if test "$GXX" = yes; then
8914 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8915else
8916 lt_prog_compiler_no_builtin_flag_CXX=
8917fi
8918
8919if test "$GXX" = yes; then
8920 # Set up default GNU C++ configuration
8921
8922 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8923 # archiving commands below assume that GNU ld is being used.
8924 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8925 egrep 'GNU ld' > /dev/null; then
8926 with_gnu_ld=yes
8927
8928 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8930
8931 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8933
8934 # If archive_cmds runs LD, not CC, wlarc should be empty
8935 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8936 # investigate it a little bit more. (MM)
8937 wlarc='${wl}'
8938
8939 # ancient GNU ld didn't support --whole-archive et. al.
8940 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8941 egrep 'no-whole-archive' > /dev/null; then
8942 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8943 else
8944 whole_archive_flag_spec_CXX=
8945 fi
8946 else
8947 with_gnu_ld=no
8948 wlarc=
8949
8950 # A generic and very simple default shared library creation
8951 # command for GNU C++ for the case where it uses the native
8952 # linker, instead of GNU ld. If possible, this setting should
8953 # overridden to take advantage of the native linker features on
8954 # the platform it is being used on.
8955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8956 fi
8957
8958 # Commands to make compiler produce verbose output that lists
8959 # what "hidden" libraries, object files and flags are used when
8960 # linking a shared library.
8961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8962
8963else
8964 GXX=no
8965 with_gnu_ld=no
8966 wlarc=
8967fi
8968
8969# PORTME: fill in a description of your system's C++ link characteristics
8970echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8972ld_shlibs_CXX=yes
8973case $host_os in
8974 aix3*)
8975 # FIXME: insert proper C++ library support
8976 ld_shlibs_CXX=no
8977 ;;
8978 aix4* | aix5*)
8979 if test "$host_cpu" = ia64; then
8980 # On IA64, the linker does run time linking by default, so we don't
8981 # have to do anything special.
8982 aix_use_runtimelinking=no
8983 exp_sym_flag='-Bexport'
8984 no_entry_flag=""
8985 else
8986 # KDE requires run time linking. Make it the default.
8987 aix_use_runtimelinking=yes
8988 exp_sym_flag='-bexport'
8989 no_entry_flag='-bnoentry'
8990 fi
8991
8992 # When large executables or shared objects are built, AIX ld can
8993 # have problems creating the table of contents. If linking a library
8994 # or program results in "error TOC overflow" add -mminimal-toc to
8995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8997
8998 archive_cmds_CXX=''
8999 hardcode_direct_CXX=yes
9000 hardcode_libdir_separator_CXX=':'
9001 link_all_deplibs_CXX=yes
9002
9003 if test "$GXX" = yes; then
9004 case $host_os in aix4.012|aix4.012.*)
9005 # We only want to do this on AIX 4.2 and lower, the check
9006 # below for broken collect2 doesn't work under 4.3+
9007 collect2name=`${CC} -print-prog-name=collect2`
9008 if test -f "$collect2name" && \
9009 strings "$collect2name" | grep resolve_lib_name >/dev/null
9010 then
9011 # We have reworked collect2
9012 hardcode_direct_CXX=yes
9013 else
9014 # We have old collect2
9015 hardcode_direct_CXX=unsupported
9016 # It fails to find uninstalled libraries when the uninstalled
9017 # path is not listed in the libpath. Setting hardcode_minus_L
9018 # to unsupported forces relinking
9019 hardcode_minus_L_CXX=yes
9020 hardcode_libdir_flag_spec_CXX='-L$libdir'
9021 hardcode_libdir_separator_CXX=
9022 fi
9023 esac
9024 shared_flag='-shared'
9025 else
9026 # not using gcc
9027 if test "$host_cpu" = ia64; then
9028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9029 # chokes on -Wl,-G. The following line is correct:
9030 shared_flag='-G'
9031 else
9032 if test "$aix_use_runtimelinking" = yes; then
9033 shared_flag='-qmkshrobj ${wl}-G'
9034 else
9035 shared_flag='-qmkshrobj'
9036 fi
9037 fi
9038 fi
9039
9040 # Let the compiler handle the export list.
9041 always_export_symbols_CXX=no
9042 if test "$aix_use_runtimelinking" = yes; then
9043 # Warning - without using the other runtime loading flags (-brtl),
9044 # -berok will link without error, but may produce a broken library.
9045 allow_undefined_flag_CXX='-berok'
9046 # Determine the default libpath from the value encoded in an empty executable.
9047 cat >conftest.$ac_ext <<_ACEOF
9048#line $LINENO "configure"
9049#include "confdefs.h"
9050
9051#ifdef F77_DUMMY_MAIN
9052# ifdef __cplusplus
9053 extern "C"
9054# endif
9055 int F77_DUMMY_MAIN() { return 1; }
9056#endif
9057int
9058main ()
9059{
9060
9061 ;
9062 return 0;
9063}
9064_ACEOF
9065rm -f conftest.$ac_objext conftest$ac_exeext
9066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077
9078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9079}'`
9080# Check for a 64-bit object if we didn't find anything.
9081if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9082}'`; fi
9083else
9084 echo "$as_me: failed program was:" >&5
9085cat conftest.$ac_ext >&5
9086fi
9087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9088if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9089
9090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9091
9092 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
9093 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9094 else
9095 if test "$host_cpu" = ia64; then
9096 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9097 allow_undefined_flag_CXX="-z nodefs"
9098 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9099 else
9100 # Determine the default libpath from the value encoded in an empty executable.
9101 cat >conftest.$ac_ext <<_ACEOF
9102#line $LINENO "configure"
9103#include "confdefs.h"
9104
9105#ifdef F77_DUMMY_MAIN
9106# ifdef __cplusplus
9107 extern "C"
9108# endif
9109 int F77_DUMMY_MAIN() { return 1; }
9110#endif
9111int
9112main ()
9113{
9114
9115 ;
9116 return 0;
9117}
9118_ACEOF
9119rm -f conftest.$ac_objext conftest$ac_exeext
9120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -s conftest$ac_exeext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131
9132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9133}'`
9134# Check for a 64-bit object if we didn't find anything.
9135if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9136}'`; fi
9137else
9138 echo "$as_me: failed program was:" >&5
9139cat conftest.$ac_ext >&5
9140fi
9141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9142if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9143
9144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9145 # Warning - without using the other run time loading flags,
9146 # -berok will link without error, but may produce a broken library.
9147 no_undefined_flag_CXX=' ${wl}-bernotok'
9148 allow_undefined_flag_CXX=' ${wl}-berok'
9149 # -bexpall does not export symbols beginning with underscore (_)
9150 always_export_symbols_CXX=yes
9151 # Exported symbols can be pulled into shared objects from archives
9152 whole_archive_flag_spec_CXX=' '
9153 archive_cmds_need_lc_CXX=yes
9154 # This is similar to how AIX traditionally builds it's shared libraries.
9155 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9156 fi
9157 fi
9158 ;;
9159 chorus*)
9160 case $cc_basename in
9161 *)
9162 # FIXME: insert proper C++ library support
9163 ld_shlibs_CXX=no
9164 ;;
9165 esac
9166 ;;
9167 dgux*)
9168 case $cc_basename in
9169 ec++)
9170 # FIXME: insert proper C++ library support
9171 ld_shlibs_CXX=no
9172 ;;
9173 ghcx)
9174 # Green Hills C++ Compiler
9175 # FIXME: insert proper C++ library support
9176 ld_shlibs_CXX=no
9177 ;;
9178 *)
9179 # FIXME: insert proper C++ library support
9180 ld_shlibs_CXX=no
9181 ;;
9182 esac
9183 ;;
9184 freebsd12*)
9185 # C++ shared libraries reported to be fairly broken before switch to ELF
9186 ld_shlibs_CXX=no
9187 ;;
9188 freebsd-elf*)
9189 archive_cmds_need_lc_CXX=no
9190 ;;
9191 freebsd*)
9192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9193 # conventions
9194 ld_shlibs_CXX=yes
9195 ;;
9196 gnu*)
9197 ;;
9198 hpux*)
9199 if test $with_gnu_ld = no; then
9200 if test "$host_cpu" = ia64; then
9201 hardcode_libdir_flag_spec_CXX='-L$libdir'
9202 else
9203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9204 hardcode_libdir_separator_CXX=:
9205 export_dynamic_flag_spec_CXX='${wl}-E'
9206 fi
9207 fi
9208 if test "$host_cpu" = ia64; then
9209 hardcode_direct_CXX=no
9210 hardcode_shlibpath_var_CXX=no
9211 else
9212 hardcode_direct_CXX=yes
9213 fi
9214 hardcode_minus_L_CXX=yes # Not in the search PATH,
9215 # but as the default
9216 # location of the library.
9217
9218 case $cc_basename in
9219 CC)
9220 # FIXME: insert proper C++ library support
9221 ld_shlibs_CXX=no
9222 ;;
9223 aCC)
9224 case $host_os in
9225 hpux9*)
9226 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9227 ;;
9228 *)
9229 if test "$host_cpu" = ia64; then
9230 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9231 else
9232 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9233 fi
9234 ;;
9235 esac
9236 # Commands to make compiler produce verbose output that lists
9237 # what "hidden" libraries, object files and flags are used when
9238 # linking a shared library.
9239 #
9240 # There doesn't appear to be a way to prevent this compiler from
9241 # explicitly linking system object files so we need to strip them
9242 # from the output so that they don't get included in the library
9243 # dependencies.
9244 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9245 ;;
9246 *)
9247 if test "$GXX" = yes; then
9248 if test $with_gnu_ld = no; then
9249 case $host_os in
9250 hpux9*)
9251 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9252 ;;
9253 *)
9254 if test "$host_cpu" = ia64; then
9255 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9256 else
9257 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9258 fi
9259 ;;
9260 esac
9261 fi
9262 else
9263 # FIXME: insert proper C++ library support
9264 ld_shlibs_CXX=no
9265 fi
9266 ;;
9267 esac
9268 ;;
9269 irix5* | irix6*)
9270 case $cc_basename in
9271 CC)
9272 # SGI C++
9273 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9274
9275 # Archives containing C++ object files must be created using
9276 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9277 # necessary to make sure instantiated templates are included
9278 # in the archive.
9279 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9280 ;;
9281 *)
9282 if test "$GXX" = yes; then
9283 if test "$with_gnu_ld" = no; then
9284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9285 else
9286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9287 fi
9288 fi
9289 link_all_deplibs_CXX=yes
9290 ;;
9291 esac
9292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator_CXX=:
9294 ;;
9295 linux*)
9296 case $cc_basename in
9297 KCC)
9298 # Kuck and Associates, Inc. (KAI) C++ Compiler
9299
9300 # KCC will only create a shared library if the output file
9301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9302 # to its proper name (with version) after linking.
9303 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9304 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9305
9306 # Commands to make compiler produce verbose output that lists
9307 # what "hidden" libraries, object files and flags are used when
9308 # linking a shared library.
9309 #
9310 # There doesn't appear to be a way to prevent this compiler from
9311 # explicitly linking system object files so we need to strip them
9312 # from the output so that they don't get included in the library
9313 # dependencies.
9314 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9315
9316 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9318
9319 # Archives containing C++ object files must be created using
9320 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9321 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9322 ;;
9323 cxx)
9324 # Compaq C++
9325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9327
9328 runpath_var=LD_RUN_PATH
9329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9330 hardcode_libdir_separator_CXX=:
9331
9332 # Commands to make compiler produce verbose output that lists
9333 # what "hidden" libraries, object files and flags are used when
9334 # linking a shared library.
9335 #
9336 # There doesn't appear to be a way to prevent this compiler from
9337 # explicitly linking system object files so we need to strip them
9338 # from the output so that they don't get included in the library
9339 # dependencies.
9340 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9341 ;;
9342 esac
9343 ;;
9344 lynxos*)
9345 # FIXME: insert proper C++ library support
9346 ld_shlibs_CXX=no
9347 ;;
9348 m88k*)
9349 # FIXME: insert proper C++ library support
9350 ld_shlibs_CXX=no
9351 ;;
9352 mvs*)
9353 case $cc_basename in
9354 cxx)
9355 # FIXME: insert proper C++ library support
9356 ld_shlibs_CXX=no
9357 ;;
9358 *)
9359 # FIXME: insert proper C++ library support
9360 ld_shlibs_CXX=no
9361 ;;
9362 esac
9363 ;;
9364 netbsd*)
9365 # NetBSD uses g++ - do we need to do anything?
9366 ;;
9367 osf3*)
9368 case $cc_basename in
9369 KCC)
9370 # Kuck and Associates, Inc. (KAI) C++ Compiler
9371
9372 # KCC will only create a shared library if the output file
9373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9374 # to its proper name (with version) after linking.
9375 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9376
9377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9378 hardcode_libdir_separator_CXX=:
9379
9380 # Archives containing C++ object files must be created using
9381 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9382 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9383
9384 ;;
9385 RCC)
9386 # Rational C++ 2.4.1
9387 # FIXME: insert proper C++ library support
9388 ld_shlibs_CXX=no
9389 ;;
9390 cxx)
9391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9392 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9393
9394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9396
9397 # Commands to make compiler produce verbose output that lists
9398 # what "hidden" libraries, object files and flags are used when
9399 # linking a shared library.
9400 #
9401 # There doesn't appear to be a way to prevent this compiler from
9402 # explicitly linking system object files so we need to strip them
9403 # from the output so that they don't get included in the library
9404 # dependencies.
9405 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9406 ;;
9407 *)
9408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9410 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9411
9412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9413 hardcode_libdir_separator_CXX=:
9414
9415 # Commands to make compiler produce verbose output that lists
9416 # what "hidden" libraries, object files and flags are used when
9417 # linking a shared library.
9418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9419
9420 else
9421 # FIXME: insert proper C++ library support
9422 ld_shlibs_CXX=no
9423 fi
9424 ;;
9425 esac
9426 ;;
9427 osf4* | osf5*)
9428 case $cc_basename in
9429 KCC)
9430 # Kuck and Associates, Inc. (KAI) C++ Compiler
9431
9432 # KCC will only create a shared library if the output file
9433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9434 # to its proper name (with version) after linking.
9435 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9436
9437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9438 hardcode_libdir_separator_CXX=:
9439
9440 # Archives containing C++ object files must be created using
9441 # the KAI C++ compiler.
9442 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9443 ;;
9444 RCC)
9445 # Rational C++ 2.4.1
9446 # FIXME: insert proper C++ library support
9447 ld_shlibs_CXX=no
9448 ;;
9449 cxx)
9450 allow_undefined_flag_CXX=' -expect_unresolved \*'
9451 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9452 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9453 echo "-hidden">> $lib.exp~
9454 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9455 $rm $lib.exp'
9456
9457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9458 hardcode_libdir_separator_CXX=:
9459
9460 # Commands to make compiler produce verbose output that lists
9461 # what "hidden" libraries, object files and flags are used when
9462 # linking a shared library.
9463 #
9464 # There doesn't appear to be a way to prevent this compiler from
9465 # explicitly linking system object files so we need to strip them
9466 # from the output so that they don't get included in the library
9467 # dependencies.
9468 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9469 ;;
9470 *)
9471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9473 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9474
9475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9476 hardcode_libdir_separator_CXX=:
9477
9478 # Commands to make compiler produce verbose output that lists
9479 # what "hidden" libraries, object files and flags are used when
9480 # linking a shared library.
9481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9482
9483 else
9484 # FIXME: insert proper C++ library support
9485 ld_shlibs_CXX=no
9486 fi
9487 ;;
9488 esac
9489 ;;
9490 psos*)
9491 # FIXME: insert proper C++ library support
9492 ld_shlibs_CXX=no
9493 ;;
9494 sco*)
9495 archive_cmds_need_lc_CXX=no
9496 case $cc_basename in
9497 CC)
9498 # FIXME: insert proper C++ library support
9499 ld_shlibs_CXX=no
9500 ;;
9501 *)
9502 # FIXME: insert proper C++ library support
9503 ld_shlibs_CXX=no
9504 ;;
9505 esac
9506 ;;
9507 sunos4*)
9508 case $cc_basename in
9509 CC)
9510 # Sun C++ 4.x
9511 # FIXME: insert proper C++ library support
9512 ld_shlibs_CXX=no
9513 ;;
9514 lcc)
9515 # Lucid
9516 # FIXME: insert proper C++ library support
9517 ld_shlibs_CXX=no
9518 ;;
9519 *)
9520 # FIXME: insert proper C++ library support
9521 ld_shlibs_CXX=no
9522 ;;
9523 esac
9524 ;;
9525 solaris*)
9526 case $cc_basename in
9527 CC)
9528 # Sun C++ 4.2, 5.x and Centerline C++
9529 no_undefined_flag_CXX=' -zdefs'
9530 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9532 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9533
9534 hardcode_libdir_flag_spec_CXX='-R$libdir'
9535 hardcode_shlibpath_var_CXX=no
9536 case $host_os in
9537 solaris2.0-5 | solaris2.0-5.*) ;;
9538 *)
9539 # The C++ compiler is used as linker so we must use $wl
9540 # flag to pass the commands to the underlying system
9541 # linker.
9542 # Supported since Solaris 2.6 (maybe 2.5.1?)
9543 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9544 ;;
9545 esac
9546 link_all_deplibs_CXX=yes
9547
9548 # Commands to make compiler produce verbose output that lists
9549 # what "hidden" libraries, object files and flags are used when
9550 # linking a shared library.
9551 #
9552 # There doesn't appear to be a way to prevent this compiler from
9553 # explicitly linking system object files so we need to strip them
9554 # from the output so that they don't get included in the library
9555 # dependencies.
9556 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9557
9558 # Archives containing C++ object files must be created using
9559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9560 # necessary to make sure instantiated templates are included
9561 # in the archive.
9562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9563 ;;
9564 gcx)
9565 # Green Hills C++ Compiler
9566 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9567
9568 # The C++ compiler must be used to create the archive.
9569 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9570 ;;
9571 *)
9572 # GNU C++ compiler with Solaris linker
9573 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9574 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9575 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9576 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9577 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9579
9580 # Commands to make compiler produce verbose output that lists
9581 # what "hidden" libraries, object files and flags are used when
9582 # linking a shared library.
9583 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9584 else
9585 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9586 # platform.
9587 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9589 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9590
9591 # Commands to make compiler produce verbose output that lists
9592 # what "hidden" libraries, object files and flags are used when
9593 # linking a shared library.
9594 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9595 fi
9596
9597 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9598 fi
9599 ;;
9600 esac
9601 ;;
9602 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9603 archive_cmds_need_lc_CXX=no
9604 ;;
9605 tandem*)
9606 case $cc_basename in
9607 NCC)
9608 # NonStop-UX NCC 3.20
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 *)
9613 # FIXME: insert proper C++ library support
9614 ld_shlibs_CXX=no
9615 ;;
9616 esac
9617 ;;
9618 vxworks*)
9619 # FIXME: insert proper C++ library support
9620 ld_shlibs_CXX=no
9621 ;;
9622 *)
9623 # FIXME: insert proper C++ library support
9624 ld_shlibs_CXX=no
9625 ;;
9626esac
9627echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9628echo "${ECHO_T}$ld_shlibs_CXX" >&6
9629test "$ld_shlibs_CXX" = no && can_build_shared=no
9630
9631# Figure out "hidden" C++ library dependencies from verbose
9632# compiler output whening linking a shared library.
9633cat > conftest.$ac_ext <<EOF
9634class Foo
9635{
9636public:
9637 Foo (void) { a = 0; }
9638private:
9639 int a;
9640};
9641EOF
9642
9643
9644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; then
9649 # Parse the compiler output and extract the necessary
9650 # objects, libraries and library flags.
9651
9652 # Sentinel used to keep track of whether or not we are before
9653 # the conftest object file.
9654 pre_test_object_deps_done=no
9655
9656 # The `*' in the case matches for architectures that use `case' in
9657 # $output_verbose_cmd can trigger glob expansion during the loop
9658 # eval without this substitution.
9659 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9660
9661 for p in `eval $output_verbose_link_cmd`; do
9662 case $p in
9663
9664 -L* | -R* | -l*)
9665 # Some compilers place space between "-{L,R}" and the path.
9666 # Remove the space.
9667 if test $p = "-L" \
9668 || test $p = "-R"; then
9669 prev=$p
9670 continue
9671 else
9672 prev=
9673 fi
9674
9675 if test "$pre_test_object_deps_done" = no; then
9676 case $p in
9677 -L* | -R*)
9678 # Internal compiler library paths should come after those
9679 # provided the user. The postdeps already come after the
9680 # user supplied libs so there is no need to process them.
9681 if test -z "$compiler_lib_search_path_CXX"; then
9682 compiler_lib_search_path_CXX="${prev}${p}"
9683 else
9684 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9685 fi
9686 ;;
9687 # The "-l" case would never come before the object being
9688 # linked, so don't bother handling this case.
9689 esac
9690 else
9691 if test -z "$postdeps_CXX"; then
9692 postdeps_CXX="${prev}${p}"
9693 else
9694 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9695 fi
9696 fi
9697 ;;
9698
9699 *.$objext|*.$libext)
9700 # This assumes that the test object file only shows up
9701 # once in the compiler output.
9702 if test "$p" = "conftest.$objext"; then
9703 pre_test_object_deps_done=yes
9704 continue
9705 fi
9706
9707 if test "$pre_test_object_deps_done" = no; then
9708 if test -z "$predep_objects_CXX"; then
9709 predep_objects_CXX="$p"
9710 else
9711 predep_objects_CXX="$predep_objects_CXX $p"
9712 fi
9713 else
9714 if test -z "$postdep_objects_CXX"; then
9715 postdep_objects_CXX="$p"
9716 else
9717 postdep_objects_CXX="$postdep_objects_CXX $p"
9718 fi
9719 fi
9720 ;;
9721
9722 *) ;; # Ignore the rest.
9723
9724 esac
9725 done
9726
9727 # Clean up.
9728 rm -f a.out
9729else
9730 echo "libtool.m4: error: problem compiling C++ test program"
9731fi
9732
9733$rm -f confest.$objext
9734
9735case " $postdeps_CXX " in
9736*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9737*) archive_cmds_need_lc_CXX=yes ;;
9738esac
9739
9740GCC_CXX="$GXX"
9741LD_CXX="$LD"
9742
9743lt_prog_compiler_wl_CXX=
9744lt_prog_compiler_pic_CXX=
9745lt_prog_compiler_static_CXX=
9746
9747echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9748echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9749
9750 # C++ specific cases for pic, static, wl, etc.
9751 if test "$GXX" = yes; then
9752 lt_prog_compiler_wl_CXX='-Wl,'
9753 lt_prog_compiler_static_CXX='-static'
9754
9755 case $host_os in
9756 aix*)
9757 # All AIX code is PIC.
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 now supports IA64 processor
9760 lt_prog_compiler_static_CXX='-Bstatic'
9761 fi
9762 ;;
9763 amigaos*)
9764 # FIXME: we need at least 68020 code to build shared libraries, but
9765 # adding the `-m68020' flag to GCC prevents building anything better,
9766 # like `-m68040'.
9767 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9768 ;;
9769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9770 # PIC is the default for these OSes.
9771 ;;
9772 cygwin* | mingw* | os2*)
9773 # This hack is so that the source file can tell whether it is being
9774 # built for inclusion in a dll (and should export symbols for example).
9775 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9776 ;;
9777 darwin* | rhapsody*)
9778 # PIC is the default on this platform
9779 # Common symbols not allowed in MH_DYLIB files
9780 lt_prog_compiler_pic_CXX='-fno-common'
9781 ;;
9782 *djgpp*)
9783 # DJGPP does not support shared libraries at all
9784 lt_prog_compiler_pic_CXX=
9785 ;;
9786 sysv4*MP*)
9787 if test -d /usr/nec; then
9788 lt_prog_compiler_pic_CXX=-Kconform_pic
9789 fi
9790 ;;
9791 hpux*)
9792 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9793 if test "$host_cpu" != ia64; then
9794 lt_prog_compiler_pic_CXX='-fPIC'
9795 fi
9796 ;;
9797 *)
9798 lt_prog_compiler_pic_CXX='-fPIC'
9799 ;;
9800 esac
9801 else
9802 case $host_os in
9803 aix4* | aix5*)
9804 # All AIX code is PIC.
9805 if test "$host_cpu" = ia64; then
9806 # AIX 5 now supports IA64 processor
9807 lt_prog_compiler_static_CXX='-Bstatic'
9808 else
9809 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9810 fi
9811 ;;
9812 chorus*)
9813 case $cc_basename in
9814 cxch68)
9815 # Green Hills C++ Compiler
9816 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
9817 ;;
9818 esac
9819 ;;
9820 dgux*)
9821 case $cc_basename in
9822 ec++)
9823 lt_prog_compiler_pic_CXX='-KPIC'
9824 ;;
9825 ghcx)
9826 # Green Hills C++ Compiler
9827 lt_prog_compiler_pic_CXX='-pic'
9828 ;;
9829 *)
9830 ;;
9831 esac
9832 ;;
9833 freebsd*)
9834 # FreeBSD uses GNU C++
9835 ;;
9836 hpux9* | hpux10* | hpux11*)
9837 case $cc_basename in
9838 CC)
9839 lt_prog_compiler_wl_CXX='-Wl,'
9840 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9841 if test "$host_cpu" != ia64; then
9842 lt_prog_compiler_pic_CXX='+Z'
9843 fi
9844 ;;
9845 aCC)
9846 lt_prog_compiler_wl_CXX='-Wl,'
9847 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9848 if test "$host_cpu" != ia64; then
9849 lt_prog_compiler_pic_CXX='+Z'
9850 fi
9851 ;;
9852 *)
9853 ;;
9854 esac
9855 ;;
9856 irix5* | irix6* | nonstopux*)
9857 case $cc_basename in
9858 CC)
9859 lt_prog_compiler_wl_CXX='-Wl,'
9860 lt_prog_compiler_static_CXX='-non_shared'
9861 # CC pic flag -KPIC is the default.
9862 ;;
9863 *)
9864 ;;
9865 esac
9866 ;;
9867 linux*)
9868 case $cc_basename in
9869 KCC)
9870 # KAI C++ Compiler
9871 lt_prog_compiler_wl_CXX='--backend -Wl,'
9872 lt_prog_compiler_pic_CXX='-fPIC'
9873 ;;
9874 cxx)
9875 # Compaq C++
9876 # Make sure the PIC flag is empty. It appears that all Alpha
9877 # Linux and Compaq Tru64 Unix objects are PIC.
9878 lt_prog_compiler_pic_CXX=
9879 lt_prog_compiler_static_CXX='-non_shared'
9880 ;;
9881 *)
9882 ;;
9883 esac
9884 ;;
9885 lynxos*)
9886 ;;
9887 m88k*)
9888 ;;
9889 mvs*)
9890 case $cc_basename in
9891 cxx)
9892 lt_prog_compiler_pic_CXX='-W c,exportall'
9893 ;;
9894 *)
9895 ;;
9896 esac
9897 ;;
9898 netbsd*)
9899 ;;
9900 osf3* | osf4* | osf5*)
9901 case $cc_basename in
9902 KCC)
9903 lt_prog_compiler_wl_CXX='--backend -Wl,'
9904 ;;
9905 RCC)
9906 # Rational C++ 2.4.1
9907 lt_prog_compiler_pic_CXX='-pic'
9908 ;;
9909 cxx)
9910 # Digital/Compaq C++
9911 lt_prog_compiler_wl_CXX='-Wl,'
9912 # Make sure the PIC flag is empty. It appears that all Alpha
9913 # Linux and Compaq Tru64 Unix objects are PIC.
9914 lt_prog_compiler_pic_CXX=
9915 lt_prog_compiler_static_CXX='-non_shared'
9916 ;;
9917 *)
9918 ;;
9919 esac
9920 ;;
9921 psos*)
9922 ;;
9923 sco*)
9924 case $cc_basename in
9925 CC)
9926 lt_prog_compiler_pic_CXX='-fPIC'
9927 ;;
9928 *)
9929 ;;
9930 esac
9931 ;;
9932 solaris*)
9933 case $cc_basename in
9934 CC)
9935 # Sun C++ 4.2, 5.x and Centerline C++
9936 lt_prog_compiler_pic_CXX='-KPIC'
9937 lt_prog_compiler_static_CXX='-Bstatic'
9938 lt_prog_compiler_wl_CXX='-Qoption ld '
9939 ;;
9940 gcx)
9941 # Green Hills C++ Compiler
9942 lt_prog_compiler_pic_CXX='-PIC'
9943 ;;
9944 *)
9945 ;;
9946 esac
9947 ;;
9948 sunos4*)
9949 case $cc_basename in
9950 CC)
9951 # Sun C++ 4.x
9952 lt_prog_compiler_pic_CXX='-pic'
9953 lt_prog_compiler_static_CXX='-Bstatic'
9954 ;;
9955 lcc)
9956 # Lucid
9957 lt_prog_compiler_pic_CXX='-pic'
9958 ;;
9959 *)
9960 ;;
9961 esac
9962 ;;
9963 tandem*)
9964 case $cc_basename in
9965 NCC)
9966 # NonStop-UX NCC 3.20
9967 lt_prog_compiler_pic_CXX='-KPIC'
9968 ;;
9969 *)
9970 ;;
9971 esac
9972 ;;
9973 unixware*)
9974 ;;
9975 vxworks*)
9976 ;;
9977 *)
9978 lt_prog_compiler_can_build_shared_CXX=no
9979 ;;
9980 esac
9981 fi
9982
9983echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9984echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9985
9986#
9987# Check to make sure the PIC flag actually works.
9988#
9989if test -n "$lt_prog_compiler_pic_CXX"; then
9990 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9991echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9992if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995 lt_prog_compiler_pic_works_CXX=no
9996 ac_outfile=conftest.$ac_objext
9997 save_CFLAGS="$CFLAGS"
9998 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10000 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10001 # The compiler can only warn and ignore the option if not recognized
10002 # So say no if there are warnings
10003 if test -s conftest.err; then
10004 # Append any errors to the config.log.
10005 cat conftest.err 1>&5
10006 else
10007 lt_prog_compiler_pic_works_CXX=yes
10008 fi
10009 fi
10010 $rm conftest*
10011 CFLAGS="$save_CFLAGS"
10012
10013fi
10014echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10015echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10016
10017if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10018 case $lt_prog_compiler_pic_CXX in
10019 "" | " "*) ;;
10020 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10021 esac
10022else
10023 lt_prog_compiler_pic_CXX=
10024 lt_prog_compiler_can_build_shared_CXX=no
10025fi
10026
10027fi
10028case "$host_os" in
10029 # For platforms which do not support PIC, -DPIC is meaningless:
10030 *djgpp*)
10031 lt_prog_compiler_pic_CXX=
10032 ;;
10033 *)
10034 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10035 ;;
10036esac
10037
10038echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10040if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043 lt_cv_prog_compiler_c_o_CXX=no
10044 $rm -r conftest 2>/dev/null
10045 mkdir conftest
10046 cd conftest
10047 mkdir out
10048 save_CXXFLAGS="$CXXFLAGS"
10049 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
10050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10051
10052 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10053 # that will create temporary files in the current directory regardless of
10054 # the output directory. Thus, making CWD read-only will cause this test
10055 # to fail, enabling locking or at least warning the user not to do parallel
10056 # builds.
10057 chmod -w .
10058
10059 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10060 then
10061 # The compiler can only warn and ignore the option if not recognized
10062 # So say no if there are warnings
10063 if test -s out/conftest.err; then
10064 # Append any errors to the config.log.
10065 cat out/conftest.err 1>&5
10066 else
10067 lt_cv_prog_compiler_c_o_CXX=yes
10068 fi
10069 fi
10070 CXXFLAGS="$save_CXXFLAGS"
10071 chmod u+w .
10072 $rm conftest* out/*
10073 rmdir out
10074 cd ..
10075 rmdir conftest
10076 $rm conftest*
10077
10078fi
10079echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10080echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10081
10082
10083hard_links="nottested"
10084if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10085 # do not overwrite the value of need_locks provided by the user
10086 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10087echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10088 hard_links=yes
10089 $rm conftest*
10090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10091 touch conftest.a
10092 ln conftest.a conftest.b 2>&5 || hard_links=no
10093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10094 echo "$as_me:$LINENO: result: $hard_links" >&5
10095echo "${ECHO_T}$hard_links" >&6
10096 if test "$hard_links" = no; then
10097 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10098echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10099 need_locks=warn
10100 fi
10101else
10102 need_locks=no
10103fi
10104
10105echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10106echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10107
10108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10109 case $host_os in
10110 aix4* | aix5*)
10111 # If we're using GNU nm, then we don't want the "-C" option.
10112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10113 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10114 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10115 else
10116 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10117 fi
10118 ;;
10119 cygwin* | mingw* | pw32*)
10120 export_symbols_cmds_CXX="$ltdll_cmds"
10121 ;;
10122 *)
10123 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10124 ;;
10125 esac
10126
10127echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10128echo "${ECHO_T}$ld_shlibs_CXX" >&6
10129test "$ld_shlibs_CXX" = no && can_build_shared=no
10130
10131variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10132if test "$GCC" = yes; then
10133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10134fi
10135
10136#
10137# Do we need to explicitly link libc?
10138#
10139archive_cmds_need_lc_CXX=yes
10140if test "$enable_shared" = yes && test "$GCC" = yes; then
10141 case $archive_cmds_CXX in
10142 *'~'*)
10143 # FIXME: we may have to deal with multi-command sequences.
10144 ;;
10145 '$CC '*)
10146 # Test whether the compiler implicitly links with -lc since on some
10147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10148 # to ld, don't add -lc before -lgcc.
10149 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10150echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10151 $rm conftest*
10152 echo 'static int dummy;' > conftest.$ac_ext
10153
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155 (eval $ac_compile) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } 2>conftest.err; then
10159 soname=conftest
10160 lib=conftest
10161 libobjs=conftest.$ac_objext
10162 deplibs=
10163 wl=$lt_prog_compiler_wl_CXX
10164 compiler_flags=-v
10165 linker_flags=-v
10166 verstring=
10167 output_objdir=.
10168 libname=conftest
10169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10170 allow_undefined_flag_CXX=
10171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10172 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }
10176 then
10177 archive_cmds_need_lc_CXX=no
10178 else
10179 archive_cmds_need_lc_CXX=yes
10180 fi
10181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10182 else
10183 cat conftest.err 1>&5
10184 fi
10185 $rm conftest*
10186 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10187echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10188 ;;
10189 esac
10190fi
10191
10192echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10193echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10194hardcode_action_CXX=
10195if test -n "$hardcode_libdir_flag_spec_CXX" || \
10196 test -n "$runpath_var CXX"; then
10197
10198 # We can hardcode non-existant directories.
10199 if test "$hardcode_direct_CXX" != no &&
10200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10201 # have to relink, otherwise we might link with an installed library
10202 # when we should be linking with a yet-to-be-installed one
10203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10204 test "$hardcode_minus_L_CXX" != no; then
10205 # Linking always hardcodes the temporary library directory.
10206 hardcode_action_CXX=relink
10207 else
10208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10209 hardcode_action_CXX=immediate
10210 fi
10211else
10212 # We cannot hardcode anything, or else we can only hardcode existing
10213 # directories.
10214 hardcode_action_CXX=unsupported
10215fi
10216echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10217echo "${ECHO_T}$hardcode_action_CXX" >&6
10218
10219if test "$hardcode_action_CXX" = relink; then
10220 # Fast installation is not supported
10221 enable_fast_install=no
10222elif test "$shlibpath_overrides_runpath" = yes ||
10223 test "$enable_shared" = no; then
10224 # Fast installation is not necessary
10225 enable_fast_install=needless
10226fi
10227
10228striplib=
10229old_striplib=
10230echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10231echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10232if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240fi
10241
10242echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10243echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10244library_names_spec=
10245libname_spec='lib$name'
10246soname_spec=
10247postinstall_cmds=
10248postuninstall_cmds=
10249finish_cmds=
10250finish_eval=
10251shlibpath_var=
10252shlibpath_overrides_runpath=unknown
10253version_type=none
10254dynamic_linker="$host_os ld.so"
10255sys_lib_dlsearch_path_spec="/lib /usr/lib"
10256sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10257need_lib_prefix=unknown
10258hardcode_into_libs=no
10259
10260# when you set need_version to no, make sure it does not cause -set_version
10261# flags to be left without arguments
10262need_version=unknown
10263
10264case $host_os in
10265aix3*)
10266 version_type=linux
10267 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10268 shlibpath_var=LIBPATH
10269
10270 # AIX 3 has no versioning support, so we append a major version to the name.
10271 soname_spec='${libname}${release}.so$major'
10272 ;;
10273
10274aix4* | aix5*)
10275 version_type=linux
10276 if test "$host_cpu" = ia64; then
10277 # AIX 5 supports IA64
10278 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 else
10281 # With GCC up to 2.95.x, collect2 would create an import file
10282 # for dependence libraries. The import file would start with
10283 # the line `#! .'. This would cause the generated library to
10284 # depend on `.', always an invalid library. This was fixed in
10285 # development snapshots of GCC prior to 3.0.
10286 case $host_os in
10287 aix4 | aix4.[01] | aix4.[01].*)
10288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10289 echo ' yes '
10290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10291 :
10292 else
10293 can_build_shared=no
10294 fi
10295 ;;
10296 esac
10297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10298 # soname into executable. Probably we can add versioning support to
10299 # collect2, so additional links can be useful in future.
10300 if test "$aix_use_runtimelinking" = yes; then
10301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10302 # instead of lib<name>.a to let people know that these are not
10303 # typical AIX shared libraries.
10304 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10305 else
10306 # We preserve .a as extension for shared libraries through AIX4.2
10307 # and later when we are not doing run time linking.
10308 library_names_spec='${libname}${release}.a $libname.a'
10309 soname_spec='${libname}${release}.so$major'
10310 fi
10311 shlibpath_var=LIBPATH
10312 fi
10313 ;;
10314
10315amigaos*)
10316 library_names_spec='$libname.ixlibrary $libname.a'
10317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10318 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
10319 ;;
10320
10321beos*)
10322 library_names_spec='${libname}.so'
10323 dynamic_linker="$host_os ld.so"
10324 shlibpath_var=LIBRARY_PATH
10325 ;;
10326
10327bsdi4*)
10328 version_type=linux
10329 need_version=no
10330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10331 soname_spec='${libname}${release}.so$major'
10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10336 # the default ld.so.conf also contains /usr/contrib/lib and
10337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10338 # libtool to hard-code these into programs
10339 ;;
10340
10341cygwin* | mingw* | pw32*)
10342 version_type=windows
10343 need_version=no
10344 need_lib_prefix=no
10345 case $GCC,$host_os in
10346 yes,cygwin*)
10347 library_names_spec='$libname.dll.a'
10348 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10350 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10351 dldir=$destdir/`dirname \$dlpath`~
10352 test -d \$dldir || mkdir -p \$dldir~
10353 $install_prog .libs/$dlname \$dldir/$dlname'
10354 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10355 dlpath=$dir/\$dldll~
10356 $rm \$dlpath'
10357 ;;
10358 yes,mingw*)
10359 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10361 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10362 # It is most probably a Windows format PATH printed by
10363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10364 # path with ; separators, and with drive letters. We can handle the
10365 # drive letters (cygwin fileutils understands them), so leave them,
10366 # especially as we might pass files found there to a mingw objdump,
10367 # which wouldn't understand a cygwinified path. Ahh.
10368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10369 else
10370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10371 fi
10372 ;;
10373 yes,pw32*)
10374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10375 ;;
10376 *)
10377 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10378 ;;
10379 esac
10380 dynamic_linker='Win32 ld.exe'
10381 # FIXME: first we should search . and the directory the executable is in
10382 shlibpath_var=PATH
10383 ;;
10384
10385darwin* | rhapsody*)
10386 dynamic_linker="$host_os dyld"
10387 version_type=darwin
10388 need_lib_prefix=no
10389 need_version=no
10390 # FIXME: Relying on posixy $() will cause problems for
10391 # cross-compilation, but unfortunately the echo tests do not
10392 # yet detect zsh echo's removal of \ escapes.
10393 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10394 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10395 shlibpath_overrides_runpath=yes
10396 shlibpath_var=DYLD_LIBRARY_PATH
10397 ;;
10398
10399dgux*)
10400 version_type=linux
10401 need_lib_prefix=no
10402 need_version=no
10403 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10404 soname_spec='${libname}${release}.so$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 ;;
10407
10408freebsd1*)
10409 dynamic_linker=no
10410 ;;
10411
10412freebsd*)
10413 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10414 version_type=freebsd-$objformat
10415 case $version_type in
10416 freebsd-elf*)
10417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10418 need_version=no
10419 need_lib_prefix=no
10420 ;;
10421 freebsd-*)
10422 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10423 need_version=yes
10424 ;;
10425 esac
10426 shlibpath_var=LD_LIBRARY_PATH
10427 case $host_os in
10428 freebsd2*)
10429 shlibpath_overrides_runpath=yes
10430 ;;
10431 freebsd3.01* | freebsdelf3.01*)
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10434 ;;
10435 *) # from 3.2 on
10436 shlibpath_overrides_runpath=no
10437 hardcode_into_libs=yes
10438 ;;
10439 esac
10440 ;;
10441
10442gnu*)
10443 version_type=linux
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10447 soname_spec='${libname}${release}.so$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 hardcode_into_libs=yes
10450 ;;
10451
10452hpux9* | hpux10* | hpux11*)
10453 # Give a soname corresponding to the major version so that dld.sl refuses to
10454 # link against other versions.
10455 version_type=sunos
10456 need_lib_prefix=no
10457 need_version=no
10458 if test "$host_cpu" = ia64; then
10459 hardcode_into_libs=yes
10460 dynamic_linker="$host_os dld.so"
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10464 soname_spec='${libname}${release}.so$major'
10465 if test "X$HPUX_IA64_MODE" = X32; then
10466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10467 else
10468 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10469 fi
10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 else
10472 dynamic_linker="$host_os dld.sl"
10473 shlibpath_var=SHLIB_PATH
10474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10475 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10476 soname_spec='${libname}${release}.sl$major'
10477 fi
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10479 postinstall_cmds='chmod 555 $lib'
10480 ;;
10481
10482irix5* | irix6* | nonstopux*)
10483 case $host_os in
10484 nonstopux*) version_type=nonstopux ;;
10485 *) version_type=irix ;;
10486 esac
10487 need_lib_prefix=no
10488 need_version=no
10489 soname_spec='${libname}${release}.so$major'
10490 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10491 case $host_os in
10492 irix5* | nonstopux*)
10493 libsuff= shlibsuff=
10494 ;;
10495 *)
10496 case $LD in # libtool.m4 will add one of these switches to LD
10497 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10498 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10499 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10500 *) libsuff= shlibsuff= libmagic=never-match;;
10501 esac
10502 ;;
10503 esac
10504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10505 shlibpath_overrides_runpath=no
10506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10508 ;;
10509
10510# No shared lib support for Linux oldld, aout, or coff.
10511linux*oldld* | linux*aout* | linux*coff*)
10512 dynamic_linker=no
10513 ;;
10514
10515# This must be Linux ELF.
10516linux*)
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10521 soname_spec='${libname}${release}.so$major'
10522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10523 libsuff=
10524 if test "x$LINUX_64_MODE" = x64; then
10525 # Some platforms are per default 64-bit, so there's no /lib64
10526 if test -d /lib64; then
10527 libsuff=64
10528 fi
10529 fi
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10533 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10534 # This implies no fast_install, which is unacceptable.
10535 # Some rework will be needed to allow for fast_install
10536 # before this can be enabled.
10537 hardcode_into_libs=yes
10538
10539 # We used to test for /lib/ld.so.1 and disable shared libraries on
10540 # powerpc, because MkLinux only supported shared libraries with the
10541 # GNU dynamic linker. Since this was broken with cross compilers,
10542 # most powerpc-linux boxes support dynamic linking these days and
10543 # people can always --disable-shared, the test was removed, and we
10544 # assume the GNU/Linux dynamic linker is in use.
10545 dynamic_linker='GNU/Linux ld.so'
10546 ;;
10547
10548netbsd*)
10549 version_type=sunos
10550 need_lib_prefix=no
10551 need_version=no
10552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10553 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555 dynamic_linker='NetBSD (a.out) ld.so'
10556 else
10557 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10558 soname_spec='${libname}${release}.so$major'
10559 dynamic_linker='NetBSD ld.elf_so'
10560 fi
10561 shlibpath_var=LD_LIBRARY_PATH
10562 shlibpath_overrides_runpath=yes
10563 hardcode_into_libs=yes
10564 ;;
10565
10566newsos6)
10567 version_type=linux
10568 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=yes
10571 ;;
10572
10573nto-qnx)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10578 soname_spec='${libname}${release}.so$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 ;;
10582
10583openbsd*)
10584 version_type=sunos
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10591 case $host_os in
10592 openbsd2.[89] | openbsd2.[89].*)
10593 shlibpath_overrides_runpath=no
10594 ;;
10595 *)
10596 shlibpath_overrides_runpath=yes
10597 ;;
10598 esac
10599 else
10600 shlibpath_overrides_runpath=yes
10601 fi
10602 ;;
10603
10604os2*)
10605 libname_spec='$name'
10606 need_lib_prefix=no
10607 library_names_spec='$libname.dll $libname.a'
10608 dynamic_linker='OS/2 ld.exe'
10609 shlibpath_var=LIBPATH
10610 ;;
10611
10612osf3* | osf4* | osf5*)
10613 version_type=osf
10614 need_lib_prefix=no
10615 need_version=no
10616 soname_spec='${libname}${release}.so'
10617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10621 ;;
10622
10623sco3.2v5*)
10624 version_type=osf
10625 soname_spec='${libname}${release}.so$major'
10626 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 ;;
10629
10630solaris*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10635 soname_spec='${libname}${release}.so$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10639 # ldd complains unless libraries are executable
10640 postinstall_cmds='chmod +x $lib'
10641 ;;
10642
10643sunos4*)
10644 version_type=sunos
10645 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 if test "$with_gnu_ld" = yes; then
10650 need_lib_prefix=no
10651 fi
10652 need_version=yes
10653 ;;
10654
10655sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10656 version_type=linux
10657 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10658 soname_spec='${libname}${release}.so$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 case $host_vendor in
10661 sni)
10662 shlibpath_overrides_runpath=no
10663 ;;
10664 motorola)
10665 need_lib_prefix=no
10666 need_version=no
10667 shlibpath_overrides_runpath=no
10668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10669 ;;
10670 esac
10671 ;;
10672
10673sysv4*MP*)
10674 if test -d /usr/nec ;then
10675 version_type=linux
10676 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10677 soname_spec='$libname.so.$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 fi
10680 ;;
10681
10682uts4*)
10683 version_type=linux
10684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10685 soname_spec='${libname}${release}.so$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 ;;
10688
10689*)
10690 dynamic_linker=no
10691 ;;
10692esac
10693echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694echo "${ECHO_T}$dynamic_linker" >&6
10695test "$dynamic_linker" = no && can_build_shared=no
10696
10697if test "x$enable_dlopen" != xyes; then
10698 enable_dlopen=unknown
10699 enable_dlopen_self=unknown
10700 enable_dlopen_self_static=unknown
10701else
10702 lt_cv_dlopen=no
10703 lt_cv_dlopen_libs=
10704
10705 case $host_os in
10706 beos*)
10707 lt_cv_dlopen="load_add_on"
10708 lt_cv_dlopen_libs=
10709 lt_cv_dlopen_self=yes
10710 ;;
10711
10712 cygwin* | mingw* | pw32*)
10713 lt_cv_dlopen="LoadLibrary"
10714 lt_cv_dlopen_libs=
10715 ;;
10716
10717 *)
10718 echo "$as_me:$LINENO: checking for shl_load" >&5
10719echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10720if test "${ac_cv_func_shl_load+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722else
10723 cat >conftest.$ac_ext <<_ACEOF
10724#line $LINENO "configure"
10725#include "confdefs.h"
10726/* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char shl_load (); below. */
10728#include <assert.h>
10729/* Override any gcc2 internal prototype to avoid an error. */
10730#ifdef __cplusplus
10731extern "C"
10732#endif
10733/* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10735char shl_load ();
10736char (*f) ();
10737
10738#ifdef F77_DUMMY_MAIN
10739# ifdef __cplusplus
10740 extern "C"
10741# endif
10742 int F77_DUMMY_MAIN() { return 1; }
10743#endif
10744int
10745main ()
10746{
10747/* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750#if defined (__stub_shl_load) || defined (__stub___shl_load)
10751choke me
10752#else
10753f = shl_load;
10754#endif
10755
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -s conftest$ac_exeext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_func_shl_load=yes
10773else
10774 echo "$as_me: failed program was:" >&5
10775cat conftest.$ac_ext >&5
10776ac_cv_func_shl_load=no
10777fi
10778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10779fi
10780echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10781echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10782if test $ac_cv_func_shl_load = yes; then
10783 lt_cv_dlopen="shl_load"
10784else
10785 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10786echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10787if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789else
10790 ac_check_lib_save_LIBS=$LIBS
10791LIBS="-ldld $LIBS"
10792cat >conftest.$ac_ext <<_ACEOF
10793#line $LINENO "configure"
10794#include "confdefs.h"
10795
10796/* Override any gcc2 internal prototype to avoid an error. */
10797#ifdef __cplusplus
10798extern "C"
10799#endif
10800/* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802char shl_load ();
10803#ifdef F77_DUMMY_MAIN
10804# ifdef __cplusplus
10805 extern "C"
10806# endif
10807 int F77_DUMMY_MAIN() { return 1; }
10808#endif
10809int
10810main ()
10811{
10812shl_load ();
10813 ;
10814 return 0;
10815}
10816_ACEOF
10817rm -f conftest.$ac_objext conftest$ac_exeext
10818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_lib_dld_shl_load=yes
10830else
10831 echo "$as_me: failed program was:" >&5
10832cat conftest.$ac_ext >&5
10833ac_cv_lib_dld_shl_load=no
10834fi
10835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10836LIBS=$ac_check_lib_save_LIBS
10837fi
10838echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10839echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10840if test $ac_cv_lib_dld_shl_load = yes; then
10841 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10842else
10843 echo "$as_me:$LINENO: checking for dlopen" >&5
10844echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10845if test "${ac_cv_func_dlopen+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 cat >conftest.$ac_ext <<_ACEOF
10849#line $LINENO "configure"
10850#include "confdefs.h"
10851/* System header to define __stub macros and hopefully few prototypes,
10852 which can conflict with char dlopen (); below. */
10853#include <assert.h>
10854/* Override any gcc2 internal prototype to avoid an error. */
10855#ifdef __cplusplus
10856extern "C"
10857#endif
10858/* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10860char dlopen ();
10861char (*f) ();
10862
10863#ifdef F77_DUMMY_MAIN
10864# ifdef __cplusplus
10865 extern "C"
10866# endif
10867 int F77_DUMMY_MAIN() { return 1; }
10868#endif
10869int
10870main ()
10871{
10872/* The GNU C library defines this for functions which it implements
10873 to always fail with ENOSYS. Some functions are actually named
10874 something starting with __ and the normal name is an alias. */
10875#if defined (__stub_dlopen) || defined (__stub___dlopen)
10876choke me
10877#else
10878f = dlopen;
10879#endif
10880
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext conftest$ac_exeext
10886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887 (eval $ac_link) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -s conftest$ac_exeext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_cv_func_dlopen=yes
10898else
10899 echo "$as_me: failed program was:" >&5
10900cat conftest.$ac_ext >&5
10901ac_cv_func_dlopen=no
10902fi
10903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10904fi
10905echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10906echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10907if test $ac_cv_func_dlopen = yes; then
10908 lt_cv_dlopen="dlopen"
10909else
10910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 ac_check_lib_save_LIBS=$LIBS
10916LIBS="-ldl $LIBS"
10917cat >conftest.$ac_ext <<_ACEOF
10918#line $LINENO "configure"
10919#include "confdefs.h"
10920
10921/* Override any gcc2 internal prototype to avoid an error. */
10922#ifdef __cplusplus
10923extern "C"
10924#endif
10925/* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927char dlopen ();
10928#ifdef F77_DUMMY_MAIN
10929# ifdef __cplusplus
10930 extern "C"
10931# endif
10932 int F77_DUMMY_MAIN() { return 1; }
10933#endif
10934int
10935main ()
10936{
10937dlopen ();
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942rm -f conftest.$ac_objext conftest$ac_exeext
10943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_dl_dlopen=yes
10955else
10956 echo "$as_me: failed program was:" >&5
10957cat conftest.$ac_ext >&5
10958ac_cv_lib_dl_dlopen=no
10959fi
10960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10961LIBS=$ac_check_lib_save_LIBS
10962fi
10963echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10964echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10965if test $ac_cv_lib_dl_dlopen = yes; then
10966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10967else
10968 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10969echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10970if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 ac_check_lib_save_LIBS=$LIBS
10974LIBS="-lsvld $LIBS"
10975cat >conftest.$ac_ext <<_ACEOF
10976#line $LINENO "configure"
10977#include "confdefs.h"
10978
10979/* Override any gcc2 internal prototype to avoid an error. */
10980#ifdef __cplusplus
10981extern "C"
10982#endif
10983/* We use char because int might match the return type of a gcc2
10984 builtin and then its argument prototype would still apply. */
10985char dlopen ();
10986#ifdef F77_DUMMY_MAIN
10987# ifdef __cplusplus
10988 extern "C"
10989# endif
10990 int F77_DUMMY_MAIN() { return 1; }
10991#endif
10992int
10993main ()
10994{
10995dlopen ();
10996 ;
10997 return 0;
10998}
10999_ACEOF
11000rm -f conftest.$ac_objext conftest$ac_exeext
11001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002 (eval $ac_link) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -s conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 ac_cv_lib_svld_dlopen=yes
11013else
11014 echo "$as_me: failed program was:" >&5
11015cat conftest.$ac_ext >&5
11016ac_cv_lib_svld_dlopen=no
11017fi
11018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11019LIBS=$ac_check_lib_save_LIBS
11020fi
11021echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11022echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11023if test $ac_cv_lib_svld_dlopen = yes; then
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11025else
11026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11027echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11028if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030else
11031 ac_check_lib_save_LIBS=$LIBS
11032LIBS="-ldld $LIBS"
11033cat >conftest.$ac_ext <<_ACEOF
11034#line $LINENO "configure"
11035#include "confdefs.h"
11036
11037/* Override any gcc2 internal prototype to avoid an error. */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041/* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11043char dld_link ();
11044#ifdef F77_DUMMY_MAIN
11045# ifdef __cplusplus
11046 extern "C"
11047# endif
11048 int F77_DUMMY_MAIN() { return 1; }
11049#endif
11050int
11051main ()
11052{
11053dld_link ();
11054 ;
11055 return 0;
11056}
11057_ACEOF
11058rm -f conftest.$ac_objext conftest$ac_exeext
11059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_lib_dld_dld_link=yes
11071else
11072 echo "$as_me: failed program was:" >&5
11073cat conftest.$ac_ext >&5
11074ac_cv_lib_dld_dld_link=no
11075fi
11076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_check_lib_save_LIBS
11078fi
11079echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11080echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11081if test $ac_cv_lib_dld_dld_link = yes; then
11082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11083fi
11084
11085
11086fi
11087
11088
11089fi
11090
11091
11092fi
11093
11094
11095fi
11096
11097
11098fi
11099
11100 ;;
11101 esac
11102
11103 if test "x$lt_cv_dlopen" != xno; then
11104 enable_dlopen=yes
11105 else
11106 enable_dlopen=no
11107 fi
11108
11109 case $lt_cv_dlopen in
11110 dlopen)
11111 save_CPPFLAGS="$CPPFLAGS"
11112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11113
11114 save_LDFLAGS="$LDFLAGS"
11115 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11116
11117 save_LIBS="$LIBS"
11118 LIBS="$lt_cv_dlopen_libs $LIBS"
11119
11120 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11121echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11122if test "${lt_cv_dlopen_self+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 if test "$cross_compiling" = yes; then :
11126 lt_cv_dlopen_self=cross
11127else
11128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11129 lt_status=$lt_dlunknown
11130 cat > conftest.$ac_ext <<EOF
11131#line 11131 "configure"
11132#include "confdefs.h"
11133
11134#if HAVE_DLFCN_H
11135#include <dlfcn.h>
11136#endif
11137
11138#include <stdio.h>
11139
11140#ifdef RTLD_GLOBAL
11141# define LT_DLGLOBAL RTLD_GLOBAL
11142#else
11143# ifdef DL_GLOBAL
11144# define LT_DLGLOBAL DL_GLOBAL
11145# else
11146# define LT_DLGLOBAL 0
11147# endif
11148#endif
11149
11150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151 find out it does not work in some platform. */
11152#ifndef LT_DLLAZY_OR_NOW
11153# ifdef RTLD_LAZY
11154# define LT_DLLAZY_OR_NOW RTLD_LAZY
11155# else
11156# ifdef DL_LAZY
11157# define LT_DLLAZY_OR_NOW DL_LAZY
11158# else
11159# ifdef RTLD_NOW
11160# define LT_DLLAZY_OR_NOW RTLD_NOW
11161# else
11162# ifdef DL_NOW
11163# define LT_DLLAZY_OR_NOW DL_NOW
11164# else
11165# define LT_DLLAZY_OR_NOW 0
11166# endif
11167# endif
11168# endif
11169# endif
11170#endif
11171
11172#ifdef __cplusplus
11173extern "C" void exit (int);
11174#endif
11175
11176void fnord() { int i=42;}
11177int main ()
11178{
11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11180 int status = $lt_dlunknown;
11181
11182 if (self)
11183 {
11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11186 /* dlclose (self); */
11187 }
11188
11189 exit (status);
11190}
11191EOF
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11197 (./conftest; exit; ) 2>/dev/null
11198 lt_status=$?
11199 case x$lt_status in
11200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11203 esac
11204 else :
11205 # compilation failed
11206 lt_cv_dlopen_self=no
11207 fi
11208fi
11209rm -fr conftest*
11210
11211
11212fi
11213echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11214echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11215
11216 if test "x$lt_cv_dlopen_self" = xyes; then
11217 LDFLAGS="$LDFLAGS $link_static_flag"
11218 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11219echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11220if test "${lt_cv_dlopen_self_static+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self_static=cross
11225else
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<EOF
11229#line 11229 "configure"
11230#include "confdefs.h"
11231
11232#if HAVE_DLFCN_H
11233#include <dlfcn.h>
11234#endif
11235
11236#include <stdio.h>
11237
11238#ifdef RTLD_GLOBAL
11239# define LT_DLGLOBAL RTLD_GLOBAL
11240#else
11241# ifdef DL_GLOBAL
11242# define LT_DLGLOBAL DL_GLOBAL
11243# else
11244# define LT_DLGLOBAL 0
11245# endif
11246#endif
11247
11248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250#ifndef LT_DLLAZY_OR_NOW
11251# ifdef RTLD_LAZY
11252# define LT_DLLAZY_OR_NOW RTLD_LAZY
11253# else
11254# ifdef DL_LAZY
11255# define LT_DLLAZY_OR_NOW DL_LAZY
11256# else
11257# ifdef RTLD_NOW
11258# define LT_DLLAZY_OR_NOW RTLD_NOW
11259# else
11260# ifdef DL_NOW
11261# define LT_DLLAZY_OR_NOW DL_NOW
11262# else
11263# define LT_DLLAZY_OR_NOW 0
11264# endif
11265# endif
11266# endif
11267# endif
11268#endif
11269
11270#ifdef __cplusplus
11271extern "C" void exit (int);
11272#endif
11273
11274void fnord() { int i=42;}
11275int main ()
11276{
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11279
11280 if (self)
11281 {
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11284 /* dlclose (self); */
11285 }
11286
11287 exit (status);
11288}
11289EOF
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11295 (./conftest; exit; ) 2>/dev/null
11296 lt_status=$?
11297 case x$lt_status in
11298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11300 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11301 esac
11302 else :
11303 # compilation failed
11304 lt_cv_dlopen_self_static=no
11305 fi
11306fi
11307rm -fr conftest*
11308
11309
11310fi
11311echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11312echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11313 fi
11314
11315 CPPFLAGS="$save_CPPFLAGS"
11316 LDFLAGS="$save_LDFLAGS"
11317 LIBS="$save_LIBS"
11318 ;;
11319 esac
11320
11321 case $lt_cv_dlopen_self in
11322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11323 *) enable_dlopen_self=unknown ;;
11324 esac
11325
11326 case $lt_cv_dlopen_self_static in
11327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11328 *) enable_dlopen_self_static=unknown ;;
11329 esac
11330fi
11331
11332
11333# The else clause should only fire when bootstrapping the
11334# libtool distribution, otherwise you forgot to ship ltmain.sh
11335# with your package, and you will get complaints that there are
11336# no rules to generate ltmain.sh.
11337if test -f "$ltmain"; then
11338 # Now quote all the things that may contain metacharacters while being
11339 # careful not to overquote the AC_SUBSTed values. We take copies of the
11340 # variables and quote the copies for generation of the libtool script.
11341 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11344 deplibs_check_method reload_flag reload_cmds need_locks \
11345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11346 lt_cv_sys_global_symbol_to_c_name_address \
11347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11348 old_postinstall_cmds old_postuninstall_cmds \
11349 compiler_CXX \
11350 CC_CXX \
11351 LD_CXX \
11352 lt_prog_compiler_wl_CXX \
11353 lt_prog_compiler_pic_CXX \
11354 lt_prog_compiler_static_CXX \
11355 lt_prog_compiler_no_builtin_flag_CXX \
11356 export_dynamic_flag_spec_CXX \
11357 thread_safe_flag_spec_CXX \
11358 whole_archive_flag_spec_CXX \
11359 old_archive_cmds_CXX \
11360 old_archive_from_new_cmds_CXX \
11361 predep_objects_CXX \
11362 postdep_objects_CXX \
11363 predeps_CXX \
11364 postdeps_CXX \
11365 compiler_lib_search_path_CXX \
11366 archive_cmds_CXX \
11367 archive_expsym_cmds_CXX \
11368 postinstall_cmds_CXX \
11369 postuninstall_cmds_CXX \
11370 old_archive_from_expsyms_cmds_CXX \
11371 allow_undefined_flag_CXX \
11372 no_undefined_flag_CXX \
11373 export_symbols_cmds_CXX \
11374 hardcode_libdir_flag_spec_CXX \
11375 hardcode_libdir_separator_CXX \
11376 lt_cv_prog_compiler_c_o_CXX \
11377 exclude_expsyms_CXX \
11378 include_expsyms_CXX; do
11379
11380 case $var in
11381 old_archive_cmds_CXX | \
11382 old_archive_from_new_cmds_CXX | \
11383 archive_cmds_CXX | \
11384 archive_expsym_cmds_CXX | \
11385 old_archive_from_expsyms_cmds_CXX | \
11386 export_symbols_cmds_CXX | \
11387 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11388 postinstall_cmds | postuninstall_cmds | \
11389 old_postinstall_cmds | old_postuninstall_cmds | \
11390 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11391 # Double-quote double-evaled strings.
11392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11393 ;;
11394 *)
11395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11396 ;;
11397 esac
11398 done
11399
11400 case $lt_echo in
11401 *'\$0 --fallback-echo"')
11402 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11403 ;;
11404 esac
11405
11406cfgfile="$ofile"
11407
11408 cat <<__EOF__ >> "$cfgfile"
11409# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11410
11411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11412
11413# Shell to use when invoking shell scripts.
11414SHELL=$lt_SHELL
11415
11416# Whether or not to build shared libraries.
11417build_libtool_libs=$enable_shared
11418
11419# Whether or not to build static libraries.
11420build_old_libs=$enable_static
11421
11422# Whether or not to add -lc for building shared libraries.
11423build_libtool_need_lc=$archive_cmds_need_lc_CXX
11424
11425# Whether or not to optimize for fast installation.
11426fast_install=$enable_fast_install
11427
11428# The host system.
11429host_alias=$host_alias
11430host=$host
11431
11432# An echo program that does not interpret backslashes.
11433echo=$lt_echo
11434
11435# The archiver.
11436AR=$lt_AR
11437AR_FLAGS=$lt_AR_FLAGS
11438
11439# A C compiler.
11440LTCC=$lt_LTCC
11441
11442# A language-specific compiler.
11443CC=$lt_compiler_CXX
11444
11445# Is the compiler the GNU C compiler?
11446with_gcc=$GCC_CXX
11447
11448# The linker used to build libraries.
11449LD=$lt_LD_CXX
11450
11451# Whether we need hard or soft links.
11452LN_S=$lt_LN_S
11453
11454# A BSD-compatible nm program.
11455NM=$lt_NM
11456
11457# A sed program that does not truncate output.
11458SED=$lt_SED
11459
11460# A symbol stripping program
11461STRIP=$STRIP
11462
11463# Used to examine libraries when file_magic_cmd begins "file"
11464MAGIC_CMD=$MAGIC_CMD
11465
11466# Used on cygwin: DLL creation program.
11467DLLTOOL="$DLLTOOL"
11468
11469# Used on cygwin: object dumper.
11470OBJDUMP="$OBJDUMP"
11471
11472# Used on cygwin: assembler.
11473AS="$AS"
11474
11475# The name of the directory that contains temporary libtool files.
11476objdir=$objdir
11477
11478# How to create reloadable object files.
11479reload_flag=$lt_reload_flag
11480reload_cmds=$lt_reload_cmds
11481
11482# How to pass a linker flag through the compiler.
11483wl=$lt_lt_prog_compiler_wl_CXX
11484
11485# Object file suffix (normally "o").
11486objext="$ac_objext"
11487
11488# Old archive suffix (normally "a").
11489libext="$libext"
11490
11491# Executable file suffix (normally "").
11492exeext="$exeext"
11493
11494# Additional compiler flags for building library objects.
11495pic_flag=$lt_lt_prog_compiler_pic_CXX
11496pic_mode=$pic_mode
11497
11498# What is the maximum length of a command?
11499max_cmd_len=$lt_cv_sys_max_cmd_len
11500
11501# Does compiler simultaneously support -c and -o options?
11502compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11503
11504# Must we lock files when doing compilation ?
11505need_locks=$lt_need_locks
11506
11507# Do we need the lib prefix for modules?
11508need_lib_prefix=$need_lib_prefix
11509
11510# Do we need a version for libraries?
11511need_version=$need_version
11512
11513# Whether dlopen is supported.
11514dlopen_support=$enable_dlopen
11515
11516# Whether dlopen of programs is supported.
11517dlopen_self=$enable_dlopen_self
11518
11519# Whether dlopen of statically linked programs is supported.
11520dlopen_self_static=$enable_dlopen_self_static
11521
11522# Compiler flag to prevent dynamic linking.
11523link_static_flag=$lt_lt_prog_compiler_static_CXX
11524
11525# Compiler flag to turn off builtin functions.
11526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11527
11528# Compiler flag to allow reflexive dlopens.
11529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11530
11531# Compiler flag to generate shared objects directly from archives.
11532whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11533
11534# Compiler flag to generate thread-safe objects.
11535thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11536
11537# Library versioning type.
11538version_type=$version_type
11539
11540# Format of library name prefix.
11541libname_spec=$lt_libname_spec
11542
11543# List of archive names. First name is the real one, the rest are links.
11544# The last name is the one that the linker finds with -lNAME.
11545library_names_spec=$lt_library_names_spec
11546
11547# The coded name of the library, if different from the real name.
11548soname_spec=$lt_soname_spec
11549
11550# Commands used to build and install an old-style archive.
11551RANLIB=$lt_RANLIB
11552old_archive_cmds=$lt_old_archive_cmds_CXX
11553old_postinstall_cmds=$lt_old_postinstall_cmds
11554old_postuninstall_cmds=$lt_old_postuninstall_cmds
11555
11556# Create an old-style archive from a shared archive.
11557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11558
11559# Create a temporary old-style archive to link instead of a shared archive.
11560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11561
11562# Commands used to build and install a shared archive.
11563archive_cmds=$lt_archive_cmds_CXX
11564archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11565postinstall_cmds=$lt_postinstall_cmds
11566postuninstall_cmds=$lt_postuninstall_cmds
11567
11568# Commands to strip libraries.
11569old_striplib=$lt_old_striplib
11570striplib=$lt_striplib
11571
11572# Dependencies to place before the objects being linked to create a
11573# shared library.
11574predep_objects=$lt_predep_objects_CXX
11575
11576# Dependencies to place after the objects being linked to create a
11577# shared library.
11578postdep_objects=$lt_postdep_objects_CXX
11579
11580# Dependencies to place before the objects being linked to create a
11581# shared library.
11582predeps=$lt_predeps_CXX
11583
11584# Dependencies to place after the objects being linked to create a
11585# shared library.
11586postdeps=$lt_postdeps_CXX
11587
11588# The library search path used internally by the compiler when linking
11589# a shared library.
11590compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11591
11592# Method to check whether dependent libraries are shared objects.
11593deplibs_check_method=$lt_deplibs_check_method
11594
11595# Command to use when deplibs_check_method == file_magic.
11596file_magic_cmd=$lt_file_magic_cmd
11597
11598# Flag that allows shared libraries with undefined symbols to be built.
11599allow_undefined_flag=$lt_allow_undefined_flag_CXX
11600
11601# Flag that forces no undefined symbols.
11602no_undefined_flag=$lt_no_undefined_flag_CXX
11603
11604# Commands used to finish a libtool library installation in a directory.
11605finish_cmds=$lt_finish_cmds
11606
11607# Same as above, but a single script fragment to be evaled but not shown.
11608finish_eval=$lt_finish_eval
11609
11610# Take the output of nm and produce a listing of raw symbols and C names.
11611global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11612
11613# Transform the output of nm in a proper C declaration
11614global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11615
11616# Transform the output of nm in a C name address pair
11617global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11618
11619# This is the shared library runtime path variable.
11620runpath_var=$runpath_var
11621
11622# This is the shared library path variable.
11623shlibpath_var=$shlibpath_var
11624
11625# Is shlibpath searched before the hard-coded library search path?
11626shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11627
11628# How to hardcode a shared library path into an executable.
11629hardcode_action=$hardcode_action_CXX
11630
11631# Whether we should hardcode library paths into libraries.
11632hardcode_into_libs=$hardcode_into_libs
11633
11634# Flag to hardcode \$libdir into a binary during linking.
11635# This must work even if \$libdir does not exist.
11636hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11637
11638# Whether we need a single -rpath flag with a separated argument.
11639hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11640
11641# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11642# resulting binary.
11643hardcode_direct=$hardcode_direct_CXX
11644
11645# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11646# resulting binary.
11647hardcode_minus_L=$hardcode_minus_L_CXX
11648
11649# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11650# the resulting binary.
11651hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11652
11653# Variables whose values should be saved in libtool wrapper scripts and
11654# restored at relink time.
11655variables_saved_for_relink="$variables_saved_for_relink"
11656
11657# Whether libtool must link a program against all its dependency libraries.
11658link_all_deplibs=$link_all_deplibs_CXX
11659
11660# Compile-time system search path for libraries
11661sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11662
11663# Run-time system search path for libraries
11664sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11665
11666# Fix the shell variable \$srcfile for the compiler.
11667fix_srcfile_path="$fix_srcfile_path_CXX"
11668
11669# Set to yes if exported symbols are required.
11670always_export_symbols=$always_export_symbols_CXX
11671
11672# The commands to list exported symbols.
11673export_symbols_cmds=$lt_export_symbols_cmds_CXX
11674
11675# The commands to extract the exported symbol list from a shared archive.
11676extract_expsyms_cmds=$lt_extract_expsyms_cmds
11677
11678# Symbols that should not be listed in the preloaded symbols.
11679exclude_expsyms=$lt_exclude_expsyms_CXX
11680
11681# Symbols that must always be exported.
11682include_expsyms=$lt_include_expsyms_CXX
11683
11684# ### END LIBTOOL TAG CONFIG: $tagname
11685
11686__EOF__
11687
11688
11689else
11690 # If there is no Makefile yet, we rely on a make rule to execute
11691 # `config.status --recheck' to rerun these tests and create the
11692 # libtool script then.
11693 test -f Makefile && make "$ltmain"
11694fi
11695
11696
11697ac_ext=c
11698ac_cpp='$CPP $CPPFLAGS'
11699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703CC="$lt_save_CC"
11704
11705 ;;
11706
11707 GCJ)
11708
11709
11710
11711# Source file extension for C test sources.
11712ac_ext=java
11713
11714# Object file extension for compiled C test sources.
11715objext=o
11716objext_GCJ=$objext
11717
11718# Code to be used in simple compile tests
11719lt_simple_compile_test_code="class foo {}"
11720
11721# Code to be used in simple link tests
11722lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11723
11724# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11725
11726# If no C compiler was specified, use CC.
11727LTCC=${LTCC-"$CC"}
11728
11729# Allow CC to be a program name with arguments.
11730set dummy $CC
11731compiler="$2"
11732
11733
11734# Allow CC to be a program name with arguments.
11735lt_save_CC="$CC"
11736CC=${GCJ-"gcj"}
11737set dummy $CC
11738compiler="$2"
11739compiler_GCJ=$CC
11740
11741# GCJ did not exist at the time GCC didn't implicitly link libc in.
11742archive_cmds_need_lc_GCJ=no
11743
11744
11745lt_prog_compiler_no_builtin_flag_GCJ=
11746
11747if test "$GCC" = yes; then
11748 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11749
11750 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11751echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11752if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 lt_cv_prog_compiler_rtti_exceptions=no
11756 ac_outfile=conftest.$ac_objext
11757 save_CFLAGS="$CFLAGS"
11758 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11760 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11761 # The compiler can only warn and ignore the option if not recognized
11762 # So say no if there are warnings
11763 if test -s conftest.err; then
11764 # Append any errors to the config.log.
11765 cat conftest.err 1>&5
11766 else
11767 lt_cv_prog_compiler_rtti_exceptions=yes
11768 fi
11769 fi
11770 $rm conftest*
11771 CFLAGS="$save_CFLAGS"
11772
11773fi
11774echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11775echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11776
11777if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11778 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11779else
11780 :
11781fi
11782
11783fi
11784
11785lt_prog_compiler_wl_GCJ=
11786lt_prog_compiler_pic_GCJ=
11787lt_prog_compiler_static_GCJ=
11788
11789echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11790echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11791
11792 if test "$GCC" = yes; then
11793 lt_prog_compiler_wl_GCJ='-Wl,'
11794 lt_prog_compiler_static_GCJ='-static'
11795
11796 case $host_os in
11797 aix*)
11798 # All AIX code is PIC.
11799 if test "$host_cpu" = ia64; then
11800 # AIX 5 now supports IA64 processor
11801 lt_prog_compiler_static_GCJ='-Bstatic'
11802 fi
11803 ;;
11804
11805 amigaos*)
11806 # FIXME: we need at least 68020 code to build shared libraries, but
11807 # adding the `-m68020' flag to GCC prevents building anything better,
11808 # like `-m68040'.
11809 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11810 ;;
11811
11812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11813 # PIC is the default for these OSes.
11814 ;;
11815
11816 cygwin* | mingw* | pw32* | os2*)
11817 # This hack is so that the source file can tell whether it is being
11818 # built for inclusion in a dll (and should export symbols for example).
11819 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11820 ;;
11821
11822 darwin* | rhapsody*)
11823 # PIC is the default on this platform
11824 # Common symbols not allowed in MH_DYLIB files
11825 lt_prog_compiler_pic_GCJ='-fno-common'
11826 ;;
11827
11828 msdosdjgpp*)
11829 # Just because we use GCC doesn't mean we suddenly get shared libraries
11830 # on systems that don't support them.
11831 lt_prog_compiler_can_build_shared_GCJ=no
11832 enable_shared=no
11833 ;;
11834
11835 sysv4*MP*)
11836 if test -d /usr/nec; then
11837 lt_prog_compiler_pic_GCJ=-Kconform_pic
11838 fi
11839 ;;
11840
11841 hpux*)
11842 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11843 if test "$host_cpu" != ia64; then
11844 lt_prog_compiler_pic_GCJ='-fPIC'
11845 fi
11846 ;;
11847
11848 *)
11849 lt_prog_compiler_pic_GCJ='-fPIC'
11850 ;;
11851 esac
11852 else
11853 # PORTME Check for flag to pass linker flags through the system compiler.
11854 case $host_os in
11855 aix*)
11856 lt_prog_compiler_wl_GCJ='-Wl,'
11857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
11859 lt_prog_compiler_static_GCJ='-Bstatic'
11860 else
11861 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11862 fi
11863 ;;
11864
11865 cygwin* | mingw* | pw32* | os2*)
11866 # This hack is so that the source file can tell whether it is being
11867 # built for inclusion in a dll (and should export symbols for example).
11868 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11869 ;;
11870
11871 hpux9* | hpux10* | hpux11*)
11872 lt_prog_compiler_wl_GCJ='-Wl,'
11873 if test "$host_cpu" != ia64; then
11874 lt_prog_compiler_pic_GCJ='+Z'
11875 fi
11876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11877 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11878 ;;
11879
11880 irix5* | irix6* | nonstopux*)
11881 lt_prog_compiler_wl_GCJ='-Wl,'
11882 # PIC (with -KPIC) is the default.
11883 lt_prog_compiler_static_GCJ='-non_shared'
11884 ;;
11885
11886 newsos6)
11887 lt_prog_compiler_pic_GCJ='-KPIC'
11888 lt_prog_compiler_static_GCJ='-Bstatic'
11889 ;;
11890
11891 osf3* | osf4* | osf5*)
11892 lt_prog_compiler_wl_GCJ='-Wl,'
11893 # All OSF/1 code is PIC.
11894 lt_prog_compiler_static_GCJ='-non_shared'
11895 ;;
11896
11897 sco3.2v5*)
11898 lt_prog_compiler_pic_GCJ='-Kpic'
11899 lt_prog_compiler_static_GCJ='-dn'
11900 ;;
11901
11902 solaris*)
11903 lt_prog_compiler_wl_GCJ='-Wl,'
11904 lt_prog_compiler_pic_GCJ='-KPIC'
11905 lt_prog_compiler_static_GCJ='-Bstatic'
11906 ;;
11907
11908 sunos4*)
11909 lt_prog_compiler_wl_GCJ='-Qoption ld '
11910 lt_prog_compiler_pic_GCJ='-PIC'
11911 lt_prog_compiler_static_GCJ='-Bstatic'
11912 ;;
11913
11914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11915 if test "x$host_vendor" = xsni; then
11916 lt_prog_compiler_wl_GCJ='-LD'
11917 else
11918 lt_prog_compiler_wl_GCJ='-Wl,'
11919 fi
11920 lt_prog_compiler_pic_GCJ='-KPIC'
11921 lt_prog_compiler_static_GCJ='-Bstatic'
11922 ;;
11923
11924 sysv4*MP*)
11925 if test -d /usr/nec ;then
11926 lt_prog_compiler_pic_GCJ='-Kconform_pic'
11927 lt_prog_compiler_static_GCJ='-Bstatic'
11928 fi
11929 ;;
11930
11931 uts4*)
11932 lt_prog_compiler_pic_GCJ='-pic'
11933 lt_prog_compiler_static_GCJ='-Bstatic'
11934 ;;
11935
11936 *)
11937 lt_prog_compiler_can_build_shared_GCJ=no
11938 ;;
11939 esac
11940 fi
11941
11942echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11943echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11944
11945#
11946# Check to make sure the PIC flag actually works.
11947#
11948if test -n "$lt_prog_compiler_pic_GCJ"; then
11949 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11950echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11951if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953else
11954 lt_prog_compiler_pic_works_GCJ=no
11955 ac_outfile=conftest.$ac_objext
11956 save_CFLAGS="$CFLAGS"
11957 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
11958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11959 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11960 # The compiler can only warn and ignore the option if not recognized
11961 # So say no if there are warnings
11962 if test -s conftest.err; then
11963 # Append any errors to the config.log.
11964 cat conftest.err 1>&5
11965 else
11966 lt_prog_compiler_pic_works_GCJ=yes
11967 fi
11968 fi
11969 $rm conftest*
11970 CFLAGS="$save_CFLAGS"
11971
11972fi
11973echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11974echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11975
11976if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
11977 case $lt_prog_compiler_pic_GCJ in
11978 "" | " "*) ;;
11979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
11980 esac
11981else
11982 lt_prog_compiler_pic_GCJ=
11983 lt_prog_compiler_can_build_shared_GCJ=no
11984fi
11985
11986fi
11987case "$host_os" in
11988 # For platforms which do not support PIC, -DPIC is meaningless:
11989 *djgpp*)
11990 lt_prog_compiler_pic_GCJ=
11991 ;;
11992 *)
11993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
11994 ;;
11995esac
11996
11997echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11999if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001else
12002 lt_cv_prog_compiler_c_o_GCJ=no
12003 $rm -r conftest 2>/dev/null
12004 mkdir conftest
12005 cd conftest
12006 mkdir out
12007 save_GCJFLAGS="$GCJFLAGS"
12008 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
12009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12010
12011 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12012 # that will create temporary files in the current directory regardless of
12013 # the output directory. Thus, making CWD read-only will cause this test
12014 # to fail, enabling locking or at least warning the user not to do parallel
12015 # builds.
12016 chmod -w .
12017
12018 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12019 then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
12022 if test -s out/conftest.err; then
12023 # Append any errors to the config.log.
12024 cat out/conftest.err 1>&5
12025 else
12026 lt_cv_prog_compiler_c_o_GCJ=yes
12027 fi
12028 fi
12029 GCJFLAGS="$save_GCJFLAGS"
12030 chmod u+w .
12031 $rm conftest* out/*
12032 rmdir out
12033 cd ..
12034 rmdir conftest
12035 $rm conftest*
12036
12037fi
12038echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12039echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12040
12041
12042hard_links="nottested"
12043if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12044 # do not overwrite the value of need_locks provided by the user
12045 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12046echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12047 hard_links=yes
12048 $rm conftest*
12049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12050 touch conftest.a
12051 ln conftest.a conftest.b 2>&5 || hard_links=no
12052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12053 echo "$as_me:$LINENO: result: $hard_links" >&5
12054echo "${ECHO_T}$hard_links" >&6
12055 if test "$hard_links" = no; then
12056 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12057echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12058 need_locks=warn
12059 fi
12060else
12061 need_locks=no
12062fi
12063
12064echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12065echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12066
12067 runpath_var=
12068 allow_undefined_flag_GCJ=
12069
12070 archive_cmds_GCJ=
12071 archive_cmds_need_lc_GCJ=
12072 archive_expsym_cmds_GCJ=
12073 old_archive_From_new_cmds_GCJ=
12074 old_archive_from_expsyms_cmds_GCJ=
12075 export_dynamic_flag_spec_GCJ=
12076 whole_archive_flag_spec_GCJ=
12077 thread_safe_flag_spec_GCJ=
12078 hardcode_libdir_flag_spec_GCJ=
12079 hardcode_libdir_separator_GCJ=
12080 hardcode_direct_GCJ=no
12081 hardcode_minus_L_GCJ=no
12082 hardcode_shlibpath_var_GCJ=unsupported
12083 link_all_deplibs_GCJ=unknown
12084 always_export_symbols_GCJ=no
12085 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12086 # include_expsyms should be a list of space-separated symbols to be *always*
12087 # included in the symbol list
12088 include_expsyms_GCJ=
12089 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12092 # as well as any symbol that contains `d'.
12093 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12095 # platforms (ab)use it in PIC code, but their linkers get confused if
12096 # the symbol is explicitly referenced. Since portable code cannot
12097 # rely on this symbol name, it's probably fine to never include it in
12098 # preloaded symbol tables.
12099 extract_expsyms_cmds=
12100
12101 case $host_os in
12102 cygwin* | mingw* | pw32*)
12103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12104 # When not using gcc, we currently assume that we are using
12105 # Microsoft Visual C++.
12106 if test "$GCC" != yes; then
12107 with_gnu_ld=no
12108 fi
12109 ;;
12110 openbsd*)
12111 with_gnu_ld=no
12112 ;;
12113 esac
12114
12115 ld_shlibs_GCJ=yes
12116 if test "$with_gnu_ld" = yes; then
12117 # If archive_cmds runs LD, not CC, wlarc should be empty
12118 wlarc='${wl}'
12119
12120 # See if GNU ld supports shared libraries.
12121 case $host_os in
12122 aix3* | aix4* | aix5*)
12123 # On AIX/PPC, the GNU linker is very broken
12124 if test "$host_cpu" != ia64; then
12125 ld_shlibs_GCJ=no
12126 cat <<EOF 1>&2
12127
12128*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12129*** to be unable to reliably create shared libraries on AIX.
12130*** Therefore, libtool is disabling shared libraries support. If you
12131*** really care for shared libraries, you may want to modify your PATH
12132*** so that a non-GNU linker is found, and then restart.
12133
12134EOF
12135 fi
12136 ;;
12137
12138 amigaos*)
12139 archive_cmds_GCJ='$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)'
12140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12141 hardcode_minus_L_GCJ=yes
12142
12143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12144 # that the semantics of dynamic libraries on AmigaOS, at least up
12145 # to version 4, is to share data among multiple programs linked
12146 # with the same dynamic library. Since this doesn't match the
12147 # behavior of shared libraries on other platforms, we can't use
12148 # them.
12149 ld_shlibs_GCJ=no
12150 ;;
12151
12152 beos*)
12153 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12154 allow_undefined_flag_GCJ=unsupported
12155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12156 # support --undefined. This deserves some investigation. FIXME
12157 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12158 else
12159 ld_shlibs_GCJ=no
12160 fi
12161 ;;
12162
12163 cygwin* | mingw* | pw32*)
12164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12165 # no search path for DLLs.
12166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12167 allow_undefined_flag_GCJ=unsupported
12168 always_export_symbols_GCJ=yes
12169
12170 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12171 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12172 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12173 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12174 else $CC -o impgen impgen.c ; fi)~
12175 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12176
12177 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12178
12179 # cygwin and mingw dlls have different entry points and sets of symbols
12180 # to exclude.
12181 # FIXME: what about values for MSVC?
12182 dll_entry=__cygwin_dll_entry@12
12183 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
12184 case $host_os in
12185 mingw*)
12186 # mingw values
12187 dll_entry=_DllMainCRTStartup@12
12188 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
12189 ;;
12190 esac
12191
12192 # mingw and cygwin differ, and it's simplest to just exclude the union
12193 # of the two symbol sets.
12194 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12195
12196 # recent cygwin and mingw systems supply a stub DllMain which the user
12197 # can override, but on older systems we have to supply one (in ltdll.c)
12198 if test "x$lt_cv_need_dllmain" = "xyes"; then
12199 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12200 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~
12201 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12202 else
12203 ltdll_obj=
12204 ltdll_cmds=
12205 fi
12206
12207 # Extract the symbol export list from an `--export-all' def file,
12208 # then regenerate the def file from the symbol export list, so that
12209 # the compiled dll only exports the symbol export list.
12210 # Be careful not to strip the DATA tag left by newer dlltools.
12211 export_symbols_cmds_GCJ="$ltdll_cmds"'
12212 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12213 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12214
12215 # If the export-symbols file already is a .def file (1st line
12216 # is EXPORTS), use it as is.
12217 # If DATA tags from a recent dlltool are present, honour them!
12218 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12219 cp $export_symbols $output_objdir/$soname-def;
12220 else
12221 echo EXPORTS > $output_objdir/$soname-def;
12222 _lt_hint=1;
12223 cat $export_symbols | while read symbol; do
12224 set dummy \$symbol;
12225 case \$# in
12226 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12227 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12228 esac;
12229 _lt_hint=`expr 1 + \$_lt_hint`;
12230 done;
12231 fi~
12232 '"$ltdll_cmds"'
12233 $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~
12234 $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~
12235 $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~
12236 $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~
12237 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12238 ;;
12239
12240 netbsd*)
12241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12242 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12243 wlarc=
12244 else
12245 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12247 fi
12248 ;;
12249
12250 solaris* | sysv5*)
12251 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12252 ld_shlibs_GCJ=no
12253 cat <<EOF 1>&2
12254
12255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12256*** create shared libraries on Solaris systems. Therefore, libtool
12257*** is disabling shared libraries support. We urge you to upgrade GNU
12258*** binutils to release 2.9.1 or newer. Another option is to modify
12259*** your PATH or compiler configuration so that the native linker is
12260*** used, and then restart.
12261
12262EOF
12263 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12264 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12265 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12266 else
12267 ld_shlibs_GCJ=no
12268 fi
12269 ;;
12270
12271 sunos4*)
12272 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12273 wlarc=
12274 hardcode_direct_GCJ=yes
12275 hardcode_shlibpath_var_GCJ=no
12276 ;;
12277
12278 *)
12279 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12282 else
12283 ld_shlibs_GCJ=no
12284 fi
12285 ;;
12286 esac
12287
12288 if test "$ld_shlibs_GCJ" = yes; then
12289 runpath_var=LD_RUN_PATH
12290 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12291 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12292 case $host_os in
12293 cygwin* | mingw* | pw32*)
12294 # dlltool doesn't understand --whole-archive et. al.
12295 whole_archive_flag_spec_GCJ=
12296 ;;
12297 *)
12298 # ancient GNU ld didn't support --whole-archive et. al.
12299 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12300 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12301 else
12302 whole_archive_flag_spec_GCJ=
12303 fi
12304 ;;
12305 esac
12306 fi
12307 else
12308 # PORTME fill in a description of your system's linker (not GNU ld)
12309 case $host_os in
12310 aix3*)
12311 allow_undefined_flag_GCJ=unsupported
12312 always_export_symbols_GCJ=yes
12313 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12314 # Note: this linker hardcodes the directories in LIBPATH if there
12315 # are no directories specified by -L.
12316 hardcode_minus_L_GCJ=yes
12317 if test "$GCC" = yes && test -z "$link_static_flag"; then
12318 # Neither direct hardcoding nor static linking is supported with a
12319 # broken collect2.
12320 hardcode_direct_GCJ=unsupported
12321 fi
12322 ;;
12323
12324 aix4* | aix5*)
12325 if test "$host_cpu" = ia64; then
12326 # On IA64, the linker does run time linking by default, so we don't
12327 # have to do anything special.
12328 aix_use_runtimelinking=no
12329 exp_sym_flag='-Bexport'
12330 no_entry_flag=""
12331 else
12332 # If we're using GNU nm, then we don't want the "-C" option.
12333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12334 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12335 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12336 else
12337 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12338 fi
12339
12340 # KDE requires run time linking. Make it the default.
12341 aix_use_runtimelinking=yes
12342 exp_sym_flag='-bexport'
12343 no_entry_flag='-bnoentry'
12344 fi
12345
12346 # When large executables or shared objects are built, AIX ld can
12347 # have problems creating the table of contents. If linking a library
12348 # or program results in "error TOC overflow" add -mminimal-toc to
12349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12351
12352 archive_cmds_GCJ=''
12353 hardcode_direct_GCJ=yes
12354 hardcode_libdir_separator_GCJ=':'
12355 link_all_deplibs_GCJ=yes
12356
12357 if test "$GCC" = yes; then
12358 case $host_os in aix4.012|aix4.012.*)
12359 # We only want to do this on AIX 4.2 and lower, the check
12360 # below for broken collect2 doesn't work under 4.3+
12361 collect2name=`${CC} -print-prog-name=collect2`
12362 if test -f "$collect2name" && \
12363 strings "$collect2name" | grep resolve_lib_name >/dev/null
12364 then
12365 # We have reworked collect2
12366 hardcode_direct_GCJ=yes
12367 else
12368 # We have old collect2
12369 hardcode_direct_GCJ=unsupported
12370 # It fails to find uninstalled libraries when the uninstalled
12371 # path is not listed in the libpath. Setting hardcode_minus_L
12372 # to unsupported forces relinking
12373 hardcode_minus_L_GCJ=yes
12374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12375 hardcode_libdir_separator_GCJ=
12376 fi
12377 esac
12378 shared_flag='-shared'
12379 else
12380 # not using gcc
12381 if test "$host_cpu" = ia64; then
12382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12383 # chokes on -Wl,-G. The following line is correct:
12384 shared_flag='-G'
12385 else
12386 if test "$aix_use_runtimelinking" = yes; then
12387 shared_flag='-qmkshrobj ${wl}-G'
12388 else
12389 shared_flag='-qmkshrobj'
12390 fi
12391 fi
12392 fi
12393
12394 # Let the compiler handle the export list.
12395 always_export_symbols_GCJ=no
12396 if test "$aix_use_runtimelinking" = yes; then
12397 # Warning - without using the other runtime loading flags (-brtl),
12398 # -berok will link without error, but may produce a broken library.
12399 allow_undefined_flag_GCJ='-berok'
12400 # Determine the default libpath from the value encoded in an empty executable.
12401 cat >conftest.$ac_ext <<_ACEOF
12402#line $LINENO "configure"
12403#include "confdefs.h"
12404
12405#ifdef F77_DUMMY_MAIN
12406# ifdef __cplusplus
12407 extern "C"
12408# endif
12409 int F77_DUMMY_MAIN() { return 1; }
12410#endif
12411int
12412main ()
12413{
12414
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431
12432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12433}'`
12434# Check for a 64-bit object if we didn't find anything.
12435if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12436}'`; fi
12437else
12438 echo "$as_me: failed program was:" >&5
12439cat conftest.$ac_ext >&5
12440fi
12441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12443
12444 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
12446 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12447 else
12448 if test "$host_cpu" = ia64; then
12449 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12450 allow_undefined_flag_GCJ="-z nodefs"
12451 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12452 else
12453 # Determine the default libpath from the value encoded in an empty executable.
12454 cat >conftest.$ac_ext <<_ACEOF
12455#line $LINENO "configure"
12456#include "confdefs.h"
12457
12458#ifdef F77_DUMMY_MAIN
12459# ifdef __cplusplus
12460 extern "C"
12461# endif
12462 int F77_DUMMY_MAIN() { return 1; }
12463#endif
12464int
12465main ()
12466{
12467
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext conftest$ac_exeext
12473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484
12485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12486}'`
12487# Check for a 64-bit object if we didn't find anything.
12488if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12489}'`; fi
12490else
12491 echo "$as_me: failed program was:" >&5
12492cat conftest.$ac_ext >&5
12493fi
12494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12495if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12496
12497 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12498 # Warning - without using the other run time loading flags,
12499 # -berok will link without error, but may produce a broken library.
12500 no_undefined_flag_GCJ=' ${wl}-bernotok'
12501 allow_undefined_flag_GCJ=' ${wl}-berok'
12502 # -bexpall does not export symbols beginning with underscore (_)
12503 always_export_symbols_GCJ=yes
12504 # Exported symbols can be pulled into shared objects from archives
12505 whole_archive_flag_spec_GCJ=' '
12506 archive_cmds_need_lc_GCJ=yes
12507 # This is similar to how AIX traditionally builds it's shared libraries.
12508 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12509 fi
12510 fi
12511 ;;
12512
12513 amigaos*)
12514 archive_cmds_GCJ='$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)'
12515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12516 hardcode_minus_L_GCJ=yes
12517 # see comment about different semantics on the GNU ld section
12518 ld_shlibs_GCJ=no
12519 ;;
12520
12521 bsdi4*)
12522 export_dynamic_flag_spec_GCJ=-rdynamic
12523 ;;
12524
12525 cygwin* | mingw* | pw32*)
12526 # When not using gcc, we currently assume that we are using
12527 # Microsoft Visual C++.
12528 # hardcode_libdir_flag_spec is actually meaningless, as there is
12529 # no search path for DLLs.
12530 hardcode_libdir_flag_spec_GCJ=' '
12531 allow_undefined_flag_GCJ=unsupported
12532 # Tell ltmain to make .lib files, not .a files.
12533 libext=lib
12534 # FIXME: Setting linknames here is a bad hack.
12535 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12536 # The linker will automatically build a .lib file if we build a DLL.
12537 old_archive_From_new_cmds_GCJ='true'
12538 # FIXME: Should let the user specify the lib program.
12539 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12540 fix_srcfile_path='`cygpath -w "$srcfile"`'
12541 ;;
12542
12543 darwin* | rhapsody*)
12544 case "$host_os" in
12545 rhapsody* | darwin1.[012])
12546 allow_undefined_flag_GCJ='-undefined suppress'
12547 ;;
12548 *) # Darwin 1.3 on
12549 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12550 ;;
12551 esac
12552
12553 # FIXME: Relying on posixy $() will cause problems for
12554 # cross-compilation, but unfortunately the echo tests do not
12555 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12556 # `"' quotes if we put them in here... so don't!
12557 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12558 # We need to add '_' to the symbols in $export_symbols first
12559 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12560 hardcode_direct_GCJ=yes
12561 hardcode_shlibpath_var_GCJ=no
12562 whole_archive_flag_spec_GCJ='-all_load $convenience'
12563 ;;
12564
12565 dgux*)
12566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12568 hardcode_shlibpath_var_GCJ=no
12569 ;;
12570
12571 freebsd1*)
12572 ld_shlibs_GCJ=no
12573 ;;
12574
12575 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12576 # support. Future versions do this automatically, but an explicit c++rt0.o
12577 # does not break anything, and helps significantly (at the cost of a little
12578 # extra space).
12579 freebsd2.2*)
12580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12582 hardcode_direct_GCJ=yes
12583 hardcode_shlibpath_var_GCJ=no
12584 ;;
12585
12586 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12587 freebsd2*)
12588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12589 hardcode_direct_GCJ=yes
12590 hardcode_minus_L_GCJ=yes
12591 hardcode_shlibpath_var_GCJ=no
12592 ;;
12593
12594 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12595 freebsd*)
12596 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12597 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12598 hardcode_direct_GCJ=yes
12599 hardcode_shlibpath_var_GCJ=no
12600 ;;
12601
12602 hpux9* | hpux10* | hpux11*)
12603 if test "$GCC" = yes; then
12604 case $host_os in
12605 hpux9*)
12606 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12607 ;;
12608 *)
12609 if test "$host_cpu" = ia64; then
12610 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611 else
12612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12613 fi
12614 ;;
12615 esac
12616 else
12617 case $host_os in
12618 hpux9*)
12619 archive_cmds_GCJ='$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'
12620 ;;
12621 *)
12622 if test "$host_cpu" = ia64; then
12623 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12624 else
12625 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12626 fi
12627 ;;
12628 esac
12629 fi
12630 if test "$host_cpu" = ia64; then
12631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12632 hardcode_direct_GCJ=no
12633 hardcode_shlibpath_var_GCJ=no
12634 else
12635 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12636 hardcode_libdir_separator_GCJ=:
12637 hardcode_direct_GCJ=yes
12638 fi
12639 # hardcode_minus_L: Not really in the search PATH,
12640 # but as the default location of the library.
12641 hardcode_minus_L_GCJ=yes
12642 export_dynamic_flag_spec_GCJ='${wl}-E'
12643 ;;
12644
12645 irix5* | irix6* | nonstopux*)
12646 if test "$GCC" = yes; then
12647 archive_cmds_GCJ='$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'
12648 else
12649 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12650 fi
12651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12652 hardcode_libdir_separator_GCJ=:
12653 link_all_deplibs_GCJ=yes
12654 ;;
12655
12656 netbsd*)
12657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12659 else
12660 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12661 fi
12662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12663 hardcode_direct_GCJ=yes
12664 hardcode_shlibpath_var_GCJ=no
12665 ;;
12666
12667 newsos6)
12668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12669 hardcode_direct_GCJ=yes
12670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12671 hardcode_libdir_separator_GCJ=:
12672 hardcode_shlibpath_var_GCJ=no
12673 ;;
12674
12675 openbsd*)
12676 hardcode_direct_GCJ=yes
12677 hardcode_shlibpath_var_GCJ=no
12678
12679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12682 export_dynamic_flag_spec_GCJ='${wl}-E'
12683 else
12684 case $host_os in
12685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12688 ;;
12689 *)
12690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12692 ;;
12693 esac
12694 fi
12695 ;;
12696
12697 os2*)
12698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12699 hardcode_minus_L_GCJ=yes
12700 allow_undefined_flag_GCJ=unsupported
12701 archive_cmds_GCJ='$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'
12702 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12703 ;;
12704
12705 osf3*)
12706 if test "$GCC" = yes; then
12707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12708 archive_cmds_GCJ='$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'
12709 else
12710 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12711 archive_cmds_GCJ='$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'
12712 fi
12713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12714 hardcode_libdir_separator_GCJ=:
12715 ;;
12716
12717 osf4* | osf5*) # as osf3* with the addition of -msym flag
12718 if test "$GCC" = yes; then
12719 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12720 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12722 else
12723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12724 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12725 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12726 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12727
12728 # Both c and cxx compiler support -rpath directly
12729 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12730 fi
12731 hardcode_libdir_separator_GCJ=:
12732 ;;
12733
12734 sco3.2v5*)
12735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12736 hardcode_shlibpath_var_GCJ=no
12737 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12738 runpath_var=LD_RUN_PATH
12739 hardcode_runpath_var=yes
12740 ;;
12741
12742 solaris*)
12743 no_undefined_flag_GCJ=' -z text'
12744 if test "$GCC" = yes; then
12745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12746 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12748 else
12749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12752 fi
12753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12754 hardcode_shlibpath_var_GCJ=no
12755 case $host_os in
12756 solaris2.[0-5] | solaris2.[0-5].*) ;;
12757 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12758 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12759 esac
12760 link_all_deplibs_GCJ=yes
12761 ;;
12762
12763 sunos4*)
12764 if test "x$host_vendor" = xsequent; then
12765 # Use $CC to link under sequent, because it throws in some extra .o
12766 # files that make .init and .fini sections work.
12767 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12768 else
12769 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12770 fi
12771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12772 hardcode_direct_GCJ=yes
12773 hardcode_minus_L_GCJ=yes
12774 hardcode_shlibpath_var_GCJ=no
12775 ;;
12776
12777 sysv4)
12778 if test "x$host_vendor" = xsni; then
12779 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct_GCJ=yes # is this really true???
12781 else
12782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12784 fi
12785 runpath_var='LD_RUN_PATH'
12786 hardcode_shlibpath_var_GCJ=no
12787 ;;
12788
12789 sysv4.3*)
12790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12791 hardcode_shlibpath_var_GCJ=no
12792 export_dynamic_flag_spec_GCJ='-Bexport'
12793 ;;
12794
12795 sysv4*MP*)
12796 if test -d /usr/nec; then
12797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_shlibpath_var_GCJ=no
12799 runpath_var=LD_RUN_PATH
12800 hardcode_runpath_var=yes
12801 ld_shlibs_GCJ=yes
12802 fi
12803 ;;
12804
12805 sysv4.2uw2*)
12806 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12807 hardcode_direct_GCJ=yes
12808 hardcode_minus_L_GCJ=no
12809 hardcode_shlibpath_var_GCJ=no
12810 hardcode_runpath_var=yes
12811 runpath_var=LD_RUN_PATH
12812 ;;
12813
12814 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12815 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12816 if test "$GCC" = yes; then
12817 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12818 else
12819 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12820 fi
12821 runpath_var='LD_RUN_PATH'
12822 hardcode_shlibpath_var_GCJ=no
12823 ;;
12824
12825 sysv5*)
12826 no_undefined_flag_GCJ=' -z text'
12827 # $CC -shared without GNU ld will not create a library from C++
12828 # object files and a static libstdc++, better avoid it by now
12829 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12832 hardcode_libdir_flag_spec_GCJ=
12833 hardcode_shlibpath_var_GCJ=no
12834 runpath_var='LD_RUN_PATH'
12835 ;;
12836
12837 uts4*)
12838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12840 hardcode_shlibpath_var_GCJ=no
12841 ;;
12842
12843 *)
12844 ld_shlibs_GCJ=no
12845 ;;
12846 esac
12847 fi
12848
12849echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12850echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12851test "$ld_shlibs_GCJ" = no && can_build_shared=no
12852
12853variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12854if test "$GCC" = yes; then
12855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12856fi
12857
12858#
12859# Do we need to explicitly link libc?
12860#
12861archive_cmds_need_lc_GCJ=yes
12862if test "$enable_shared" = yes && test "$GCC" = yes; then
12863 case $archive_cmds_GCJ in
12864 *'~'*)
12865 # FIXME: we may have to deal with multi-command sequences.
12866 ;;
12867 '$CC '*)
12868 # Test whether the compiler implicitly links with -lc since on some
12869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12870 # to ld, don't add -lc before -lgcc.
12871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12873 $rm conftest*
12874 echo 'static int dummy;' > conftest.$ac_ext
12875
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } 2>conftest.err; then
12881 soname=conftest
12882 lib=conftest
12883 libobjs=conftest.$ac_objext
12884 deplibs=
12885 wl=$lt_prog_compiler_wl_GCJ
12886 compiler_flags=-v
12887 linker_flags=-v
12888 verstring=
12889 output_objdir=.
12890 libname=conftest
12891 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12892 allow_undefined_flag_GCJ=
12893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12894 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }
12898 then
12899 archive_cmds_need_lc_GCJ=no
12900 else
12901 archive_cmds_need_lc_GCJ=yes
12902 fi
12903 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
12904 else
12905 cat conftest.err 1>&5
12906 fi
12907 $rm conftest*
12908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12909echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12910 ;;
12911 esac
12912fi
12913
12914echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12915echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12916hardcode_action_GCJ=
12917if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12918 test -n "$runpath_var GCJ"; then
12919
12920 # We can hardcode non-existant directories.
12921 if test "$hardcode_direct_GCJ" != no &&
12922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12923 # have to relink, otherwise we might link with an installed library
12924 # when we should be linking with a yet-to-be-installed one
12925 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12926 test "$hardcode_minus_L_GCJ" != no; then
12927 # Linking always hardcodes the temporary library directory.
12928 hardcode_action_GCJ=relink
12929 else
12930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12931 hardcode_action_GCJ=immediate
12932 fi
12933else
12934 # We cannot hardcode anything, or else we can only hardcode existing
12935 # directories.
12936 hardcode_action_GCJ=unsupported
12937fi
12938echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12939echo "${ECHO_T}$hardcode_action_GCJ" >&6
12940
12941if test "$hardcode_action_GCJ" = relink; then
12942 # Fast installation is not supported
12943 enable_fast_install=no
12944elif test "$shlibpath_overrides_runpath" = yes ||
12945 test "$enable_shared" = no; then
12946 # Fast installation is not necessary
12947 enable_fast_install=needless
12948fi
12949
12950striplib=
12951old_striplib=
12952echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12953echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12954if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12955 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12956 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12957 echo "$as_me:$LINENO: result: yes" >&5
12958echo "${ECHO_T}yes" >&6
12959else
12960 echo "$as_me:$LINENO: result: no" >&5
12961echo "${ECHO_T}no" >&6
12962fi
12963
12964echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12965echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12966library_names_spec=
12967libname_spec='lib$name'
12968soname_spec=
12969postinstall_cmds=
12970postuninstall_cmds=
12971finish_cmds=
12972finish_eval=
12973shlibpath_var=
12974shlibpath_overrides_runpath=unknown
12975version_type=none
12976dynamic_linker="$host_os ld.so"
12977sys_lib_dlsearch_path_spec="/lib /usr/lib"
12978sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12979need_lib_prefix=unknown
12980hardcode_into_libs=no
12981
12982# when you set need_version to no, make sure it does not cause -set_version
12983# flags to be left without arguments
12984need_version=unknown
12985
12986case $host_os in
12987aix3*)
12988 version_type=linux
12989 library_names_spec='${libname}${release}.so$versuffix $libname.a'
12990 shlibpath_var=LIBPATH
12991
12992 # AIX 3 has no versioning support, so we append a major version to the name.
12993 soname_spec='${libname}${release}.so$major'
12994 ;;
12995
12996aix4* | aix5*)
12997 version_type=linux
12998 if test "$host_cpu" = ia64; then
12999 # AIX 5 supports IA64
13000 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 else
13003 # With GCC up to 2.95.x, collect2 would create an import file
13004 # for dependence libraries. The import file would start with
13005 # the line `#! .'. This would cause the generated library to
13006 # depend on `.', always an invalid library. This was fixed in
13007 # development snapshots of GCC prior to 3.0.
13008 case $host_os in
13009 aix4 | aix4.[01] | aix4.[01].*)
13010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13011 echo ' yes '
13012 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13013 :
13014 else
13015 can_build_shared=no
13016 fi
13017 ;;
13018 esac
13019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13020 # soname into executable. Probably we can add versioning support to
13021 # collect2, so additional links can be useful in future.
13022 if test "$aix_use_runtimelinking" = yes; then
13023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13024 # instead of lib<name>.a to let people know that these are not
13025 # typical AIX shared libraries.
13026 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13027 else
13028 # We preserve .a as extension for shared libraries through AIX4.2
13029 # and later when we are not doing run time linking.
13030 library_names_spec='${libname}${release}.a $libname.a'
13031 soname_spec='${libname}${release}.so$major'
13032 fi
13033 shlibpath_var=LIBPATH
13034 fi
13035 ;;
13036
13037amigaos*)
13038 library_names_spec='$libname.ixlibrary $libname.a'
13039 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13040 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
13041 ;;
13042
13043beos*)
13044 library_names_spec='${libname}.so'
13045 dynamic_linker="$host_os ld.so"
13046 shlibpath_var=LIBRARY_PATH
13047 ;;
13048
13049bsdi4*)
13050 version_type=linux
13051 need_version=no
13052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13053 soname_spec='${libname}${release}.so$major'
13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13058 # the default ld.so.conf also contains /usr/contrib/lib and
13059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13060 # libtool to hard-code these into programs
13061 ;;
13062
13063cygwin* | mingw* | pw32*)
13064 version_type=windows
13065 need_version=no
13066 need_lib_prefix=no
13067 case $GCC,$host_os in
13068 yes,cygwin*)
13069 library_names_spec='$libname.dll.a'
13070 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13072 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13073 dldir=$destdir/`dirname \$dlpath`~
13074 test -d \$dldir || mkdir -p \$dldir~
13075 $install_prog .libs/$dlname \$dldir/$dlname'
13076 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13077 dlpath=$dir/\$dldll~
13078 $rm \$dlpath'
13079 ;;
13080 yes,mingw*)
13081 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13083 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13084 # It is most probably a Windows format PATH printed by
13085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086 # path with ; separators, and with drive letters. We can handle the
13087 # drive letters (cygwin fileutils understands them), so leave them,
13088 # especially as we might pass files found there to a mingw objdump,
13089 # which wouldn't understand a cygwinified path. Ahh.
13090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13091 else
13092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13093 fi
13094 ;;
13095 yes,pw32*)
13096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13097 ;;
13098 *)
13099 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13100 ;;
13101 esac
13102 dynamic_linker='Win32 ld.exe'
13103 # FIXME: first we should search . and the directory the executable is in
13104 shlibpath_var=PATH
13105 ;;
13106
13107darwin* | rhapsody*)
13108 dynamic_linker="$host_os dyld"
13109 version_type=darwin
13110 need_lib_prefix=no
13111 need_version=no
13112 # FIXME: Relying on posixy $() will cause problems for
13113 # cross-compilation, but unfortunately the echo tests do not
13114 # yet detect zsh echo's removal of \ escapes.
13115 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13116 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13117 shlibpath_overrides_runpath=yes
13118 shlibpath_var=DYLD_LIBRARY_PATH
13119 ;;
13120
13121dgux*)
13122 version_type=linux
13123 need_lib_prefix=no
13124 need_version=no
13125 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13126 soname_spec='${libname}${release}.so$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 ;;
13129
13130freebsd1*)
13131 dynamic_linker=no
13132 ;;
13133
13134freebsd*)
13135 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13136 version_type=freebsd-$objformat
13137 case $version_type in
13138 freebsd-elf*)
13139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13140 need_version=no
13141 need_lib_prefix=no
13142 ;;
13143 freebsd-*)
13144 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13145 need_version=yes
13146 ;;
13147 esac
13148 shlibpath_var=LD_LIBRARY_PATH
13149 case $host_os in
13150 freebsd2*)
13151 shlibpath_overrides_runpath=yes
13152 ;;
13153 freebsd3.01* | freebsdelf3.01*)
13154 shlibpath_overrides_runpath=yes
13155 hardcode_into_libs=yes
13156 ;;
13157 *) # from 3.2 on
13158 shlibpath_overrides_runpath=no
13159 hardcode_into_libs=yes
13160 ;;
13161 esac
13162 ;;
13163
13164gnu*)
13165 version_type=linux
13166 need_lib_prefix=no
13167 need_version=no
13168 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13169 soname_spec='${libname}${release}.so$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 hardcode_into_libs=yes
13172 ;;
13173
13174hpux9* | hpux10* | hpux11*)
13175 # Give a soname corresponding to the major version so that dld.sl refuses to
13176 # link against other versions.
13177 version_type=sunos
13178 need_lib_prefix=no
13179 need_version=no
13180 if test "$host_cpu" = ia64; then
13181 hardcode_into_libs=yes
13182 dynamic_linker="$host_os dld.so"
13183 shlibpath_var=LD_LIBRARY_PATH
13184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13185 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13186 soname_spec='${libname}${release}.so$major'
13187 if test "X$HPUX_IA64_MODE" = X32; then
13188 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13189 else
13190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13191 fi
13192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13193 else
13194 dynamic_linker="$host_os dld.sl"
13195 shlibpath_var=SHLIB_PATH
13196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13197 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13198 soname_spec='${libname}${release}.sl$major'
13199 fi
13200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13201 postinstall_cmds='chmod 555 $lib'
13202 ;;
13203
13204irix5* | irix6* | nonstopux*)
13205 case $host_os in
13206 nonstopux*) version_type=nonstopux ;;
13207 *) version_type=irix ;;
13208 esac
13209 need_lib_prefix=no
13210 need_version=no
13211 soname_spec='${libname}${release}.so$major'
13212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13213 case $host_os in
13214 irix5* | nonstopux*)
13215 libsuff= shlibsuff=
13216 ;;
13217 *)
13218 case $LD in # libtool.m4 will add one of these switches to LD
13219 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13220 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13221 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13222 *) libsuff= shlibsuff= libmagic=never-match;;
13223 esac
13224 ;;
13225 esac
13226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13227 shlibpath_overrides_runpath=no
13228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13230 ;;
13231
13232# No shared lib support for Linux oldld, aout, or coff.
13233linux*oldld* | linux*aout* | linux*coff*)
13234 dynamic_linker=no
13235 ;;
13236
13237# This must be Linux ELF.
13238linux*)
13239 version_type=linux
13240 need_lib_prefix=no
13241 need_version=no
13242 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13243 soname_spec='${libname}${release}.so$major'
13244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13245 libsuff=
13246 if test "x$LINUX_64_MODE" = x64; then
13247 # Some platforms are per default 64-bit, so there's no /lib64
13248 if test -d /lib64; then
13249 libsuff=64
13250 fi
13251 fi
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13255 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13256 # This implies no fast_install, which is unacceptable.
13257 # Some rework will be needed to allow for fast_install
13258 # before this can be enabled.
13259 hardcode_into_libs=yes
13260
13261 # We used to test for /lib/ld.so.1 and disable shared libraries on
13262 # powerpc, because MkLinux only supported shared libraries with the
13263 # GNU dynamic linker. Since this was broken with cross compilers,
13264 # most powerpc-linux boxes support dynamic linking these days and
13265 # people can always --disable-shared, the test was removed, and we
13266 # assume the GNU/Linux dynamic linker is in use.
13267 dynamic_linker='GNU/Linux ld.so'
13268 ;;
13269
13270netbsd*)
13271 version_type=sunos
13272 need_lib_prefix=no
13273 need_version=no
13274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13277 dynamic_linker='NetBSD (a.out) ld.so'
13278 else
13279 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13280 soname_spec='${libname}${release}.so$major'
13281 dynamic_linker='NetBSD ld.elf_so'
13282 fi
13283 shlibpath_var=LD_LIBRARY_PATH
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13286 ;;
13287
13288newsos6)
13289 version_type=linux
13290 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13293 ;;
13294
13295nto-qnx)
13296 version_type=linux
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13300 soname_spec='${libname}${release}.so$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 ;;
13304
13305openbsd*)
13306 version_type=sunos
13307 need_lib_prefix=no
13308 need_version=no
13309 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13311 shlibpath_var=LD_LIBRARY_PATH
13312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13313 case $host_os in
13314 openbsd2.[89] | openbsd2.[89].*)
13315 shlibpath_overrides_runpath=no
13316 ;;
13317 *)
13318 shlibpath_overrides_runpath=yes
13319 ;;
13320 esac
13321 else
13322 shlibpath_overrides_runpath=yes
13323 fi
13324 ;;
13325
13326os2*)
13327 libname_spec='$name'
13328 need_lib_prefix=no
13329 library_names_spec='$libname.dll $libname.a'
13330 dynamic_linker='OS/2 ld.exe'
13331 shlibpath_var=LIBPATH
13332 ;;
13333
13334osf3* | osf4* | osf5*)
13335 version_type=osf
13336 need_lib_prefix=no
13337 need_version=no
13338 soname_spec='${libname}${release}.so'
13339 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13343 ;;
13344
13345sco3.2v5*)
13346 version_type=osf
13347 soname_spec='${libname}${release}.so$major'
13348 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 ;;
13351
13352solaris*)
13353 version_type=linux
13354 need_lib_prefix=no
13355 need_version=no
13356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13357 soname_spec='${libname}${release}.so$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 # ldd complains unless libraries are executable
13362 postinstall_cmds='chmod +x $lib'
13363 ;;
13364
13365sunos4*)
13366 version_type=sunos
13367 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13371 if test "$with_gnu_ld" = yes; then
13372 need_lib_prefix=no
13373 fi
13374 need_version=yes
13375 ;;
13376
13377sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13378 version_type=linux
13379 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13380 soname_spec='${libname}${release}.so$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 case $host_vendor in
13383 sni)
13384 shlibpath_overrides_runpath=no
13385 ;;
13386 motorola)
13387 need_lib_prefix=no
13388 need_version=no
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13391 ;;
13392 esac
13393 ;;
13394
13395sysv4*MP*)
13396 if test -d /usr/nec ;then
13397 version_type=linux
13398 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13399 soname_spec='$libname.so.$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 fi
13402 ;;
13403
13404uts4*)
13405 version_type=linux
13406 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13407 soname_spec='${libname}${release}.so$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 ;;
13410
13411*)
13412 dynamic_linker=no
13413 ;;
13414esac
13415echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416echo "${ECHO_T}$dynamic_linker" >&6
13417test "$dynamic_linker" = no && can_build_shared=no
13418
13419if test "x$enable_dlopen" != xyes; then
13420 enable_dlopen=unknown
13421 enable_dlopen_self=unknown
13422 enable_dlopen_self_static=unknown
13423else
13424 lt_cv_dlopen=no
13425 lt_cv_dlopen_libs=
13426
13427 case $host_os in
13428 beos*)
13429 lt_cv_dlopen="load_add_on"
13430 lt_cv_dlopen_libs=
13431 lt_cv_dlopen_self=yes
13432 ;;
13433
13434 cygwin* | mingw* | pw32*)
13435 lt_cv_dlopen="LoadLibrary"
13436 lt_cv_dlopen_libs=
13437 ;;
13438
13439 *)
13440 echo "$as_me:$LINENO: checking for shl_load" >&5
13441echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13442if test "${ac_cv_func_shl_load+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 cat >conftest.$ac_ext <<_ACEOF
13446#line $LINENO "configure"
13447#include "confdefs.h"
13448/* System header to define __stub macros and hopefully few prototypes,
13449 which can conflict with char shl_load (); below. */
13450#include <assert.h>
13451/* Override any gcc2 internal prototype to avoid an error. */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455/* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13457char shl_load ();
13458char (*f) ();
13459
13460#ifdef F77_DUMMY_MAIN
13461# ifdef __cplusplus
13462 extern "C"
13463# endif
13464 int F77_DUMMY_MAIN() { return 1; }
13465#endif
13466int
13467main ()
13468{
13469/* The GNU C library defines this for functions which it implements
13470 to always fail with ENOSYS. Some functions are actually named
13471 something starting with __ and the normal name is an alias. */
13472#if defined (__stub_shl_load) || defined (__stub___shl_load)
13473choke me
13474#else
13475f = shl_load;
13476#endif
13477
13478 ;
13479 return 0;
13480}
13481_ACEOF
13482rm -f conftest.$ac_objext conftest$ac_exeext
13483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13484 (eval $ac_link) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_cv_func_shl_load=yes
13495else
13496 echo "$as_me: failed program was:" >&5
13497cat conftest.$ac_ext >&5
13498ac_cv_func_shl_load=no
13499fi
13500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13501fi
13502echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13503echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13504if test $ac_cv_func_shl_load = yes; then
13505 lt_cv_dlopen="shl_load"
13506else
13507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13508echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13509if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511else
13512 ac_check_lib_save_LIBS=$LIBS
13513LIBS="-ldld $LIBS"
13514cat >conftest.$ac_ext <<_ACEOF
13515#line $LINENO "configure"
13516#include "confdefs.h"
13517
13518/* Override any gcc2 internal prototype to avoid an error. */
13519#ifdef __cplusplus
13520extern "C"
13521#endif
13522/* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13524char shl_load ();
13525#ifdef F77_DUMMY_MAIN
13526# ifdef __cplusplus
13527 extern "C"
13528# endif
13529 int F77_DUMMY_MAIN() { return 1; }
13530#endif
13531int
13532main ()
13533{
13534shl_load ();
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext conftest$ac_exeext
13540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -s conftest$ac_exeext'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 ac_cv_lib_dld_shl_load=yes
13552else
13553 echo "$as_me: failed program was:" >&5
13554cat conftest.$ac_ext >&5
13555ac_cv_lib_dld_shl_load=no
13556fi
13557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13558LIBS=$ac_check_lib_save_LIBS
13559fi
13560echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13561echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13562if test $ac_cv_lib_dld_shl_load = yes; then
13563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13564else
13565 echo "$as_me:$LINENO: checking for dlopen" >&5
13566echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13567if test "${ac_cv_func_dlopen+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570 cat >conftest.$ac_ext <<_ACEOF
13571#line $LINENO "configure"
13572#include "confdefs.h"
13573/* System header to define __stub macros and hopefully few prototypes,
13574 which can conflict with char dlopen (); below. */
13575#include <assert.h>
13576/* Override any gcc2 internal prototype to avoid an error. */
13577#ifdef __cplusplus
13578extern "C"
13579#endif
13580/* We use char because int might match the return type of a gcc2
13581 builtin and then its argument prototype would still apply. */
13582char dlopen ();
13583char (*f) ();
13584
13585#ifdef F77_DUMMY_MAIN
13586# ifdef __cplusplus
13587 extern "C"
13588# endif
13589 int F77_DUMMY_MAIN() { return 1; }
13590#endif
13591int
13592main ()
13593{
13594/* The GNU C library defines this for functions which it implements
13595 to always fail with ENOSYS. Some functions are actually named
13596 something starting with __ and the normal name is an alias. */
13597#if defined (__stub_dlopen) || defined (__stub___dlopen)
13598choke me
13599#else
13600f = dlopen;
13601#endif
13602
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext conftest$ac_exeext
13608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_func_dlopen=yes
13620else
13621 echo "$as_me: failed program was:" >&5
13622cat conftest.$ac_ext >&5
13623ac_cv_func_dlopen=no
13624fi
13625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13626fi
13627echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13628echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13629if test $ac_cv_func_dlopen = yes; then
13630 lt_cv_dlopen="dlopen"
13631else
13632 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 ac_check_lib_save_LIBS=$LIBS
13638LIBS="-ldl $LIBS"
13639cat >conftest.$ac_ext <<_ACEOF
13640#line $LINENO "configure"
13641#include "confdefs.h"
13642
13643/* Override any gcc2 internal prototype to avoid an error. */
13644#ifdef __cplusplus
13645extern "C"
13646#endif
13647/* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649char dlopen ();
13650#ifdef F77_DUMMY_MAIN
13651# ifdef __cplusplus
13652 extern "C"
13653# endif
13654 int F77_DUMMY_MAIN() { return 1; }
13655#endif
13656int
13657main ()
13658{
13659dlopen ();
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext conftest$ac_exeext
13665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_lib_dl_dlopen=yes
13677else
13678 echo "$as_me: failed program was:" >&5
13679cat conftest.$ac_ext >&5
13680ac_cv_lib_dl_dlopen=no
13681fi
13682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683LIBS=$ac_check_lib_save_LIBS
13684fi
13685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13687if test $ac_cv_lib_dl_dlopen = yes; then
13688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13689else
13690 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13691echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13692if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 ac_check_lib_save_LIBS=$LIBS
13696LIBS="-lsvld $LIBS"
13697cat >conftest.$ac_ext <<_ACEOF
13698#line $LINENO "configure"
13699#include "confdefs.h"
13700
13701/* Override any gcc2 internal prototype to avoid an error. */
13702#ifdef __cplusplus
13703extern "C"
13704#endif
13705/* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */
13707char dlopen ();
13708#ifdef F77_DUMMY_MAIN
13709# ifdef __cplusplus
13710 extern "C"
13711# endif
13712 int F77_DUMMY_MAIN() { return 1; }
13713#endif
13714int
13715main ()
13716{
13717dlopen ();
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_lib_svld_dlopen=yes
13735else
13736 echo "$as_me: failed program was:" >&5
13737cat conftest.$ac_ext >&5
13738ac_cv_lib_svld_dlopen=no
13739fi
13740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13741LIBS=$ac_check_lib_save_LIBS
13742fi
13743echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13744echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13745if test $ac_cv_lib_svld_dlopen = yes; then
13746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13747else
13748 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13749echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13750if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753 ac_check_lib_save_LIBS=$LIBS
13754LIBS="-ldld $LIBS"
13755cat >conftest.$ac_ext <<_ACEOF
13756#line $LINENO "configure"
13757#include "confdefs.h"
13758
13759/* Override any gcc2 internal prototype to avoid an error. */
13760#ifdef __cplusplus
13761extern "C"
13762#endif
13763/* We use char because int might match the return type of a gcc2
13764 builtin and then its argument prototype would still apply. */
13765char dld_link ();
13766#ifdef F77_DUMMY_MAIN
13767# ifdef __cplusplus
13768 extern "C"
13769# endif
13770 int F77_DUMMY_MAIN() { return 1; }
13771#endif
13772int
13773main ()
13774{
13775dld_link ();
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext conftest$ac_exeext
13781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_lib_dld_dld_link=yes
13793else
13794 echo "$as_me: failed program was:" >&5
13795cat conftest.$ac_ext >&5
13796ac_cv_lib_dld_dld_link=no
13797fi
13798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13799LIBS=$ac_check_lib_save_LIBS
13800fi
13801echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13802echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13803if test $ac_cv_lib_dld_dld_link = yes; then
13804 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13805fi
13806
13807
13808fi
13809
13810
13811fi
13812
13813
13814fi
13815
13816
13817fi
13818
13819
13820fi
13821
13822 ;;
13823 esac
13824
13825 if test "x$lt_cv_dlopen" != xno; then
13826 enable_dlopen=yes
13827 else
13828 enable_dlopen=no
13829 fi
13830
13831 case $lt_cv_dlopen in
13832 dlopen)
13833 save_CPPFLAGS="$CPPFLAGS"
13834 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13835
13836 save_LDFLAGS="$LDFLAGS"
13837 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13838
13839 save_LIBS="$LIBS"
13840 LIBS="$lt_cv_dlopen_libs $LIBS"
13841
13842 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13843echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13844if test "${lt_cv_dlopen_self+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847 if test "$cross_compiling" = yes; then :
13848 lt_cv_dlopen_self=cross
13849else
13850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13851 lt_status=$lt_dlunknown
13852 cat > conftest.$ac_ext <<EOF
13853#line 13853 "configure"
13854#include "confdefs.h"
13855
13856#if HAVE_DLFCN_H
13857#include <dlfcn.h>
13858#endif
13859
13860#include <stdio.h>
13861
13862#ifdef RTLD_GLOBAL
13863# define LT_DLGLOBAL RTLD_GLOBAL
13864#else
13865# ifdef DL_GLOBAL
13866# define LT_DLGLOBAL DL_GLOBAL
13867# else
13868# define LT_DLGLOBAL 0
13869# endif
13870#endif
13871
13872/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13873 find out it does not work in some platform. */
13874#ifndef LT_DLLAZY_OR_NOW
13875# ifdef RTLD_LAZY
13876# define LT_DLLAZY_OR_NOW RTLD_LAZY
13877# else
13878# ifdef DL_LAZY
13879# define LT_DLLAZY_OR_NOW DL_LAZY
13880# else
13881# ifdef RTLD_NOW
13882# define LT_DLLAZY_OR_NOW RTLD_NOW
13883# else
13884# ifdef DL_NOW
13885# define LT_DLLAZY_OR_NOW DL_NOW
13886# else
13887# define LT_DLLAZY_OR_NOW 0
13888# endif
13889# endif
13890# endif
13891# endif
13892#endif
13893
13894#ifdef __cplusplus
13895extern "C" void exit (int);
13896#endif
13897
13898void fnord() { int i=42;}
13899int main ()
13900{
13901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13902 int status = $lt_dlunknown;
13903
13904 if (self)
13905 {
13906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13907 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13908 /* dlclose (self); */
13909 }
13910
13911 exit (status);
13912}
13913EOF
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13919 (./conftest; exit; ) 2>/dev/null
13920 lt_status=$?
13921 case x$lt_status in
13922 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13923 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13924 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13925 esac
13926 else :
13927 # compilation failed
13928 lt_cv_dlopen_self=no
13929 fi
13930fi
13931rm -fr conftest*
13932
13933
13934fi
13935echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13936echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13937
13938 if test "x$lt_cv_dlopen_self" = xyes; then
13939 LDFLAGS="$LDFLAGS $link_static_flag"
13940 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13941echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13942if test "${lt_cv_dlopen_self_static+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944else
13945 if test "$cross_compiling" = yes; then :
13946 lt_cv_dlopen_self_static=cross
13947else
13948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13949 lt_status=$lt_dlunknown
13950 cat > conftest.$ac_ext <<EOF
13951#line 13951 "configure"
13952#include "confdefs.h"
13953
13954#if HAVE_DLFCN_H
13955#include <dlfcn.h>
13956#endif
13957
13958#include <stdio.h>
13959
13960#ifdef RTLD_GLOBAL
13961# define LT_DLGLOBAL RTLD_GLOBAL
13962#else
13963# ifdef DL_GLOBAL
13964# define LT_DLGLOBAL DL_GLOBAL
13965# else
13966# define LT_DLGLOBAL 0
13967# endif
13968#endif
13969
13970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13971 find out it does not work in some platform. */
13972#ifndef LT_DLLAZY_OR_NOW
13973# ifdef RTLD_LAZY
13974# define LT_DLLAZY_OR_NOW RTLD_LAZY
13975# else
13976# ifdef DL_LAZY
13977# define LT_DLLAZY_OR_NOW DL_LAZY
13978# else
13979# ifdef RTLD_NOW
13980# define LT_DLLAZY_OR_NOW RTLD_NOW
13981# else
13982# ifdef DL_NOW
13983# define LT_DLLAZY_OR_NOW DL_NOW
13984# else
13985# define LT_DLLAZY_OR_NOW 0
13986# endif
13987# endif
13988# endif
13989# endif
13990#endif
13991
13992#ifdef __cplusplus
13993extern "C" void exit (int);
13994#endif
13995
13996void fnord() { int i=42;}
13997int main ()
13998{
13999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14000 int status = $lt_dlunknown;
14001
14002 if (self)
14003 {
14004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14006 /* dlclose (self); */
14007 }
14008
14009 exit (status);
14010}
14011EOF
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14017 (./conftest; exit; ) 2>/dev/null
14018 lt_status=$?
14019 case x$lt_status in
14020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14022 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14023 esac
14024 else :
14025 # compilation failed
14026 lt_cv_dlopen_self_static=no
14027 fi
14028fi
14029rm -fr conftest*
14030
14031
14032fi
14033echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14034echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14035 fi
14036
14037 CPPFLAGS="$save_CPPFLAGS"
14038 LDFLAGS="$save_LDFLAGS"
14039 LIBS="$save_LIBS"
14040 ;;
14041 esac
14042
14043 case $lt_cv_dlopen_self in
14044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14045 *) enable_dlopen_self=unknown ;;
14046 esac
14047
14048 case $lt_cv_dlopen_self_static in
14049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14050 *) enable_dlopen_self_static=unknown ;;
14051 esac
14052fi
14053
14054
14055# The else clause should only fire when bootstrapping the
14056# libtool distribution, otherwise you forgot to ship ltmain.sh
14057# with your package, and you will get complaints that there are
14058# no rules to generate ltmain.sh.
14059if test -f "$ltmain"; then
14060 # Now quote all the things that may contain metacharacters while being
14061 # careful not to overquote the AC_SUBSTed values. We take copies of the
14062 # variables and quote the copies for generation of the libtool script.
14063 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14066 deplibs_check_method reload_flag reload_cmds need_locks \
14067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14068 lt_cv_sys_global_symbol_to_c_name_address \
14069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14070 old_postinstall_cmds old_postuninstall_cmds \
14071 compiler_GCJ \
14072 CC_GCJ \
14073 LD_GCJ \
14074 lt_prog_compiler_wl_GCJ \
14075 lt_prog_compiler_pic_GCJ \
14076 lt_prog_compiler_static_GCJ \
14077 lt_prog_compiler_no_builtin_flag_GCJ \
14078 export_dynamic_flag_spec_GCJ \
14079 thread_safe_flag_spec_GCJ \
14080 whole_archive_flag_spec_GCJ \
14081 old_archive_cmds_GCJ \
14082 old_archive_from_new_cmds_GCJ \
14083 predep_objects_GCJ \
14084 postdep_objects_GCJ \
14085 predeps_GCJ \
14086 postdeps_GCJ \
14087 compiler_lib_search_path_GCJ \
14088 archive_cmds_GCJ \
14089 archive_expsym_cmds_GCJ \
14090 postinstall_cmds_GCJ \
14091 postuninstall_cmds_GCJ \
14092 old_archive_from_expsyms_cmds_GCJ \
14093 allow_undefined_flag_GCJ \
14094 no_undefined_flag_GCJ \
14095 export_symbols_cmds_GCJ \
14096 hardcode_libdir_flag_spec_GCJ \
14097 hardcode_libdir_separator_GCJ \
14098 lt_cv_prog_compiler_c_o_GCJ \
14099 exclude_expsyms_GCJ \
14100 include_expsyms_GCJ; do
14101
14102 case $var in
14103 old_archive_cmds_GCJ | \
14104 old_archive_from_new_cmds_GCJ | \
14105 archive_cmds_GCJ | \
14106 archive_expsym_cmds_GCJ | \
14107 old_archive_from_expsyms_cmds_GCJ | \
14108 export_symbols_cmds_GCJ | \
14109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14110 postinstall_cmds | postuninstall_cmds | \
14111 old_postinstall_cmds | old_postuninstall_cmds | \
14112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14113 # Double-quote double-evaled strings.
14114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14115 ;;
14116 *)
14117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14118 ;;
14119 esac
14120 done
14121
14122 case $lt_echo in
14123 *'\$0 --fallback-echo"')
14124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14125 ;;
14126 esac
14127
14128cfgfile="$ofile"
14129
14130 cat <<__EOF__ >> "$cfgfile"
14131# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14132
14133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14134
14135# Shell to use when invoking shell scripts.
14136SHELL=$lt_SHELL
14137
14138# Whether or not to build shared libraries.
14139build_libtool_libs=$enable_shared
14140
14141# Whether or not to build static libraries.
14142build_old_libs=$enable_static
14143
14144# Whether or not to add -lc for building shared libraries.
14145build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14146
14147# Whether or not to optimize for fast installation.
14148fast_install=$enable_fast_install
14149
14150# The host system.
14151host_alias=$host_alias
14152host=$host
14153
14154# An echo program that does not interpret backslashes.
14155echo=$lt_echo
14156
14157# The archiver.
14158AR=$lt_AR
14159AR_FLAGS=$lt_AR_FLAGS
14160
14161# A C compiler.
14162LTCC=$lt_LTCC
14163
14164# A language-specific compiler.
14165CC=$lt_compiler_GCJ
14166
14167# Is the compiler the GNU C compiler?
14168with_gcc=$GCC_GCJ
14169
14170# The linker used to build libraries.
14171LD=$lt_LD_GCJ
14172
14173# Whether we need hard or soft links.
14174LN_S=$lt_LN_S
14175
14176# A BSD-compatible nm program.
14177NM=$lt_NM
14178
14179# A sed program that does not truncate output.
14180SED=$lt_SED
14181
14182# A symbol stripping program
14183STRIP=$STRIP
14184
14185# Used to examine libraries when file_magic_cmd begins "file"
14186MAGIC_CMD=$MAGIC_CMD
14187
14188# Used on cygwin: DLL creation program.
14189DLLTOOL="$DLLTOOL"
14190
14191# Used on cygwin: object dumper.
14192OBJDUMP="$OBJDUMP"
14193
14194# Used on cygwin: assembler.
14195AS="$AS"
14196
14197# The name of the directory that contains temporary libtool files.
14198objdir=$objdir
14199
14200# How to create reloadable object files.
14201reload_flag=$lt_reload_flag
14202reload_cmds=$lt_reload_cmds
14203
14204# How to pass a linker flag through the compiler.
14205wl=$lt_lt_prog_compiler_wl_GCJ
14206
14207# Object file suffix (normally "o").
14208objext="$ac_objext"
14209
14210# Old archive suffix (normally "a").
14211libext="$libext"
14212
14213# Executable file suffix (normally "").
14214exeext="$exeext"
14215
14216# Additional compiler flags for building library objects.
14217pic_flag=$lt_lt_prog_compiler_pic_GCJ
14218pic_mode=$pic_mode
14219
14220# What is the maximum length of a command?
14221max_cmd_len=$lt_cv_sys_max_cmd_len
14222
14223# Does compiler simultaneously support -c and -o options?
14224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14225
14226# Must we lock files when doing compilation ?
14227need_locks=$lt_need_locks
14228
14229# Do we need the lib prefix for modules?
14230need_lib_prefix=$need_lib_prefix
14231
14232# Do we need a version for libraries?
14233need_version=$need_version
14234
14235# Whether dlopen is supported.
14236dlopen_support=$enable_dlopen
14237
14238# Whether dlopen of programs is supported.
14239dlopen_self=$enable_dlopen_self
14240
14241# Whether dlopen of statically linked programs is supported.
14242dlopen_self_static=$enable_dlopen_self_static
14243
14244# Compiler flag to prevent dynamic linking.
14245link_static_flag=$lt_lt_prog_compiler_static_GCJ
14246
14247# Compiler flag to turn off builtin functions.
14248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14249
14250# Compiler flag to allow reflexive dlopens.
14251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14252
14253# Compiler flag to generate shared objects directly from archives.
14254whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14255
14256# Compiler flag to generate thread-safe objects.
14257thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14258
14259# Library versioning type.
14260version_type=$version_type
14261
14262# Format of library name prefix.
14263libname_spec=$lt_libname_spec
14264
14265# List of archive names. First name is the real one, the rest are links.
14266# The last name is the one that the linker finds with -lNAME.
14267library_names_spec=$lt_library_names_spec
14268
14269# The coded name of the library, if different from the real name.
14270soname_spec=$lt_soname_spec
14271
14272# Commands used to build and install an old-style archive.
14273RANLIB=$lt_RANLIB
14274old_archive_cmds=$lt_old_archive_cmds_GCJ
14275old_postinstall_cmds=$lt_old_postinstall_cmds
14276old_postuninstall_cmds=$lt_old_postuninstall_cmds
14277
14278# Create an old-style archive from a shared archive.
14279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14280
14281# Create a temporary old-style archive to link instead of a shared archive.
14282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14283
14284# Commands used to build and install a shared archive.
14285archive_cmds=$lt_archive_cmds_GCJ
14286archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14287postinstall_cmds=$lt_postinstall_cmds
14288postuninstall_cmds=$lt_postuninstall_cmds
14289
14290# Commands to strip libraries.
14291old_striplib=$lt_old_striplib
14292striplib=$lt_striplib
14293
14294# Dependencies to place before the objects being linked to create a
14295# shared library.
14296predep_objects=$lt_predep_objects_GCJ
14297
14298# Dependencies to place after the objects being linked to create a
14299# shared library.
14300postdep_objects=$lt_postdep_objects_GCJ
14301
14302# Dependencies to place before the objects being linked to create a
14303# shared library.
14304predeps=$lt_predeps_GCJ
14305
14306# Dependencies to place after the objects being linked to create a
14307# shared library.
14308postdeps=$lt_postdeps_GCJ
14309
14310# The library search path used internally by the compiler when linking
14311# a shared library.
14312compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14313
14314# Method to check whether dependent libraries are shared objects.
14315deplibs_check_method=$lt_deplibs_check_method
14316
14317# Command to use when deplibs_check_method == file_magic.
14318file_magic_cmd=$lt_file_magic_cmd
14319
14320# Flag that allows shared libraries with undefined symbols to be built.
14321allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14322
14323# Flag that forces no undefined symbols.
14324no_undefined_flag=$lt_no_undefined_flag_GCJ
14325
14326# Commands used to finish a libtool library installation in a directory.
14327finish_cmds=$lt_finish_cmds
14328
14329# Same as above, but a single script fragment to be evaled but not shown.
14330finish_eval=$lt_finish_eval
14331
14332# Take the output of nm and produce a listing of raw symbols and C names.
14333global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14334
14335# Transform the output of nm in a proper C declaration
14336global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14337
14338# Transform the output of nm in a C name address pair
14339global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14340
14341# This is the shared library runtime path variable.
14342runpath_var=$runpath_var
14343
14344# This is the shared library path variable.
14345shlibpath_var=$shlibpath_var
14346
14347# Is shlibpath searched before the hard-coded library search path?
14348shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14349
14350# How to hardcode a shared library path into an executable.
14351hardcode_action=$hardcode_action_GCJ
14352
14353# Whether we should hardcode library paths into libraries.
14354hardcode_into_libs=$hardcode_into_libs
14355
14356# Flag to hardcode \$libdir into a binary during linking.
14357# This must work even if \$libdir does not exist.
14358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14359
14360# Whether we need a single -rpath flag with a separated argument.
14361hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14362
14363# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14364# resulting binary.
14365hardcode_direct=$hardcode_direct_GCJ
14366
14367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14368# resulting binary.
14369hardcode_minus_L=$hardcode_minus_L_GCJ
14370
14371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14372# the resulting binary.
14373hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14374
14375# Variables whose values should be saved in libtool wrapper scripts and
14376# restored at relink time.
14377variables_saved_for_relink="$variables_saved_for_relink"
14378
14379# Whether libtool must link a program against all its dependency libraries.
14380link_all_deplibs=$link_all_deplibs_GCJ
14381
14382# Compile-time system search path for libraries
14383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14384
14385# Run-time system search path for libraries
14386sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14387
14388# Fix the shell variable \$srcfile for the compiler.
14389fix_srcfile_path="$fix_srcfile_path_GCJ"
14390
14391# Set to yes if exported symbols are required.
14392always_export_symbols=$always_export_symbols_GCJ
14393
14394# The commands to list exported symbols.
14395export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14396
14397# The commands to extract the exported symbol list from a shared archive.
14398extract_expsyms_cmds=$lt_extract_expsyms_cmds
14399
14400# Symbols that should not be listed in the preloaded symbols.
14401exclude_expsyms=$lt_exclude_expsyms_GCJ
14402
14403# Symbols that must always be exported.
14404include_expsyms=$lt_include_expsyms_GCJ
14405
14406# ### END LIBTOOL TAG CONFIG: $tagname
14407
14408__EOF__
14409
14410
14411else
14412 # If there is no Makefile yet, we rely on a make rule to execute
14413 # `config.status --recheck' to rerun these tests and create the
14414 # libtool script then.
14415 test -f Makefile && make "$ltmain"
14416fi
14417
14418
14419ac_ext=c
14420ac_cpp='$CPP $CPPFLAGS'
14421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423ac_compiler_gnu=$ac_cv_c_compiler_gnu
14424
14425CC="$lt_save_CC"
14426
14427 ;;
14428
14429 RC)
14430
14431
14432
14433# Source file extension for RC test sources.
14434ac_ext=rc
14435
14436# Object file extension for compiled RC test sources.
14437objext=o
14438objext_RC=$objext
14439
14440# Code to be used in simple compile tests
14441lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14442
14443# Code to be used in simple link tests
14444lt_simple_link_test_code="$lt_simple_compile_test_code"
14445
14446# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14447
14448# If no C compiler was specified, use CC.
14449LTCC=${LTCC-"$CC"}
14450
14451# Allow CC to be a program name with arguments.
14452set dummy $CC
14453compiler="$2"
14454
14455
14456# Allow CC to be a program name with arguments.
14457lt_save_CC="$CC"
14458CC=${RC-"windres"}
14459set dummy $CC
14460compiler="$2"
14461compiler_RC=$CC
14462lt_cv_prog_compiler_c_o_RC=yes
14463
14464# The else clause should only fire when bootstrapping the
14465# libtool distribution, otherwise you forgot to ship ltmain.sh
14466# with your package, and you will get complaints that there are
14467# no rules to generate ltmain.sh.
14468if test -f "$ltmain"; then
14469 # Now quote all the things that may contain metacharacters while being
14470 # careful not to overquote the AC_SUBSTed values. We take copies of the
14471 # variables and quote the copies for generation of the libtool script.
14472 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14475 deplibs_check_method reload_flag reload_cmds need_locks \
14476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14477 lt_cv_sys_global_symbol_to_c_name_address \
14478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14479 old_postinstall_cmds old_postuninstall_cmds \
14480 compiler_RC \
14481 CC_RC \
14482 LD_RC \
14483 lt_prog_compiler_wl_RC \
14484 lt_prog_compiler_pic_RC \
14485 lt_prog_compiler_static_RC \
14486 lt_prog_compiler_no_builtin_flag_RC \
14487 export_dynamic_flag_spec_RC \
14488 thread_safe_flag_spec_RC \
14489 whole_archive_flag_spec_RC \
14490 old_archive_cmds_RC \
14491 old_archive_from_new_cmds_RC \
14492 predep_objects_RC \
14493 postdep_objects_RC \
14494 predeps_RC \
14495 postdeps_RC \
14496 compiler_lib_search_path_RC \
14497 archive_cmds_RC \
14498 archive_expsym_cmds_RC \
14499 postinstall_cmds_RC \
14500 postuninstall_cmds_RC \
14501 old_archive_from_expsyms_cmds_RC \
14502 allow_undefined_flag_RC \
14503 no_undefined_flag_RC \
14504 export_symbols_cmds_RC \
14505 hardcode_libdir_flag_spec_RC \
14506 hardcode_libdir_separator_RC \
14507 lt_cv_prog_compiler_c_o_RC \
14508 exclude_expsyms_RC \
14509 include_expsyms_RC; do
14510
14511 case $var in
14512 old_archive_cmds_RC | \
14513 old_archive_from_new_cmds_RC | \
14514 archive_cmds_RC | \
14515 archive_expsym_cmds_RC | \
14516 old_archive_from_expsyms_cmds_RC | \
14517 export_symbols_cmds_RC | \
14518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14519 postinstall_cmds | postuninstall_cmds | \
14520 old_postinstall_cmds | old_postuninstall_cmds | \
14521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14522 # Double-quote double-evaled strings.
14523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14524 ;;
14525 *)
14526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14527 ;;
14528 esac
14529 done
14530
14531 case $lt_echo in
14532 *'\$0 --fallback-echo"')
14533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14534 ;;
14535 esac
14536
14537cfgfile="$ofile"
14538
14539 cat <<__EOF__ >> "$cfgfile"
14540# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14541
14542# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14543
14544# Shell to use when invoking shell scripts.
14545SHELL=$lt_SHELL
14546
14547# Whether or not to build shared libraries.
14548build_libtool_libs=$enable_shared
14549
14550# Whether or not to build static libraries.
14551build_old_libs=$enable_static
14552
14553# Whether or not to add -lc for building shared libraries.
14554build_libtool_need_lc=$archive_cmds_need_lc_RC
14555
14556# Whether or not to optimize for fast installation.
14557fast_install=$enable_fast_install
14558
14559# The host system.
14560host_alias=$host_alias
14561host=$host
14562
14563# An echo program that does not interpret backslashes.
14564echo=$lt_echo
14565
14566# The archiver.
14567AR=$lt_AR
14568AR_FLAGS=$lt_AR_FLAGS
14569
14570# A C compiler.
14571LTCC=$lt_LTCC
14572
14573# A language-specific compiler.
14574CC=$lt_compiler_RC
14575
14576# Is the compiler the GNU C compiler?
14577with_gcc=$GCC_RC
14578
14579# The linker used to build libraries.
14580LD=$lt_LD_RC
14581
14582# Whether we need hard or soft links.
14583LN_S=$lt_LN_S
14584
14585# A BSD-compatible nm program.
14586NM=$lt_NM
14587
14588# A sed program that does not truncate output.
14589SED=$lt_SED
14590
14591# A symbol stripping program
14592STRIP=$STRIP
14593
14594# Used to examine libraries when file_magic_cmd begins "file"
14595MAGIC_CMD=$MAGIC_CMD
14596
14597# Used on cygwin: DLL creation program.
14598DLLTOOL="$DLLTOOL"
14599
14600# Used on cygwin: object dumper.
14601OBJDUMP="$OBJDUMP"
14602
14603# Used on cygwin: assembler.
14604AS="$AS"
14605
14606# The name of the directory that contains temporary libtool files.
14607objdir=$objdir
14608
14609# How to create reloadable object files.
14610reload_flag=$lt_reload_flag
14611reload_cmds=$lt_reload_cmds
14612
14613# How to pass a linker flag through the compiler.
14614wl=$lt_lt_prog_compiler_wl_RC
14615
14616# Object file suffix (normally "o").
14617objext="$ac_objext"
14618
14619# Old archive suffix (normally "a").
14620libext="$libext"
14621
14622# Executable file suffix (normally "").
14623exeext="$exeext"
14624
14625# Additional compiler flags for building library objects.
14626pic_flag=$lt_lt_prog_compiler_pic_RC
14627pic_mode=$pic_mode
14628
14629# What is the maximum length of a command?
14630max_cmd_len=$lt_cv_sys_max_cmd_len
14631
14632# Does compiler simultaneously support -c and -o options?
14633compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14634
14635# Must we lock files when doing compilation ?
14636need_locks=$lt_need_locks
14637
14638# Do we need the lib prefix for modules?
14639need_lib_prefix=$need_lib_prefix
14640
14641# Do we need a version for libraries?
14642need_version=$need_version
14643
14644# Whether dlopen is supported.
14645dlopen_support=$enable_dlopen
14646
14647# Whether dlopen of programs is supported.
14648dlopen_self=$enable_dlopen_self
14649
14650# Whether dlopen of statically linked programs is supported.
14651dlopen_self_static=$enable_dlopen_self_static
14652
14653# Compiler flag to prevent dynamic linking.
14654link_static_flag=$lt_lt_prog_compiler_static_RC
14655
14656# Compiler flag to turn off builtin functions.
14657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14658
14659# Compiler flag to allow reflexive dlopens.
14660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14661
14662# Compiler flag to generate shared objects directly from archives.
14663whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14664
14665# Compiler flag to generate thread-safe objects.
14666thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14667
14668# Library versioning type.
14669version_type=$version_type
14670
14671# Format of library name prefix.
14672libname_spec=$lt_libname_spec
14673
14674# List of archive names. First name is the real one, the rest are links.
14675# The last name is the one that the linker finds with -lNAME.
14676library_names_spec=$lt_library_names_spec
14677
14678# The coded name of the library, if different from the real name.
14679soname_spec=$lt_soname_spec
14680
14681# Commands used to build and install an old-style archive.
14682RANLIB=$lt_RANLIB
14683old_archive_cmds=$lt_old_archive_cmds_RC
14684old_postinstall_cmds=$lt_old_postinstall_cmds
14685old_postuninstall_cmds=$lt_old_postuninstall_cmds
14686
14687# Create an old-style archive from a shared archive.
14688old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14689
14690# Create a temporary old-style archive to link instead of a shared archive.
14691old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14692
14693# Commands used to build and install a shared archive.
14694archive_cmds=$lt_archive_cmds_RC
14695archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14696postinstall_cmds=$lt_postinstall_cmds
14697postuninstall_cmds=$lt_postuninstall_cmds
14698
14699# Commands to strip libraries.
14700old_striplib=$lt_old_striplib
14701striplib=$lt_striplib
14702
14703# Dependencies to place before the objects being linked to create a
14704# shared library.
14705predep_objects=$lt_predep_objects_RC
14706
14707# Dependencies to place after the objects being linked to create a
14708# shared library.
14709postdep_objects=$lt_postdep_objects_RC
14710
14711# Dependencies to place before the objects being linked to create a
14712# shared library.
14713predeps=$lt_predeps_RC
14714
14715# Dependencies to place after the objects being linked to create a
14716# shared library.
14717postdeps=$lt_postdeps_RC
14718
14719# The library search path used internally by the compiler when linking
14720# a shared library.
14721compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14722
14723# Method to check whether dependent libraries are shared objects.
14724deplibs_check_method=$lt_deplibs_check_method
14725
14726# Command to use when deplibs_check_method == file_magic.
14727file_magic_cmd=$lt_file_magic_cmd
14728
14729# Flag that allows shared libraries with undefined symbols to be built.
14730allow_undefined_flag=$lt_allow_undefined_flag_RC
14731
14732# Flag that forces no undefined symbols.
14733no_undefined_flag=$lt_no_undefined_flag_RC
14734
14735# Commands used to finish a libtool library installation in a directory.
14736finish_cmds=$lt_finish_cmds
14737
14738# Same as above, but a single script fragment to be evaled but not shown.
14739finish_eval=$lt_finish_eval
14740
14741# Take the output of nm and produce a listing of raw symbols and C names.
14742global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14743
14744# Transform the output of nm in a proper C declaration
14745global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14746
14747# Transform the output of nm in a C name address pair
14748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14749
14750# This is the shared library runtime path variable.
14751runpath_var=$runpath_var
14752
14753# This is the shared library path variable.
14754shlibpath_var=$shlibpath_var
14755
14756# Is shlibpath searched before the hard-coded library search path?
14757shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14758
14759# How to hardcode a shared library path into an executable.
14760hardcode_action=$hardcode_action_RC
14761
14762# Whether we should hardcode library paths into libraries.
14763hardcode_into_libs=$hardcode_into_libs
14764
14765# Flag to hardcode \$libdir into a binary during linking.
14766# This must work even if \$libdir does not exist.
14767hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14768
14769# Whether we need a single -rpath flag with a separated argument.
14770hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14771
14772# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14773# resulting binary.
14774hardcode_direct=$hardcode_direct_RC
14775
14776# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14777# resulting binary.
14778hardcode_minus_L=$hardcode_minus_L_RC
14779
14780# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14781# the resulting binary.
14782hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14783
14784# Variables whose values should be saved in libtool wrapper scripts and
14785# restored at relink time.
14786variables_saved_for_relink="$variables_saved_for_relink"
14787
14788# Whether libtool must link a program against all its dependency libraries.
14789link_all_deplibs=$link_all_deplibs_RC
14790
14791# Compile-time system search path for libraries
14792sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14793
14794# Run-time system search path for libraries
14795sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14796
14797# Fix the shell variable \$srcfile for the compiler.
14798fix_srcfile_path="$fix_srcfile_path_RC"
14799
14800# Set to yes if exported symbols are required.
14801always_export_symbols=$always_export_symbols_RC
14802
14803# The commands to list exported symbols.
14804export_symbols_cmds=$lt_export_symbols_cmds_RC
14805
14806# The commands to extract the exported symbol list from a shared archive.
14807extract_expsyms_cmds=$lt_extract_expsyms_cmds
14808
14809# Symbols that should not be listed in the preloaded symbols.
14810exclude_expsyms=$lt_exclude_expsyms_RC
14811
14812# Symbols that must always be exported.
14813include_expsyms=$lt_include_expsyms_RC
14814
14815# ### END LIBTOOL TAG CONFIG: $tagname
14816
14817__EOF__
14818
14819
14820else
14821 # If there is no Makefile yet, we rely on a make rule to execute
14822 # `config.status --recheck' to rerun these tests and create the
14823 # libtool script then.
14824 test -f Makefile && make "$ltmain"
14825fi
14826
14827
14828ac_ext=c
14829ac_cpp='$CPP $CPPFLAGS'
14830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832ac_compiler_gnu=$ac_cv_c_compiler_gnu
14833
14834CC="$lt_save_CC"
14835
14836 ;;
14837
14838 *)
14839 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14840echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14841 { (exit 1); exit 1; }; }
14842 ;;
14843 esac
14844
14845 # Append the new tag name to the list of available tags.
14846 available_tags="$available_tags $tagname"
14847 fi
14848 done
14849 IFS="$lt_save_ifs"
14850
14851 # Now substitute the updated list of available tags.
14852 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14853 mv "${ofile}T" "$ofile"
14854 chmod +x "$ofile"
14855 else
14856 rm -f "${ofile}T"
14857 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14858echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14859 { (exit 1); exit 1; }; }
14860 fi
14861fi
14862
14863
14864
14865# This can be used to rebuild libtool when needed
14866LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14867
14868# Always use our own libtool.
14869LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
14870
14871# Prevent multiple expansion
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886ac_ext=c
14887ac_cpp='$CPP $CPPFLAGS'
14888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14890ac_compiler_gnu=$ac_cv_c_compiler_gnu
14891
14892
14893
14894ac_ext=c
14895ac_cpp='$CPP $CPPFLAGS'
14896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14910
14911# find the maximum length of command line arguments
14912echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14913echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14914if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916else
14917 i=0
14918 testring="ABCD"
14919
14920 case $host_os in
14921 msdosdjgpp*)
14922 # On DJGPP, this test can blow up pretty badly due to problems in libc
14923 # (any single argument exceeding 2000 bytes causes a buffer overrun
14924 # during glob expansion). Even if it were fixed, the result of this
14925 # check would be larger than it should be.
14926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14927 ;;
14928
14929 gnu*)
14930 # Under GNU Hurd, this test is not required because there is
14931 # no limit to the length of command line arguments.
14932 # Libtool will interpret -1 as no limit whatsoever
14933 lt_cv_sys_max_cmd_len=-1;
14934 ;;
14935
14936 *)
14937 # If test is not a shell built-in, we'll probably end up computing a
14938 # maximum length that is only half of the actual maximum length, but
14939 # we can't tell.
14940 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
14941 = "XX$testring") >/dev/null 2>&1 &&
14942 new_result=`expr "X$testring" : ".*" 2>&1` &&
14943 lt_cv_sys_max_cmd_len=$new_result &&
14944 test $i != 17 # 1/2 MB should be enough
14945 do
14946 i=`expr $i + 1`
14947 testring=$testring$testring
14948 done
14949 testring=
14950 # Add a significant safety factor because C++ compilers can tack on massive
14951 # amounts of additional arguments before passing them to the linker.
14952 # It appears as though 1/2 is a usable value.
14953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14954 ;;
14955 esac
14956
14957fi
14958
14959if test -n $lt_cv_sys_max_cmd_len ; then
14960 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14961echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14962else
14963 echo "$as_me:$LINENO: result: none" >&5
14964echo "${ECHO_T}none" >&6
14965fi
14966
14967
14968
14969
14970# Check for command to grab the raw symbol name followed by C symbol from nm.
14971echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14972echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14973if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975else
14976
14977# These are sane defaults that work on at least a few old systems.
14978# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14979
14980# Character class describing NM global symbol codes.
14981symcode='[BCDEGRST]'
14982
14983# Regexp to match symbols that can be accessed directly from C.
14984sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14985
14986# Transform the above into a raw symbol and a C symbol.
14987symxfrm='\1 \2\3 \3'
14988
14989# Transform an extracted symbol line into a proper C declaration
14990lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14991
14992# Transform an extracted symbol line into symbol name and symbol address
14993lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14994
14995# Define system-specific variables.
14996case $host_os in
14997aix*)
14998 symcode='[BCDT]'
14999 ;;
15000cygwin* | mingw* | pw32*)
15001 symcode='[ABCDGISTW]'
15002 ;;
15003hpux*) # Its linker distinguishes data from code symbols
15004 if test "$host_cpu" = ia64; then
15005 symcode='[ABCDEGRST]'
15006 fi
15007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15008 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
15009 ;;
15010irix* | nonstopux*)
15011 symcode='[BCDEGRST]'
15012 ;;
15013solaris* | sysv5*)
15014 symcode='[BDT]'
15015 ;;
15016sysv4)
15017 symcode='[DFNSTU]'
15018 ;;
15019esac
15020
15021# Handle CRLF in mingw tool chain
15022opt_cr=
15023case $host_os in
15024mingw*)
15025 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15026 ;;
15027esac
15028
15029# If we're using GNU nm, then use its standard symbol codes.
15030if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
15031 symcode='[ABCDGISTW]'
15032fi
15033
15034# Try without a prefix undercore, then with it.
15035for ac_symprfx in "" "_"; do
15036
15037 # Write the raw and C identifiers.
15038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
15039
15040 # Check to see that the pipe works correctly.
15041 pipe_works=no
15042
15043 rm -f conftest*
15044 cat > conftest.$ac_ext <<EOF
15045#ifdef __cplusplus
15046extern "C" {
15047#endif
15048char nm_test_var;
15049void nm_test_func(){}
15050#ifdef __cplusplus
15051}
15052#endif
15053int main(){nm_test_var='a';nm_test_func();return(0);}
15054EOF
15055
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; then
15061 # Now try to grab the symbols.
15062 nlist=conftest.nm
15063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && test -s "$nlist"; then
15068 # Try sorting and uniquifying the output.
15069 if sort "$nlist" | uniq > "$nlist"T; then
15070 mv -f "$nlist"T "$nlist"
15071 else
15072 rm -f "$nlist"T
15073 fi
15074
15075 # Make sure that we snagged all the symbols we need.
15076 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
15077 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
15078 cat <<EOF > conftest.$ac_ext
15079#ifdef __cplusplus
15080extern "C" {
15081#endif
15082
15083EOF
15084 # Now generate the symbol file.
15085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15086
15087 cat <<EOF >> conftest.$ac_ext
15088#if defined (__STDC__) && __STDC__
15089# define lt_ptr_t void *
15090#else
15091# define lt_ptr_t char *
15092# define const
15093#endif
15094
15095/* The mapping between symbol names and symbols. */
15096const struct {
15097 const char *name;
15098 lt_ptr_t address;
15099}
15100lt_preloaded_symbols[] =
15101{
15102EOF
15103 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15104 cat <<\EOF >> conftest.$ac_ext
15105 {0, (lt_ptr_t) 0}
15106};
15107
15108#ifdef __cplusplus
15109}
15110#endif
15111EOF
15112 # Now try linking the two files.
15113 mv conftest.$ac_objext conftstm.$ac_objext
15114 lt_save_LIBS="$LIBS"
15115 lt_save_CFLAGS="$CFLAGS"
15116 LIBS="conftstm.$ac_objext"
15117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119 (eval $ac_link) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15123 pipe_works=yes
15124 fi
15125 LIBS="$lt_save_LIBS"
15126 CFLAGS="$lt_save_CFLAGS"
15127 else
15128 echo "cannot find nm_test_func in $nlist" >&5
15129 fi
15130 else
15131 echo "cannot find nm_test_var in $nlist" >&5
15132 fi
15133 else
15134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15135 fi
15136 else
15137 echo "$progname: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 fi
15140 rm -f conftest* conftst*
15141
15142 # Do not use the global_symbol_pipe unless it works.
15143 if test "$pipe_works" = yes; then
15144 break
15145 else
15146 lt_cv_sys_global_symbol_pipe=
15147 fi
15148done
15149
15150fi
15151
15152if test -z "$lt_cv_sys_global_symbol_pipe"; then
15153 lt_cv_sys_global_symbol_to_cdecl=
15154fi
15155if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15156 echo "$as_me:$LINENO: result: failed" >&5
15157echo "${ECHO_T}failed" >&6
15158else
15159 echo "$as_me:$LINENO: result: ok" >&5
15160echo "${ECHO_T}ok" >&6
15161fi
15162
15163echo "$as_me:$LINENO: checking for objdir" >&5
15164echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15165if test "${lt_cv_objdir+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167else
15168 rm -f .libs 2>/dev/null
15169mkdir .libs 2>/dev/null
15170if test -d .libs; then
15171 lt_cv_objdir=.libs
15172else
15173 # MS-DOS does not allow filenames that begin with a dot.
15174 lt_cv_objdir=_libs
15175fi
15176rmdir .libs 2>/dev/null
15177fi
15178echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15179echo "${ECHO_T}$lt_cv_objdir" >&6
15180objdir=$lt_cv_objdir
15181
15182
15183
15184
15185
15186case $host_os in
15187aix3*)
15188 # AIX sometimes has problems with the GCC collect2 program. For some
15189 # reason, if we set the COLLECT_NAMES environment variable, the problems
15190 # vanish in a puff of smoke.
15191 if test "X${COLLECT_NAMES+set}" != Xset; then
15192 COLLECT_NAMES=
15193 export COLLECT_NAMES
15194 fi
15195 ;;
15196esac
15197
15198# Sed substitution that helps us do robust quoting. It backslashifies
15199# metacharacters that are still active within double-quoted strings.
15200Xsed='sed -e s/^X//'
15201sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15202
15203# Same as above, but do not quote variable references.
15204double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15205
15206# Sed substitution to delay expansion of an escaped shell variable in a
15207# double_quote_subst'ed string.
15208delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15209
15210# Sed substitution to avoid accidental globbing in evaled expressions
15211no_glob_subst='s/\*/\\\*/g'
15212
15213# Constants:
15214rm="rm -f"
15215
15216# Global variables:
15217default_ofile=libtool
15218can_build_shared=yes
15219
15220# All known linkers require a `.a' archive for static linking (except M$VC,
15221# which needs '.lib').
15222libext=a
15223ltmain="$ac_aux_dir/ltmain.sh"
15224ofile="$default_ofile"
15225with_gnu_ld="$lt_cv_prog_gnu_ld"
15226
15227if test -n "$ac_tool_prefix"; then
15228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15229set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15230echo "$as_me:$LINENO: checking for $ac_word" >&5
15231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15232if test "${ac_cv_prog_RANLIB+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235 if test -n "$RANLIB"; then
15236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15237else
15238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239for as_dir in $PATH
15240do
15241 IFS=$as_save_IFS
15242 test -z "$as_dir" && as_dir=.
15243 for ac_exec_ext in '' $ac_executable_extensions; do
15244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247 break 2
15248 fi
15249done
15250done
15251
15252fi
15253fi
15254RANLIB=$ac_cv_prog_RANLIB
15255if test -n "$RANLIB"; then
15256 echo "$as_me:$LINENO: result: $RANLIB" >&5
15257echo "${ECHO_T}$RANLIB" >&6
15258else
15259 echo "$as_me:$LINENO: result: no" >&5
15260echo "${ECHO_T}no" >&6
15261fi
15262
15263fi
15264if test -z "$ac_cv_prog_RANLIB"; then
15265 ac_ct_RANLIB=$RANLIB
15266 # Extract the first word of "ranlib", so it can be a program name with args.
15267set dummy ranlib; ac_word=$2
15268echo "$as_me:$LINENO: checking for $ac_word" >&5
15269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15270if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
15273 if test -n "$ac_ct_RANLIB"; then
15274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15275else
15276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15277for as_dir in $PATH
15278do
15279 IFS=$as_save_IFS
15280 test -z "$as_dir" && as_dir=.
15281 for ac_exec_ext in '' $ac_executable_extensions; do
15282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15283 ac_cv_prog_ac_ct_RANLIB="ranlib"
15284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15285 break 2
15286 fi
15287done
15288done
15289
15290 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15291fi
15292fi
15293ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15294if test -n "$ac_ct_RANLIB"; then
15295 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15296echo "${ECHO_T}$ac_ct_RANLIB" >&6
15297else
15298 echo "$as_me:$LINENO: result: no" >&5
15299echo "${ECHO_T}no" >&6
15300fi
15301
15302 RANLIB=$ac_ct_RANLIB
15303else
15304 RANLIB="$ac_cv_prog_RANLIB"
15305fi
15306
15307if test -n "$ac_tool_prefix"; then
15308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15309set dummy ${ac_tool_prefix}strip; ac_word=$2
15310echo "$as_me:$LINENO: checking for $ac_word" >&5
15311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15312if test "${ac_cv_prog_STRIP+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315 if test -n "$STRIP"; then
15316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15317else
15318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319for as_dir in $PATH
15320do
15321 IFS=$as_save_IFS
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
15324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15327 break 2
15328 fi
15329done
15330done
15331
15332fi
15333fi
15334STRIP=$ac_cv_prog_STRIP
15335if test -n "$STRIP"; then
15336 echo "$as_me:$LINENO: result: $STRIP" >&5
15337echo "${ECHO_T}$STRIP" >&6
15338else
15339 echo "$as_me:$LINENO: result: no" >&5
15340echo "${ECHO_T}no" >&6
15341fi
15342
15343fi
15344if test -z "$ac_cv_prog_STRIP"; then
15345 ac_ct_STRIP=$STRIP
15346 # Extract the first word of "strip", so it can be a program name with args.
15347set dummy strip; ac_word=$2
15348echo "$as_me:$LINENO: checking for $ac_word" >&5
15349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352else
15353 if test -n "$ac_ct_STRIP"; then
15354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15355else
15356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357for as_dir in $PATH
15358do
15359 IFS=$as_save_IFS
15360 test -z "$as_dir" && as_dir=.
15361 for ac_exec_ext in '' $ac_executable_extensions; do
15362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363 ac_cv_prog_ac_ct_STRIP="strip"
15364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15365 break 2
15366 fi
15367done
15368done
15369
15370 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15371fi
15372fi
15373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15374if test -n "$ac_ct_STRIP"; then
15375 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15376echo "${ECHO_T}$ac_ct_STRIP" >&6
15377else
15378 echo "$as_me:$LINENO: result: no" >&5
15379echo "${ECHO_T}no" >&6
15380fi
15381
15382 STRIP=$ac_ct_STRIP
15383else
15384 STRIP="$ac_cv_prog_STRIP"
15385fi
15386
15387
15388old_CC="$CC"
15389old_CFLAGS="$CFLAGS"
15390
15391# Set sane defaults for various variables
15392test -z "$AR" && AR=ar
15393test -z "$AR_FLAGS" && AR_FLAGS=cru
15394test -z "$AS" && AS=as
15395test -z "$CC" && CC=cc
15396test -z "$LTCC" && LTCC=$CC
15397test -z "$DLLTOOL" && DLLTOOL=dlltool
15398test -z "$LD" && LD=ld
15399test -z "$LN_S" && LN_S="ln -s"
15400test -z "$MAGIC_CMD" && MAGIC_CMD=file
15401test -z "$NM" && NM=nm
15402test -z "$SED" && SED=sed
15403test -z "$OBJDUMP" && OBJDUMP=objdump
15404test -z "$RANLIB" && RANLIB=:
15405test -z "$STRIP" && STRIP=:
15406test -z "$ac_objext" && ac_objext=o
15407
15408# Determine commands to create old-style static archives.
15409old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15410old_postinstall_cmds='chmod 644 $oldlib'
15411old_postuninstall_cmds=
15412
15413if test -n "$RANLIB"; then
15414 case $host_os in
15415 openbsd*)
15416 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
15417 ;;
15418 *)
15419 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
15420 ;;
15421 esac
15422 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15423fi
15424
15425# Only perform the check for file, if the check method requires it
15426case $deplibs_check_method in
15427file_magic*)
15428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15430echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15431if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433else
15434 case $MAGIC_CMD in
15435[\\/*] | ?:[\\/]*)
15436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15437 ;;
15438*)
15439 lt_save_MAGIC_CMD="$MAGIC_CMD"
15440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15442 for ac_dir in $ac_dummy; do
15443 IFS="$lt_save_ifs"
15444 test -z "$ac_dir" && ac_dir=.
15445 if test -f $ac_dir/${ac_tool_prefix}file; then
15446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15447 if test -n "$file_magic_test_file"; then
15448 case $deplibs_check_method in
15449 "file_magic "*)
15450 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15453 egrep "$file_magic_regex" > /dev/null; then
15454 :
15455 else
15456 cat <<EOF 1>&2
15457
15458*** Warning: the command libtool uses to detect shared libraries,
15459*** $file_magic_cmd, produces output that libtool cannot recognize.
15460*** The result is that libtool may fail to recognize shared libraries
15461*** as such. This will affect the creation of libtool libraries that
15462*** depend on shared libraries, but programs linked with such libtool
15463*** libraries will work regardless of this problem. Nevertheless, you
15464*** may want to report the problem to your system manager and/or to
15465*** bug-libtool@gnu.org
15466
15467EOF
15468 fi ;;
15469 esac
15470 fi
15471 break
15472 fi
15473 done
15474 IFS="$lt_save_ifs"
15475 MAGIC_CMD="$lt_save_MAGIC_CMD"
15476 ;;
15477esac
15478fi
15479
15480MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15481if test -n "$MAGIC_CMD"; then
15482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15483echo "${ECHO_T}$MAGIC_CMD" >&6
15484else
15485 echo "$as_me:$LINENO: result: no" >&5
15486echo "${ECHO_T}no" >&6
15487fi
15488
15489if test -z "$lt_cv_path_MAGIC_CMD"; then
15490 if test -n "$ac_tool_prefix"; then
15491 echo "$as_me:$LINENO: checking for file" >&5
15492echo $ECHO_N "checking for file... $ECHO_C" >&6
15493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495else
15496 case $MAGIC_CMD in
15497[\\/*] | ?:[\\/]*)
15498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15499 ;;
15500*)
15501 lt_save_MAGIC_CMD="$MAGIC_CMD"
15502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15504 for ac_dir in $ac_dummy; do
15505 IFS="$lt_save_ifs"
15506 test -z "$ac_dir" && ac_dir=.
15507 if test -f $ac_dir/file; then
15508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15509 if test -n "$file_magic_test_file"; then
15510 case $deplibs_check_method in
15511 "file_magic "*)
15512 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15515 egrep "$file_magic_regex" > /dev/null; then
15516 :
15517 else
15518 cat <<EOF 1>&2
15519
15520*** Warning: the command libtool uses to detect shared libraries,
15521*** $file_magic_cmd, produces output that libtool cannot recognize.
15522*** The result is that libtool may fail to recognize shared libraries
15523*** as such. This will affect the creation of libtool libraries that
15524*** depend on shared libraries, but programs linked with such libtool
15525*** libraries will work regardless of this problem. Nevertheless, you
15526*** may want to report the problem to your system manager and/or to
15527*** bug-libtool@gnu.org
15528
15529EOF
15530 fi ;;
15531 esac
15532 fi
15533 break
15534 fi
15535 done
15536 IFS="$lt_save_ifs"
15537 MAGIC_CMD="$lt_save_MAGIC_CMD"
15538 ;;
15539esac
15540fi
15541
15542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15543if test -n "$MAGIC_CMD"; then
15544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15545echo "${ECHO_T}$MAGIC_CMD" >&6
15546else
15547 echo "$as_me:$LINENO: result: no" >&5
15548echo "${ECHO_T}no" >&6
15549fi
15550
15551 else
15552 MAGIC_CMD=:
15553 fi
15554fi
15555
15556 fi
15557 ;;
15558esac
15559
15560enable_dlopen=no
15561enable_win32_dll=no
15562
15563# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15564if test "${enable_libtool_lock+set}" = set; then
15565 enableval="$enable_libtool_lock"
15566
15567fi;
15568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15569
15570
15571# Check whether --with-pic or --without-pic was given.
15572if test "${with_pic+set}" = set; then
15573 withval="$with_pic"
15574 pic_mode="$withval"
15575else
15576 pic_mode=default
15577fi;
15578test -z "$pic_mode" && pic_mode=default
15579
15580# Use C for the default configuration in the libtool script
15581tagname=
15582lt_save_CC="$CC"
15583ac_ext=c
15584ac_cpp='$CPP $CPPFLAGS'
15585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587ac_compiler_gnu=$ac_cv_c_compiler_gnu
15588
15589
15590# Source file extension for C test sources.
15591ac_ext=c
15592
15593# Object file extension for compiled C test sources.
15594objext=o
15595objext=$objext
15596
15597# Code to be used in simple compile tests
15598lt_simple_compile_test_code="int some_variable = 0;"
15599
15600# Code to be used in simple link tests
15601lt_simple_link_test_code='main(){return(0);}'
15602
15603
15604# If no C compiler was specified, use CC.
15605LTCC=${LTCC-"$CC"}
15606
15607# Allow CC to be a program name with arguments.
15608set dummy $CC
15609compiler="$2"
15610
15611
15612#
15613# Check for any special shared library compilation flags.
15614#
15615lt_prog_cc_shlib=
15616if test "$GCC" = no; then
15617 case $host_os in
15618 sco3.2v5*)
15619 lt_prog_cc_shlib='-belf'
15620 ;;
15621 esac
15622fi
15623if test -n "$lt_prog_cc_shlib"; then
15624 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
15625echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
15626 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
15627 else
15628 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
15629echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
15630 lt_cv_prog_cc_can_build_shared=no
15631 fi
15632fi
15633
15634
15635#
15636# Check to make sure the static flag actually works.
15637#
15638echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
15639echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
15640if test "${lt_prog_compiler_static_works+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15642else
15643 lt_prog_compiler_static_works=no
15644 save_LDFLAGS="$LDFLAGS"
15645 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
15646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15648 # The compiler can only warn and ignore the option if not recognized
15649 # So say no if there are warnings
15650 if test -s conftest.err; then
15651 # Append any errors to the config.log.
15652 cat conftest.err 1>&5
15653 else
15654 lt_prog_compiler_static_works=yes
15655 fi
15656 fi
15657 $rm conftest*
15658 LDFLAGS="$save_LDFLAGS"
15659
15660fi
15661echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15662echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15663
15664if test x"$lt_prog_compiler_static_works" = xyes; then
15665 :
15666else
15667 lt_prog_compiler_static=
15668fi
15669
15670
15671
15672
15673lt_prog_compiler_no_builtin_flag=
15674
15675if test "$GCC" = yes; then
15676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15677
15678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15679echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682else
15683 lt_cv_prog_compiler_rtti_exceptions=no
15684 ac_outfile=conftest.$ac_objext
15685 save_CFLAGS="$CFLAGS"
15686 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
15687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15688 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15689 # The compiler can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test -s conftest.err; then
15692 # Append any errors to the config.log.
15693 cat conftest.err 1>&5
15694 else
15695 lt_cv_prog_compiler_rtti_exceptions=yes
15696 fi
15697 fi
15698 $rm conftest*
15699 CFLAGS="$save_CFLAGS"
15700
15701fi
15702echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15703echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15704
15705if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15707else
15708 :
15709fi
15710
15711fi
15712
15713lt_prog_compiler_wl=
15714lt_prog_compiler_pic=
15715lt_prog_compiler_static=
15716
15717echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15718echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15719
15720 if test "$GCC" = yes; then
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_static='-static'
15723
15724 case $host_os in
15725 aix*)
15726 # All AIX code is PIC.
15727 if test "$host_cpu" = ia64; then
15728 # AIX 5 now supports IA64 processor
15729 lt_prog_compiler_static='-Bstatic'
15730 fi
15731 ;;
15732
15733 amigaos*)
15734 # FIXME: we need at least 68020 code to build shared libraries, but
15735 # adding the `-m68020' flag to GCC prevents building anything better,
15736 # like `-m68040'.
15737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15738 ;;
15739
15740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15741 # PIC is the default for these OSes.
15742 ;;
15743
15744 cygwin* | mingw* | pw32* | os2*)
15745 # This hack is so that the source file can tell whether it is being
15746 # built for inclusion in a dll (and should export symbols for example).
15747 lt_prog_compiler_pic='-DDLL_EXPORT'
15748 ;;
15749
15750 darwin* | rhapsody*)
15751 # PIC is the default on this platform
15752 # Common symbols not allowed in MH_DYLIB files
15753 lt_prog_compiler_pic='-fno-common'
15754 ;;
15755
15756 msdosdjgpp*)
15757 # Just because we use GCC doesn't mean we suddenly get shared libraries
15758 # on systems that don't support them.
15759 lt_prog_compiler_can_build_shared=no
15760 enable_shared=no
15761 ;;
15762
15763 sysv4*MP*)
15764 if test -d /usr/nec; then
15765 lt_prog_compiler_pic=-Kconform_pic
15766 fi
15767 ;;
15768
15769 hpux*)
15770 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
15771 if test "$host_cpu" != ia64; then
15772 lt_prog_compiler_pic='-fPIC'
15773 fi
15774 ;;
15775
15776 *)
15777 lt_prog_compiler_pic='-fPIC'
15778 ;;
15779 esac
15780 else
15781 # PORTME Check for flag to pass linker flags through the system compiler.
15782 case $host_os in
15783 aix*)
15784 lt_prog_compiler_wl='-Wl,'
15785 if test "$host_cpu" = ia64; then
15786 # AIX 5 now supports IA64 processor
15787 lt_prog_compiler_static='-Bstatic'
15788 else
15789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15790 fi
15791 ;;
15792
15793 cygwin* | mingw* | pw32* | os2*)
15794 # This hack is so that the source file can tell whether it is being
15795 # built for inclusion in a dll (and should export symbols for example).
15796 lt_prog_compiler_pic='-DDLL_EXPORT'
15797 ;;
15798
15799 hpux9* | hpux10* | hpux11*)
15800 lt_prog_compiler_wl='-Wl,'
15801 if test "$host_cpu" != ia64; then
15802 lt_prog_compiler_pic='+Z'
15803 fi
15804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15805 lt_prog_compiler_static='${wl}-a ${wl}archive'
15806 ;;
15807
15808 irix5* | irix6* | nonstopux*)
15809 lt_prog_compiler_wl='-Wl,'
15810 # PIC (with -KPIC) is the default.
15811 lt_prog_compiler_static='-non_shared'
15812 ;;
15813
15814 newsos6)
15815 lt_prog_compiler_pic='-KPIC'
15816 lt_prog_compiler_static='-Bstatic'
15817 ;;
15818
15819 osf3* | osf4* | osf5*)
15820 lt_prog_compiler_wl='-Wl,'
15821 # All OSF/1 code is PIC.
15822 lt_prog_compiler_static='-non_shared'
15823 ;;
15824
15825 sco3.2v5*)
15826 lt_prog_compiler_pic='-Kpic'
15827 lt_prog_compiler_static='-dn'
15828 ;;
15829
15830 solaris*)
15831 lt_prog_compiler_wl='-Wl,'
15832 lt_prog_compiler_pic='-KPIC'
15833 lt_prog_compiler_static='-Bstatic'
15834 ;;
15835
15836 sunos4*)
15837 lt_prog_compiler_wl='-Qoption ld '
15838 lt_prog_compiler_pic='-PIC'
15839 lt_prog_compiler_static='-Bstatic'
15840 ;;
15841
15842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15843 if test "x$host_vendor" = xsni; then
15844 lt_prog_compiler_wl='-LD'
15845 else
15846 lt_prog_compiler_wl='-Wl,'
15847 fi
15848 lt_prog_compiler_pic='-KPIC'
15849 lt_prog_compiler_static='-Bstatic'
15850 ;;
15851
15852 sysv4*MP*)
15853 if test -d /usr/nec ;then
15854 lt_prog_compiler_pic='-Kconform_pic'
15855 lt_prog_compiler_static='-Bstatic'
15856 fi
15857 ;;
15858
15859 uts4*)
15860 lt_prog_compiler_pic='-pic'
15861 lt_prog_compiler_static='-Bstatic'
15862 ;;
15863
15864 *)
15865 lt_prog_compiler_can_build_shared=no
15866 ;;
15867 esac
15868 fi
15869
15870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15871echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15872
15873#
15874# Check to make sure the PIC flag actually works.
15875#
15876if test -n "$lt_prog_compiler_pic"; then
15877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15879if test "${lt_prog_compiler_pic_works+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881else
15882 lt_prog_compiler_pic_works=no
15883 ac_outfile=conftest.$ac_objext
15884 save_CFLAGS="$CFLAGS"
15885 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
15886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15888 # The compiler can only warn and ignore the option if not recognized
15889 # So say no if there are warnings
15890 if test -s conftest.err; then
15891 # Append any errors to the config.log.
15892 cat conftest.err 1>&5
15893 else
15894 lt_prog_compiler_pic_works=yes
15895 fi
15896 fi
15897 $rm conftest*
15898 CFLAGS="$save_CFLAGS"
15899
15900fi
15901echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15902echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
15903
15904if test x"$lt_prog_compiler_pic_works" = xyes; then
15905 case $lt_prog_compiler_pic in
15906 "" | " "*) ;;
15907 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15908 esac
15909else
15910 lt_prog_compiler_pic=
15911 lt_prog_compiler_can_build_shared=no
15912fi
15913
15914fi
15915case "$host_os" in
15916 # For platforms which do not support PIC, -DPIC is meaningless:
15917 *djgpp*)
15918 lt_prog_compiler_pic=
15919 ;;
15920 *)
15921 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15922 ;;
15923esac
15924
15925echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15926echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15927if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930 lt_cv_prog_compiler_c_o=no
15931 $rm -r conftest 2>/dev/null
15932 mkdir conftest
15933 cd conftest
15934 mkdir out
15935 save_CFLAGS="$CFLAGS"
15936 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
15937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15938
15939 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15940 # that will create temporary files in the current directory regardless of
15941 # the output directory. Thus, making CWD read-only will cause this test
15942 # to fail, enabling locking or at least warning the user not to do parallel
15943 # builds.
15944 chmod -w .
15945
15946 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
15947 then
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 if test -s out/conftest.err; then
15951 # Append any errors to the config.log.
15952 cat out/conftest.err 1>&5
15953 else
15954 lt_cv_prog_compiler_c_o=yes
15955 fi
15956 fi
15957 CFLAGS="$save_CFLAGS"
15958 chmod u+w .
15959 $rm conftest* out/*
15960 rmdir out
15961 cd ..
15962 rmdir conftest
15963 $rm conftest*
15964
15965fi
15966echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15967echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15968
15969
15970hard_links="nottested"
15971if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15972 # do not overwrite the value of need_locks provided by the user
15973 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15974echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15975 hard_links=yes
15976 $rm conftest*
15977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15978 touch conftest.a
15979 ln conftest.a conftest.b 2>&5 || hard_links=no
15980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 echo "$as_me:$LINENO: result: $hard_links" >&5
15982echo "${ECHO_T}$hard_links" >&6
15983 if test "$hard_links" = no; then
15984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15985echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15986 need_locks=warn
15987 fi
15988else
15989 need_locks=no
15990fi
15991
15992echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15993echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15994
15995 runpath_var=
15996 allow_undefined_flag=
15997
15998 archive_cmds=
15999 archive_cmds_need_lc=
16000 archive_expsym_cmds=
16001 old_archive_From_new_cmds=
16002 old_archive_from_expsyms_cmds=
16003 export_dynamic_flag_spec=
16004 whole_archive_flag_spec=
16005 thread_safe_flag_spec=
16006 hardcode_libdir_flag_spec=
16007 hardcode_libdir_separator=
16008 hardcode_direct=no
16009 hardcode_minus_L=no
16010 hardcode_shlibpath_var=unsupported
16011 link_all_deplibs=unknown
16012 always_export_symbols=no
16013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
16014 # include_expsyms should be a list of space-separated symbols to be *always*
16015 # included in the symbol list
16016 include_expsyms=
16017 # exclude_expsyms can be an egrep regular expression of symbols to exclude
16018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16020 # as well as any symbol that contains `d'.
16021 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16023 # platforms (ab)use it in PIC code, but their linkers get confused if
16024 # the symbol is explicitly referenced. Since portable code cannot
16025 # rely on this symbol name, it's probably fine to never include it in
16026 # preloaded symbol tables.
16027 extract_expsyms_cmds=
16028
16029 case $host_os in
16030 cygwin* | mingw* | pw32*)
16031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16032 # When not using gcc, we currently assume that we are using
16033 # Microsoft Visual C++.
16034 if test "$GCC" != yes; then
16035 with_gnu_ld=no
16036 fi
16037 ;;
16038 openbsd*)
16039 with_gnu_ld=no
16040 ;;
16041 esac
16042
16043 ld_shlibs=yes
16044 if test "$with_gnu_ld" = yes; then
16045 # If archive_cmds runs LD, not CC, wlarc should be empty
16046 wlarc='${wl}'
16047
16048 # See if GNU ld supports shared libraries.
16049 case $host_os in
16050 aix3* | aix4* | aix5*)
16051 # On AIX/PPC, the GNU linker is very broken
16052 if test "$host_cpu" != ia64; then
16053 ld_shlibs=no
16054 cat <<EOF 1>&2
16055
16056*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16057*** to be unable to reliably create shared libraries on AIX.
16058*** Therefore, libtool is disabling shared libraries support. If you
16059*** really care for shared libraries, you may want to modify your PATH
16060*** so that a non-GNU linker is found, and then restart.
16061
16062EOF
16063 fi
16064 ;;
16065
16066 amigaos*)
16067 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)'
16068 hardcode_libdir_flag_spec='-L$libdir'
16069 hardcode_minus_L=yes
16070
16071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16072 # that the semantics of dynamic libraries on AmigaOS, at least up
16073 # to version 4, is to share data among multiple programs linked
16074 # with the same dynamic library. Since this doesn't match the
16075 # behavior of shared libraries on other platforms, we can't use
16076 # them.
16077 ld_shlibs=no
16078 ;;
16079
16080 beos*)
16081 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16082 allow_undefined_flag=unsupported
16083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16084 # support --undefined. This deserves some investigation. FIXME
16085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16086 else
16087 ld_shlibs=no
16088 fi
16089 ;;
16090
16091 cygwin* | mingw* | pw32*)
16092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
16093 # no search path for DLLs.
16094 hardcode_libdir_flag_spec='-L$libdir'
16095 allow_undefined_flag=unsupported
16096 always_export_symbols=yes
16097
16098 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
16099 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
16100 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
16101 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
16102 else $CC -o impgen impgen.c ; fi)~
16103 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
16104
16105 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
16106
16107 # cygwin and mingw dlls have different entry points and sets of symbols
16108 # to exclude.
16109 # FIXME: what about values for MSVC?
16110 dll_entry=__cygwin_dll_entry@12
16111 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
16112 case $host_os in
16113 mingw*)
16114 # mingw values
16115 dll_entry=_DllMainCRTStartup@12
16116 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
16117 ;;
16118 esac
16119
16120 # mingw and cygwin differ, and it's simplest to just exclude the union
16121 # of the two symbol sets.
16122 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
16123
16124 # recent cygwin and mingw systems supply a stub DllMain which the user
16125 # can override, but on older systems we have to supply one (in ltdll.c)
16126 if test "x$lt_cv_need_dllmain" = "xyes"; then
16127 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
16128 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~
16129 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
16130 else
16131 ltdll_obj=
16132 ltdll_cmds=
16133 fi
16134
16135 # Extract the symbol export list from an `--export-all' def file,
16136 # then regenerate the def file from the symbol export list, so that
16137 # the compiled dll only exports the symbol export list.
16138 # Be careful not to strip the DATA tag left by newer dlltools.
16139 export_symbols_cmds="$ltdll_cmds"'
16140 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
16141 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
16142
16143 # If the export-symbols file already is a .def file (1st line
16144 # is EXPORTS), use it as is.
16145 # If DATA tags from a recent dlltool are present, honour them!
16146 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
16147 cp $export_symbols $output_objdir/$soname-def;
16148 else
16149 echo EXPORTS > $output_objdir/$soname-def;
16150 _lt_hint=1;
16151 cat $export_symbols | while read symbol; do
16152 set dummy \$symbol;
16153 case \$# in
16154 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
16155 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
16156 esac;
16157 _lt_hint=`expr 1 + \$_lt_hint`;
16158 done;
16159 fi~
16160 '"$ltdll_cmds"'
16161 $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~
16162 $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~
16163 $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~
16164 $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~
16165 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
16166 ;;
16167
16168 netbsd*)
16169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16171 wlarc=
16172 else
16173 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16175 fi
16176 ;;
16177
16178 solaris* | sysv5*)
16179 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
16180 ld_shlibs=no
16181 cat <<EOF 1>&2
16182
16183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16184*** create shared libraries on Solaris systems. Therefore, libtool
16185*** is disabling shared libraries support. We urge you to upgrade GNU
16186*** binutils to release 2.9.1 or newer. Another option is to modify
16187*** your PATH or compiler configuration so that the native linker is
16188*** used, and then restart.
16189
16190EOF
16191 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16194 else
16195 ld_shlibs=no
16196 fi
16197 ;;
16198
16199 sunos4*)
16200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16201 wlarc=
16202 hardcode_direct=yes
16203 hardcode_shlibpath_var=no
16204 ;;
16205
16206 *)
16207 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16210 else
16211 ld_shlibs=no
16212 fi
16213 ;;
16214 esac
16215
16216 if test "$ld_shlibs" = yes; then
16217 runpath_var=LD_RUN_PATH
16218 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
16219 export_dynamic_flag_spec='${wl}--export-dynamic'
16220 case $host_os in
16221 cygwin* | mingw* | pw32*)
16222 # dlltool doesn't understand --whole-archive et. al.
16223 whole_archive_flag_spec=
16224 ;;
16225 *)
16226 # ancient GNU ld didn't support --whole-archive et. al.
16227 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
16228 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16229 else
16230 whole_archive_flag_spec=
16231 fi
16232 ;;
16233 esac
16234 fi
16235 else
16236 # PORTME fill in a description of your system's linker (not GNU ld)
16237 case $host_os in
16238 aix3*)
16239 allow_undefined_flag=unsupported
16240 always_export_symbols=yes
16241 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'
16242 # Note: this linker hardcodes the directories in LIBPATH if there
16243 # are no directories specified by -L.
16244 hardcode_minus_L=yes
16245 if test "$GCC" = yes && test -z "$link_static_flag"; then
16246 # Neither direct hardcoding nor static linking is supported with a
16247 # broken collect2.
16248 hardcode_direct=unsupported
16249 fi
16250 ;;
16251
16252 aix4* | aix5*)
16253 if test "$host_cpu" = ia64; then
16254 # On IA64, the linker does run time linking by default, so we don't
16255 # have to do anything special.
16256 aix_use_runtimelinking=no
16257 exp_sym_flag='-Bexport'
16258 no_entry_flag=""
16259 else
16260 # If we're using GNU nm, then we don't want the "-C" option.
16261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16262 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
16263 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16264 else
16265 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16266 fi
16267
16268 # KDE requires run time linking. Make it the default.
16269 aix_use_runtimelinking=yes
16270 exp_sym_flag='-bexport'
16271 no_entry_flag='-bnoentry'
16272 fi
16273
16274 # When large executables or shared objects are built, AIX ld can
16275 # have problems creating the table of contents. If linking a library
16276 # or program results in "error TOC overflow" add -mminimal-toc to
16277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16279
16280 archive_cmds=''
16281 hardcode_direct=yes
16282 hardcode_libdir_separator=':'
16283 link_all_deplibs=yes
16284
16285 if test "$GCC" = yes; then
16286 case $host_os in aix4.012|aix4.012.*)
16287 # We only want to do this on AIX 4.2 and lower, the check
16288 # below for broken collect2 doesn't work under 4.3+
16289 collect2name=`${CC} -print-prog-name=collect2`
16290 if test -f "$collect2name" && \
16291 strings "$collect2name" | grep resolve_lib_name >/dev/null
16292 then
16293 # We have reworked collect2
16294 hardcode_direct=yes
16295 else
16296 # We have old collect2
16297 hardcode_direct=unsupported
16298 # It fails to find uninstalled libraries when the uninstalled
16299 # path is not listed in the libpath. Setting hardcode_minus_L
16300 # to unsupported forces relinking
16301 hardcode_minus_L=yes
16302 hardcode_libdir_flag_spec='-L$libdir'
16303 hardcode_libdir_separator=
16304 fi
16305 esac
16306 shared_flag='-shared'
16307 else
16308 # not using gcc
16309 if test "$host_cpu" = ia64; then
16310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16311 # chokes on -Wl,-G. The following line is correct:
16312 shared_flag='-G'
16313 else
16314 if test "$aix_use_runtimelinking" = yes; then
16315 shared_flag='-qmkshrobj ${wl}-G'
16316 else
16317 shared_flag='-qmkshrobj'
16318 fi
16319 fi
16320 fi
16321
16322 # Let the compiler handle the export list.
16323 always_export_symbols=no
16324 if test "$aix_use_runtimelinking" = yes; then
16325 # Warning - without using the other runtime loading flags (-brtl),
16326 # -berok will link without error, but may produce a broken library.
16327 allow_undefined_flag='-berok'
16328 # Determine the default libpath from the value encoded in an empty executable.
16329 cat >conftest.$ac_ext <<_ACEOF
16330#line $LINENO "configure"
16331#include "confdefs.h"
16332
16333#ifdef F77_DUMMY_MAIN
16334# ifdef __cplusplus
16335 extern "C"
16336# endif
16337 int F77_DUMMY_MAIN() { return 1; }
16338#endif
16339int
16340main ()
16341{
16342
16343 ;
16344 return 0;
16345}
16346_ACEOF
16347rm -f conftest.$ac_objext conftest$ac_exeext
16348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349 (eval $ac_link) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359
16360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16361}'`
16362# Check for a 64-bit object if we didn't find anything.
16363if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16364}'`; fi
16365else
16366 echo "$as_me: failed program was:" >&5
16367cat conftest.$ac_ext >&5
16368fi
16369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16371
16372 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16373 archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
16374 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16375 else
16376 if test "$host_cpu" = ia64; then
16377 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16378 allow_undefined_flag="-z nodefs"
16379 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16380 else
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16383#line $LINENO "configure"
16384#include "confdefs.h"
16385
16386#ifdef F77_DUMMY_MAIN
16387# ifdef __cplusplus
16388 extern "C"
16389# endif
16390 int F77_DUMMY_MAIN() { return 1; }
16391#endif
16392int
16393main ()
16394{
16395
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext conftest$ac_exeext
16401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412
16413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16414}'`
16415# Check for a 64-bit object if we didn't find anything.
16416if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16417}'`; fi
16418else
16419 echo "$as_me: failed program was:" >&5
16420cat conftest.$ac_ext >&5
16421fi
16422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16423if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16424
16425 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16426 # Warning - without using the other run time loading flags,
16427 # -berok will link without error, but may produce a broken library.
16428 no_undefined_flag=' ${wl}-bernotok'
16429 allow_undefined_flag=' ${wl}-berok'
16430 # -bexpall does not export symbols beginning with underscore (_)
16431 always_export_symbols=yes
16432 # Exported symbols can be pulled into shared objects from archives
16433 whole_archive_flag_spec=' '
16434 archive_cmds_need_lc=yes
16435 # This is similar to how AIX traditionally builds it's shared libraries.
16436 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16437 fi
16438 fi
16439 ;;
16440
16441 amigaos*)
16442 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)'
16443 hardcode_libdir_flag_spec='-L$libdir'
16444 hardcode_minus_L=yes
16445 # see comment about different semantics on the GNU ld section
16446 ld_shlibs=no
16447 ;;
16448
16449 bsdi4*)
16450 export_dynamic_flag_spec=-rdynamic
16451 ;;
16452
16453 cygwin* | mingw* | pw32*)
16454 # When not using gcc, we currently assume that we are using
16455 # Microsoft Visual C++.
16456 # hardcode_libdir_flag_spec is actually meaningless, as there is
16457 # no search path for DLLs.
16458 hardcode_libdir_flag_spec=' '
16459 allow_undefined_flag=unsupported
16460 # Tell ltmain to make .lib files, not .a files.
16461 libext=lib
16462 # FIXME: Setting linknames here is a bad hack.
16463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16464 # The linker will automatically build a .lib file if we build a DLL.
16465 old_archive_From_new_cmds='true'
16466 # FIXME: Should let the user specify the lib program.
16467 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16468 fix_srcfile_path='`cygpath -w "$srcfile"`'
16469 ;;
16470
16471 darwin* | rhapsody*)
16472 case "$host_os" in
16473 rhapsody* | darwin1.[012])
16474 allow_undefined_flag='-undefined suppress'
16475 ;;
16476 *) # Darwin 1.3 on
16477 allow_undefined_flag='-flat_namespace -undefined suppress'
16478 ;;
16479 esac
16480
16481 # FIXME: Relying on posixy $() will cause problems for
16482 # cross-compilation, but unfortunately the echo tests do not
16483 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16484 # `"' quotes if we put them in here... so don't!
16485 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
16486 # We need to add '_' to the symbols in $export_symbols first
16487 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
16488 hardcode_direct=yes
16489 hardcode_shlibpath_var=no
16490 whole_archive_flag_spec='-all_load $convenience'
16491 ;;
16492
16493 dgux*)
16494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_libdir_flag_spec='-L$libdir'
16496 hardcode_shlibpath_var=no
16497 ;;
16498
16499 freebsd1*)
16500 ld_shlibs=no
16501 ;;
16502
16503 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16504 # support. Future versions do this automatically, but an explicit c++rt0.o
16505 # does not break anything, and helps significantly (at the cost of a little
16506 # extra space).
16507 freebsd2.2*)
16508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16509 hardcode_libdir_flag_spec='-R$libdir'
16510 hardcode_direct=yes
16511 hardcode_shlibpath_var=no
16512 ;;
16513
16514 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16515 freebsd2*)
16516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct=yes
16518 hardcode_minus_L=yes
16519 hardcode_shlibpath_var=no
16520 ;;
16521
16522 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16523 freebsd*)
16524 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16525 hardcode_libdir_flag_spec='-R$libdir'
16526 hardcode_direct=yes
16527 hardcode_shlibpath_var=no
16528 ;;
16529
16530 hpux9* | hpux10* | hpux11*)
16531 if test "$GCC" = yes; then
16532 case $host_os in
16533 hpux9*)
16534 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16535 ;;
16536 *)
16537 if test "$host_cpu" = ia64; then
16538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 else
16540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16541 fi
16542 ;;
16543 esac
16544 else
16545 case $host_os in
16546 hpux9*)
16547 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'
16548 ;;
16549 *)
16550 if test "$host_cpu" = ia64; then
16551 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 else
16553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16554 fi
16555 ;;
16556 esac
16557 fi
16558 if test "$host_cpu" = ia64; then
16559 hardcode_libdir_flag_spec='-L$libdir'
16560 hardcode_direct=no
16561 hardcode_shlibpath_var=no
16562 else
16563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16564 hardcode_libdir_separator=:
16565 hardcode_direct=yes
16566 fi
16567 # hardcode_minus_L: Not really in the search PATH,
16568 # but as the default location of the library.
16569 hardcode_minus_L=yes
16570 export_dynamic_flag_spec='${wl}-E'
16571 ;;
16572
16573 irix5* | irix6* | nonstopux*)
16574 if test "$GCC" = yes; then
16575 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'
16576 else
16577 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'
16578 fi
16579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator=:
16581 link_all_deplibs=yes
16582 ;;
16583
16584 netbsd*)
16585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16587 else
16588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16589 fi
16590 hardcode_libdir_flag_spec='-R$libdir'
16591 hardcode_direct=yes
16592 hardcode_shlibpath_var=no
16593 ;;
16594
16595 newsos6)
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct=yes
16598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16599 hardcode_libdir_separator=:
16600 hardcode_shlibpath_var=no
16601 ;;
16602
16603 openbsd*)
16604 hardcode_direct=yes
16605 hardcode_shlibpath_var=no
16606
16607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16610 export_dynamic_flag_spec='${wl}-E'
16611 else
16612 case $host_os in
16613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_libdir_flag_spec='-R$libdir'
16616 ;;
16617 *)
16618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16620 ;;
16621 esac
16622 fi
16623 ;;
16624
16625 os2*)
16626 hardcode_libdir_flag_spec='-L$libdir'
16627 hardcode_minus_L=yes
16628 allow_undefined_flag=unsupported
16629 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'
16630 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16631 ;;
16632
16633 osf3*)
16634 if test "$GCC" = yes; then
16635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16636 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'
16637 else
16638 allow_undefined_flag=' -expect_unresolved \*'
16639 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'
16640 fi
16641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16642 hardcode_libdir_separator=:
16643 ;;
16644
16645 osf4* | osf5*) # as osf3* with the addition of -msym flag
16646 if test "$GCC" = yes; then
16647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16650 else
16651 allow_undefined_flag=' -expect_unresolved \*'
16652 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16654 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16655
16656 # Both c and cxx compiler support -rpath directly
16657 hardcode_libdir_flag_spec='-rpath $libdir'
16658 fi
16659 hardcode_libdir_separator=:
16660 ;;
16661
16662 sco3.2v5*)
16663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_shlibpath_var=no
16665 export_dynamic_flag_spec='${wl}-Bexport'
16666 runpath_var=LD_RUN_PATH
16667 hardcode_runpath_var=yes
16668 ;;
16669
16670 solaris*)
16671 no_undefined_flag=' -z text'
16672 if test "$GCC" = yes; then
16673 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16676 else
16677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16680 fi
16681 hardcode_libdir_flag_spec='-R$libdir'
16682 hardcode_shlibpath_var=no
16683 case $host_os in
16684 solaris2.[0-5] | solaris2.[0-5].*) ;;
16685 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16686 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16687 esac
16688 link_all_deplibs=yes
16689 ;;
16690
16691 sunos4*)
16692 if test "x$host_vendor" = xsequent; then
16693 # Use $CC to link under sequent, because it throws in some extra .o
16694 # files that make .init and .fini sections work.
16695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16696 else
16697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16698 fi
16699 hardcode_libdir_flag_spec='-L$libdir'
16700 hardcode_direct=yes
16701 hardcode_minus_L=yes
16702 hardcode_shlibpath_var=no
16703 ;;
16704
16705 sysv4)
16706 if test "x$host_vendor" = xsni; then
16707 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
16708 hardcode_direct=yes # is this really true???
16709 else
16710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16712 fi
16713 runpath_var='LD_RUN_PATH'
16714 hardcode_shlibpath_var=no
16715 ;;
16716
16717 sysv4.3*)
16718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_shlibpath_var=no
16720 export_dynamic_flag_spec='-Bexport'
16721 ;;
16722
16723 sysv4*MP*)
16724 if test -d /usr/nec; then
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var=no
16727 runpath_var=LD_RUN_PATH
16728 hardcode_runpath_var=yes
16729 ld_shlibs=yes
16730 fi
16731 ;;
16732
16733 sysv4.2uw2*)
16734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct=yes
16736 hardcode_minus_L=no
16737 hardcode_shlibpath_var=no
16738 hardcode_runpath_var=yes
16739 runpath_var=LD_RUN_PATH
16740 ;;
16741
16742 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16743 no_undefined_flag='${wl}-z ${wl}text'
16744 if test "$GCC" = yes; then
16745 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 else
16747 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 fi
16749 runpath_var='LD_RUN_PATH'
16750 hardcode_shlibpath_var=no
16751 ;;
16752
16753 sysv5*)
16754 no_undefined_flag=' -z text'
16755 # $CC -shared without GNU ld will not create a library from C++
16756 # object files and a static libstdc++, better avoid it by now
16757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16760 hardcode_libdir_flag_spec=
16761 hardcode_shlibpath_var=no
16762 runpath_var='LD_RUN_PATH'
16763 ;;
16764
16765 uts4*)
16766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_libdir_flag_spec='-L$libdir'
16768 hardcode_shlibpath_var=no
16769 ;;
16770
16771 *)
16772 ld_shlibs=no
16773 ;;
16774 esac
16775 fi
16776
16777echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16778echo "${ECHO_T}$ld_shlibs" >&6
16779test "$ld_shlibs" = no && can_build_shared=no
16780
16781variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782if test "$GCC" = yes; then
16783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16784fi
16785
16786#
16787# Do we need to explicitly link libc?
16788#
16789archive_cmds_need_lc=yes
16790if test "$enable_shared" = yes && test "$GCC" = yes; then
16791 case $archive_cmds in
16792 *'~'*)
16793 # FIXME: we may have to deal with multi-command sequences.
16794 ;;
16795 '$CC '*)
16796 # Test whether the compiler implicitly links with -lc since on some
16797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16798 # to ld, don't add -lc before -lgcc.
16799 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16800echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16801 $rm conftest*
16802 echo 'static int dummy;' > conftest.$ac_ext
16803
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } 2>conftest.err; then
16809 soname=conftest
16810 lib=conftest
16811 libobjs=conftest.$ac_objext
16812 deplibs=
16813 wl=$lt_prog_compiler_wl
16814 compiler_flags=-v
16815 linker_flags=-v
16816 verstring=
16817 output_objdir=.
16818 libname=conftest
16819 lt_save_allow_undefined_flag=$allow_undefined_flag
16820 allow_undefined_flag=
16821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16822 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }
16826 then
16827 archive_cmds_need_lc=no
16828 else
16829 archive_cmds_need_lc=yes
16830 fi
16831 allow_undefined_flag=$lt_save_allow_undefined_flag
16832 else
16833 cat conftest.err 1>&5
16834 fi
16835 $rm conftest*
16836 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16837echo "${ECHO_T}$archive_cmds_need_lc" >&6
16838 ;;
16839 esac
16840fi
16841
16842echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16843echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16844hardcode_action=
16845if test -n "$hardcode_libdir_flag_spec" || \
16846 test -n "$runpath_var "; then
16847
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no &&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action=relink
16857 else
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action=immediate
16860 fi
16861else
16862 # We cannot hardcode anything, or else we can only hardcode existing
16863 # directories.
16864 hardcode_action=unsupported
16865fi
16866echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867echo "${ECHO_T}$hardcode_action" >&6
16868
16869if test "$hardcode_action" = relink; then
16870 # Fast installation is not supported
16871 enable_fast_install=no
16872elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no; then
16874 # Fast installation is not necessary
16875 enable_fast_install=needless
16876fi
16877
16878striplib=
16879old_striplib=
16880echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16885 echo "$as_me:$LINENO: result: yes" >&5
16886echo "${ECHO_T}yes" >&6
16887else
16888 echo "$as_me:$LINENO: result: no" >&5
16889echo "${ECHO_T}no" >&6
16890fi
16891
16892echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16893echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16894library_names_spec=
16895libname_spec='lib$name'
16896soname_spec=
16897postinstall_cmds=
16898postuninstall_cmds=
16899finish_cmds=
16900finish_eval=
16901shlibpath_var=
16902shlibpath_overrides_runpath=unknown
16903version_type=none
16904dynamic_linker="$host_os ld.so"
16905sys_lib_dlsearch_path_spec="/lib /usr/lib"
16906sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16907need_lib_prefix=unknown
16908hardcode_into_libs=no
16909
16910# when you set need_version to no, make sure it does not cause -set_version
16911# flags to be left without arguments
16912need_version=unknown
16913
16914case $host_os in
16915aix3*)
16916 version_type=linux
16917 library_names_spec='${libname}${release}.so$versuffix $libname.a'
16918 shlibpath_var=LIBPATH
16919
16920 # AIX 3 has no versioning support, so we append a major version to the name.
16921 soname_spec='${libname}${release}.so$major'
16922 ;;
16923
16924aix4* | aix5*)
16925 version_type=linux
16926 if test "$host_cpu" = ia64; then
16927 # AIX 5 supports IA64
16928 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 else
16931 # With GCC up to 2.95.x, collect2 would create an import file
16932 # for dependence libraries. The import file would start with
16933 # the line `#! .'. This would cause the generated library to
16934 # depend on `.', always an invalid library. This was fixed in
16935 # development snapshots of GCC prior to 3.0.
16936 case $host_os in
16937 aix4 | aix4.[01] | aix4.[01].*)
16938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16939 echo ' yes '
16940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16941 :
16942 else
16943 can_build_shared=no
16944 fi
16945 ;;
16946 esac
16947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16948 # soname into executable. Probably we can add versioning support to
16949 # collect2, so additional links can be useful in future.
16950 if test "$aix_use_runtimelinking" = yes; then
16951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16952 # instead of lib<name>.a to let people know that these are not
16953 # typical AIX shared libraries.
16954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16955 else
16956 # We preserve .a as extension for shared libraries through AIX4.2
16957 # and later when we are not doing run time linking.
16958 library_names_spec='${libname}${release}.a $libname.a'
16959 soname_spec='${libname}${release}.so$major'
16960 fi
16961 shlibpath_var=LIBPATH
16962 fi
16963 ;;
16964
16965amigaos*)
16966 library_names_spec='$libname.ixlibrary $libname.a'
16967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16968 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
16969 ;;
16970
16971beos*)
16972 library_names_spec='${libname}.so'
16973 dynamic_linker="$host_os ld.so"
16974 shlibpath_var=LIBRARY_PATH
16975 ;;
16976
16977bsdi4*)
16978 version_type=linux
16979 need_version=no
16980 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16981 soname_spec='${libname}${release}.so$major'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16986 # the default ld.so.conf also contains /usr/contrib/lib and
16987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16988 # libtool to hard-code these into programs
16989 ;;
16990
16991cygwin* | mingw* | pw32*)
16992 version_type=windows
16993 need_version=no
16994 need_lib_prefix=no
16995 case $GCC,$host_os in
16996 yes,cygwin*)
16997 library_names_spec='$libname.dll.a'
16998 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17000 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
17001 dldir=$destdir/`dirname \$dlpath`~
17002 test -d \$dldir || mkdir -p \$dldir~
17003 $install_prog .libs/$dlname \$dldir/$dlname'
17004 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005 dlpath=$dir/\$dldll~
17006 $rm \$dlpath'
17007 ;;
17008 yes,mingw*)
17009 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
17011 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
17012 # It is most probably a Windows format PATH printed by
17013 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17014 # path with ; separators, and with drive letters. We can handle the
17015 # drive letters (cygwin fileutils understands them), so leave them,
17016 # especially as we might pass files found there to a mingw objdump,
17017 # which wouldn't understand a cygwinified path. Ahh.
17018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
17019 else
17020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
17021 fi
17022 ;;
17023 yes,pw32*)
17024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
17025 ;;
17026 *)
17027 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
17028 ;;
17029 esac
17030 dynamic_linker='Win32 ld.exe'
17031 # FIXME: first we should search . and the directory the executable is in
17032 shlibpath_var=PATH
17033 ;;
17034
17035darwin* | rhapsody*)
17036 dynamic_linker="$host_os dyld"
17037 version_type=darwin
17038 need_lib_prefix=no
17039 need_version=no
17040 # FIXME: Relying on posixy $() will cause problems for
17041 # cross-compilation, but unfortunately the echo tests do not
17042 # yet detect zsh echo's removal of \ escapes.
17043 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
17044 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
17045 shlibpath_overrides_runpath=yes
17046 shlibpath_var=DYLD_LIBRARY_PATH
17047 ;;
17048
17049dgux*)
17050 version_type=linux
17051 need_lib_prefix=no
17052 need_version=no
17053 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17054 soname_spec='${libname}${release}.so$major'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 ;;
17057
17058freebsd1*)
17059 dynamic_linker=no
17060 ;;
17061
17062freebsd*)
17063 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17064 version_type=freebsd-$objformat
17065 case $version_type in
17066 freebsd-elf*)
17067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17068 need_version=no
17069 need_lib_prefix=no
17070 ;;
17071 freebsd-*)
17072 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
17073 need_version=yes
17074 ;;
17075 esac
17076 shlibpath_var=LD_LIBRARY_PATH
17077 case $host_os in
17078 freebsd2*)
17079 shlibpath_overrides_runpath=yes
17080 ;;
17081 freebsd3.01* | freebsdelf3.01*)
17082 shlibpath_overrides_runpath=yes
17083 hardcode_into_libs=yes
17084 ;;
17085 *) # from 3.2 on
17086 shlibpath_overrides_runpath=no
17087 hardcode_into_libs=yes
17088 ;;
17089 esac
17090 ;;
17091
17092gnu*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
17097 soname_spec='${libname}${release}.so$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 hardcode_into_libs=yes
17100 ;;
17101
17102hpux9* | hpux10* | hpux11*)
17103 # Give a soname corresponding to the major version so that dld.sl refuses to
17104 # link against other versions.
17105 version_type=sunos
17106 need_lib_prefix=no
17107 need_version=no
17108 if test "$host_cpu" = ia64; then
17109 hardcode_into_libs=yes
17110 dynamic_linker="$host_os dld.so"
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17113 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17114 soname_spec='${libname}${release}.so$major'
17115 if test "X$HPUX_IA64_MODE" = X32; then
17116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17117 else
17118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17119 fi
17120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17121 else
17122 dynamic_linker="$host_os dld.sl"
17123 shlibpath_var=SHLIB_PATH
17124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17125 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
17126 soname_spec='${libname}${release}.sl$major'
17127 fi
17128 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17129 postinstall_cmds='chmod 555 $lib'
17130 ;;
17131
17132irix5* | irix6* | nonstopux*)
17133 case $host_os in
17134 nonstopux*) version_type=nonstopux ;;
17135 *) version_type=irix ;;
17136 esac
17137 need_lib_prefix=no
17138 need_version=no
17139 soname_spec='${libname}${release}.so$major'
17140 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
17141 case $host_os in
17142 irix5* | nonstopux*)
17143 libsuff= shlibsuff=
17144 ;;
17145 *)
17146 case $LD in # libtool.m4 will add one of these switches to LD
17147 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
17148 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
17149 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
17150 *) libsuff= shlibsuff= libmagic=never-match;;
17151 esac
17152 ;;
17153 esac
17154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17155 shlibpath_overrides_runpath=no
17156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17158 ;;
17159
17160# No shared lib support for Linux oldld, aout, or coff.
17161linux*oldld* | linux*aout* | linux*coff*)
17162 dynamic_linker=no
17163 ;;
17164
17165# This must be Linux ELF.
17166linux*)
17167 version_type=linux
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17171 soname_spec='${libname}${release}.so$major'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17173 libsuff=
17174 if test "x$LINUX_64_MODE" = x64; then
17175 # Some platforms are per default 64-bit, so there's no /lib64
17176 if test -d /lib64; then
17177 libsuff=64
17178 fi
17179 fi
17180 shlibpath_var=LD_LIBRARY_PATH
17181 shlibpath_overrides_runpath=no
17182 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17183 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17184 # This implies no fast_install, which is unacceptable.
17185 # Some rework will be needed to allow for fast_install
17186 # before this can be enabled.
17187 hardcode_into_libs=yes
17188
17189 # We used to test for /lib/ld.so.1 and disable shared libraries on
17190 # powerpc, because MkLinux only supported shared libraries with the
17191 # GNU dynamic linker. Since this was broken with cross compilers,
17192 # most powerpc-linux boxes support dynamic linking these days and
17193 # people can always --disable-shared, the test was removed, and we
17194 # assume the GNU/Linux dynamic linker is in use.
17195 dynamic_linker='GNU/Linux ld.so'
17196 ;;
17197
17198netbsd*)
17199 version_type=sunos
17200 need_lib_prefix=no
17201 need_version=no
17202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17203 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17205 dynamic_linker='NetBSD (a.out) ld.so'
17206 else
17207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
17208 soname_spec='${libname}${release}.so$major'
17209 dynamic_linker='NetBSD ld.elf_so'
17210 fi
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 hardcode_into_libs=yes
17214 ;;
17215
17216newsos6)
17217 version_type=linux
17218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath=yes
17221 ;;
17222
17223nto-qnx)
17224 version_type=linux
17225 need_lib_prefix=no
17226 need_version=no
17227 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17228 soname_spec='${libname}${release}.so$major'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17231 ;;
17232
17233openbsd*)
17234 version_type=sunos
17235 need_lib_prefix=no
17236 need_version=no
17237 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17241 case $host_os in
17242 openbsd2.[89] | openbsd2.[89].*)
17243 shlibpath_overrides_runpath=no
17244 ;;
17245 *)
17246 shlibpath_overrides_runpath=yes
17247 ;;
17248 esac
17249 else
17250 shlibpath_overrides_runpath=yes
17251 fi
17252 ;;
17253
17254os2*)
17255 libname_spec='$name'
17256 need_lib_prefix=no
17257 library_names_spec='$libname.dll $libname.a'
17258 dynamic_linker='OS/2 ld.exe'
17259 shlibpath_var=LIBPATH
17260 ;;
17261
17262osf3* | osf4* | osf5*)
17263 version_type=osf
17264 need_lib_prefix=no
17265 need_version=no
17266 soname_spec='${libname}${release}.so'
17267 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17271 ;;
17272
17273sco3.2v5*)
17274 version_type=osf
17275 soname_spec='${libname}${release}.so$major'
17276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 ;;
17279
17280solaris*)
17281 version_type=linux
17282 need_lib_prefix=no
17283 need_version=no
17284 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17285 soname_spec='${libname}${release}.so$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17288 hardcode_into_libs=yes
17289 # ldd complains unless libraries are executable
17290 postinstall_cmds='chmod +x $lib'
17291 ;;
17292
17293sunos4*)
17294 version_type=sunos
17295 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17299 if test "$with_gnu_ld" = yes; then
17300 need_lib_prefix=no
17301 fi
17302 need_version=yes
17303 ;;
17304
17305sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17306 version_type=linux
17307 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17308 soname_spec='${libname}${release}.so$major'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 case $host_vendor in
17311 sni)
17312 shlibpath_overrides_runpath=no
17313 ;;
17314 motorola)
17315 need_lib_prefix=no
17316 need_version=no
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17319 ;;
17320 esac
17321 ;;
17322
17323sysv4*MP*)
17324 if test -d /usr/nec ;then
17325 version_type=linux
17326 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
17327 soname_spec='$libname.so.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17329 fi
17330 ;;
17331
17332uts4*)
17333 version_type=linux
17334 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17335 soname_spec='${libname}${release}.so$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 ;;
17338
17339*)
17340 dynamic_linker=no
17341 ;;
17342esac
17343echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344echo "${ECHO_T}$dynamic_linker" >&6
17345test "$dynamic_linker" = no && can_build_shared=no
17346
17347if test "x$enable_dlopen" != xyes; then
17348 enable_dlopen=unknown
17349 enable_dlopen_self=unknown
17350 enable_dlopen_self_static=unknown
17351else
17352 lt_cv_dlopen=no
17353 lt_cv_dlopen_libs=
17354
17355 case $host_os in
17356 beos*)
17357 lt_cv_dlopen="load_add_on"
17358 lt_cv_dlopen_libs=
17359 lt_cv_dlopen_self=yes
17360 ;;
17361
17362 cygwin* | mingw* | pw32*)
17363 lt_cv_dlopen="LoadLibrary"
17364 lt_cv_dlopen_libs=
17365 ;;
17366
17367 *)
17368 echo "$as_me:$LINENO: checking for shl_load" >&5
17369echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17370if test "${ac_cv_func_shl_load+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372else
17373 cat >conftest.$ac_ext <<_ACEOF
17374#line $LINENO "configure"
17375#include "confdefs.h"
17376/* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char shl_load (); below. */
17378#include <assert.h>
17379/* Override any gcc2 internal prototype to avoid an error. */
17380#ifdef __cplusplus
17381extern "C"
17382#endif
17383/* We use char because int might match the return type of a gcc2
17384 builtin and then its argument prototype would still apply. */
17385char shl_load ();
17386char (*f) ();
17387
17388#ifdef F77_DUMMY_MAIN
17389# ifdef __cplusplus
17390 extern "C"
17391# endif
17392 int F77_DUMMY_MAIN() { return 1; }
17393#endif
17394int
17395main ()
17396{
17397/* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400#if defined (__stub_shl_load) || defined (__stub___shl_load)
17401choke me
17402#else
17403f = shl_load;
17404#endif
17405
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext conftest$ac_exeext
17411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17412 (eval $ac_link) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_shl_load=yes
17423else
17424 echo "$as_me: failed program was:" >&5
17425cat conftest.$ac_ext >&5
17426ac_cv_func_shl_load=no
17427fi
17428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17429fi
17430echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17431echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17432if test $ac_cv_func_shl_load = yes; then
17433 lt_cv_dlopen="shl_load"
17434else
17435 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17436echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17437if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 ac_check_lib_save_LIBS=$LIBS
17441LIBS="-ldld $LIBS"
17442cat >conftest.$ac_ext <<_ACEOF
17443#line $LINENO "configure"
17444#include "confdefs.h"
17445
17446/* Override any gcc2 internal prototype to avoid an error. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450/* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452char shl_load ();
17453#ifdef F77_DUMMY_MAIN
17454# ifdef __cplusplus
17455 extern "C"
17456# endif
17457 int F77_DUMMY_MAIN() { return 1; }
17458#endif
17459int
17460main ()
17461{
17462shl_load ();
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext conftest$ac_exeext
17468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -s conftest$ac_exeext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17480else
17481 echo "$as_me: failed program was:" >&5
17482cat conftest.$ac_ext >&5
17483ac_cv_lib_dld_shl_load=no
17484fi
17485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17486LIBS=$ac_check_lib_save_LIBS
17487fi
17488echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17489echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17490if test $ac_cv_lib_dld_shl_load = yes; then
17491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17492else
17493 echo "$as_me:$LINENO: checking for dlopen" >&5
17494echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17495if test "${ac_cv_func_dlopen+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497else
17498 cat >conftest.$ac_ext <<_ACEOF
17499#line $LINENO "configure"
17500#include "confdefs.h"
17501/* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char dlopen (); below. */
17503#include <assert.h>
17504/* Override any gcc2 internal prototype to avoid an error. */
17505#ifdef __cplusplus
17506extern "C"
17507#endif
17508/* We use char because int might match the return type of a gcc2
17509 builtin and then its argument prototype would still apply. */
17510char dlopen ();
17511char (*f) ();
17512
17513#ifdef F77_DUMMY_MAIN
17514# ifdef __cplusplus
17515 extern "C"
17516# endif
17517 int F77_DUMMY_MAIN() { return 1; }
17518#endif
17519int
17520main ()
17521{
17522/* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525#if defined (__stub_dlopen) || defined (__stub___dlopen)
17526choke me
17527#else
17528f = dlopen;
17529#endif
17530
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535rm -f conftest.$ac_objext conftest$ac_exeext
17536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_func_dlopen=yes
17548else
17549 echo "$as_me: failed program was:" >&5
17550cat conftest.$ac_ext >&5
17551ac_cv_func_dlopen=no
17552fi
17553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17554fi
17555echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17556echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17557if test $ac_cv_func_dlopen = yes; then
17558 lt_cv_dlopen="dlopen"
17559else
17560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17562if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 ac_check_lib_save_LIBS=$LIBS
17566LIBS="-ldl $LIBS"
17567cat >conftest.$ac_ext <<_ACEOF
17568#line $LINENO "configure"
17569#include "confdefs.h"
17570
17571/* Override any gcc2 internal prototype to avoid an error. */
17572#ifdef __cplusplus
17573extern "C"
17574#endif
17575/* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17577char dlopen ();
17578#ifdef F77_DUMMY_MAIN
17579# ifdef __cplusplus
17580 extern "C"
17581# endif
17582 int F77_DUMMY_MAIN() { return 1; }
17583#endif
17584int
17585main ()
17586{
17587dlopen ();
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext conftest$ac_exeext
17593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_dl_dlopen=yes
17605else
17606 echo "$as_me: failed program was:" >&5
17607cat conftest.$ac_ext >&5
17608ac_cv_lib_dl_dlopen=no
17609fi
17610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17611LIBS=$ac_check_lib_save_LIBS
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17614echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17615if test $ac_cv_lib_dl_dlopen = yes; then
17616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17617else
17618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17619echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17620if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622else
17623 ac_check_lib_save_LIBS=$LIBS
17624LIBS="-lsvld $LIBS"
17625cat >conftest.$ac_ext <<_ACEOF
17626#line $LINENO "configure"
17627#include "confdefs.h"
17628
17629/* Override any gcc2 internal prototype to avoid an error. */
17630#ifdef __cplusplus
17631extern "C"
17632#endif
17633/* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17635char dlopen ();
17636#ifdef F77_DUMMY_MAIN
17637# ifdef __cplusplus
17638 extern "C"
17639# endif
17640 int F77_DUMMY_MAIN() { return 1; }
17641#endif
17642int
17643main ()
17644{
17645dlopen ();
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext conftest$ac_exeext
17651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_lib_svld_dlopen=yes
17663else
17664 echo "$as_me: failed program was:" >&5
17665cat conftest.$ac_ext >&5
17666ac_cv_lib_svld_dlopen=no
17667fi
17668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17669LIBS=$ac_check_lib_save_LIBS
17670fi
17671echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17672echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17673if test $ac_cv_lib_svld_dlopen = yes; then
17674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17675else
17676 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17677echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17678if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 ac_check_lib_save_LIBS=$LIBS
17682LIBS="-ldld $LIBS"
17683cat >conftest.$ac_ext <<_ACEOF
17684#line $LINENO "configure"
17685#include "confdefs.h"
17686
17687/* Override any gcc2 internal prototype to avoid an error. */
17688#ifdef __cplusplus
17689extern "C"
17690#endif
17691/* We use char because int might match the return type of a gcc2
17692 builtin and then its argument prototype would still apply. */
17693char dld_link ();
17694#ifdef F77_DUMMY_MAIN
17695# ifdef __cplusplus
17696 extern "C"
17697# endif
17698 int F77_DUMMY_MAIN() { return 1; }
17699#endif
17700int
17701main ()
17702{
17703dld_link ();
17704 ;
17705 return 0;
17706}
17707_ACEOF
17708rm -f conftest.$ac_objext conftest$ac_exeext
17709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_lib_dld_dld_link=yes
17721else
17722 echo "$as_me: failed program was:" >&5
17723cat conftest.$ac_ext >&5
17724ac_cv_lib_dld_dld_link=no
17725fi
17726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17727LIBS=$ac_check_lib_save_LIBS
17728fi
17729echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17730echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17731if test $ac_cv_lib_dld_dld_link = yes; then
17732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17733fi
17734
17735
17736fi
17737
17738
17739fi
17740
17741
17742fi
17743
17744
17745fi
17746
17747
17748fi
17749
17750 ;;
17751 esac
17752
17753 if test "x$lt_cv_dlopen" != xno; then
17754 enable_dlopen=yes
17755 else
17756 enable_dlopen=no
17757 fi
17758
17759 case $lt_cv_dlopen in
17760 dlopen)
17761 save_CPPFLAGS="$CPPFLAGS"
17762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17763
17764 save_LDFLAGS="$LDFLAGS"
17765 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17766
17767 save_LIBS="$LIBS"
17768 LIBS="$lt_cv_dlopen_libs $LIBS"
17769
17770 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17771echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17772if test "${lt_cv_dlopen_self+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 if test "$cross_compiling" = yes; then :
17776 lt_cv_dlopen_self=cross
17777else
17778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17779 lt_status=$lt_dlunknown
17780 cat > conftest.$ac_ext <<EOF
17781#line 17781 "configure"
17782#include "confdefs.h"
17783
17784#if HAVE_DLFCN_H
17785#include <dlfcn.h>
17786#endif
17787
17788#include <stdio.h>
17789
17790#ifdef RTLD_GLOBAL
17791# define LT_DLGLOBAL RTLD_GLOBAL
17792#else
17793# ifdef DL_GLOBAL
17794# define LT_DLGLOBAL DL_GLOBAL
17795# else
17796# define LT_DLGLOBAL 0
17797# endif
17798#endif
17799
17800/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17801 find out it does not work in some platform. */
17802#ifndef LT_DLLAZY_OR_NOW
17803# ifdef RTLD_LAZY
17804# define LT_DLLAZY_OR_NOW RTLD_LAZY
17805# else
17806# ifdef DL_LAZY
17807# define LT_DLLAZY_OR_NOW DL_LAZY
17808# else
17809# ifdef RTLD_NOW
17810# define LT_DLLAZY_OR_NOW RTLD_NOW
17811# else
17812# ifdef DL_NOW
17813# define LT_DLLAZY_OR_NOW DL_NOW
17814# else
17815# define LT_DLLAZY_OR_NOW 0
17816# endif
17817# endif
17818# endif
17819# endif
17820#endif
17821
17822#ifdef __cplusplus
17823extern "C" void exit (int);
17824#endif
17825
17826void fnord() { int i=42;}
17827int main ()
17828{
17829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17830 int status = $lt_dlunknown;
17831
17832 if (self)
17833 {
17834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17836 /* dlclose (self); */
17837 }
17838
17839 exit (status);
17840}
17841EOF
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17847 (./conftest; exit; ) 2>/dev/null
17848 lt_status=$?
17849 case x$lt_status in
17850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17852 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17853 esac
17854 else :
17855 # compilation failed
17856 lt_cv_dlopen_self=no
17857 fi
17858fi
17859rm -fr conftest*
17860
17861
17862fi
17863echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17864echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17865
17866 if test "x$lt_cv_dlopen_self" = xyes; then
17867 LDFLAGS="$LDFLAGS $link_static_flag"
17868 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17869echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17870if test "${lt_cv_dlopen_self_static+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872else
17873 if test "$cross_compiling" = yes; then :
17874 lt_cv_dlopen_self_static=cross
17875else
17876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17877 lt_status=$lt_dlunknown
17878 cat > conftest.$ac_ext <<EOF
17879#line 17879 "configure"
17880#include "confdefs.h"
17881
17882#if HAVE_DLFCN_H
17883#include <dlfcn.h>
17884#endif
17885
17886#include <stdio.h>
17887
17888#ifdef RTLD_GLOBAL
17889# define LT_DLGLOBAL RTLD_GLOBAL
17890#else
17891# ifdef DL_GLOBAL
17892# define LT_DLGLOBAL DL_GLOBAL
17893# else
17894# define LT_DLGLOBAL 0
17895# endif
17896#endif
17897
17898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17899 find out it does not work in some platform. */
17900#ifndef LT_DLLAZY_OR_NOW
17901# ifdef RTLD_LAZY
17902# define LT_DLLAZY_OR_NOW RTLD_LAZY
17903# else
17904# ifdef DL_LAZY
17905# define LT_DLLAZY_OR_NOW DL_LAZY
17906# else
17907# ifdef RTLD_NOW
17908# define LT_DLLAZY_OR_NOW RTLD_NOW
17909# else
17910# ifdef DL_NOW
17911# define LT_DLLAZY_OR_NOW DL_NOW
17912# else
17913# define LT_DLLAZY_OR_NOW 0
17914# endif
17915# endif
17916# endif
17917# endif
17918#endif
17919
17920#ifdef __cplusplus
17921extern "C" void exit (int);
17922#endif
17923
17924void fnord() { int i=42;}
17925int main ()
17926{
17927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17928 int status = $lt_dlunknown;
17929
17930 if (self)
17931 {
17932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17934 /* dlclose (self); */
17935 }
17936
17937 exit (status);
17938}
17939EOF
17940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941 (eval $ac_link) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17945 (./conftest; exit; ) 2>/dev/null
17946 lt_status=$?
17947 case x$lt_status in
17948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17950 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17951 esac
17952 else :
17953 # compilation failed
17954 lt_cv_dlopen_self_static=no
17955 fi
17956fi
17957rm -fr conftest*
17958
17959
17960fi
17961echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17962echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17963 fi
17964
17965 CPPFLAGS="$save_CPPFLAGS"
17966 LDFLAGS="$save_LDFLAGS"
17967 LIBS="$save_LIBS"
17968 ;;
17969 esac
17970
17971 case $lt_cv_dlopen_self in
17972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17973 *) enable_dlopen_self=unknown ;;
17974 esac
17975
17976 case $lt_cv_dlopen_self_static in
17977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17978 *) enable_dlopen_self_static=unknown ;;
17979 esac
17980fi
17981
17982
17983# Report which librarie types wil actually be built
17984echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17985echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17986echo "$as_me:$LINENO: result: $can_build_shared" >&5
17987echo "${ECHO_T}$can_build_shared" >&6
17988
17989echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17990echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17991test "$can_build_shared" = "no" && enable_shared=no
17992
17993# On AIX, shared libraries and static libraries use the same namespace, and
17994# are all built from PIC.
17995case "$host_os" in
17996aix3*)
17997 test "$enable_shared" = yes && enable_static=no
17998 if test -n "$RANLIB"; then
17999 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18000 postinstall_cmds='$RANLIB $lib'
18001 fi
18002 ;;
18003
18004aix4*)
18005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18006 test "$enable_shared" = yes && enable_static=no
18007 fi
18008 ;;
18009esac
18010echo "$as_me:$LINENO: result: $enable_shared" >&5
18011echo "${ECHO_T}$enable_shared" >&6
18012
18013echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18014echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18015# Make sure either enable_shared or enable_static is yes.
18016test "$enable_shared" = yes || enable_static=yes
18017echo "$as_me:$LINENO: result: $enable_static" >&5
18018echo "${ECHO_T}$enable_static" >&6
18019
18020# The else clause should only fire when bootstrapping the
18021# libtool distribution, otherwise you forgot to ship ltmain.sh
18022# with your package, and you will get complaints that there are
18023# no rules to generate ltmain.sh.
18024if test -f "$ltmain"; then
18025 # Now quote all the things that may contain metacharacters while being
18026 # careful not to overquote the AC_SUBSTed values. We take copies of the
18027 # variables and quote the copies for generation of the libtool script.
18028 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
18029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18031 deplibs_check_method reload_flag reload_cmds need_locks \
18032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18033 lt_cv_sys_global_symbol_to_c_name_address \
18034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18035 old_postinstall_cmds old_postuninstall_cmds \
18036 compiler \
18037 CC \
18038 LD \
18039 lt_prog_compiler_wl \
18040 lt_prog_compiler_pic \
18041 lt_prog_compiler_static \
18042 lt_prog_compiler_no_builtin_flag \
18043 export_dynamic_flag_spec \
18044 thread_safe_flag_spec \
18045 whole_archive_flag_spec \
18046 old_archive_cmds \
18047 old_archive_from_new_cmds \
18048 predep_objects \
18049 postdep_objects \
18050 predeps \
18051 postdeps \
18052 compiler_lib_search_path \
18053 archive_cmds \
18054 archive_expsym_cmds \
18055 postinstall_cmds \
18056 postuninstall_cmds \
18057 old_archive_from_expsyms_cmds \
18058 allow_undefined_flag \
18059 no_undefined_flag \
18060 export_symbols_cmds \
18061 hardcode_libdir_flag_spec \
18062 hardcode_libdir_separator \
18063 lt_cv_prog_compiler_c_o \
18064 exclude_expsyms \
18065 include_expsyms; do
18066
18067 case $var in
18068 old_archive_cmds | \
18069 old_archive_from_new_cmds | \
18070 archive_cmds | \
18071 archive_expsym_cmds | \
18072 old_archive_from_expsyms_cmds | \
18073 export_symbols_cmds | \
18074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18075 postinstall_cmds | postuninstall_cmds | \
18076 old_postinstall_cmds | old_postuninstall_cmds | \
18077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18078 # Double-quote double-evaled strings.
18079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18080 ;;
18081 *)
18082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18083 ;;
18084 esac
18085 done
18086
18087 case $lt_echo in
18088 *'\$0 --fallback-echo"')
18089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18090 ;;
18091 esac
18092
18093cfgfile="${ofile}T"
18094 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18095 $rm -f "$cfgfile"
18096 { echo "$as_me:$LINENO: creating $ofile" >&5
18097echo "$as_me: creating $ofile" >&6;}
18098
18099 cat <<__EOF__ >> "$cfgfile"
18100#! $SHELL
18101
18102# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18103# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18104# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18105#
18106# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18107# Free Software Foundation, Inc.
18108#
18109# This file is part of GNU Libtool:
18110# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18111#
18112# This program is free software; you can redistribute it and/or modify
18113# it under the terms of the GNU General Public License as published by
18114# the Free Software Foundation; either version 2 of the License, or
18115# (at your option) any later version.
18116#
18117# This program is distributed in the hope that it will be useful, but
18118# WITHOUT ANY WARRANTY; without even the implied warranty of
18119# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18120# General Public License for more details.
18121#
18122# You should have received a copy of the GNU General Public License
18123# along with this program; if not, write to the Free Software
18124# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18125#
18126# As a special exception to the GNU General Public License, if you
18127# distribute this file as part of a program that contains a
18128# configuration script generated by Autoconf, you may include it under
18129# the same distribution terms that you use for the rest of that program.
18130
18131# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18132Xsed="sed -e s/^X//"
18133
18134# The HP-UX ksh and POSIX shell print the target directory to stdout
18135# if CDPATH is set.
18136if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
18137
18138# The names of the tagged configurations supported by this script.
18139available_tags=
18140
18141# ### BEGIN LIBTOOL CONFIG
18142
18143# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18144
18145# Shell to use when invoking shell scripts.
18146SHELL=$lt_SHELL
18147
18148# Whether or not to build shared libraries.
18149build_libtool_libs=$enable_shared
18150
18151# Whether or not to build static libraries.
18152build_old_libs=$enable_static
18153
18154# Whether or not to add -lc for building shared libraries.
18155build_libtool_need_lc=$archive_cmds_need_lc
18156
18157# Whether or not to optimize for fast installation.
18158fast_install=$enable_fast_install
18159
18160# The host system.
18161host_alias=$host_alias
18162host=$host
18163
18164# An echo program that does not interpret backslashes.
18165echo=$lt_echo
18166
18167# The archiver.
18168AR=$lt_AR
18169AR_FLAGS=$lt_AR_FLAGS
18170
18171# A C compiler.
18172LTCC=$lt_LTCC
18173
18174# A language-specific compiler.
18175CC=$lt_compiler
18176
18177# Is the compiler the GNU C compiler?
18178with_gcc=$GCC
18179
18180# The linker used to build libraries.
18181LD=$lt_LD
18182
18183# Whether we need hard or soft links.
18184LN_S=$lt_LN_S
18185
18186# A BSD-compatible nm program.
18187NM=$lt_NM
18188
18189# A sed program that does not truncate output.
18190SED=$lt_SED
18191
18192# A symbol stripping program
18193STRIP=$STRIP
18194
18195# Used to examine libraries when file_magic_cmd begins "file"
18196MAGIC_CMD=$MAGIC_CMD
18197
18198# Used on cygwin: DLL creation program.
18199DLLTOOL="$DLLTOOL"
18200
18201# Used on cygwin: object dumper.
18202OBJDUMP="$OBJDUMP"
18203
18204# Used on cygwin: assembler.
18205AS="$AS"
18206
18207# The name of the directory that contains temporary libtool files.
18208objdir=$objdir
18209
18210# How to create reloadable object files.
18211reload_flag=$lt_reload_flag
18212reload_cmds=$lt_reload_cmds
18213
18214# How to pass a linker flag through the compiler.
18215wl=$lt_lt_prog_compiler_wl
18216
18217# Object file suffix (normally "o").
18218objext="$ac_objext"
18219
18220# Old archive suffix (normally "a").
18221libext="$libext"
18222
18223# Executable file suffix (normally "").
18224exeext="$exeext"
18225
18226# Additional compiler flags for building library objects.
18227pic_flag=$lt_lt_prog_compiler_pic
18228pic_mode=$pic_mode
18229
18230# What is the maximum length of a command?
18231max_cmd_len=$lt_cv_sys_max_cmd_len
18232
18233# Does compiler simultaneously support -c and -o options?
18234compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18235
18236# Must we lock files when doing compilation ?
18237need_locks=$lt_need_locks
18238
18239# Do we need the lib prefix for modules?
18240need_lib_prefix=$need_lib_prefix
18241
18242# Do we need a version for libraries?
18243need_version=$need_version
18244
18245# Whether dlopen is supported.
18246dlopen_support=$enable_dlopen
18247
18248# Whether dlopen of programs is supported.
18249dlopen_self=$enable_dlopen_self
18250
18251# Whether dlopen of statically linked programs is supported.
18252dlopen_self_static=$enable_dlopen_self_static
18253
18254# Compiler flag to prevent dynamic linking.
18255link_static_flag=$lt_lt_prog_compiler_static
18256
18257# Compiler flag to turn off builtin functions.
18258no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18259
18260# Compiler flag to allow reflexive dlopens.
18261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18262
18263# Compiler flag to generate shared objects directly from archives.
18264whole_archive_flag_spec=$lt_whole_archive_flag_spec
18265
18266# Compiler flag to generate thread-safe objects.
18267thread_safe_flag_spec=$lt_thread_safe_flag_spec
18268
18269# Library versioning type.
18270version_type=$version_type
18271
18272# Format of library name prefix.
18273libname_spec=$lt_libname_spec
18274
18275# List of archive names. First name is the real one, the rest are links.
18276# The last name is the one that the linker finds with -lNAME.
18277library_names_spec=$lt_library_names_spec
18278
18279# The coded name of the library, if different from the real name.
18280soname_spec=$lt_soname_spec
18281
18282# Commands used to build and install an old-style archive.
18283RANLIB=$lt_RANLIB
18284old_archive_cmds=$lt_old_archive_cmds
18285old_postinstall_cmds=$lt_old_postinstall_cmds
18286old_postuninstall_cmds=$lt_old_postuninstall_cmds
18287
18288# Create an old-style archive from a shared archive.
18289old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18290
18291# Create a temporary old-style archive to link instead of a shared archive.
18292old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18293
18294# Commands used to build and install a shared archive.
18295archive_cmds=$lt_archive_cmds
18296archive_expsym_cmds=$lt_archive_expsym_cmds
18297postinstall_cmds=$lt_postinstall_cmds
18298postuninstall_cmds=$lt_postuninstall_cmds
18299
18300# Commands to strip libraries.
18301old_striplib=$lt_old_striplib
18302striplib=$lt_striplib
18303
18304# Dependencies to place before the objects being linked to create a
18305# shared library.
18306predep_objects=$lt_predep_objects
18307
18308# Dependencies to place after the objects being linked to create a
18309# shared library.
18310postdep_objects=$lt_postdep_objects
18311
18312# Dependencies to place before the objects being linked to create a
18313# shared library.
18314predeps=$lt_predeps
18315
18316# Dependencies to place after the objects being linked to create a
18317# shared library.
18318postdeps=$lt_postdeps
18319
18320# The library search path used internally by the compiler when linking
18321# a shared library.
18322compiler_lib_search_path=$lt_compiler_lib_search_path
18323
18324# Method to check whether dependent libraries are shared objects.
18325deplibs_check_method=$lt_deplibs_check_method
18326
18327# Command to use when deplibs_check_method == file_magic.
18328file_magic_cmd=$lt_file_magic_cmd
18329
18330# Flag that allows shared libraries with undefined symbols to be built.
18331allow_undefined_flag=$lt_allow_undefined_flag
18332
18333# Flag that forces no undefined symbols.
18334no_undefined_flag=$lt_no_undefined_flag
18335
18336# Commands used to finish a libtool library installation in a directory.
18337finish_cmds=$lt_finish_cmds
18338
18339# Same as above, but a single script fragment to be evaled but not shown.
18340finish_eval=$lt_finish_eval
18341
18342# Take the output of nm and produce a listing of raw symbols and C names.
18343global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18344
18345# Transform the output of nm in a proper C declaration
18346global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18347
18348# Transform the output of nm in a C name address pair
18349global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18350
18351# This is the shared library runtime path variable.
18352runpath_var=$runpath_var
18353
18354# This is the shared library path variable.
18355shlibpath_var=$shlibpath_var
18356
18357# Is shlibpath searched before the hard-coded library search path?
18358shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18359
18360# How to hardcode a shared library path into an executable.
18361hardcode_action=$hardcode_action
18362
18363# Whether we should hardcode library paths into libraries.
18364hardcode_into_libs=$hardcode_into_libs
18365
18366# Flag to hardcode \$libdir into a binary during linking.
18367# This must work even if \$libdir does not exist.
18368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18369
18370# Whether we need a single -rpath flag with a separated argument.
18371hardcode_libdir_separator=$lt_hardcode_libdir_separator
18372
18373# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
18374# resulting binary.
18375hardcode_direct=$hardcode_direct
18376
18377# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18378# resulting binary.
18379hardcode_minus_L=$hardcode_minus_L
18380
18381# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18382# the resulting binary.
18383hardcode_shlibpath_var=$hardcode_shlibpath_var
18384
18385# Variables whose values should be saved in libtool wrapper scripts and
18386# restored at relink time.
18387variables_saved_for_relink="$variables_saved_for_relink"
18388
18389# Whether libtool must link a program against all its dependency libraries.
18390link_all_deplibs=$link_all_deplibs
18391
18392# Compile-time system search path for libraries
18393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18394
18395# Run-time system search path for libraries
18396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18397
18398# Fix the shell variable \$srcfile for the compiler.
18399fix_srcfile_path="$fix_srcfile_path"
18400
18401# Set to yes if exported symbols are required.
18402always_export_symbols=$always_export_symbols
18403
18404# The commands to list exported symbols.
18405export_symbols_cmds=$lt_export_symbols_cmds
18406
18407# The commands to extract the exported symbol list from a shared archive.
18408extract_expsyms_cmds=$lt_extract_expsyms_cmds
18409
18410# Symbols that should not be listed in the preloaded symbols.
18411exclude_expsyms=$lt_exclude_expsyms
18412
18413# Symbols that must always be exported.
18414include_expsyms=$lt_include_expsyms
18415
18416# ### END LIBTOOL CONFIG
18417
18418__EOF__
18419
18420
18421 case $host_os in
18422 aix3*)
18423 cat <<\EOF >> "$cfgfile"
18424
18425# AIX sometimes has problems with the GCC collect2 program. For some
18426# reason, if we set the COLLECT_NAMES environment variable, the problems
18427# vanish in a puff of smoke.
18428if test "X${COLLECT_NAMES+set}" != Xset; then
18429 COLLECT_NAMES=
18430 export COLLECT_NAMES
18431fi
18432EOF
18433 ;;
18434
18435 cygwin* | mingw* | pw32* | os2*)
18436 cat <<'EOF' >> "$cfgfile"
18437 # This is a source program that is used to create dlls on Windows
18438 # Don't remove nor modify the starting and closing comments
18439
18440# /* ltdll.c starts here */
18441# #define WIN32_LEAN_AND_MEAN
18442# #include <windows.h>
18443# #undef WIN32_LEAN_AND_MEAN
18444# #include <stdio.h>
18445#
18446# #ifndef __CYGWIN__
18447# # ifdef __CYGWIN32__
18448# # define __CYGWIN__ __CYGWIN32__
18449# # endif
18450# #endif
18451#
18452# #ifdef __cplusplus
18453# extern "C" {
18454# #endif
18455# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
18456# #ifdef __cplusplus
18457# }
18458# #endif
18459#
18460# #ifdef __CYGWIN__
18461# #include <cygwin/cygwin_dll.h>
18462# DECLARE_CYGWIN_DLL( DllMain );
18463# #endif
18464# HINSTANCE __hDllInstance_base;
18465#
18466# BOOL APIENTRY
18467# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
18468# {
18469# __hDllInstance_base = hInst;
18470# return TRUE;
18471# }
18472# /* ltdll.c ends here */
18473
18474 # This is a source program that is used to create import libraries
18475 # on Windows for dlls which lack them. Don't remove nor modify the
18476 # starting and closing comments
18477
18478# /* impgen.c starts here */
18479# /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
18480#
18481# This file is part of GNU libtool.
18482#
18483# This program is free software; you can redistribute it and/or modify
18484# it under the terms of the GNU General Public License as published by
18485# the Free Software Foundation; either version 2 of the License, or
18486# (at your option) any later version.
18487#
18488# This program is distributed in the hope that it will be useful,
18489# but WITHOUT ANY WARRANTY; without even the implied warranty of
18490# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18491# GNU General Public License for more details.
18492#
18493# You should have received a copy of the GNU General Public License
18494# along with this program; if not, write to the Free Software
18495# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18496# */
18497#
18498# #include <stdio.h> /* for printf() */
18499# #include <unistd.h> /* for open(), lseek(), read() */
18500# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
18501# #include <string.h> /* for strdup() */
18502#
18503# /* O_BINARY isn't required (or even defined sometimes) under Unix */
18504# #ifndef O_BINARY
18505# #define O_BINARY 0
18506# #endif
18507#
18508# static unsigned int
18509# pe_get16 (fd, offset)
18510# int fd;
18511# int offset;
18512# {
18513# unsigned char b[2];
18514# lseek (fd, offset, SEEK_SET);
18515# read (fd, b, 2);
18516# return b[0] + (b[1]<<8);
18517# }
18518#
18519# static unsigned int
18520# pe_get32 (fd, offset)
18521# int fd;
18522# int offset;
18523# {
18524# unsigned char b[4];
18525# lseek (fd, offset, SEEK_SET);
18526# read (fd, b, 4);
18527# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18528# }
18529#
18530# static unsigned int
18531# pe_as32 (ptr)
18532# void *ptr;
18533# {
18534# unsigned char *b = ptr;
18535# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18536# }
18537#
18538# int
18539# main (argc, argv)
18540# int argc;
18541# char *argv[];
18542# {
18543# int dll;
18544# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
18545# unsigned long export_rva, export_size, nsections, secptr, expptr;
18546# unsigned long name_rvas, nexp;
18547# unsigned char *expdata, *erva;
18548# char *filename, *dll_name;
18549#
18550# filename = argv[1];
18551#
18552# dll = open(filename, O_RDONLY|O_BINARY);
18553# if (dll < 1)
18554# return 1;
18555#
18556# dll_name = filename;
18557#
18558# for (i=0; filename[i]; i++)
18559# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
18560# dll_name = filename + i +1;
18561#
18562# pe_header_offset = pe_get32 (dll, 0x3c);
18563# opthdr_ofs = pe_header_offset + 4 + 20;
18564# num_entries = pe_get32 (dll, opthdr_ofs + 92);
18565#
18566# if (num_entries < 1) /* no exports */
18567# return 1;
18568#
18569# export_rva = pe_get32 (dll, opthdr_ofs + 96);
18570# export_size = pe_get32 (dll, opthdr_ofs + 100);
18571# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
18572# secptr = (pe_header_offset + 4 + 20 +
18573# pe_get16 (dll, pe_header_offset + 4 + 16));
18574#
18575# expptr = 0;
18576# for (i = 0; i < nsections; i++)
18577# {
18578# char sname[8];
18579# unsigned long secptr1 = secptr + 40 * i;
18580# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
18581# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
18582# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
18583# lseek(dll, secptr1, SEEK_SET);
18584# read(dll, sname, 8);
18585# if (vaddr <= export_rva && vaddr+vsize > export_rva)
18586# {
18587# expptr = fptr + (export_rva - vaddr);
18588# if (export_rva + export_size > vaddr + vsize)
18589# export_size = vsize - (export_rva - vaddr);
18590# break;
18591# }
18592# }
18593#
18594# expdata = (unsigned char*)malloc(export_size);
18595# lseek (dll, expptr, SEEK_SET);
18596# read (dll, expdata, export_size);
18597# erva = expdata - export_rva;
18598#
18599# nexp = pe_as32 (expdata+24);
18600# name_rvas = pe_as32 (expdata+32);
18601#
18602# printf ("EXPORTS\n");
18603# for (i = 0; i<nexp; i++)
18604# {
18605# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
18606# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
18607# }
18608#
18609# return 0;
18610# }
18611# /* impgen.c ends here */
18612
18613EOF
18614 ;;
18615 esac
18616
18617 # We use sed instead of cat because bash on DJGPP gets confused if
18618 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18619 # text mode, it properly converts lines to CR/LF. This bash problem
18620 # is reportedly fixed, but why not run on old versions too?
18621 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18622
18623 mv -f "$cfgfile" "$ofile" || \
18624 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18625 chmod +x "$ofile"
18626
18627else
18628 # If there is no Makefile yet, we rely on a make rule to execute
18629 # `config.status --recheck' to rerun these tests and create the
18630 # libtool script then.
18631 test -f Makefile && make "$ltmain"
18632fi
18633
18634
18635ac_ext=c
18636ac_cpp='$CPP $CPPFLAGS'
18637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640
18641CC="$lt_save_CC"
18642
18643
18644# Check whether --with-tags or --without-tags was given.
18645if test "${with_tags+set}" = set; then
18646 withval="$with_tags"
18647 tagnames="$withval"
18648else
18649 tagnames="CXX,GCJ"
18650 case $host_os in
18651 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
18652 esac
18653fi;
18654
18655if test -f "$ltmain" && test -n "$tagnames"; then
18656 if test ! -f "${ofile}"; then
18657 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18658echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18659 fi
18660
18661 if test -z "$LTCC"; then
18662 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18663 if test -z "$LTCC"; then
18664 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18665echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18666 else
18667 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18668echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18669 fi
18670 fi
18671
18672 # Extract list of available tagged configurations in $ofile.
18673 # Note that this assumes the entire list is on one line.
18674 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18675
18676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18677 for tagname in $tagnames; do
18678 IFS="$lt_save_ifs"
18679 # Check whether tagname contains only valid characters
18680 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18681 "") ;;
18682 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18683echo "$as_me: error: invalid tag name: $tagname" >&2;}
18684 { (exit 1); exit 1; }; }
18685 ;;
18686 esac
18687
18688 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18689 then
18690 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18691echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18692 { (exit 1); exit 1; }; }
18693 fi
18694
18695 # Update the list of available tags.
18696 if test -n "$tagname"; then
18697 echo appending configuration tag \"$tagname\" to $ofile
18698
18699 case $tagname in
18700 CXX)
18701 ac_ext=cc
18702ac_cpp='$CXXCPP $CPPFLAGS'
18703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18706
18707
18708
18709
18710archive_cmds_need_lc_CXX=no
18711allow_undefined_flag_CXX=
18712always_export_symbols_CXX=no
18713archive_expsym_cmds_CXX=
18714export_dynamic_flag_spec_CXX=
18715hardcode_direct_CXX=no
18716hardcode_libdir_flag_spec_CXX=
18717hardcode_libdir_separator_CXX=
18718hardcode_minus_L_CXX=no
18719link_all_deplibs_CXX=unknown
18720old_archive_cmds_CXX=$old_archive_cmds
18721no_undefined_flag_CXX=
18722whole_archive_flag_spec_CXX=
18723
18724# Dependencies to place before and after the object being linked:
18725predep_objects_CXX=
18726postdep_objects_CXX=
18727predeps_CXX=
18728postdeps_CXX=
18729compiler_lib_search_path_CXX=
18730
18731# Source file extension for C test sources.
18732ac_ext=cc
18733
18734# Object file extension for compiled C test sources.
18735objext=o
18736objext_CXX=$objext
18737
18738# Code to be used in simple compile tests
18739lt_simple_compile_test_code="int some_variable = 0;"
18740
18741# Code to be used in simple link tests
18742lt_simple_link_test_code='int main(int char *) { return(0); }'
18743
18744# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18745
18746# If no C compiler was specified, use CC.
18747LTCC=${LTCC-"$CC"}
18748
18749# Allow CC to be a program name with arguments.
18750set dummy $CC
18751compiler="$2"
18752
18753
18754# Allow CC to be a program name with arguments.
18755lt_save_CC="$CC"
18756CC=${CXX-"c++"}
18757set dummy $CC
18758compiler="$2"
18759compiler_CXX=$CC
18760cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18761
18762# We don't want -fno-exception wen compiling C++ code, so set the
18763# no_builtin_flag separately
18764if test "$GXX" = yes; then
18765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18766else
18767 lt_prog_compiler_no_builtin_flag_CXX=
18768fi
18769
18770if test "$GXX" = yes; then
18771 # Set up default GNU C++ configuration
18772
18773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18774 # archiving commands below assume that GNU ld is being used.
18775 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
18776 egrep 'GNU ld' > /dev/null; then
18777 with_gnu_ld=yes
18778
18779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18780 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18781
18782 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18784
18785 # If archive_cmds runs LD, not CC, wlarc should be empty
18786 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18787 # investigate it a little bit more. (MM)
18788 wlarc='${wl}'
18789
18790 # ancient GNU ld didn't support --whole-archive et. al.
18791 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18792 egrep 'no-whole-archive' > /dev/null; then
18793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18794 else
18795 whole_archive_flag_spec_CXX=
18796 fi
18797 else
18798 with_gnu_ld=no
18799 wlarc=
18800
18801 # A generic and very simple default shared library creation
18802 # command for GNU C++ for the case where it uses the native
18803 # linker, instead of GNU ld. If possible, this setting should
18804 # overridden to take advantage of the native linker features on
18805 # the platform it is being used on.
18806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18807 fi
18808
18809 # Commands to make compiler produce verbose output that lists
18810 # what "hidden" libraries, object files and flags are used when
18811 # linking a shared library.
18812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
18813
18814else
18815 GXX=no
18816 with_gnu_ld=no
18817 wlarc=
18818fi
18819
18820# PORTME: fill in a description of your system's C++ link characteristics
18821echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18822echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18823ld_shlibs_CXX=yes
18824case $host_os in
18825 aix3*)
18826 # FIXME: insert proper C++ library support
18827 ld_shlibs_CXX=no
18828 ;;
18829 aix4* | aix5*)
18830 if test "$host_cpu" = ia64; then
18831 # On IA64, the linker does run time linking by default, so we don't
18832 # have to do anything special.
18833 aix_use_runtimelinking=no
18834 exp_sym_flag='-Bexport'
18835 no_entry_flag=""
18836 else
18837 # KDE requires run time linking. Make it the default.
18838 aix_use_runtimelinking=yes
18839 exp_sym_flag='-bexport'
18840 no_entry_flag='-bnoentry'
18841 fi
18842
18843 # When large executables or shared objects are built, AIX ld can
18844 # have problems creating the table of contents. If linking a library
18845 # or program results in "error TOC overflow" add -mminimal-toc to
18846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18848
18849 archive_cmds_CXX=''
18850 hardcode_direct_CXX=yes
18851 hardcode_libdir_separator_CXX=':'
18852 link_all_deplibs_CXX=yes
18853
18854 if test "$GXX" = yes; then
18855 case $host_os in aix4.012|aix4.012.*)
18856 # We only want to do this on AIX 4.2 and lower, the check
18857 # below for broken collect2 doesn't work under 4.3+
18858 collect2name=`${CC} -print-prog-name=collect2`
18859 if test -f "$collect2name" && \
18860 strings "$collect2name" | grep resolve_lib_name >/dev/null
18861 then
18862 # We have reworked collect2
18863 hardcode_direct_CXX=yes
18864 else
18865 # We have old collect2
18866 hardcode_direct_CXX=unsupported
18867 # It fails to find uninstalled libraries when the uninstalled
18868 # path is not listed in the libpath. Setting hardcode_minus_L
18869 # to unsupported forces relinking
18870 hardcode_minus_L_CXX=yes
18871 hardcode_libdir_flag_spec_CXX='-L$libdir'
18872 hardcode_libdir_separator_CXX=
18873 fi
18874 esac
18875 shared_flag='-shared'
18876 else
18877 # not using gcc
18878 if test "$host_cpu" = ia64; then
18879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18880 # chokes on -Wl,-G. The following line is correct:
18881 shared_flag='-G'
18882 else
18883 if test "$aix_use_runtimelinking" = yes; then
18884 shared_flag='-qmkshrobj ${wl}-G'
18885 else
18886 shared_flag='-qmkshrobj'
18887 fi
18888 fi
18889 fi
18890
18891 # Let the compiler handle the export list.
18892 always_export_symbols_CXX=no
18893 if test "$aix_use_runtimelinking" = yes; then
18894 # Warning - without using the other runtime loading flags (-brtl),
18895 # -berok will link without error, but may produce a broken library.
18896 allow_undefined_flag_CXX='-berok'
18897 # Determine the default libpath from the value encoded in an empty executable.
18898 cat >conftest.$ac_ext <<_ACEOF
18899#line $LINENO "configure"
18900#include "confdefs.h"
18901
18902#ifdef F77_DUMMY_MAIN
18903# ifdef __cplusplus
18904 extern "C"
18905# endif
18906 int F77_DUMMY_MAIN() { return 1; }
18907#endif
18908int
18909main ()
18910{
18911
18912 ;
18913 return 0;
18914}
18915_ACEOF
18916rm -f conftest.$ac_objext conftest$ac_exeext
18917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18918 (eval $ac_link) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928
18929aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18930}'`
18931# Check for a 64-bit object if we didn't find anything.
18932if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18933}'`; fi
18934else
18935 echo "$as_me: failed program was:" >&5
18936cat conftest.$ac_ext >&5
18937fi
18938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18940
18941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18942
18943 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
18944 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18945 else
18946 if test "$host_cpu" = ia64; then
18947 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18948 allow_undefined_flag_CXX="-z nodefs"
18949 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18950 else
18951 # Determine the default libpath from the value encoded in an empty executable.
18952 cat >conftest.$ac_ext <<_ACEOF
18953#line $LINENO "configure"
18954#include "confdefs.h"
18955
18956#ifdef F77_DUMMY_MAIN
18957# ifdef __cplusplus
18958 extern "C"
18959# endif
18960 int F77_DUMMY_MAIN() { return 1; }
18961#endif
18962int
18963main ()
18964{
18965
18966 ;
18967 return 0;
18968}
18969_ACEOF
18970rm -f conftest.$ac_objext conftest$ac_exeext
18971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18972 (eval $ac_link) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -s conftest$ac_exeext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982
18983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18984}'`
18985# Check for a 64-bit object if we didn't find anything.
18986if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18987}'`; fi
18988else
18989 echo "$as_me: failed program was:" >&5
18990cat conftest.$ac_ext >&5
18991fi
18992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18994
18995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18996 # Warning - without using the other run time loading flags,
18997 # -berok will link without error, but may produce a broken library.
18998 no_undefined_flag_CXX=' ${wl}-bernotok'
18999 allow_undefined_flag_CXX=' ${wl}-berok'
19000 # -bexpall does not export symbols beginning with underscore (_)
19001 always_export_symbols_CXX=yes
19002 # Exported symbols can be pulled into shared objects from archives
19003 whole_archive_flag_spec_CXX=' '
19004 archive_cmds_need_lc_CXX=yes
19005 # This is similar to how AIX traditionally builds it's shared libraries.
19006 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19007 fi
19008 fi
19009 ;;
19010 chorus*)
19011 case $cc_basename in
19012 *)
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
19016 esac
19017 ;;
19018 dgux*)
19019 case $cc_basename in
19020 ec++)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 ghcx)
19025 # Green Hills C++ Compiler
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 *)
19030 # FIXME: insert proper C++ library support
19031 ld_shlibs_CXX=no
19032 ;;
19033 esac
19034 ;;
19035 freebsd12*)
19036 # C++ shared libraries reported to be fairly broken before switch to ELF
19037 ld_shlibs_CXX=no
19038 ;;
19039 freebsd-elf*)
19040 archive_cmds_need_lc_CXX=no
19041 ;;
19042 freebsd*)
19043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19044 # conventions
19045 ld_shlibs_CXX=yes
19046 ;;
19047 gnu*)
19048 ;;
19049 hpux*)
19050 if test $with_gnu_ld = no; then
19051 if test "$host_cpu" = ia64; then
19052 hardcode_libdir_flag_spec_CXX='-L$libdir'
19053 else
19054 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19055 hardcode_libdir_separator_CXX=:
19056 export_dynamic_flag_spec_CXX='${wl}-E'
19057 fi
19058 fi
19059 if test "$host_cpu" = ia64; then
19060 hardcode_direct_CXX=no
19061 hardcode_shlibpath_var_CXX=no
19062 else
19063 hardcode_direct_CXX=yes
19064 fi
19065 hardcode_minus_L_CXX=yes # Not in the search PATH,
19066 # but as the default
19067 # location of the library.
19068
19069 case $cc_basename in
19070 CC)
19071 # FIXME: insert proper C++ library support
19072 ld_shlibs_CXX=no
19073 ;;
19074 aCC)
19075 case $host_os in
19076 hpux9*)
19077 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19078 ;;
19079 *)
19080 if test "$host_cpu" = ia64; then
19081 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19082 else
19083 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19084 fi
19085 ;;
19086 esac
19087 # Commands to make compiler produce verbose output that lists
19088 # what "hidden" libraries, object files and flags are used when
19089 # linking a shared library.
19090 #
19091 # There doesn't appear to be a way to prevent this compiler from
19092 # explicitly linking system object files so we need to strip them
19093 # from the output so that they don't get included in the library
19094 # dependencies.
19095 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19096 ;;
19097 *)
19098 if test "$GXX" = yes; then
19099 if test $with_gnu_ld = no; then
19100 case $host_os in
19101 hpux9*)
19102 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19103 ;;
19104 *)
19105 if test "$host_cpu" = ia64; then
19106 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19107 else
19108 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 fi
19110 ;;
19111 esac
19112 fi
19113 else
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 fi
19117 ;;
19118 esac
19119 ;;
19120 irix5* | irix6*)
19121 case $cc_basename in
19122 CC)
19123 # SGI C++
19124 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19125
19126 # Archives containing C++ object files must be created using
19127 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19128 # necessary to make sure instantiated templates are included
19129 # in the archive.
19130 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19131 ;;
19132 *)
19133 if test "$GXX" = yes; then
19134 if test "$with_gnu_ld" = no; then
19135 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19136 else
19137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
19138 fi
19139 fi
19140 link_all_deplibs_CXX=yes
19141 ;;
19142 esac
19143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19145 ;;
19146 linux*)
19147 case $cc_basename in
19148 KCC)
19149 # Kuck and Associates, Inc. (KAI) C++ Compiler
19150
19151 # KCC will only create a shared library if the output file
19152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19153 # to its proper name (with version) after linking.
19154 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19155 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19156
19157 # Commands to make compiler produce verbose output that lists
19158 # what "hidden" libraries, object files and flags are used when
19159 # linking a shared library.
19160 #
19161 # There doesn't appear to be a way to prevent this compiler from
19162 # explicitly linking system object files so we need to strip them
19163 # from the output so that they don't get included in the library
19164 # dependencies.
19165 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19166
19167 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19169
19170 # Archives containing C++ object files must be created using
19171 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19172 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19173 ;;
19174 cxx)
19175 # Compaq C++
19176 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19177 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19178
19179 runpath_var=LD_RUN_PATH
19180 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19181 hardcode_libdir_separator_CXX=:
19182
19183 # Commands to make compiler produce verbose output that lists
19184 # what "hidden" libraries, object files and flags are used when
19185 # linking a shared library.
19186 #
19187 # There doesn't appear to be a way to prevent this compiler from
19188 # explicitly linking system object files so we need to strip them
19189 # from the output so that they don't get included in the library
19190 # dependencies.
19191 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19192 ;;
19193 esac
19194 ;;
19195 lynxos*)
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19198 ;;
19199 m88k*)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
19203 mvs*)
19204 case $cc_basename in
19205 cxx)
19206 # FIXME: insert proper C++ library support
19207 ld_shlibs_CXX=no
19208 ;;
19209 *)
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19212 ;;
19213 esac
19214 ;;
19215 netbsd*)
19216 # NetBSD uses g++ - do we need to do anything?
19217 ;;
19218 osf3*)
19219 case $cc_basename in
19220 KCC)
19221 # Kuck and Associates, Inc. (KAI) C++ Compiler
19222
19223 # KCC will only create a shared library if the output file
19224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19225 # to its proper name (with version) after linking.
19226 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19227
19228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229 hardcode_libdir_separator_CXX=:
19230
19231 # Archives containing C++ object files must be created using
19232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19234
19235 ;;
19236 RCC)
19237 # Rational C++ 2.4.1
19238 # FIXME: insert proper C++ library support
19239 ld_shlibs_CXX=no
19240 ;;
19241 cxx)
19242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19243 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19244
19245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19246 hardcode_libdir_separator_CXX=:
19247
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19251 #
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19255 # dependencies.
19256 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19257 ;;
19258 *)
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19261 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19262
19263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19264 hardcode_libdir_separator_CXX=:
19265
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19270
19271 else
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19274 fi
19275 ;;
19276 esac
19277 ;;
19278 osf4* | osf5*)
19279 case $cc_basename in
19280 KCC)
19281 # Kuck and Associates, Inc. (KAI) C++ Compiler
19282
19283 # KCC will only create a shared library if the output file
19284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19285 # to its proper name (with version) after linking.
19286 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19287
19288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19289 hardcode_libdir_separator_CXX=:
19290
19291 # Archives containing C++ object files must be created using
19292 # the KAI C++ compiler.
19293 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19294 ;;
19295 RCC)
19296 # Rational C++ 2.4.1
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300 cxx)
19301 allow_undefined_flag_CXX=' -expect_unresolved \*'
19302 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19303 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
19304 echo "-hidden">> $lib.exp~
19305 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
19306 $rm $lib.exp'
19307
19308 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19309 hardcode_libdir_separator_CXX=:
19310
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19314 #
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19318 # dependencies.
19319 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19320 ;;
19321 *)
19322 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19323 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19324 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19325
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19328
19329 # Commands to make compiler produce verbose output that lists
19330 # what "hidden" libraries, object files and flags are used when
19331 # linking a shared library.
19332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19333
19334 else
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19337 fi
19338 ;;
19339 esac
19340 ;;
19341 psos*)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345 sco*)
19346 archive_cmds_need_lc_CXX=no
19347 case $cc_basename in
19348 CC)
19349 # FIXME: insert proper C++ library support
19350 ld_shlibs_CXX=no
19351 ;;
19352 *)
19353 # FIXME: insert proper C++ library support
19354 ld_shlibs_CXX=no
19355 ;;
19356 esac
19357 ;;
19358 sunos4*)
19359 case $cc_basename in
19360 CC)
19361 # Sun C++ 4.x
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19364 ;;
19365 lcc)
19366 # Lucid
19367 # FIXME: insert proper C++ library support
19368 ld_shlibs_CXX=no
19369 ;;
19370 *)
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19373 ;;
19374 esac
19375 ;;
19376 solaris*)
19377 case $cc_basename in
19378 CC)
19379 # Sun C++ 4.2, 5.x and Centerline C++
19380 no_undefined_flag_CXX=' -zdefs'
19381 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19382 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19383 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19384
19385 hardcode_libdir_flag_spec_CXX='-R$libdir'
19386 hardcode_shlibpath_var_CXX=no
19387 case $host_os in
19388 solaris2.0-5 | solaris2.0-5.*) ;;
19389 *)
19390 # The C++ compiler is used as linker so we must use $wl
19391 # flag to pass the commands to the underlying system
19392 # linker.
19393 # Supported since Solaris 2.6 (maybe 2.5.1?)
19394 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19395 ;;
19396 esac
19397 link_all_deplibs_CXX=yes
19398
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19402 #
19403 # There doesn't appear to be a way to prevent this compiler from
19404 # explicitly linking system object files so we need to strip them
19405 # from the output so that they don't get included in the library
19406 # dependencies.
19407 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19408
19409 # Archives containing C++ object files must be created using
19410 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19411 # necessary to make sure instantiated templates are included
19412 # in the archive.
19413 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19414 ;;
19415 gcx)
19416 # Green Hills C++ Compiler
19417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19418
19419 # The C++ compiler must be used to create the archive.
19420 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19421 ;;
19422 *)
19423 # GNU C++ compiler with Solaris linker
19424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19425 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19426 if $CC --version | egrep -v '^2\.7' > /dev/null; then
19427 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19428 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19429 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19430
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19435 else
19436 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19437 # platform.
19438 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19439 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19440 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19441
19442 # Commands to make compiler produce verbose output that lists
19443 # what "hidden" libraries, object files and flags are used when
19444 # linking a shared library.
19445 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19446 fi
19447
19448 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19449 fi
19450 ;;
19451 esac
19452 ;;
19453 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19454 archive_cmds_need_lc_CXX=no
19455 ;;
19456 tandem*)
19457 case $cc_basename in
19458 NCC)
19459 # NonStop-UX NCC 3.20
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
19463 *)
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 esac
19468 ;;
19469 vxworks*)
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 ;;
19473 *)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 ;;
19477esac
19478echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19479echo "${ECHO_T}$ld_shlibs_CXX" >&6
19480test "$ld_shlibs_CXX" = no && can_build_shared=no
19481
19482# Figure out "hidden" C++ library dependencies from verbose
19483# compiler output whening linking a shared library.
19484cat > conftest.$ac_ext <<EOF
19485class Foo
19486{
19487public:
19488 Foo (void) { a = 0; }
19489private:
19490 int a;
19491};
19492EOF
19493
19494
19495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19496 (eval $ac_compile) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; then
19500 # Parse the compiler output and extract the necessary
19501 # objects, libraries and library flags.
19502
19503 # Sentinel used to keep track of whether or not we are before
19504 # the conftest object file.
19505 pre_test_object_deps_done=no
19506
19507 # The `*' in the case matches for architectures that use `case' in
19508 # $output_verbose_cmd can trigger glob expansion during the loop
19509 # eval without this substitution.
19510 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
19511
19512 for p in `eval $output_verbose_link_cmd`; do
19513 case $p in
19514
19515 -L* | -R* | -l*)
19516 # Some compilers place space between "-{L,R}" and the path.
19517 # Remove the space.
19518 if test $p = "-L" \
19519 || test $p = "-R"; then
19520 prev=$p
19521 continue
19522 else
19523 prev=
19524 fi
19525
19526 if test "$pre_test_object_deps_done" = no; then
19527 case $p in
19528 -L* | -R*)
19529 # Internal compiler library paths should come after those
19530 # provided the user. The postdeps already come after the
19531 # user supplied libs so there is no need to process them.
19532 if test -z "$compiler_lib_search_path_CXX"; then
19533 compiler_lib_search_path_CXX="${prev}${p}"
19534 else
19535 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19536 fi
19537 ;;
19538 # The "-l" case would never come before the object being
19539 # linked, so don't bother handling this case.
19540 esac
19541 else
19542 if test -z "$postdeps_CXX"; then
19543 postdeps_CXX="${prev}${p}"
19544 else
19545 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19546 fi
19547 fi
19548 ;;
19549
19550 *.$objext|*.$libext)
19551 # This assumes that the test object file only shows up
19552 # once in the compiler output.
19553 if test "$p" = "conftest.$objext"; then
19554 pre_test_object_deps_done=yes
19555 continue
19556 fi
19557
19558 if test "$pre_test_object_deps_done" = no; then
19559 if test -z "$predep_objects_CXX"; then
19560 predep_objects_CXX="$p"
19561 else
19562 predep_objects_CXX="$predep_objects_CXX $p"
19563 fi
19564 else
19565 if test -z "$postdep_objects_CXX"; then
19566 postdep_objects_CXX="$p"
19567 else
19568 postdep_objects_CXX="$postdep_objects_CXX $p"
19569 fi
19570 fi
19571 ;;
19572
19573 *) ;; # Ignore the rest.
19574
19575 esac
19576 done
19577
19578 # Clean up.
19579 rm -f a.out
19580else
19581 echo "libtool.m4: error: problem compiling C++ test program"
19582fi
19583
19584$rm -f confest.$objext
19585
19586case " $postdeps_CXX " in
19587*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19588*) archive_cmds_need_lc_CXX=yes ;;
19589esac
19590
19591GCC_CXX="$GXX"
19592LD_CXX="$LD"
19593
19594lt_prog_compiler_wl_CXX=
19595lt_prog_compiler_pic_CXX=
19596lt_prog_compiler_static_CXX=
19597
19598echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19599echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19600
19601 # C++ specific cases for pic, static, wl, etc.
19602 if test "$GXX" = yes; then
19603 lt_prog_compiler_wl_CXX='-Wl,'
19604 lt_prog_compiler_static_CXX='-static'
19605
19606 case $host_os in
19607 aix*)
19608 # All AIX code is PIC.
19609 if test "$host_cpu" = ia64; then
19610 # AIX 5 now supports IA64 processor
19611 lt_prog_compiler_static_CXX='-Bstatic'
19612 fi
19613 ;;
19614 amigaos*)
19615 # FIXME: we need at least 68020 code to build shared libraries, but
19616 # adding the `-m68020' flag to GCC prevents building anything better,
19617 # like `-m68040'.
19618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19619 ;;
19620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19621 # PIC is the default for these OSes.
19622 ;;
19623 cygwin* | mingw* | os2*)
19624 # This hack is so that the source file can tell whether it is being
19625 # built for inclusion in a dll (and should export symbols for example).
19626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19627 ;;
19628 darwin* | rhapsody*)
19629 # PIC is the default on this platform
19630 # Common symbols not allowed in MH_DYLIB files
19631 lt_prog_compiler_pic_CXX='-fno-common'
19632 ;;
19633 *djgpp*)
19634 # DJGPP does not support shared libraries at all
19635 lt_prog_compiler_pic_CXX=
19636 ;;
19637 sysv4*MP*)
19638 if test -d /usr/nec; then
19639 lt_prog_compiler_pic_CXX=-Kconform_pic
19640 fi
19641 ;;
19642 hpux*)
19643 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
19644 if test "$host_cpu" != ia64; then
19645 lt_prog_compiler_pic_CXX='-fPIC'
19646 fi
19647 ;;
19648 *)
19649 lt_prog_compiler_pic_CXX='-fPIC'
19650 ;;
19651 esac
19652 else
19653 case $host_os in
19654 aix4* | aix5*)
19655 # All AIX code is PIC.
19656 if test "$host_cpu" = ia64; then
19657 # AIX 5 now supports IA64 processor
19658 lt_prog_compiler_static_CXX='-Bstatic'
19659 else
19660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19661 fi
19662 ;;
19663 chorus*)
19664 case $cc_basename in
19665 cxch68)
19666 # Green Hills C++ Compiler
19667 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19668 ;;
19669 esac
19670 ;;
19671 dgux*)
19672 case $cc_basename in
19673 ec++)
19674 lt_prog_compiler_pic_CXX='-KPIC'
19675 ;;
19676 ghcx)
19677 # Green Hills C++ Compiler
19678 lt_prog_compiler_pic_CXX='-pic'
19679 ;;
19680 *)
19681 ;;
19682 esac
19683 ;;
19684 freebsd*)
19685 # FreeBSD uses GNU C++
19686 ;;
19687 hpux9* | hpux10* | hpux11*)
19688 case $cc_basename in
19689 CC)
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19692 if test "$host_cpu" != ia64; then
19693 lt_prog_compiler_pic_CXX='+Z'
19694 fi
19695 ;;
19696 aCC)
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19699 if test "$host_cpu" != ia64; then
19700 lt_prog_compiler_pic_CXX='+Z'
19701 fi
19702 ;;
19703 *)
19704 ;;
19705 esac
19706 ;;
19707 irix5* | irix6* | nonstopux*)
19708 case $cc_basename in
19709 CC)
19710 lt_prog_compiler_wl_CXX='-Wl,'
19711 lt_prog_compiler_static_CXX='-non_shared'
19712 # CC pic flag -KPIC is the default.
19713 ;;
19714 *)
19715 ;;
19716 esac
19717 ;;
19718 linux*)
19719 case $cc_basename in
19720 KCC)
19721 # KAI C++ Compiler
19722 lt_prog_compiler_wl_CXX='--backend -Wl,'
19723 lt_prog_compiler_pic_CXX='-fPIC'
19724 ;;
19725 cxx)
19726 # Compaq C++
19727 # Make sure the PIC flag is empty. It appears that all Alpha
19728 # Linux and Compaq Tru64 Unix objects are PIC.
19729 lt_prog_compiler_pic_CXX=
19730 lt_prog_compiler_static_CXX='-non_shared'
19731 ;;
19732 *)
19733 ;;
19734 esac
19735 ;;
19736 lynxos*)
19737 ;;
19738 m88k*)
19739 ;;
19740 mvs*)
19741 case $cc_basename in
19742 cxx)
19743 lt_prog_compiler_pic_CXX='-W c,exportall'
19744 ;;
19745 *)
19746 ;;
19747 esac
19748 ;;
19749 netbsd*)
19750 ;;
19751 osf3* | osf4* | osf5*)
19752 case $cc_basename in
19753 KCC)
19754 lt_prog_compiler_wl_CXX='--backend -Wl,'
19755 ;;
19756 RCC)
19757 # Rational C++ 2.4.1
19758 lt_prog_compiler_pic_CXX='-pic'
19759 ;;
19760 cxx)
19761 # Digital/Compaq C++
19762 lt_prog_compiler_wl_CXX='-Wl,'
19763 # Make sure the PIC flag is empty. It appears that all Alpha
19764 # Linux and Compaq Tru64 Unix objects are PIC.
19765 lt_prog_compiler_pic_CXX=
19766 lt_prog_compiler_static_CXX='-non_shared'
19767 ;;
19768 *)
19769 ;;
19770 esac
19771 ;;
19772 psos*)
19773 ;;
19774 sco*)
19775 case $cc_basename in
19776 CC)
19777 lt_prog_compiler_pic_CXX='-fPIC'
19778 ;;
19779 *)
19780 ;;
19781 esac
19782 ;;
19783 solaris*)
19784 case $cc_basename in
19785 CC)
19786 # Sun C++ 4.2, 5.x and Centerline C++
19787 lt_prog_compiler_pic_CXX='-KPIC'
19788 lt_prog_compiler_static_CXX='-Bstatic'
19789 lt_prog_compiler_wl_CXX='-Qoption ld '
19790 ;;
19791 gcx)
19792 # Green Hills C++ Compiler
19793 lt_prog_compiler_pic_CXX='-PIC'
19794 ;;
19795 *)
19796 ;;
19797 esac
19798 ;;
19799 sunos4*)
19800 case $cc_basename in
19801 CC)
19802 # Sun C++ 4.x
19803 lt_prog_compiler_pic_CXX='-pic'
19804 lt_prog_compiler_static_CXX='-Bstatic'
19805 ;;
19806 lcc)
19807 # Lucid
19808 lt_prog_compiler_pic_CXX='-pic'
19809 ;;
19810 *)
19811 ;;
19812 esac
19813 ;;
19814 tandem*)
19815 case $cc_basename in
19816 NCC)
19817 # NonStop-UX NCC 3.20
19818 lt_prog_compiler_pic_CXX='-KPIC'
19819 ;;
19820 *)
19821 ;;
19822 esac
19823 ;;
19824 unixware*)
19825 ;;
19826 vxworks*)
19827 ;;
19828 *)
19829 lt_prog_compiler_can_build_shared_CXX=no
19830 ;;
19831 esac
19832 fi
19833
19834echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19835echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
19836
19837#
19838# Check to make sure the PIC flag actually works.
19839#
19840if test -n "$lt_prog_compiler_pic_CXX"; then
19841 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19842echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
19843if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 lt_prog_compiler_pic_works_CXX=no
19847 ac_outfile=conftest.$ac_objext
19848 save_CFLAGS="$CFLAGS"
19849 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
19850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19851 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
19852 # The compiler can only warn and ignore the option if not recognized
19853 # So say no if there are warnings
19854 if test -s conftest.err; then
19855 # Append any errors to the config.log.
19856 cat conftest.err 1>&5
19857 else
19858 lt_prog_compiler_pic_works_CXX=yes
19859 fi
19860 fi
19861 $rm conftest*
19862 CFLAGS="$save_CFLAGS"
19863
19864fi
19865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19866echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
19867
19868if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19869 case $lt_prog_compiler_pic_CXX in
19870 "" | " "*) ;;
19871 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19872 esac
19873else
19874 lt_prog_compiler_pic_CXX=
19875 lt_prog_compiler_can_build_shared_CXX=no
19876fi
19877
19878fi
19879case "$host_os" in
19880 # For platforms which do not support PIC, -DPIC is meaningless:
19881 *djgpp*)
19882 lt_prog_compiler_pic_CXX=
19883 ;;
19884 *)
19885 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19886 ;;
19887esac
19888
19889echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19890echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19891if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894 lt_cv_prog_compiler_c_o_CXX=no
19895 $rm -r conftest 2>/dev/null
19896 mkdir conftest
19897 cd conftest
19898 mkdir out
19899 save_CXXFLAGS="$CXXFLAGS"
19900 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
19901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19902
19903 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19904 # that will create temporary files in the current directory regardless of
19905 # the output directory. Thus, making CWD read-only will cause this test
19906 # to fail, enabling locking or at least warning the user not to do parallel
19907 # builds.
19908 chmod -w .
19909
19910 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
19911 then
19912 # The compiler can only warn and ignore the option if not recognized
19913 # So say no if there are warnings
19914 if test -s out/conftest.err; then
19915 # Append any errors to the config.log.
19916 cat out/conftest.err 1>&5
19917 else
19918 lt_cv_prog_compiler_c_o_CXX=yes
19919 fi
19920 fi
19921 CXXFLAGS="$save_CXXFLAGS"
19922 chmod u+w .
19923 $rm conftest* out/*
19924 rmdir out
19925 cd ..
19926 rmdir conftest
19927 $rm conftest*
19928
19929fi
19930echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19931echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
19932
19933
19934hard_links="nottested"
19935if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19936 # do not overwrite the value of need_locks provided by the user
19937 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19938echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19939 hard_links=yes
19940 $rm conftest*
19941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19942 touch conftest.a
19943 ln conftest.a conftest.b 2>&5 || hard_links=no
19944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19945 echo "$as_me:$LINENO: result: $hard_links" >&5
19946echo "${ECHO_T}$hard_links" >&6
19947 if test "$hard_links" = no; then
19948 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19949echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19950 need_locks=warn
19951 fi
19952else
19953 need_locks=no
19954fi
19955
19956echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19957echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19958
19959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
19960 case $host_os in
19961 aix4* | aix5*)
19962 # If we're using GNU nm, then we don't want the "-C" option.
19963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19964 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
19965 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19966 else
19967 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19968 fi
19969 ;;
19970 cygwin* | mingw* | pw32*)
19971 export_symbols_cmds_CXX="$ltdll_cmds"
19972 ;;
19973 *)
19974 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
19975 ;;
19976 esac
19977
19978echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19979echo "${ECHO_T}$ld_shlibs_CXX" >&6
19980test "$ld_shlibs_CXX" = no && can_build_shared=no
19981
19982variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19983if test "$GCC" = yes; then
19984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19985fi
19986
19987#
19988# Do we need to explicitly link libc?
19989#
19990archive_cmds_need_lc_CXX=yes
19991if test "$enable_shared" = yes && test "$GCC" = yes; then
19992 case $archive_cmds_CXX in
19993 *'~'*)
19994 # FIXME: we may have to deal with multi-command sequences.
19995 ;;
19996 '$CC '*)
19997 # Test whether the compiler implicitly links with -lc since on some
19998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19999 # to ld, don't add -lc before -lgcc.
20000 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20002 $rm conftest*
20003 echo 'static int dummy;' > conftest.$ac_ext
20004
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } 2>conftest.err; then
20010 soname=conftest
20011 lib=conftest
20012 libobjs=conftest.$ac_objext
20013 deplibs=
20014 wl=$lt_prog_compiler_wl_CXX
20015 compiler_flags=-v
20016 linker_flags=-v
20017 verstring=
20018 output_objdir=.
20019 libname=conftest
20020 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20021 allow_undefined_flag_CXX=
20022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20023 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }
20027 then
20028 archive_cmds_need_lc_CXX=no
20029 else
20030 archive_cmds_need_lc_CXX=yes
20031 fi
20032 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20033 else
20034 cat conftest.err 1>&5
20035 fi
20036 $rm conftest*
20037 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20038echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20039 ;;
20040 esac
20041fi
20042
20043echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20044echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20045hardcode_action_CXX=
20046if test -n "$hardcode_libdir_flag_spec_CXX" || \
20047 test -n "$runpath_var CXX"; then
20048
20049 # We can hardcode non-existant directories.
20050 if test "$hardcode_direct_CXX" != no &&
20051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20052 # have to relink, otherwise we might link with an installed library
20053 # when we should be linking with a yet-to-be-installed one
20054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20055 test "$hardcode_minus_L_CXX" != no; then
20056 # Linking always hardcodes the temporary library directory.
20057 hardcode_action_CXX=relink
20058 else
20059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20060 hardcode_action_CXX=immediate
20061 fi
20062else
20063 # We cannot hardcode anything, or else we can only hardcode existing
20064 # directories.
20065 hardcode_action_CXX=unsupported
20066fi
20067echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20068echo "${ECHO_T}$hardcode_action_CXX" >&6
20069
20070if test "$hardcode_action_CXX" = relink; then
20071 # Fast installation is not supported
20072 enable_fast_install=no
20073elif test "$shlibpath_overrides_runpath" = yes ||
20074 test "$enable_shared" = no; then
20075 # Fast installation is not necessary
20076 enable_fast_install=needless
20077fi
20078
20079striplib=
20080old_striplib=
20081echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20082echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20083if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20086 echo "$as_me:$LINENO: result: yes" >&5
20087echo "${ECHO_T}yes" >&6
20088else
20089 echo "$as_me:$LINENO: result: no" >&5
20090echo "${ECHO_T}no" >&6
20091fi
20092
20093echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20094echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20095library_names_spec=
20096libname_spec='lib$name'
20097soname_spec=
20098postinstall_cmds=
20099postuninstall_cmds=
20100finish_cmds=
20101finish_eval=
20102shlibpath_var=
20103shlibpath_overrides_runpath=unknown
20104version_type=none
20105dynamic_linker="$host_os ld.so"
20106sys_lib_dlsearch_path_spec="/lib /usr/lib"
20107sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20108need_lib_prefix=unknown
20109hardcode_into_libs=no
20110
20111# when you set need_version to no, make sure it does not cause -set_version
20112# flags to be left without arguments
20113need_version=unknown
20114
20115case $host_os in
20116aix3*)
20117 version_type=linux
20118 library_names_spec='${libname}${release}.so$versuffix $libname.a'
20119 shlibpath_var=LIBPATH
20120
20121 # AIX 3 has no versioning support, so we append a major version to the name.
20122 soname_spec='${libname}${release}.so$major'
20123 ;;
20124
20125aix4* | aix5*)
20126 version_type=linux
20127 if test "$host_cpu" = ia64; then
20128 # AIX 5 supports IA64
20129 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
20130 shlibpath_var=LD_LIBRARY_PATH
20131 else
20132 # With GCC up to 2.95.x, collect2 would create an import file
20133 # for dependence libraries. The import file would start with
20134 # the line `#! .'. This would cause the generated library to
20135 # depend on `.', always an invalid library. This was fixed in
20136 # development snapshots of GCC prior to 3.0.
20137 case $host_os in
20138 aix4 | aix4.[01] | aix4.[01].*)
20139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20140 echo ' yes '
20141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20142 :
20143 else
20144 can_build_shared=no
20145 fi
20146 ;;
20147 esac
20148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20149 # soname into executable. Probably we can add versioning support to
20150 # collect2, so additional links can be useful in future.
20151 if test "$aix_use_runtimelinking" = yes; then
20152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20153 # instead of lib<name>.a to let people know that these are not
20154 # typical AIX shared libraries.
20155 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20156 else
20157 # We preserve .a as extension for shared libraries through AIX4.2
20158 # and later when we are not doing run time linking.
20159 library_names_spec='${libname}${release}.a $libname.a'
20160 soname_spec='${libname}${release}.so$major'
20161 fi
20162 shlibpath_var=LIBPATH
20163 fi
20164 ;;
20165
20166amigaos*)
20167 library_names_spec='$libname.ixlibrary $libname.a'
20168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20169 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
20170 ;;
20171
20172beos*)
20173 library_names_spec='${libname}.so'
20174 dynamic_linker="$host_os ld.so"
20175 shlibpath_var=LIBRARY_PATH
20176 ;;
20177
20178bsdi4*)
20179 version_type=linux
20180 need_version=no
20181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20182 soname_spec='${libname}${release}.so$major'
20183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20187 # the default ld.so.conf also contains /usr/contrib/lib and
20188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20189 # libtool to hard-code these into programs
20190 ;;
20191
20192cygwin* | mingw* | pw32*)
20193 version_type=windows
20194 need_version=no
20195 need_lib_prefix=no
20196 case $GCC,$host_os in
20197 yes,cygwin*)
20198 library_names_spec='$libname.dll.a'
20199 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
20200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20201 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
20202 dldir=$destdir/`dirname \$dlpath`~
20203 test -d \$dldir || mkdir -p \$dldir~
20204 $install_prog .libs/$dlname \$dldir/$dlname'
20205 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
20206 dlpath=$dir/\$dldll~
20207 $rm \$dlpath'
20208 ;;
20209 yes,mingw*)
20210 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
20212 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
20213 # It is most probably a Windows format PATH printed by
20214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20215 # path with ; separators, and with drive letters. We can handle the
20216 # drive letters (cygwin fileutils understands them), so leave them,
20217 # especially as we might pass files found there to a mingw objdump,
20218 # which wouldn't understand a cygwinified path. Ahh.
20219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
20220 else
20221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
20222 fi
20223 ;;
20224 yes,pw32*)
20225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
20226 ;;
20227 *)
20228 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
20229 ;;
20230 esac
20231 dynamic_linker='Win32 ld.exe'
20232 # FIXME: first we should search . and the directory the executable is in
20233 shlibpath_var=PATH
20234 ;;
20235
20236darwin* | rhapsody*)
20237 dynamic_linker="$host_os dyld"
20238 version_type=darwin
20239 need_lib_prefix=no
20240 need_version=no
20241 # FIXME: Relying on posixy $() will cause problems for
20242 # cross-compilation, but unfortunately the echo tests do not
20243 # yet detect zsh echo's removal of \ escapes.
20244 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
20245 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
20246 shlibpath_overrides_runpath=yes
20247 shlibpath_var=DYLD_LIBRARY_PATH
20248 ;;
20249
20250dgux*)
20251 version_type=linux
20252 need_lib_prefix=no
20253 need_version=no
20254 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20255 soname_spec='${libname}${release}.so$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 ;;
20258
20259freebsd1*)
20260 dynamic_linker=no
20261 ;;
20262
20263freebsd*)
20264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20265 version_type=freebsd-$objformat
20266 case $version_type in
20267 freebsd-elf*)
20268 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20269 need_version=no
20270 need_lib_prefix=no
20271 ;;
20272 freebsd-*)
20273 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
20274 need_version=yes
20275 ;;
20276 esac
20277 shlibpath_var=LD_LIBRARY_PATH
20278 case $host_os in
20279 freebsd2*)
20280 shlibpath_overrides_runpath=yes
20281 ;;
20282 freebsd3.01* | freebsdelf3.01*)
20283 shlibpath_overrides_runpath=yes
20284 hardcode_into_libs=yes
20285 ;;
20286 *) # from 3.2 on
20287 shlibpath_overrides_runpath=no
20288 hardcode_into_libs=yes
20289 ;;
20290 esac
20291 ;;
20292
20293gnu*)
20294 version_type=linux
20295 need_lib_prefix=no
20296 need_version=no
20297 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
20298 soname_spec='${libname}${release}.so$major'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 hardcode_into_libs=yes
20301 ;;
20302
20303hpux9* | hpux10* | hpux11*)
20304 # Give a soname corresponding to the major version so that dld.sl refuses to
20305 # link against other versions.
20306 version_type=sunos
20307 need_lib_prefix=no
20308 need_version=no
20309 if test "$host_cpu" = ia64; then
20310 hardcode_into_libs=yes
20311 dynamic_linker="$host_os dld.so"
20312 shlibpath_var=LD_LIBRARY_PATH
20313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20315 soname_spec='${libname}${release}.so$major'
20316 if test "X$HPUX_IA64_MODE" = X32; then
20317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20318 else
20319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20320 fi
20321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20322 else
20323 dynamic_linker="$host_os dld.sl"
20324 shlibpath_var=SHLIB_PATH
20325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20326 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
20327 soname_spec='${libname}${release}.sl$major'
20328 fi
20329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20330 postinstall_cmds='chmod 555 $lib'
20331 ;;
20332
20333irix5* | irix6* | nonstopux*)
20334 case $host_os in
20335 nonstopux*) version_type=nonstopux ;;
20336 *) version_type=irix ;;
20337 esac
20338 need_lib_prefix=no
20339 need_version=no
20340 soname_spec='${libname}${release}.so$major'
20341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
20342 case $host_os in
20343 irix5* | nonstopux*)
20344 libsuff= shlibsuff=
20345 ;;
20346 *)
20347 case $LD in # libtool.m4 will add one of these switches to LD
20348 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
20349 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
20350 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
20351 *) libsuff= shlibsuff= libmagic=never-match;;
20352 esac
20353 ;;
20354 esac
20355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20356 shlibpath_overrides_runpath=no
20357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20359 ;;
20360
20361# No shared lib support for Linux oldld, aout, or coff.
20362linux*oldld* | linux*aout* | linux*coff*)
20363 dynamic_linker=no
20364 ;;
20365
20366# This must be Linux ELF.
20367linux*)
20368 version_type=linux
20369 need_lib_prefix=no
20370 need_version=no
20371 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20372 soname_spec='${libname}${release}.so$major'
20373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20374 libsuff=
20375 if test "x$LINUX_64_MODE" = x64; then
20376 # Some platforms are per default 64-bit, so there's no /lib64
20377 if test -d /lib64; then
20378 libsuff=64
20379 fi
20380 fi
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=no
20383 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20384 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20385 # This implies no fast_install, which is unacceptable.
20386 # Some rework will be needed to allow for fast_install
20387 # before this can be enabled.
20388 hardcode_into_libs=yes
20389
20390 # We used to test for /lib/ld.so.1 and disable shared libraries on
20391 # powerpc, because MkLinux only supported shared libraries with the
20392 # GNU dynamic linker. Since this was broken with cross compilers,
20393 # most powerpc-linux boxes support dynamic linking these days and
20394 # people can always --disable-shared, the test was removed, and we
20395 # assume the GNU/Linux dynamic linker is in use.
20396 dynamic_linker='GNU/Linux ld.so'
20397 ;;
20398
20399netbsd*)
20400 version_type=sunos
20401 need_lib_prefix=no
20402 need_version=no
20403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20404 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20406 dynamic_linker='NetBSD (a.out) ld.so'
20407 else
20408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
20409 soname_spec='${libname}${release}.so$major'
20410 dynamic_linker='NetBSD ld.elf_so'
20411 fi
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=yes
20414 hardcode_into_libs=yes
20415 ;;
20416
20417newsos6)
20418 version_type=linux
20419 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 shlibpath_overrides_runpath=yes
20422 ;;
20423
20424nto-qnx)
20425 version_type=linux
20426 need_lib_prefix=no
20427 need_version=no
20428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20429 soname_spec='${libname}${release}.so$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 shlibpath_overrides_runpath=yes
20432 ;;
20433
20434openbsd*)
20435 version_type=sunos
20436 need_lib_prefix=no
20437 need_version=no
20438 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20442 case $host_os in
20443 openbsd2.[89] | openbsd2.[89].*)
20444 shlibpath_overrides_runpath=no
20445 ;;
20446 *)
20447 shlibpath_overrides_runpath=yes
20448 ;;
20449 esac
20450 else
20451 shlibpath_overrides_runpath=yes
20452 fi
20453 ;;
20454
20455os2*)
20456 libname_spec='$name'
20457 need_lib_prefix=no
20458 library_names_spec='$libname.dll $libname.a'
20459 dynamic_linker='OS/2 ld.exe'
20460 shlibpath_var=LIBPATH
20461 ;;
20462
20463osf3* | osf4* | osf5*)
20464 version_type=osf
20465 need_lib_prefix=no
20466 need_version=no
20467 soname_spec='${libname}${release}.so'
20468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20472 ;;
20473
20474sco3.2v5*)
20475 version_type=osf
20476 soname_spec='${libname}${release}.so$major'
20477 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20478 shlibpath_var=LD_LIBRARY_PATH
20479 ;;
20480
20481solaris*)
20482 version_type=linux
20483 need_lib_prefix=no
20484 need_version=no
20485 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20486 soname_spec='${libname}${release}.so$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 hardcode_into_libs=yes
20490 # ldd complains unless libraries are executable
20491 postinstall_cmds='chmod +x $lib'
20492 ;;
20493
20494sunos4*)
20495 version_type=sunos
20496 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20500 if test "$with_gnu_ld" = yes; then
20501 need_lib_prefix=no
20502 fi
20503 need_version=yes
20504 ;;
20505
20506sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20507 version_type=linux
20508 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20509 soname_spec='${libname}${release}.so$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 case $host_vendor in
20512 sni)
20513 shlibpath_overrides_runpath=no
20514 ;;
20515 motorola)
20516 need_lib_prefix=no
20517 need_version=no
20518 shlibpath_overrides_runpath=no
20519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20520 ;;
20521 esac
20522 ;;
20523
20524sysv4*MP*)
20525 if test -d /usr/nec ;then
20526 version_type=linux
20527 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
20528 soname_spec='$libname.so.$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 fi
20531 ;;
20532
20533uts4*)
20534 version_type=linux
20535 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20536 soname_spec='${libname}${release}.so$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 ;;
20539
20540*)
20541 dynamic_linker=no
20542 ;;
20543esac
20544echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20545echo "${ECHO_T}$dynamic_linker" >&6
20546test "$dynamic_linker" = no && can_build_shared=no
20547
20548if test "x$enable_dlopen" != xyes; then
20549 enable_dlopen=unknown
20550 enable_dlopen_self=unknown
20551 enable_dlopen_self_static=unknown
20552else
20553 lt_cv_dlopen=no
20554 lt_cv_dlopen_libs=
20555
20556 case $host_os in
20557 beos*)
20558 lt_cv_dlopen="load_add_on"
20559 lt_cv_dlopen_libs=
20560 lt_cv_dlopen_self=yes
20561 ;;
20562
20563 cygwin* | mingw* | pw32*)
20564 lt_cv_dlopen="LoadLibrary"
20565 lt_cv_dlopen_libs=
20566 ;;
20567
20568 *)
20569 echo "$as_me:$LINENO: checking for shl_load" >&5
20570echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20571if test "${ac_cv_func_shl_load+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573else
20574 cat >conftest.$ac_ext <<_ACEOF
20575#line $LINENO "configure"
20576#include "confdefs.h"
20577/* System header to define __stub macros and hopefully few prototypes,
20578 which can conflict with char shl_load (); below. */
20579#include <assert.h>
20580/* Override any gcc2 internal prototype to avoid an error. */
20581#ifdef __cplusplus
20582extern "C"
20583#endif
20584/* We use char because int might match the return type of a gcc2
20585 builtin and then its argument prototype would still apply. */
20586char shl_load ();
20587char (*f) ();
20588
20589#ifdef F77_DUMMY_MAIN
20590# ifdef __cplusplus
20591 extern "C"
20592# endif
20593 int F77_DUMMY_MAIN() { return 1; }
20594#endif
20595int
20596main ()
20597{
20598/* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601#if defined (__stub_shl_load) || defined (__stub___shl_load)
20602choke me
20603#else
20604f = shl_load;
20605#endif
20606
20607 ;
20608 return 0;
20609}
20610_ACEOF
20611rm -f conftest.$ac_objext conftest$ac_exeext
20612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_func_shl_load=yes
20624else
20625 echo "$as_me: failed program was:" >&5
20626cat conftest.$ac_ext >&5
20627ac_cv_func_shl_load=no
20628fi
20629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20630fi
20631echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20632echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20633if test $ac_cv_func_shl_load = yes; then
20634 lt_cv_dlopen="shl_load"
20635else
20636 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20637echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20638if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640else
20641 ac_check_lib_save_LIBS=$LIBS
20642LIBS="-ldld $LIBS"
20643cat >conftest.$ac_ext <<_ACEOF
20644#line $LINENO "configure"
20645#include "confdefs.h"
20646
20647/* Override any gcc2 internal prototype to avoid an error. */
20648#ifdef __cplusplus
20649extern "C"
20650#endif
20651/* We use char because int might match the return type of a gcc2
20652 builtin and then its argument prototype would still apply. */
20653char shl_load ();
20654#ifdef F77_DUMMY_MAIN
20655# ifdef __cplusplus
20656 extern "C"
20657# endif
20658 int F77_DUMMY_MAIN() { return 1; }
20659#endif
20660int
20661main ()
20662{
20663shl_load ();
20664 ;
20665 return 0;
20666}
20667_ACEOF
20668rm -f conftest.$ac_objext conftest$ac_exeext
20669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
20674 { ac_try='test -s conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_lib_dld_shl_load=yes
20681else
20682 echo "$as_me: failed program was:" >&5
20683cat conftest.$ac_ext >&5
20684ac_cv_lib_dld_shl_load=no
20685fi
20686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20687LIBS=$ac_check_lib_save_LIBS
20688fi
20689echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20690echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20691if test $ac_cv_lib_dld_shl_load = yes; then
20692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20693else
20694 echo "$as_me:$LINENO: checking for dlopen" >&5
20695echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20696if test "${ac_cv_func_dlopen+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699 cat >conftest.$ac_ext <<_ACEOF
20700#line $LINENO "configure"
20701#include "confdefs.h"
20702/* System header to define __stub macros and hopefully few prototypes,
20703 which can conflict with char dlopen (); below. */
20704#include <assert.h>
20705/* Override any gcc2 internal prototype to avoid an error. */
20706#ifdef __cplusplus
20707extern "C"
20708#endif
20709/* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20711char dlopen ();
20712char (*f) ();
20713
20714#ifdef F77_DUMMY_MAIN
20715# ifdef __cplusplus
20716 extern "C"
20717# endif
20718 int F77_DUMMY_MAIN() { return 1; }
20719#endif
20720int
20721main ()
20722{
20723/* The GNU C library defines this for functions which it implements
20724 to always fail with ENOSYS. Some functions are actually named
20725 something starting with __ and the normal name is an alias. */
20726#if defined (__stub_dlopen) || defined (__stub___dlopen)
20727choke me
20728#else
20729f = dlopen;
20730#endif
20731
20732 ;
20733 return 0;
20734}
20735_ACEOF
20736rm -f conftest.$ac_objext conftest$ac_exeext
20737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20738 (eval $ac_link) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } &&
20742 { ac_try='test -s conftest$ac_exeext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_cv_func_dlopen=yes
20749else
20750 echo "$as_me: failed program was:" >&5
20751cat conftest.$ac_ext >&5
20752ac_cv_func_dlopen=no
20753fi
20754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20755fi
20756echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20757echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20758if test $ac_cv_func_dlopen = yes; then
20759 lt_cv_dlopen="dlopen"
20760else
20761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766 ac_check_lib_save_LIBS=$LIBS
20767LIBS="-ldl $LIBS"
20768cat >conftest.$ac_ext <<_ACEOF
20769#line $LINENO "configure"
20770#include "confdefs.h"
20771
20772/* Override any gcc2 internal prototype to avoid an error. */
20773#ifdef __cplusplus
20774extern "C"
20775#endif
20776/* We use char because int might match the return type of a gcc2
20777 builtin and then its argument prototype would still apply. */
20778char dlopen ();
20779#ifdef F77_DUMMY_MAIN
20780# ifdef __cplusplus
20781 extern "C"
20782# endif
20783 int F77_DUMMY_MAIN() { return 1; }
20784#endif
20785int
20786main ()
20787{
20788dlopen ();
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795 (eval $ac_link) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -s conftest$ac_exeext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_cv_lib_dl_dlopen=yes
20806else
20807 echo "$as_me: failed program was:" >&5
20808cat conftest.$ac_ext >&5
20809ac_cv_lib_dl_dlopen=no
20810fi
20811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20812LIBS=$ac_check_lib_save_LIBS
20813fi
20814echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20816if test $ac_cv_lib_dl_dlopen = yes; then
20817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20818else
20819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20820echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20821if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824 ac_check_lib_save_LIBS=$LIBS
20825LIBS="-lsvld $LIBS"
20826cat >conftest.$ac_ext <<_ACEOF
20827#line $LINENO "configure"
20828#include "confdefs.h"
20829
20830/* Override any gcc2 internal prototype to avoid an error. */
20831#ifdef __cplusplus
20832extern "C"
20833#endif
20834/* We use char because int might match the return type of a gcc2
20835 builtin and then its argument prototype would still apply. */
20836char dlopen ();
20837#ifdef F77_DUMMY_MAIN
20838# ifdef __cplusplus
20839 extern "C"
20840# endif
20841 int F77_DUMMY_MAIN() { return 1; }
20842#endif
20843int
20844main ()
20845{
20846dlopen ();
20847 ;
20848 return 0;
20849}
20850_ACEOF
20851rm -f conftest.$ac_objext conftest$ac_exeext
20852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853 (eval $ac_link) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -s conftest$ac_exeext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_cv_lib_svld_dlopen=yes
20864else
20865 echo "$as_me: failed program was:" >&5
20866cat conftest.$ac_ext >&5
20867ac_cv_lib_svld_dlopen=no
20868fi
20869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20870LIBS=$ac_check_lib_save_LIBS
20871fi
20872echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20873echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20874if test $ac_cv_lib_svld_dlopen = yes; then
20875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20876else
20877 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20878echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20879if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20881else
20882 ac_check_lib_save_LIBS=$LIBS
20883LIBS="-ldld $LIBS"
20884cat >conftest.$ac_ext <<_ACEOF
20885#line $LINENO "configure"
20886#include "confdefs.h"
20887
20888/* Override any gcc2 internal prototype to avoid an error. */
20889#ifdef __cplusplus
20890extern "C"
20891#endif
20892/* We use char because int might match the return type of a gcc2
20893 builtin and then its argument prototype would still apply. */
20894char dld_link ();
20895#ifdef F77_DUMMY_MAIN
20896# ifdef __cplusplus
20897 extern "C"
20898# endif
20899 int F77_DUMMY_MAIN() { return 1; }
20900#endif
20901int
20902main ()
20903{
20904dld_link ();
20905 ;
20906 return 0;
20907}
20908_ACEOF
20909rm -f conftest.$ac_objext conftest$ac_exeext
20910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -s conftest$ac_exeext'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 ac_cv_lib_dld_dld_link=yes
20922else
20923 echo "$as_me: failed program was:" >&5
20924cat conftest.$ac_ext >&5
20925ac_cv_lib_dld_dld_link=no
20926fi
20927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20928LIBS=$ac_check_lib_save_LIBS
20929fi
20930echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20931echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20932if test $ac_cv_lib_dld_dld_link = yes; then
20933 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20934fi
20935
20936
20937fi
20938
20939
20940fi
20941
20942
20943fi
20944
20945
20946fi
20947
20948
20949fi
20950
20951 ;;
20952 esac
20953
20954 if test "x$lt_cv_dlopen" != xno; then
20955 enable_dlopen=yes
20956 else
20957 enable_dlopen=no
20958 fi
20959
20960 case $lt_cv_dlopen in
20961 dlopen)
20962 save_CPPFLAGS="$CPPFLAGS"
20963 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20964
20965 save_LDFLAGS="$LDFLAGS"
20966 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20967
20968 save_LIBS="$LIBS"
20969 LIBS="$lt_cv_dlopen_libs $LIBS"
20970
20971 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20972echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20973if test "${lt_cv_dlopen_self+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975else
20976 if test "$cross_compiling" = yes; then :
20977 lt_cv_dlopen_self=cross
20978else
20979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20980 lt_status=$lt_dlunknown
20981 cat > conftest.$ac_ext <<EOF
20982#line 20982 "configure"
20983#include "confdefs.h"
20984
20985#if HAVE_DLFCN_H
20986#include <dlfcn.h>
20987#endif
20988
20989#include <stdio.h>
20990
20991#ifdef RTLD_GLOBAL
20992# define LT_DLGLOBAL RTLD_GLOBAL
20993#else
20994# ifdef DL_GLOBAL
20995# define LT_DLGLOBAL DL_GLOBAL
20996# else
20997# define LT_DLGLOBAL 0
20998# endif
20999#endif
21000
21001/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21002 find out it does not work in some platform. */
21003#ifndef LT_DLLAZY_OR_NOW
21004# ifdef RTLD_LAZY
21005# define LT_DLLAZY_OR_NOW RTLD_LAZY
21006# else
21007# ifdef DL_LAZY
21008# define LT_DLLAZY_OR_NOW DL_LAZY
21009# else
21010# ifdef RTLD_NOW
21011# define LT_DLLAZY_OR_NOW RTLD_NOW
21012# else
21013# ifdef DL_NOW
21014# define LT_DLLAZY_OR_NOW DL_NOW
21015# else
21016# define LT_DLLAZY_OR_NOW 0
21017# endif
21018# endif
21019# endif
21020# endif
21021#endif
21022
21023#ifdef __cplusplus
21024extern "C" void exit (int);
21025#endif
21026
21027void fnord() { int i=42;}
21028int main ()
21029{
21030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21031 int status = $lt_dlunknown;
21032
21033 if (self)
21034 {
21035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21037 /* dlclose (self); */
21038 }
21039
21040 exit (status);
21041}
21042EOF
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21048 (./conftest; exit; ) 2>/dev/null
21049 lt_status=$?
21050 case x$lt_status in
21051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21053 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21054 esac
21055 else :
21056 # compilation failed
21057 lt_cv_dlopen_self=no
21058 fi
21059fi
21060rm -fr conftest*
21061
21062
21063fi
21064echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21065echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21066
21067 if test "x$lt_cv_dlopen_self" = xyes; then
21068 LDFLAGS="$LDFLAGS $link_static_flag"
21069 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21070echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21071if test "${lt_cv_dlopen_self_static+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074 if test "$cross_compiling" = yes; then :
21075 lt_cv_dlopen_self_static=cross
21076else
21077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21078 lt_status=$lt_dlunknown
21079 cat > conftest.$ac_ext <<EOF
21080#line 21080 "configure"
21081#include "confdefs.h"
21082
21083#if HAVE_DLFCN_H
21084#include <dlfcn.h>
21085#endif
21086
21087#include <stdio.h>
21088
21089#ifdef RTLD_GLOBAL
21090# define LT_DLGLOBAL RTLD_GLOBAL
21091#else
21092# ifdef DL_GLOBAL
21093# define LT_DLGLOBAL DL_GLOBAL
21094# else
21095# define LT_DLGLOBAL 0
21096# endif
21097#endif
21098
21099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21100 find out it does not work in some platform. */
21101#ifndef LT_DLLAZY_OR_NOW
21102# ifdef RTLD_LAZY
21103# define LT_DLLAZY_OR_NOW RTLD_LAZY
21104# else
21105# ifdef DL_LAZY
21106# define LT_DLLAZY_OR_NOW DL_LAZY
21107# else
21108# ifdef RTLD_NOW
21109# define LT_DLLAZY_OR_NOW RTLD_NOW
21110# else
21111# ifdef DL_NOW
21112# define LT_DLLAZY_OR_NOW DL_NOW
21113# else
21114# define LT_DLLAZY_OR_NOW 0
21115# endif
21116# endif
21117# endif
21118# endif
21119#endif
21120
21121#ifdef __cplusplus
21122extern "C" void exit (int);
21123#endif
21124
21125void fnord() { int i=42;}
21126int main ()
21127{
21128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21129 int status = $lt_dlunknown;
21130
21131 if (self)
21132 {
21133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21135 /* dlclose (self); */
21136 }
21137
21138 exit (status);
21139}
21140EOF
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142 (eval $ac_link) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21146 (./conftest; exit; ) 2>/dev/null
21147 lt_status=$?
21148 case x$lt_status in
21149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21151 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21152 esac
21153 else :
21154 # compilation failed
21155 lt_cv_dlopen_self_static=no
21156 fi
21157fi
21158rm -fr conftest*
21159
21160
21161fi
21162echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21163echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21164 fi
21165
21166 CPPFLAGS="$save_CPPFLAGS"
21167 LDFLAGS="$save_LDFLAGS"
21168 LIBS="$save_LIBS"
21169 ;;
21170 esac
21171
21172 case $lt_cv_dlopen_self in
21173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21174 *) enable_dlopen_self=unknown ;;
21175 esac
21176
21177 case $lt_cv_dlopen_self_static in
21178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21179 *) enable_dlopen_self_static=unknown ;;
21180 esac
21181fi
21182
21183
21184# The else clause should only fire when bootstrapping the
21185# libtool distribution, otherwise you forgot to ship ltmain.sh
21186# with your package, and you will get complaints that there are
21187# no rules to generate ltmain.sh.
21188if test -f "$ltmain"; then
21189 # Now quote all the things that may contain metacharacters while being
21190 # careful not to overquote the AC_SUBSTed values. We take copies of the
21191 # variables and quote the copies for generation of the libtool script.
21192 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
21193 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21194 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21195 deplibs_check_method reload_flag reload_cmds need_locks \
21196 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21197 lt_cv_sys_global_symbol_to_c_name_address \
21198 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21199 old_postinstall_cmds old_postuninstall_cmds \
21200 compiler_CXX \
21201 CC_CXX \
21202 LD_CXX \
21203 lt_prog_compiler_wl_CXX \
21204 lt_prog_compiler_pic_CXX \
21205 lt_prog_compiler_static_CXX \
21206 lt_prog_compiler_no_builtin_flag_CXX \
21207 export_dynamic_flag_spec_CXX \
21208 thread_safe_flag_spec_CXX \
21209 whole_archive_flag_spec_CXX \
21210 old_archive_cmds_CXX \
21211 old_archive_from_new_cmds_CXX \
21212 predep_objects_CXX \
21213 postdep_objects_CXX \
21214 predeps_CXX \
21215 postdeps_CXX \
21216 compiler_lib_search_path_CXX \
21217 archive_cmds_CXX \
21218 archive_expsym_cmds_CXX \
21219 postinstall_cmds_CXX \
21220 postuninstall_cmds_CXX \
21221 old_archive_from_expsyms_cmds_CXX \
21222 allow_undefined_flag_CXX \
21223 no_undefined_flag_CXX \
21224 export_symbols_cmds_CXX \
21225 hardcode_libdir_flag_spec_CXX \
21226 hardcode_libdir_separator_CXX \
21227 lt_cv_prog_compiler_c_o_CXX \
21228 exclude_expsyms_CXX \
21229 include_expsyms_CXX; do
21230
21231 case $var in
21232 old_archive_cmds_CXX | \
21233 old_archive_from_new_cmds_CXX | \
21234 archive_cmds_CXX | \
21235 archive_expsym_cmds_CXX | \
21236 old_archive_from_expsyms_cmds_CXX | \
21237 export_symbols_cmds_CXX | \
21238 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21239 postinstall_cmds | postuninstall_cmds | \
21240 old_postinstall_cmds | old_postuninstall_cmds | \
21241 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21242 # Double-quote double-evaled strings.
21243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21244 ;;
21245 *)
21246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21247 ;;
21248 esac
21249 done
21250
21251 case $lt_echo in
21252 *'\$0 --fallback-echo"')
21253 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21254 ;;
21255 esac
21256
21257cfgfile="$ofile"
21258
21259 cat <<__EOF__ >> "$cfgfile"
21260# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21261
21262# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21263
21264# Shell to use when invoking shell scripts.
21265SHELL=$lt_SHELL
21266
21267# Whether or not to build shared libraries.
21268build_libtool_libs=$enable_shared
21269
21270# Whether or not to build static libraries.
21271build_old_libs=$enable_static
21272
21273# Whether or not to add -lc for building shared libraries.
21274build_libtool_need_lc=$archive_cmds_need_lc_CXX
21275
21276# Whether or not to optimize for fast installation.
21277fast_install=$enable_fast_install
21278
21279# The host system.
21280host_alias=$host_alias
21281host=$host
21282
21283# An echo program that does not interpret backslashes.
21284echo=$lt_echo
21285
21286# The archiver.
21287AR=$lt_AR
21288AR_FLAGS=$lt_AR_FLAGS
21289
21290# A C compiler.
21291LTCC=$lt_LTCC
21292
21293# A language-specific compiler.
21294CC=$lt_compiler_CXX
21295
21296# Is the compiler the GNU C compiler?
21297with_gcc=$GCC_CXX
21298
21299# The linker used to build libraries.
21300LD=$lt_LD_CXX
21301
21302# Whether we need hard or soft links.
21303LN_S=$lt_LN_S
21304
21305# A BSD-compatible nm program.
21306NM=$lt_NM
21307
21308# A sed program that does not truncate output.
21309SED=$lt_SED
21310
21311# A symbol stripping program
21312STRIP=$STRIP
21313
21314# Used to examine libraries when file_magic_cmd begins "file"
21315MAGIC_CMD=$MAGIC_CMD
21316
21317# Used on cygwin: DLL creation program.
21318DLLTOOL="$DLLTOOL"
21319
21320# Used on cygwin: object dumper.
21321OBJDUMP="$OBJDUMP"
21322
21323# Used on cygwin: assembler.
21324AS="$AS"
21325
21326# The name of the directory that contains temporary libtool files.
21327objdir=$objdir
21328
21329# How to create reloadable object files.
21330reload_flag=$lt_reload_flag
21331reload_cmds=$lt_reload_cmds
21332
21333# How to pass a linker flag through the compiler.
21334wl=$lt_lt_prog_compiler_wl_CXX
21335
21336# Object file suffix (normally "o").
21337objext="$ac_objext"
21338
21339# Old archive suffix (normally "a").
21340libext="$libext"
21341
21342# Executable file suffix (normally "").
21343exeext="$exeext"
21344
21345# Additional compiler flags for building library objects.
21346pic_flag=$lt_lt_prog_compiler_pic_CXX
21347pic_mode=$pic_mode
21348
21349# What is the maximum length of a command?
21350max_cmd_len=$lt_cv_sys_max_cmd_len
21351
21352# Does compiler simultaneously support -c and -o options?
21353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21354
21355# Must we lock files when doing compilation ?
21356need_locks=$lt_need_locks
21357
21358# Do we need the lib prefix for modules?
21359need_lib_prefix=$need_lib_prefix
21360
21361# Do we need a version for libraries?
21362need_version=$need_version
21363
21364# Whether dlopen is supported.
21365dlopen_support=$enable_dlopen
21366
21367# Whether dlopen of programs is supported.
21368dlopen_self=$enable_dlopen_self
21369
21370# Whether dlopen of statically linked programs is supported.
21371dlopen_self_static=$enable_dlopen_self_static
21372
21373# Compiler flag to prevent dynamic linking.
21374link_static_flag=$lt_lt_prog_compiler_static_CXX
21375
21376# Compiler flag to turn off builtin functions.
21377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21378
21379# Compiler flag to allow reflexive dlopens.
21380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21381
21382# Compiler flag to generate shared objects directly from archives.
21383whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21384
21385# Compiler flag to generate thread-safe objects.
21386thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21387
21388# Library versioning type.
21389version_type=$version_type
21390
21391# Format of library name prefix.
21392libname_spec=$lt_libname_spec
21393
21394# List of archive names. First name is the real one, the rest are links.
21395# The last name is the one that the linker finds with -lNAME.
21396library_names_spec=$lt_library_names_spec
21397
21398# The coded name of the library, if different from the real name.
21399soname_spec=$lt_soname_spec
21400
21401# Commands used to build and install an old-style archive.
21402RANLIB=$lt_RANLIB
21403old_archive_cmds=$lt_old_archive_cmds_CXX
21404old_postinstall_cmds=$lt_old_postinstall_cmds
21405old_postuninstall_cmds=$lt_old_postuninstall_cmds
21406
21407# Create an old-style archive from a shared archive.
21408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21409
21410# Create a temporary old-style archive to link instead of a shared archive.
21411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21412
21413# Commands used to build and install a shared archive.
21414archive_cmds=$lt_archive_cmds_CXX
21415archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21416postinstall_cmds=$lt_postinstall_cmds
21417postuninstall_cmds=$lt_postuninstall_cmds
21418
21419# Commands to strip libraries.
21420old_striplib=$lt_old_striplib
21421striplib=$lt_striplib
21422
21423# Dependencies to place before the objects being linked to create a
21424# shared library.
21425predep_objects=$lt_predep_objects_CXX
21426
21427# Dependencies to place after the objects being linked to create a
21428# shared library.
21429postdep_objects=$lt_postdep_objects_CXX
21430
21431# Dependencies to place before the objects being linked to create a
21432# shared library.
21433predeps=$lt_predeps_CXX
21434
21435# Dependencies to place after the objects being linked to create a
21436# shared library.
21437postdeps=$lt_postdeps_CXX
21438
21439# The library search path used internally by the compiler when linking
21440# a shared library.
21441compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21442
21443# Method to check whether dependent libraries are shared objects.
21444deplibs_check_method=$lt_deplibs_check_method
21445
21446# Command to use when deplibs_check_method == file_magic.
21447file_magic_cmd=$lt_file_magic_cmd
21448
21449# Flag that allows shared libraries with undefined symbols to be built.
21450allow_undefined_flag=$lt_allow_undefined_flag_CXX
21451
21452# Flag that forces no undefined symbols.
21453no_undefined_flag=$lt_no_undefined_flag_CXX
21454
21455# Commands used to finish a libtool library installation in a directory.
21456finish_cmds=$lt_finish_cmds
21457
21458# Same as above, but a single script fragment to be evaled but not shown.
21459finish_eval=$lt_finish_eval
21460
21461# Take the output of nm and produce a listing of raw symbols and C names.
21462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21463
21464# Transform the output of nm in a proper C declaration
21465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21466
21467# Transform the output of nm in a C name address pair
21468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21469
21470# This is the shared library runtime path variable.
21471runpath_var=$runpath_var
21472
21473# This is the shared library path variable.
21474shlibpath_var=$shlibpath_var
21475
21476# Is shlibpath searched before the hard-coded library search path?
21477shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21478
21479# How to hardcode a shared library path into an executable.
21480hardcode_action=$hardcode_action_CXX
21481
21482# Whether we should hardcode library paths into libraries.
21483hardcode_into_libs=$hardcode_into_libs
21484
21485# Flag to hardcode \$libdir into a binary during linking.
21486# This must work even if \$libdir does not exist.
21487hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21488
21489# Whether we need a single -rpath flag with a separated argument.
21490hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21491
21492# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
21493# resulting binary.
21494hardcode_direct=$hardcode_direct_CXX
21495
21496# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21497# resulting binary.
21498hardcode_minus_L=$hardcode_minus_L_CXX
21499
21500# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21501# the resulting binary.
21502hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21503
21504# Variables whose values should be saved in libtool wrapper scripts and
21505# restored at relink time.
21506variables_saved_for_relink="$variables_saved_for_relink"
21507
21508# Whether libtool must link a program against all its dependency libraries.
21509link_all_deplibs=$link_all_deplibs_CXX
21510
21511# Compile-time system search path for libraries
21512sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21513
21514# Run-time system search path for libraries
21515sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21516
21517# Fix the shell variable \$srcfile for the compiler.
21518fix_srcfile_path="$fix_srcfile_path_CXX"
21519
21520# Set to yes if exported symbols are required.
21521always_export_symbols=$always_export_symbols_CXX
21522
21523# The commands to list exported symbols.
21524export_symbols_cmds=$lt_export_symbols_cmds_CXX
21525
21526# The commands to extract the exported symbol list from a shared archive.
21527extract_expsyms_cmds=$lt_extract_expsyms_cmds
21528
21529# Symbols that should not be listed in the preloaded symbols.
21530exclude_expsyms=$lt_exclude_expsyms_CXX
21531
21532# Symbols that must always be exported.
21533include_expsyms=$lt_include_expsyms_CXX
21534
21535# ### END LIBTOOL TAG CONFIG: $tagname
21536
21537__EOF__
21538
21539
21540else
21541 # If there is no Makefile yet, we rely on a make rule to execute
21542 # `config.status --recheck' to rerun these tests and create the
21543 # libtool script then.
21544 test -f Makefile && make "$ltmain"
21545fi
21546
21547
21548ac_ext=c
21549ac_cpp='$CPP $CPPFLAGS'
21550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21552ac_compiler_gnu=$ac_cv_c_compiler_gnu
21553
21554CC="$lt_save_CC"
21555
21556 ;;
21557
21558 GCJ)
21559
21560
21561
21562# Source file extension for C test sources.
21563ac_ext=java
21564
21565# Object file extension for compiled C test sources.
21566objext=o
21567objext_GCJ=$objext
21568
21569# Code to be used in simple compile tests
21570lt_simple_compile_test_code="class foo {}"
21571
21572# Code to be used in simple link tests
21573lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
21574
21575# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21576
21577# If no C compiler was specified, use CC.
21578LTCC=${LTCC-"$CC"}
21579
21580# Allow CC to be a program name with arguments.
21581set dummy $CC
21582compiler="$2"
21583
21584
21585# Allow CC to be a program name with arguments.
21586lt_save_CC="$CC"
21587CC=${GCJ-"gcj"}
21588set dummy $CC
21589compiler="$2"
21590compiler_GCJ=$CC
21591
21592# GCJ did not exist at the time GCC didn't implicitly link libc in.
21593archive_cmds_need_lc_GCJ=no
21594
21595
21596lt_prog_compiler_no_builtin_flag_GCJ=
21597
21598if test "$GCC" = yes; then
21599 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21600
21601 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21602echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21603if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605else
21606 lt_cv_prog_compiler_rtti_exceptions=no
21607 ac_outfile=conftest.$ac_objext
21608 save_CFLAGS="$CFLAGS"
21609 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
21610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21611 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21612 # The compiler can only warn and ignore the option if not recognized
21613 # So say no if there are warnings
21614 if test -s conftest.err; then
21615 # Append any errors to the config.log.
21616 cat conftest.err 1>&5
21617 else
21618 lt_cv_prog_compiler_rtti_exceptions=yes
21619 fi
21620 fi
21621 $rm conftest*
21622 CFLAGS="$save_CFLAGS"
21623
21624fi
21625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21626echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21627
21628if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21629 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21630else
21631 :
21632fi
21633
21634fi
21635
21636lt_prog_compiler_wl_GCJ=
21637lt_prog_compiler_pic_GCJ=
21638lt_prog_compiler_static_GCJ=
21639
21640echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21641echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21642
21643 if test "$GCC" = yes; then
21644 lt_prog_compiler_wl_GCJ='-Wl,'
21645 lt_prog_compiler_static_GCJ='-static'
21646
21647 case $host_os in
21648 aix*)
21649 # All AIX code is PIC.
21650 if test "$host_cpu" = ia64; then
21651 # AIX 5 now supports IA64 processor
21652 lt_prog_compiler_static_GCJ='-Bstatic'
21653 fi
21654 ;;
21655
21656 amigaos*)
21657 # FIXME: we need at least 68020 code to build shared libraries, but
21658 # adding the `-m68020' flag to GCC prevents building anything better,
21659 # like `-m68040'.
21660 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21661 ;;
21662
21663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21664 # PIC is the default for these OSes.
21665 ;;
21666
21667 cygwin* | mingw* | pw32* | os2*)
21668 # This hack is so that the source file can tell whether it is being
21669 # built for inclusion in a dll (and should export symbols for example).
21670 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21671 ;;
21672
21673 darwin* | rhapsody*)
21674 # PIC is the default on this platform
21675 # Common symbols not allowed in MH_DYLIB files
21676 lt_prog_compiler_pic_GCJ='-fno-common'
21677 ;;
21678
21679 msdosdjgpp*)
21680 # Just because we use GCC doesn't mean we suddenly get shared libraries
21681 # on systems that don't support them.
21682 lt_prog_compiler_can_build_shared_GCJ=no
21683 enable_shared=no
21684 ;;
21685
21686 sysv4*MP*)
21687 if test -d /usr/nec; then
21688 lt_prog_compiler_pic_GCJ=-Kconform_pic
21689 fi
21690 ;;
21691
21692 hpux*)
21693 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
21694 if test "$host_cpu" != ia64; then
21695 lt_prog_compiler_pic_GCJ='-fPIC'
21696 fi
21697 ;;
21698
21699 *)
21700 lt_prog_compiler_pic_GCJ='-fPIC'
21701 ;;
21702 esac
21703 else
21704 # PORTME Check for flag to pass linker flags through the system compiler.
21705 case $host_os in
21706 aix*)
21707 lt_prog_compiler_wl_GCJ='-Wl,'
21708 if test "$host_cpu" = ia64; then
21709 # AIX 5 now supports IA64 processor
21710 lt_prog_compiler_static_GCJ='-Bstatic'
21711 else
21712 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21713 fi
21714 ;;
21715
21716 cygwin* | mingw* | pw32* | os2*)
21717 # This hack is so that the source file can tell whether it is being
21718 # built for inclusion in a dll (and should export symbols for example).
21719 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21720 ;;
21721
21722 hpux9* | hpux10* | hpux11*)
21723 lt_prog_compiler_wl_GCJ='-Wl,'
21724 if test "$host_cpu" != ia64; then
21725 lt_prog_compiler_pic_GCJ='+Z'
21726 fi
21727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21728 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21729 ;;
21730
21731 irix5* | irix6* | nonstopux*)
21732 lt_prog_compiler_wl_GCJ='-Wl,'
21733 # PIC (with -KPIC) is the default.
21734 lt_prog_compiler_static_GCJ='-non_shared'
21735 ;;
21736
21737 newsos6)
21738 lt_prog_compiler_pic_GCJ='-KPIC'
21739 lt_prog_compiler_static_GCJ='-Bstatic'
21740 ;;
21741
21742 osf3* | osf4* | osf5*)
21743 lt_prog_compiler_wl_GCJ='-Wl,'
21744 # All OSF/1 code is PIC.
21745 lt_prog_compiler_static_GCJ='-non_shared'
21746 ;;
21747
21748 sco3.2v5*)
21749 lt_prog_compiler_pic_GCJ='-Kpic'
21750 lt_prog_compiler_static_GCJ='-dn'
21751 ;;
21752
21753 solaris*)
21754 lt_prog_compiler_wl_GCJ='-Wl,'
21755 lt_prog_compiler_pic_GCJ='-KPIC'
21756 lt_prog_compiler_static_GCJ='-Bstatic'
21757 ;;
21758
21759 sunos4*)
21760 lt_prog_compiler_wl_GCJ='-Qoption ld '
21761 lt_prog_compiler_pic_GCJ='-PIC'
21762 lt_prog_compiler_static_GCJ='-Bstatic'
21763 ;;
21764
21765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21766 if test "x$host_vendor" = xsni; then
21767 lt_prog_compiler_wl_GCJ='-LD'
21768 else
21769 lt_prog_compiler_wl_GCJ='-Wl,'
21770 fi
21771 lt_prog_compiler_pic_GCJ='-KPIC'
21772 lt_prog_compiler_static_GCJ='-Bstatic'
21773 ;;
21774
21775 sysv4*MP*)
21776 if test -d /usr/nec ;then
21777 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21778 lt_prog_compiler_static_GCJ='-Bstatic'
21779 fi
21780 ;;
21781
21782 uts4*)
21783 lt_prog_compiler_pic_GCJ='-pic'
21784 lt_prog_compiler_static_GCJ='-Bstatic'
21785 ;;
21786
21787 *)
21788 lt_prog_compiler_can_build_shared_GCJ=no
21789 ;;
21790 esac
21791 fi
21792
21793echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21794echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21795
21796#
21797# Check to make sure the PIC flag actually works.
21798#
21799if test -n "$lt_prog_compiler_pic_GCJ"; then
21800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21802if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21804else
21805 lt_prog_compiler_pic_works_GCJ=no
21806 ac_outfile=conftest.$ac_objext
21807 save_CFLAGS="$CFLAGS"
21808 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
21809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21810 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21811 # The compiler can only warn and ignore the option if not recognized
21812 # So say no if there are warnings
21813 if test -s conftest.err; then
21814 # Append any errors to the config.log.
21815 cat conftest.err 1>&5
21816 else
21817 lt_prog_compiler_pic_works_GCJ=yes
21818 fi
21819 fi
21820 $rm conftest*
21821 CFLAGS="$save_CFLAGS"
21822
21823fi
21824echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21825echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21826
21827if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21828 case $lt_prog_compiler_pic_GCJ in
21829 "" | " "*) ;;
21830 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21831 esac
21832else
21833 lt_prog_compiler_pic_GCJ=
21834 lt_prog_compiler_can_build_shared_GCJ=no
21835fi
21836
21837fi
21838case "$host_os" in
21839 # For platforms which do not support PIC, -DPIC is meaningless:
21840 *djgpp*)
21841 lt_prog_compiler_pic_GCJ=
21842 ;;
21843 *)
21844 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
21845 ;;
21846esac
21847
21848echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21850if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853 lt_cv_prog_compiler_c_o_GCJ=no
21854 $rm -r conftest 2>/dev/null
21855 mkdir conftest
21856 cd conftest
21857 mkdir out
21858 save_GCJFLAGS="$GCJFLAGS"
21859 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
21860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21861
21862 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
21863 # that will create temporary files in the current directory regardless of
21864 # the output directory. Thus, making CWD read-only will cause this test
21865 # to fail, enabling locking or at least warning the user not to do parallel
21866 # builds.
21867 chmod -w .
21868
21869 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
21870 then
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
21873 if test -s out/conftest.err; then
21874 # Append any errors to the config.log.
21875 cat out/conftest.err 1>&5
21876 else
21877 lt_cv_prog_compiler_c_o_GCJ=yes
21878 fi
21879 fi
21880 GCJFLAGS="$save_GCJFLAGS"
21881 chmod u+w .
21882 $rm conftest* out/*
21883 rmdir out
21884 cd ..
21885 rmdir conftest
21886 $rm conftest*
21887
21888fi
21889echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21890echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21891
21892
21893hard_links="nottested"
21894if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21895 # do not overwrite the value of need_locks provided by the user
21896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21897echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21898 hard_links=yes
21899 $rm conftest*
21900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21901 touch conftest.a
21902 ln conftest.a conftest.b 2>&5 || hard_links=no
21903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21904 echo "$as_me:$LINENO: result: $hard_links" >&5
21905echo "${ECHO_T}$hard_links" >&6
21906 if test "$hard_links" = no; then
21907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21908echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21909 need_locks=warn
21910 fi
21911else
21912 need_locks=no
21913fi
21914
21915echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21916echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21917
21918 runpath_var=
21919 allow_undefined_flag_GCJ=
21920
21921 archive_cmds_GCJ=
21922 archive_cmds_need_lc_GCJ=
21923 archive_expsym_cmds_GCJ=
21924 old_archive_From_new_cmds_GCJ=
21925 old_archive_from_expsyms_cmds_GCJ=
21926 export_dynamic_flag_spec_GCJ=
21927 whole_archive_flag_spec_GCJ=
21928 thread_safe_flag_spec_GCJ=
21929 hardcode_libdir_flag_spec_GCJ=
21930 hardcode_libdir_separator_GCJ=
21931 hardcode_direct_GCJ=no
21932 hardcode_minus_L_GCJ=no
21933 hardcode_shlibpath_var_GCJ=unsupported
21934 link_all_deplibs_GCJ=unknown
21935 always_export_symbols_GCJ=no
21936 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
21937 # include_expsyms should be a list of space-separated symbols to be *always*
21938 # included in the symbol list
21939 include_expsyms_GCJ=
21940 # exclude_expsyms can be an egrep regular expression of symbols to exclude
21941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21943 # as well as any symbol that contains `d'.
21944 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21946 # platforms (ab)use it in PIC code, but their linkers get confused if
21947 # the symbol is explicitly referenced. Since portable code cannot
21948 # rely on this symbol name, it's probably fine to never include it in
21949 # preloaded symbol tables.
21950 extract_expsyms_cmds=
21951
21952 case $host_os in
21953 cygwin* | mingw* | pw32*)
21954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21955 # When not using gcc, we currently assume that we are using
21956 # Microsoft Visual C++.
21957 if test "$GCC" != yes; then
21958 with_gnu_ld=no
21959 fi
21960 ;;
21961 openbsd*)
21962 with_gnu_ld=no
21963 ;;
21964 esac
21965
21966 ld_shlibs_GCJ=yes
21967 if test "$with_gnu_ld" = yes; then
21968 # If archive_cmds runs LD, not CC, wlarc should be empty
21969 wlarc='${wl}'
21970
21971 # See if GNU ld supports shared libraries.
21972 case $host_os in
21973 aix3* | aix4* | aix5*)
21974 # On AIX/PPC, the GNU linker is very broken
21975 if test "$host_cpu" != ia64; then
21976 ld_shlibs_GCJ=no
21977 cat <<EOF 1>&2
21978
21979*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21980*** to be unable to reliably create shared libraries on AIX.
21981*** Therefore, libtool is disabling shared libraries support. If you
21982*** really care for shared libraries, you may want to modify your PATH
21983*** so that a non-GNU linker is found, and then restart.
21984
21985EOF
21986 fi
21987 ;;
21988
21989 amigaos*)
21990 archive_cmds_GCJ='$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)'
21991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21992 hardcode_minus_L_GCJ=yes
21993
21994 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21995 # that the semantics of dynamic libraries on AmigaOS, at least up
21996 # to version 4, is to share data among multiple programs linked
21997 # with the same dynamic library. Since this doesn't match the
21998 # behavior of shared libraries on other platforms, we can't use
21999 # them.
22000 ld_shlibs_GCJ=no
22001 ;;
22002
22003 beos*)
22004 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22005 allow_undefined_flag_GCJ=unsupported
22006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22007 # support --undefined. This deserves some investigation. FIXME
22008 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22009 else
22010 ld_shlibs_GCJ=no
22011 fi
22012 ;;
22013
22014 cygwin* | mingw* | pw32*)
22015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
22016 # no search path for DLLs.
22017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22018 allow_undefined_flag_GCJ=unsupported
22019 always_export_symbols_GCJ=yes
22020
22021 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
22022 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
22023 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
22024 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
22025 else $CC -o impgen impgen.c ; fi)~
22026 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
22027
22028 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
22029
22030 # cygwin and mingw dlls have different entry points and sets of symbols
22031 # to exclude.
22032 # FIXME: what about values for MSVC?
22033 dll_entry=__cygwin_dll_entry@12
22034 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
22035 case $host_os in
22036 mingw*)
22037 # mingw values
22038 dll_entry=_DllMainCRTStartup@12
22039 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
22040 ;;
22041 esac
22042
22043 # mingw and cygwin differ, and it's simplest to just exclude the union
22044 # of the two symbol sets.
22045 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
22046
22047 # recent cygwin and mingw systems supply a stub DllMain which the user
22048 # can override, but on older systems we have to supply one (in ltdll.c)
22049 if test "x$lt_cv_need_dllmain" = "xyes"; then
22050 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
22051 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~
22052 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
22053 else
22054 ltdll_obj=
22055 ltdll_cmds=
22056 fi
22057
22058 # Extract the symbol export list from an `--export-all' def file,
22059 # then regenerate the def file from the symbol export list, so that
22060 # the compiled dll only exports the symbol export list.
22061 # Be careful not to strip the DATA tag left by newer dlltools.
22062 export_symbols_cmds_GCJ="$ltdll_cmds"'
22063 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
22064 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
22065
22066 # If the export-symbols file already is a .def file (1st line
22067 # is EXPORTS), use it as is.
22068 # If DATA tags from a recent dlltool are present, honour them!
22069 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
22070 cp $export_symbols $output_objdir/$soname-def;
22071 else
22072 echo EXPORTS > $output_objdir/$soname-def;
22073 _lt_hint=1;
22074 cat $export_symbols | while read symbol; do
22075 set dummy \$symbol;
22076 case \$# in
22077 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
22078 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
22079 esac;
22080 _lt_hint=`expr 1 + \$_lt_hint`;
22081 done;
22082 fi~
22083 '"$ltdll_cmds"'
22084 $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~
22085 $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~
22086 $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~
22087 $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~
22088 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
22089 ;;
22090
22091 netbsd*)
22092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22093 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22094 wlarc=
22095 else
22096 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22097 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22098 fi
22099 ;;
22100
22101 solaris* | sysv5*)
22102 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
22103 ld_shlibs_GCJ=no
22104 cat <<EOF 1>&2
22105
22106*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22107*** create shared libraries on Solaris systems. Therefore, libtool
22108*** is disabling shared libraries support. We urge you to upgrade GNU
22109*** binutils to release 2.9.1 or newer. Another option is to modify
22110*** your PATH or compiler configuration so that the native linker is
22111*** used, and then restart.
22112
22113EOF
22114 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22117 else
22118 ld_shlibs_GCJ=no
22119 fi
22120 ;;
22121
22122 sunos4*)
22123 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22124 wlarc=
22125 hardcode_direct_GCJ=yes
22126 hardcode_shlibpath_var_GCJ=no
22127 ;;
22128
22129 *)
22130 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22131 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22132 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22133 else
22134 ld_shlibs_GCJ=no
22135 fi
22136 ;;
22137 esac
22138
22139 if test "$ld_shlibs_GCJ" = yes; then
22140 runpath_var=LD_RUN_PATH
22141 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22142 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22143 case $host_os in
22144 cygwin* | mingw* | pw32*)
22145 # dlltool doesn't understand --whole-archive et. al.
22146 whole_archive_flag_spec_GCJ=
22147 ;;
22148 *)
22149 # ancient GNU ld didn't support --whole-archive et. al.
22150 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
22151 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22152 else
22153 whole_archive_flag_spec_GCJ=
22154 fi
22155 ;;
22156 esac
22157 fi
22158 else
22159 # PORTME fill in a description of your system's linker (not GNU ld)
22160 case $host_os in
22161 aix3*)
22162 allow_undefined_flag_GCJ=unsupported
22163 always_export_symbols_GCJ=yes
22164 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22165 # Note: this linker hardcodes the directories in LIBPATH if there
22166 # are no directories specified by -L.
22167 hardcode_minus_L_GCJ=yes
22168 if test "$GCC" = yes && test -z "$link_static_flag"; then
22169 # Neither direct hardcoding nor static linking is supported with a
22170 # broken collect2.
22171 hardcode_direct_GCJ=unsupported
22172 fi
22173 ;;
22174
22175 aix4* | aix5*)
22176 if test "$host_cpu" = ia64; then
22177 # On IA64, the linker does run time linking by default, so we don't
22178 # have to do anything special.
22179 aix_use_runtimelinking=no
22180 exp_sym_flag='-Bexport'
22181 no_entry_flag=""
22182 else
22183 # If we're using GNU nm, then we don't want the "-C" option.
22184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22185 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
22186 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22187 else
22188 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22189 fi
22190
22191 # KDE requires run time linking. Make it the default.
22192 aix_use_runtimelinking=yes
22193 exp_sym_flag='-bexport'
22194 no_entry_flag='-bnoentry'
22195 fi
22196
22197 # When large executables or shared objects are built, AIX ld can
22198 # have problems creating the table of contents. If linking a library
22199 # or program results in "error TOC overflow" add -mminimal-toc to
22200 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22201 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22202
22203 archive_cmds_GCJ=''
22204 hardcode_direct_GCJ=yes
22205 hardcode_libdir_separator_GCJ=':'
22206 link_all_deplibs_GCJ=yes
22207
22208 if test "$GCC" = yes; then
22209 case $host_os in aix4.012|aix4.012.*)
22210 # We only want to do this on AIX 4.2 and lower, the check
22211 # below for broken collect2 doesn't work under 4.3+
22212 collect2name=`${CC} -print-prog-name=collect2`
22213 if test -f "$collect2name" && \
22214 strings "$collect2name" | grep resolve_lib_name >/dev/null
22215 then
22216 # We have reworked collect2
22217 hardcode_direct_GCJ=yes
22218 else
22219 # We have old collect2
22220 hardcode_direct_GCJ=unsupported
22221 # It fails to find uninstalled libraries when the uninstalled
22222 # path is not listed in the libpath. Setting hardcode_minus_L
22223 # to unsupported forces relinking
22224 hardcode_minus_L_GCJ=yes
22225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22226 hardcode_libdir_separator_GCJ=
22227 fi
22228 esac
22229 shared_flag='-shared'
22230 else
22231 # not using gcc
22232 if test "$host_cpu" = ia64; then
22233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22234 # chokes on -Wl,-G. The following line is correct:
22235 shared_flag='-G'
22236 else
22237 if test "$aix_use_runtimelinking" = yes; then
22238 shared_flag='-qmkshrobj ${wl}-G'
22239 else
22240 shared_flag='-qmkshrobj'
22241 fi
22242 fi
22243 fi
22244
22245 # Let the compiler handle the export list.
22246 always_export_symbols_GCJ=no
22247 if test "$aix_use_runtimelinking" = yes; then
22248 # Warning - without using the other runtime loading flags (-brtl),
22249 # -berok will link without error, but may produce a broken library.
22250 allow_undefined_flag_GCJ='-berok'
22251 # Determine the default libpath from the value encoded in an empty executable.
22252 cat >conftest.$ac_ext <<_ACEOF
22253#line $LINENO "configure"
22254#include "confdefs.h"
22255
22256#ifdef F77_DUMMY_MAIN
22257# ifdef __cplusplus
22258 extern "C"
22259# endif
22260 int F77_DUMMY_MAIN() { return 1; }
22261#endif
22262int
22263main ()
22264{
22265
22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext conftest$ac_exeext
22271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22272 (eval $ac_link) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -s conftest$ac_exeext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282
22283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22284}'`
22285# Check for a 64-bit object if we didn't find anything.
22286if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22287}'`; fi
22288else
22289 echo "$as_me: failed program was:" >&5
22290cat conftest.$ac_ext >&5
22291fi
22292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22294
22295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22296 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
22297 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22298 else
22299 if test "$host_cpu" = ia64; then
22300 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22301 allow_undefined_flag_GCJ="-z nodefs"
22302 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
22303 else
22304 # Determine the default libpath from the value encoded in an empty executable.
22305 cat >conftest.$ac_ext <<_ACEOF
22306#line $LINENO "configure"
22307#include "confdefs.h"
22308
22309#ifdef F77_DUMMY_MAIN
22310# ifdef __cplusplus
22311 extern "C"
22312# endif
22313 int F77_DUMMY_MAIN() { return 1; }
22314#endif
22315int
22316main ()
22317{
22318
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323rm -f conftest.$ac_objext conftest$ac_exeext
22324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22325 (eval $ac_link) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } &&
22329 { ac_try='test -s conftest$ac_exeext'
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22332 ac_status=$?
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }; then
22335
22336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22337}'`
22338# Check for a 64-bit object if we didn't find anything.
22339if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22340}'`; fi
22341else
22342 echo "$as_me: failed program was:" >&5
22343cat conftest.$ac_ext >&5
22344fi
22345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22347
22348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22349 # Warning - without using the other run time loading flags,
22350 # -berok will link without error, but may produce a broken library.
22351 no_undefined_flag_GCJ=' ${wl}-bernotok'
22352 allow_undefined_flag_GCJ=' ${wl}-berok'
22353 # -bexpall does not export symbols beginning with underscore (_)
22354 always_export_symbols_GCJ=yes
22355 # Exported symbols can be pulled into shared objects from archives
22356 whole_archive_flag_spec_GCJ=' '
22357 archive_cmds_need_lc_GCJ=yes
22358 # This is similar to how AIX traditionally builds it's shared libraries.
22359 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22360 fi
22361 fi
22362 ;;
22363
22364 amigaos*)
22365 archive_cmds_GCJ='$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)'
22366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22367 hardcode_minus_L_GCJ=yes
22368 # see comment about different semantics on the GNU ld section
22369 ld_shlibs_GCJ=no
22370 ;;
22371
22372 bsdi4*)
22373 export_dynamic_flag_spec_GCJ=-rdynamic
22374 ;;
22375
22376 cygwin* | mingw* | pw32*)
22377 # When not using gcc, we currently assume that we are using
22378 # Microsoft Visual C++.
22379 # hardcode_libdir_flag_spec is actually meaningless, as there is
22380 # no search path for DLLs.
22381 hardcode_libdir_flag_spec_GCJ=' '
22382 allow_undefined_flag_GCJ=unsupported
22383 # Tell ltmain to make .lib files, not .a files.
22384 libext=lib
22385 # FIXME: Setting linknames here is a bad hack.
22386 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22387 # The linker will automatically build a .lib file if we build a DLL.
22388 old_archive_From_new_cmds_GCJ='true'
22389 # FIXME: Should let the user specify the lib program.
22390 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22391 fix_srcfile_path='`cygpath -w "$srcfile"`'
22392 ;;
22393
22394 darwin* | rhapsody*)
22395 case "$host_os" in
22396 rhapsody* | darwin1.[012])
22397 allow_undefined_flag_GCJ='-undefined suppress'
22398 ;;
22399 *) # Darwin 1.3 on
22400 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22401 ;;
22402 esac
22403
22404 # FIXME: Relying on posixy $() will cause problems for
22405 # cross-compilation, but unfortunately the echo tests do not
22406 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
22407 # `"' quotes if we put them in here... so don't!
22408 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
22409 # We need to add '_' to the symbols in $export_symbols first
22410 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
22411 hardcode_direct_GCJ=yes
22412 hardcode_shlibpath_var_GCJ=no
22413 whole_archive_flag_spec_GCJ='-all_load $convenience'
22414 ;;
22415
22416 dgux*)
22417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22419 hardcode_shlibpath_var_GCJ=no
22420 ;;
22421
22422 freebsd1*)
22423 ld_shlibs_GCJ=no
22424 ;;
22425
22426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22427 # support. Future versions do this automatically, but an explicit c++rt0.o
22428 # does not break anything, and helps significantly (at the cost of a little
22429 # extra space).
22430 freebsd2.2*)
22431 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22433 hardcode_direct_GCJ=yes
22434 hardcode_shlibpath_var_GCJ=no
22435 ;;
22436
22437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22438 freebsd2*)
22439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22440 hardcode_direct_GCJ=yes
22441 hardcode_minus_L_GCJ=yes
22442 hardcode_shlibpath_var_GCJ=no
22443 ;;
22444
22445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22446 freebsd*)
22447 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22449 hardcode_direct_GCJ=yes
22450 hardcode_shlibpath_var_GCJ=no
22451 ;;
22452
22453 hpux9* | hpux10* | hpux11*)
22454 if test "$GCC" = yes; then
22455 case $host_os in
22456 hpux9*)
22457 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22458 ;;
22459 *)
22460 if test "$host_cpu" = ia64; then
22461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22462 else
22463 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22464 fi
22465 ;;
22466 esac
22467 else
22468 case $host_os in
22469 hpux9*)
22470 archive_cmds_GCJ='$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'
22471 ;;
22472 *)
22473 if test "$host_cpu" = ia64; then
22474 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22475 else
22476 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22477 fi
22478 ;;
22479 esac
22480 fi
22481 if test "$host_cpu" = ia64; then
22482 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22483 hardcode_direct_GCJ=no
22484 hardcode_shlibpath_var_GCJ=no
22485 else
22486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22487 hardcode_libdir_separator_GCJ=:
22488 hardcode_direct_GCJ=yes
22489 fi
22490 # hardcode_minus_L: Not really in the search PATH,
22491 # but as the default location of the library.
22492 hardcode_minus_L_GCJ=yes
22493 export_dynamic_flag_spec_GCJ='${wl}-E'
22494 ;;
22495
22496 irix5* | irix6* | nonstopux*)
22497 if test "$GCC" = yes; then
22498 archive_cmds_GCJ='$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'
22499 else
22500 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22501 fi
22502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22503 hardcode_libdir_separator_GCJ=:
22504 link_all_deplibs_GCJ=yes
22505 ;;
22506
22507 netbsd*)
22508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22510 else
22511 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22512 fi
22513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22514 hardcode_direct_GCJ=yes
22515 hardcode_shlibpath_var_GCJ=no
22516 ;;
22517
22518 newsos6)
22519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_direct_GCJ=yes
22521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22522 hardcode_libdir_separator_GCJ=:
22523 hardcode_shlibpath_var_GCJ=no
22524 ;;
22525
22526 openbsd*)
22527 hardcode_direct_GCJ=yes
22528 hardcode_shlibpath_var_GCJ=no
22529
22530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22531 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22533 export_dynamic_flag_spec_GCJ='${wl}-E'
22534 else
22535 case $host_os in
22536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22539 ;;
22540 *)
22541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22543 ;;
22544 esac
22545 fi
22546 ;;
22547
22548 os2*)
22549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22550 hardcode_minus_L_GCJ=yes
22551 allow_undefined_flag_GCJ=unsupported
22552 archive_cmds_GCJ='$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'
22553 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22554 ;;
22555
22556 osf3*)
22557 if test "$GCC" = yes; then
22558 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22559 archive_cmds_GCJ='$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'
22560 else
22561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22562 archive_cmds_GCJ='$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'
22563 fi
22564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22565 hardcode_libdir_separator_GCJ=:
22566 ;;
22567
22568 osf4* | osf5*) # as osf3* with the addition of -msym flag
22569 if test "$GCC" = yes; then
22570 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22571 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22573 else
22574 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22575 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22576 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22577 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22578
22579 # Both c and cxx compiler support -rpath directly
22580 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22581 fi
22582 hardcode_libdir_separator_GCJ=:
22583 ;;
22584
22585 sco3.2v5*)
22586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22587 hardcode_shlibpath_var_GCJ=no
22588 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22589 runpath_var=LD_RUN_PATH
22590 hardcode_runpath_var=yes
22591 ;;
22592
22593 solaris*)
22594 no_undefined_flag_GCJ=' -z text'
22595 if test "$GCC" = yes; then
22596 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22597 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22599 else
22600 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22603 fi
22604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22605 hardcode_shlibpath_var_GCJ=no
22606 case $host_os in
22607 solaris2.[0-5] | solaris2.[0-5].*) ;;
22608 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22609 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22610 esac
22611 link_all_deplibs_GCJ=yes
22612 ;;
22613
22614 sunos4*)
22615 if test "x$host_vendor" = xsequent; then
22616 # Use $CC to link under sequent, because it throws in some extra .o
22617 # files that make .init and .fini sections work.
22618 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22619 else
22620 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22621 fi
22622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22623 hardcode_direct_GCJ=yes
22624 hardcode_minus_L_GCJ=yes
22625 hardcode_shlibpath_var_GCJ=no
22626 ;;
22627
22628 sysv4)
22629 if test "x$host_vendor" = xsni; then
22630 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
22631 hardcode_direct_GCJ=yes # is this really true???
22632 else
22633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22634 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22635 fi
22636 runpath_var='LD_RUN_PATH'
22637 hardcode_shlibpath_var_GCJ=no
22638 ;;
22639
22640 sysv4.3*)
22641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22642 hardcode_shlibpath_var_GCJ=no
22643 export_dynamic_flag_spec_GCJ='-Bexport'
22644 ;;
22645
22646 sysv4*MP*)
22647 if test -d /usr/nec; then
22648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22649 hardcode_shlibpath_var_GCJ=no
22650 runpath_var=LD_RUN_PATH
22651 hardcode_runpath_var=yes
22652 ld_shlibs_GCJ=yes
22653 fi
22654 ;;
22655
22656 sysv4.2uw2*)
22657 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_GCJ=yes
22659 hardcode_minus_L_GCJ=no
22660 hardcode_shlibpath_var_GCJ=no
22661 hardcode_runpath_var=yes
22662 runpath_var=LD_RUN_PATH
22663 ;;
22664
22665 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22666 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22667 if test "$GCC" = yes; then
22668 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22669 else
22670 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22671 fi
22672 runpath_var='LD_RUN_PATH'
22673 hardcode_shlibpath_var_GCJ=no
22674 ;;
22675
22676 sysv5*)
22677 no_undefined_flag_GCJ=' -z text'
22678 # $CC -shared without GNU ld will not create a library from C++
22679 # object files and a static libstdc++, better avoid it by now
22680 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22681 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22682 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22683 hardcode_libdir_flag_spec_GCJ=
22684 hardcode_shlibpath_var_GCJ=no
22685 runpath_var='LD_RUN_PATH'
22686 ;;
22687
22688 uts4*)
22689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22691 hardcode_shlibpath_var_GCJ=no
22692 ;;
22693
22694 *)
22695 ld_shlibs_GCJ=no
22696 ;;
22697 esac
22698 fi
22699
22700echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22701echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22702test "$ld_shlibs_GCJ" = no && can_build_shared=no
22703
22704variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22705if test "$GCC" = yes; then
22706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22707fi
22708
22709#
22710# Do we need to explicitly link libc?
22711#
22712archive_cmds_need_lc_GCJ=yes
22713if test "$enable_shared" = yes && test "$GCC" = yes; then
22714 case $archive_cmds_GCJ in
22715 *'~'*)
22716 # FIXME: we may have to deal with multi-command sequences.
22717 ;;
22718 '$CC '*)
22719 # Test whether the compiler implicitly links with -lc since on some
22720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22721 # to ld, don't add -lc before -lgcc.
22722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22723echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22724 $rm conftest*
22725 echo 'static int dummy;' > conftest.$ac_ext
22726
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728 (eval $ac_compile) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } 2>conftest.err; then
22732 soname=conftest
22733 lib=conftest
22734 libobjs=conftest.$ac_objext
22735 deplibs=
22736 wl=$lt_prog_compiler_wl_GCJ
22737 compiler_flags=-v
22738 linker_flags=-v
22739 verstring=
22740 output_objdir=.
22741 libname=conftest
22742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22743 allow_undefined_flag_GCJ=
22744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }
22749 then
22750 archive_cmds_need_lc_GCJ=no
22751 else
22752 archive_cmds_need_lc_GCJ=yes
22753 fi
22754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22755 else
22756 cat conftest.err 1>&5
22757 fi
22758 $rm conftest*
22759 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22760echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22761 ;;
22762 esac
22763fi
22764
22765echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22766echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22767hardcode_action_GCJ=
22768if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22769 test -n "$runpath_var GCJ"; then
22770
22771 # We can hardcode non-existant directories.
22772 if test "$hardcode_direct_GCJ" != no &&
22773 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22774 # have to relink, otherwise we might link with an installed library
22775 # when we should be linking with a yet-to-be-installed one
22776 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22777 test "$hardcode_minus_L_GCJ" != no; then
22778 # Linking always hardcodes the temporary library directory.
22779 hardcode_action_GCJ=relink
22780 else
22781 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22782 hardcode_action_GCJ=immediate
22783 fi
22784else
22785 # We cannot hardcode anything, or else we can only hardcode existing
22786 # directories.
22787 hardcode_action_GCJ=unsupported
22788fi
22789echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22790echo "${ECHO_T}$hardcode_action_GCJ" >&6
22791
22792if test "$hardcode_action_GCJ" = relink; then
22793 # Fast installation is not supported
22794 enable_fast_install=no
22795elif test "$shlibpath_overrides_runpath" = yes ||
22796 test "$enable_shared" = no; then
22797 # Fast installation is not necessary
22798 enable_fast_install=needless
22799fi
22800
22801striplib=
22802old_striplib=
22803echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22804echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22805if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22806 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22807 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22808 echo "$as_me:$LINENO: result: yes" >&5
22809echo "${ECHO_T}yes" >&6
22810else
22811 echo "$as_me:$LINENO: result: no" >&5
22812echo "${ECHO_T}no" >&6
22813fi
22814
22815echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22816echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22817library_names_spec=
22818libname_spec='lib$name'
22819soname_spec=
22820postinstall_cmds=
22821postuninstall_cmds=
22822finish_cmds=
22823finish_eval=
22824shlibpath_var=
22825shlibpath_overrides_runpath=unknown
22826version_type=none
22827dynamic_linker="$host_os ld.so"
22828sys_lib_dlsearch_path_spec="/lib /usr/lib"
22829sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22830need_lib_prefix=unknown
22831hardcode_into_libs=no
22832
22833# when you set need_version to no, make sure it does not cause -set_version
22834# flags to be left without arguments
22835need_version=unknown
22836
22837case $host_os in
22838aix3*)
22839 version_type=linux
22840 library_names_spec='${libname}${release}.so$versuffix $libname.a'
22841 shlibpath_var=LIBPATH
22842
22843 # AIX 3 has no versioning support, so we append a major version to the name.
22844 soname_spec='${libname}${release}.so$major'
22845 ;;
22846
22847aix4* | aix5*)
22848 version_type=linux
22849 if test "$host_cpu" = ia64; then
22850 # AIX 5 supports IA64
22851 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 else
22854 # With GCC up to 2.95.x, collect2 would create an import file
22855 # for dependence libraries. The import file would start with
22856 # the line `#! .'. This would cause the generated library to
22857 # depend on `.', always an invalid library. This was fixed in
22858 # development snapshots of GCC prior to 3.0.
22859 case $host_os in
22860 aix4 | aix4.[01] | aix4.[01].*)
22861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22862 echo ' yes '
22863 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22864 :
22865 else
22866 can_build_shared=no
22867 fi
22868 ;;
22869 esac
22870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22871 # soname into executable. Probably we can add versioning support to
22872 # collect2, so additional links can be useful in future.
22873 if test "$aix_use_runtimelinking" = yes; then
22874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22875 # instead of lib<name>.a to let people know that these are not
22876 # typical AIX shared libraries.
22877 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22878 else
22879 # We preserve .a as extension for shared libraries through AIX4.2
22880 # and later when we are not doing run time linking.
22881 library_names_spec='${libname}${release}.a $libname.a'
22882 soname_spec='${libname}${release}.so$major'
22883 fi
22884 shlibpath_var=LIBPATH
22885 fi
22886 ;;
22887
22888amigaos*)
22889 library_names_spec='$libname.ixlibrary $libname.a'
22890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22891 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
22892 ;;
22893
22894beos*)
22895 library_names_spec='${libname}.so'
22896 dynamic_linker="$host_os ld.so"
22897 shlibpath_var=LIBRARY_PATH
22898 ;;
22899
22900bsdi4*)
22901 version_type=linux
22902 need_version=no
22903 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22904 soname_spec='${libname}${release}.so$major'
22905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22909 # the default ld.so.conf also contains /usr/contrib/lib and
22910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22911 # libtool to hard-code these into programs
22912 ;;
22913
22914cygwin* | mingw* | pw32*)
22915 version_type=windows
22916 need_version=no
22917 need_lib_prefix=no
22918 case $GCC,$host_os in
22919 yes,cygwin*)
22920 library_names_spec='$libname.dll.a'
22921 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
22922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
22923 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
22924 dldir=$destdir/`dirname \$dlpath`~
22925 test -d \$dldir || mkdir -p \$dldir~
22926 $install_prog .libs/$dlname \$dldir/$dlname'
22927 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
22928 dlpath=$dir/\$dldll~
22929 $rm \$dlpath'
22930 ;;
22931 yes,mingw*)
22932 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
22933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
22934 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
22935 # It is most probably a Windows format PATH printed by
22936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22937 # path with ; separators, and with drive letters. We can handle the
22938 # drive letters (cygwin fileutils understands them), so leave them,
22939 # especially as we might pass files found there to a mingw objdump,
22940 # which wouldn't understand a cygwinified path. Ahh.
22941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
22942 else
22943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
22944 fi
22945 ;;
22946 yes,pw32*)
22947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
22948 ;;
22949 *)
22950 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
22951 ;;
22952 esac
22953 dynamic_linker='Win32 ld.exe'
22954 # FIXME: first we should search . and the directory the executable is in
22955 shlibpath_var=PATH
22956 ;;
22957
22958darwin* | rhapsody*)
22959 dynamic_linker="$host_os dyld"
22960 version_type=darwin
22961 need_lib_prefix=no
22962 need_version=no
22963 # FIXME: Relying on posixy $() will cause problems for
22964 # cross-compilation, but unfortunately the echo tests do not
22965 # yet detect zsh echo's removal of \ escapes.
22966 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
22967 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
22968 shlibpath_overrides_runpath=yes
22969 shlibpath_var=DYLD_LIBRARY_PATH
22970 ;;
22971
22972dgux*)
22973 version_type=linux
22974 need_lib_prefix=no
22975 need_version=no
22976 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22977 soname_spec='${libname}${release}.so$major'
22978 shlibpath_var=LD_LIBRARY_PATH
22979 ;;
22980
22981freebsd1*)
22982 dynamic_linker=no
22983 ;;
22984
22985freebsd*)
22986 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22987 version_type=freebsd-$objformat
22988 case $version_type in
22989 freebsd-elf*)
22990 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
22991 need_version=no
22992 need_lib_prefix=no
22993 ;;
22994 freebsd-*)
22995 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
22996 need_version=yes
22997 ;;
22998 esac
22999 shlibpath_var=LD_LIBRARY_PATH
23000 case $host_os in
23001 freebsd2*)
23002 shlibpath_overrides_runpath=yes
23003 ;;
23004 freebsd3.01* | freebsdelf3.01*)
23005 shlibpath_overrides_runpath=yes
23006 hardcode_into_libs=yes
23007 ;;
23008 *) # from 3.2 on
23009 shlibpath_overrides_runpath=no
23010 hardcode_into_libs=yes
23011 ;;
23012 esac
23013 ;;
23014
23015gnu*)
23016 version_type=linux
23017 need_lib_prefix=no
23018 need_version=no
23019 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
23020 soname_spec='${libname}${release}.so$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23022 hardcode_into_libs=yes
23023 ;;
23024
23025hpux9* | hpux10* | hpux11*)
23026 # Give a soname corresponding to the major version so that dld.sl refuses to
23027 # link against other versions.
23028 version_type=sunos
23029 need_lib_prefix=no
23030 need_version=no
23031 if test "$host_cpu" = ia64; then
23032 hardcode_into_libs=yes
23033 dynamic_linker="$host_os dld.so"
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23036 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23037 soname_spec='${libname}${release}.so$major'
23038 if test "X$HPUX_IA64_MODE" = X32; then
23039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23040 else
23041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23042 fi
23043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23044 else
23045 dynamic_linker="$host_os dld.sl"
23046 shlibpath_var=SHLIB_PATH
23047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23048 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
23049 soname_spec='${libname}${release}.sl$major'
23050 fi
23051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23052 postinstall_cmds='chmod 555 $lib'
23053 ;;
23054
23055irix5* | irix6* | nonstopux*)
23056 case $host_os in
23057 nonstopux*) version_type=nonstopux ;;
23058 *) version_type=irix ;;
23059 esac
23060 need_lib_prefix=no
23061 need_version=no
23062 soname_spec='${libname}${release}.so$major'
23063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
23064 case $host_os in
23065 irix5* | nonstopux*)
23066 libsuff= shlibsuff=
23067 ;;
23068 *)
23069 case $LD in # libtool.m4 will add one of these switches to LD
23070 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
23071 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
23072 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
23073 *) libsuff= shlibsuff= libmagic=never-match;;
23074 esac
23075 ;;
23076 esac
23077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23078 shlibpath_overrides_runpath=no
23079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23081 ;;
23082
23083# No shared lib support for Linux oldld, aout, or coff.
23084linux*oldld* | linux*aout* | linux*coff*)
23085 dynamic_linker=no
23086 ;;
23087
23088# This must be Linux ELF.
23089linux*)
23090 version_type=linux
23091 need_lib_prefix=no
23092 need_version=no
23093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23094 soname_spec='${libname}${release}.so$major'
23095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23096 libsuff=
23097 if test "x$LINUX_64_MODE" = x64; then
23098 # Some platforms are per default 64-bit, so there's no /lib64
23099 if test -d /lib64; then
23100 libsuff=64
23101 fi
23102 fi
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=no
23105 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
23106 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23107 # This implies no fast_install, which is unacceptable.
23108 # Some rework will be needed to allow for fast_install
23109 # before this can be enabled.
23110 hardcode_into_libs=yes
23111
23112 # We used to test for /lib/ld.so.1 and disable shared libraries on
23113 # powerpc, because MkLinux only supported shared libraries with the
23114 # GNU dynamic linker. Since this was broken with cross compilers,
23115 # most powerpc-linux boxes support dynamic linking these days and
23116 # people can always --disable-shared, the test was removed, and we
23117 # assume the GNU/Linux dynamic linker is in use.
23118 dynamic_linker='GNU/Linux ld.so'
23119 ;;
23120
23121netbsd*)
23122 version_type=sunos
23123 need_lib_prefix=no
23124 need_version=no
23125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23126 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23128 dynamic_linker='NetBSD (a.out) ld.so'
23129 else
23130 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
23131 soname_spec='${libname}${release}.so$major'
23132 dynamic_linker='NetBSD ld.elf_so'
23133 fi
23134 shlibpath_var=LD_LIBRARY_PATH
23135 shlibpath_overrides_runpath=yes
23136 hardcode_into_libs=yes
23137 ;;
23138
23139newsos6)
23140 version_type=linux
23141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 shlibpath_overrides_runpath=yes
23144 ;;
23145
23146nto-qnx)
23147 version_type=linux
23148 need_lib_prefix=no
23149 need_version=no
23150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23151 soname_spec='${libname}${release}.so$major'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 shlibpath_overrides_runpath=yes
23154 ;;
23155
23156openbsd*)
23157 version_type=sunos
23158 need_lib_prefix=no
23159 need_version=no
23160 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23162 shlibpath_var=LD_LIBRARY_PATH
23163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23164 case $host_os in
23165 openbsd2.[89] | openbsd2.[89].*)
23166 shlibpath_overrides_runpath=no
23167 ;;
23168 *)
23169 shlibpath_overrides_runpath=yes
23170 ;;
23171 esac
23172 else
23173 shlibpath_overrides_runpath=yes
23174 fi
23175 ;;
23176
23177os2*)
23178 libname_spec='$name'
23179 need_lib_prefix=no
23180 library_names_spec='$libname.dll $libname.a'
23181 dynamic_linker='OS/2 ld.exe'
23182 shlibpath_var=LIBPATH
23183 ;;
23184
23185osf3* | osf4* | osf5*)
23186 version_type=osf
23187 need_lib_prefix=no
23188 need_version=no
23189 soname_spec='${libname}${release}.so'
23190 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23194 ;;
23195
23196sco3.2v5*)
23197 version_type=osf
23198 soname_spec='${libname}${release}.so$major'
23199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23200 shlibpath_var=LD_LIBRARY_PATH
23201 ;;
23202
23203solaris*)
23204 version_type=linux
23205 need_lib_prefix=no
23206 need_version=no
23207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23208 soname_spec='${libname}${release}.so$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 shlibpath_overrides_runpath=yes
23211 hardcode_into_libs=yes
23212 # ldd complains unless libraries are executable
23213 postinstall_cmds='chmod +x $lib'
23214 ;;
23215
23216sunos4*)
23217 version_type=sunos
23218 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23220 shlibpath_var=LD_LIBRARY_PATH
23221 shlibpath_overrides_runpath=yes
23222 if test "$with_gnu_ld" = yes; then
23223 need_lib_prefix=no
23224 fi
23225 need_version=yes
23226 ;;
23227
23228sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23229 version_type=linux
23230 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23231 soname_spec='${libname}${release}.so$major'
23232 shlibpath_var=LD_LIBRARY_PATH
23233 case $host_vendor in
23234 sni)
23235 shlibpath_overrides_runpath=no
23236 ;;
23237 motorola)
23238 need_lib_prefix=no
23239 need_version=no
23240 shlibpath_overrides_runpath=no
23241 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23242 ;;
23243 esac
23244 ;;
23245
23246sysv4*MP*)
23247 if test -d /usr/nec ;then
23248 version_type=linux
23249 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
23250 soname_spec='$libname.so.$major'
23251 shlibpath_var=LD_LIBRARY_PATH
23252 fi
23253 ;;
23254
23255uts4*)
23256 version_type=linux
23257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23258 soname_spec='${libname}${release}.so$major'
23259 shlibpath_var=LD_LIBRARY_PATH
23260 ;;
23261
23262*)
23263 dynamic_linker=no
23264 ;;
23265esac
23266echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23267echo "${ECHO_T}$dynamic_linker" >&6
23268test "$dynamic_linker" = no && can_build_shared=no
23269
23270if test "x$enable_dlopen" != xyes; then
23271 enable_dlopen=unknown
23272 enable_dlopen_self=unknown
23273 enable_dlopen_self_static=unknown
23274else
23275 lt_cv_dlopen=no
23276 lt_cv_dlopen_libs=
23277
23278 case $host_os in
23279 beos*)
23280 lt_cv_dlopen="load_add_on"
23281 lt_cv_dlopen_libs=
23282 lt_cv_dlopen_self=yes
23283 ;;
23284
23285 cygwin* | mingw* | pw32*)
23286 lt_cv_dlopen="LoadLibrary"
23287 lt_cv_dlopen_libs=
23288 ;;
23289
23290 *)
23291 echo "$as_me:$LINENO: checking for shl_load" >&5
23292echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23293if test "${ac_cv_func_shl_load+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295else
23296 cat >conftest.$ac_ext <<_ACEOF
23297#line $LINENO "configure"
23298#include "confdefs.h"
23299/* System header to define __stub macros and hopefully few prototypes,
23300 which can conflict with char shl_load (); below. */
23301#include <assert.h>
23302/* Override any gcc2 internal prototype to avoid an error. */
23303#ifdef __cplusplus
23304extern "C"
23305#endif
23306/* We use char because int might match the return type of a gcc2
23307 builtin and then its argument prototype would still apply. */
23308char shl_load ();
23309char (*f) ();
23310
23311#ifdef F77_DUMMY_MAIN
23312# ifdef __cplusplus
23313 extern "C"
23314# endif
23315 int F77_DUMMY_MAIN() { return 1; }
23316#endif
23317int
23318main ()
23319{
23320/* The GNU C library defines this for functions which it implements
23321 to always fail with ENOSYS. Some functions are actually named
23322 something starting with __ and the normal name is an alias. */
23323#if defined (__stub_shl_load) || defined (__stub___shl_load)
23324choke me
23325#else
23326f = shl_load;
23327#endif
23328
23329 ;
23330 return 0;
23331}
23332_ACEOF
23333rm -f conftest.$ac_objext conftest$ac_exeext
23334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23335 (eval $ac_link) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
23339 { ac_try='test -s conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 ac_cv_func_shl_load=yes
23346else
23347 echo "$as_me: failed program was:" >&5
23348cat conftest.$ac_ext >&5
23349ac_cv_func_shl_load=no
23350fi
23351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23352fi
23353echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23354echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23355if test $ac_cv_func_shl_load = yes; then
23356 lt_cv_dlopen="shl_load"
23357else
23358 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23359echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23360if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362else
23363 ac_check_lib_save_LIBS=$LIBS
23364LIBS="-ldld $LIBS"
23365cat >conftest.$ac_ext <<_ACEOF
23366#line $LINENO "configure"
23367#include "confdefs.h"
23368
23369/* Override any gcc2 internal prototype to avoid an error. */
23370#ifdef __cplusplus
23371extern "C"
23372#endif
23373/* We use char because int might match the return type of a gcc2
23374 builtin and then its argument prototype would still apply. */
23375char shl_load ();
23376#ifdef F77_DUMMY_MAIN
23377# ifdef __cplusplus
23378 extern "C"
23379# endif
23380 int F77_DUMMY_MAIN() { return 1; }
23381#endif
23382int
23383main ()
23384{
23385shl_load ();
23386 ;
23387 return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext conftest$ac_exeext
23391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392 (eval $ac_link) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -s conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_lib_dld_shl_load=yes
23403else
23404 echo "$as_me: failed program was:" >&5
23405cat conftest.$ac_ext >&5
23406ac_cv_lib_dld_shl_load=no
23407fi
23408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23409LIBS=$ac_check_lib_save_LIBS
23410fi
23411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23413if test $ac_cv_lib_dld_shl_load = yes; then
23414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23415else
23416 echo "$as_me:$LINENO: checking for dlopen" >&5
23417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23418if test "${ac_cv_func_dlopen+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420else
23421 cat >conftest.$ac_ext <<_ACEOF
23422#line $LINENO "configure"
23423#include "confdefs.h"
23424/* System header to define __stub macros and hopefully few prototypes,
23425 which can conflict with char dlopen (); below. */
23426#include <assert.h>
23427/* Override any gcc2 internal prototype to avoid an error. */
23428#ifdef __cplusplus
23429extern "C"
23430#endif
23431/* We use char because int might match the return type of a gcc2
23432 builtin and then its argument prototype would still apply. */
23433char dlopen ();
23434char (*f) ();
23435
23436#ifdef F77_DUMMY_MAIN
23437# ifdef __cplusplus
23438 extern "C"
23439# endif
23440 int F77_DUMMY_MAIN() { return 1; }
23441#endif
23442int
23443main ()
23444{
23445/* The GNU C library defines this for functions which it implements
23446 to always fail with ENOSYS. Some functions are actually named
23447 something starting with __ and the normal name is an alias. */
23448#if defined (__stub_dlopen) || defined (__stub___dlopen)
23449choke me
23450#else
23451f = dlopen;
23452#endif
23453
23454 ;
23455 return 0;
23456}
23457_ACEOF
23458rm -f conftest.$ac_objext conftest$ac_exeext
23459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -s conftest$ac_exeext'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; }; then
23470 ac_cv_func_dlopen=yes
23471else
23472 echo "$as_me: failed program was:" >&5
23473cat conftest.$ac_ext >&5
23474ac_cv_func_dlopen=no
23475fi
23476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23477fi
23478echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23479echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23480if test $ac_cv_func_dlopen = yes; then
23481 lt_cv_dlopen="dlopen"
23482else
23483 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23484echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23485if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487else
23488 ac_check_lib_save_LIBS=$LIBS
23489LIBS="-ldl $LIBS"
23490cat >conftest.$ac_ext <<_ACEOF
23491#line $LINENO "configure"
23492#include "confdefs.h"
23493
23494/* Override any gcc2 internal prototype to avoid an error. */
23495#ifdef __cplusplus
23496extern "C"
23497#endif
23498/* We use char because int might match the return type of a gcc2
23499 builtin and then its argument prototype would still apply. */
23500char dlopen ();
23501#ifdef F77_DUMMY_MAIN
23502# ifdef __cplusplus
23503 extern "C"
23504# endif
23505 int F77_DUMMY_MAIN() { return 1; }
23506#endif
23507int
23508main ()
23509{
23510dlopen ();
23511 ;
23512 return 0;
23513}
23514_ACEOF
23515rm -f conftest.$ac_objext conftest$ac_exeext
23516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517 (eval $ac_link) 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } &&
23521 { ac_try='test -s conftest$ac_exeext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 ac_cv_lib_dl_dlopen=yes
23528else
23529 echo "$as_me: failed program was:" >&5
23530cat conftest.$ac_ext >&5
23531ac_cv_lib_dl_dlopen=no
23532fi
23533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23534LIBS=$ac_check_lib_save_LIBS
23535fi
23536echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23537echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23538if test $ac_cv_lib_dl_dlopen = yes; then
23539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23540else
23541 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23542echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23543if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23545else
23546 ac_check_lib_save_LIBS=$LIBS
23547LIBS="-lsvld $LIBS"
23548cat >conftest.$ac_ext <<_ACEOF
23549#line $LINENO "configure"
23550#include "confdefs.h"
23551
23552/* Override any gcc2 internal prototype to avoid an error. */
23553#ifdef __cplusplus
23554extern "C"
23555#endif
23556/* We use char because int might match the return type of a gcc2
23557 builtin and then its argument prototype would still apply. */
23558char dlopen ();
23559#ifdef F77_DUMMY_MAIN
23560# ifdef __cplusplus
23561 extern "C"
23562# endif
23563 int F77_DUMMY_MAIN() { return 1; }
23564#endif
23565int
23566main ()
23567{
23568dlopen ();
23569 ;
23570 return 0;
23571}
23572_ACEOF
23573rm -f conftest.$ac_objext conftest$ac_exeext
23574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23575 (eval $ac_link) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -s conftest$ac_exeext'
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; }; then
23585 ac_cv_lib_svld_dlopen=yes
23586else
23587 echo "$as_me: failed program was:" >&5
23588cat conftest.$ac_ext >&5
23589ac_cv_lib_svld_dlopen=no
23590fi
23591rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23592LIBS=$ac_check_lib_save_LIBS
23593fi
23594echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23595echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23596if test $ac_cv_lib_svld_dlopen = yes; then
23597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23598else
23599 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23600echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23601if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604 ac_check_lib_save_LIBS=$LIBS
23605LIBS="-ldld $LIBS"
23606cat >conftest.$ac_ext <<_ACEOF
23607#line $LINENO "configure"
23608#include "confdefs.h"
23609
23610/* Override any gcc2 internal prototype to avoid an error. */
23611#ifdef __cplusplus
23612extern "C"
23613#endif
23614/* We use char because int might match the return type of a gcc2
23615 builtin and then its argument prototype would still apply. */
23616char dld_link ();
23617#ifdef F77_DUMMY_MAIN
23618# ifdef __cplusplus
23619 extern "C"
23620# endif
23621 int F77_DUMMY_MAIN() { return 1; }
23622#endif
23623int
23624main ()
23625{
23626dld_link ();
23627 ;
23628 return 0;
23629}
23630_ACEOF
23631rm -f conftest.$ac_objext conftest$ac_exeext
23632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23633 (eval $ac_link) 2>&5
23634 ac_status=$?
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -s conftest$ac_exeext'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; }; then
23643 ac_cv_lib_dld_dld_link=yes
23644else
23645 echo "$as_me: failed program was:" >&5
23646cat conftest.$ac_ext >&5
23647ac_cv_lib_dld_dld_link=no
23648fi
23649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23650LIBS=$ac_check_lib_save_LIBS
23651fi
23652echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23653echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23654if test $ac_cv_lib_dld_dld_link = yes; then
23655 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23656fi
23657
23658
23659fi
23660
23661
23662fi
23663
23664
23665fi
23666
23667
23668fi
23669
23670
23671fi
23672
23673 ;;
23674 esac
23675
23676 if test "x$lt_cv_dlopen" != xno; then
23677 enable_dlopen=yes
23678 else
23679 enable_dlopen=no
23680 fi
23681
23682 case $lt_cv_dlopen in
23683 dlopen)
23684 save_CPPFLAGS="$CPPFLAGS"
23685 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23686
23687 save_LDFLAGS="$LDFLAGS"
23688 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23689
23690 save_LIBS="$LIBS"
23691 LIBS="$lt_cv_dlopen_libs $LIBS"
23692
23693 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23694echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23695if test "${lt_cv_dlopen_self+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23697else
23698 if test "$cross_compiling" = yes; then :
23699 lt_cv_dlopen_self=cross
23700else
23701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23702 lt_status=$lt_dlunknown
23703 cat > conftest.$ac_ext <<EOF
23704#line 23704 "configure"
23705#include "confdefs.h"
23706
23707#if HAVE_DLFCN_H
23708#include <dlfcn.h>
23709#endif
23710
23711#include <stdio.h>
23712
23713#ifdef RTLD_GLOBAL
23714# define LT_DLGLOBAL RTLD_GLOBAL
23715#else
23716# ifdef DL_GLOBAL
23717# define LT_DLGLOBAL DL_GLOBAL
23718# else
23719# define LT_DLGLOBAL 0
23720# endif
23721#endif
23722
23723/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23724 find out it does not work in some platform. */
23725#ifndef LT_DLLAZY_OR_NOW
23726# ifdef RTLD_LAZY
23727# define LT_DLLAZY_OR_NOW RTLD_LAZY
23728# else
23729# ifdef DL_LAZY
23730# define LT_DLLAZY_OR_NOW DL_LAZY
23731# else
23732# ifdef RTLD_NOW
23733# define LT_DLLAZY_OR_NOW RTLD_NOW
23734# else
23735# ifdef DL_NOW
23736# define LT_DLLAZY_OR_NOW DL_NOW
23737# else
23738# define LT_DLLAZY_OR_NOW 0
23739# endif
23740# endif
23741# endif
23742# endif
23743#endif
23744
23745#ifdef __cplusplus
23746extern "C" void exit (int);
23747#endif
23748
23749void fnord() { int i=42;}
23750int main ()
23751{
23752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23753 int status = $lt_dlunknown;
23754
23755 if (self)
23756 {
23757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23758 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23759 /* dlclose (self); */
23760 }
23761
23762 exit (status);
23763}
23764EOF
23765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23766 (eval $ac_link) 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23770 (./conftest; exit; ) 2>/dev/null
23771 lt_status=$?
23772 case x$lt_status in
23773 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23774 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23775 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23776 esac
23777 else :
23778 # compilation failed
23779 lt_cv_dlopen_self=no
23780 fi
23781fi
23782rm -fr conftest*
23783
23784
23785fi
23786echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23787echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23788
23789 if test "x$lt_cv_dlopen_self" = xyes; then
23790 LDFLAGS="$LDFLAGS $link_static_flag"
23791 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23792echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23793if test "${lt_cv_dlopen_self_static+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795else
23796 if test "$cross_compiling" = yes; then :
23797 lt_cv_dlopen_self_static=cross
23798else
23799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23800 lt_status=$lt_dlunknown
23801 cat > conftest.$ac_ext <<EOF
23802#line 23802 "configure"
23803#include "confdefs.h"
23804
23805#if HAVE_DLFCN_H
23806#include <dlfcn.h>
23807#endif
23808
23809#include <stdio.h>
23810
23811#ifdef RTLD_GLOBAL
23812# define LT_DLGLOBAL RTLD_GLOBAL
23813#else
23814# ifdef DL_GLOBAL
23815# define LT_DLGLOBAL DL_GLOBAL
23816# else
23817# define LT_DLGLOBAL 0
23818# endif
23819#endif
23820
23821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23822 find out it does not work in some platform. */
23823#ifndef LT_DLLAZY_OR_NOW
23824# ifdef RTLD_LAZY
23825# define LT_DLLAZY_OR_NOW RTLD_LAZY
23826# else
23827# ifdef DL_LAZY
23828# define LT_DLLAZY_OR_NOW DL_LAZY
23829# else
23830# ifdef RTLD_NOW
23831# define LT_DLLAZY_OR_NOW RTLD_NOW
23832# else
23833# ifdef DL_NOW
23834# define LT_DLLAZY_OR_NOW DL_NOW
23835# else
23836# define LT_DLLAZY_OR_NOW 0
23837# endif
23838# endif
23839# endif
23840# endif
23841#endif
23842
23843#ifdef __cplusplus
23844extern "C" void exit (int);
23845#endif
23846
23847void fnord() { int i=42;}
23848int main ()
23849{
23850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23851 int status = $lt_dlunknown;
23852
23853 if (self)
23854 {
23855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23857 /* dlclose (self); */
23858 }
23859
23860 exit (status);
23861}
23862EOF
23863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23864 (eval $ac_link) 2>&5
23865 ac_status=$?
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23868 (./conftest; exit; ) 2>/dev/null
23869 lt_status=$?
23870 case x$lt_status in
23871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23873 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23874 esac
23875 else :
23876 # compilation failed
23877 lt_cv_dlopen_self_static=no
23878 fi
23879fi
23880rm -fr conftest*
23881
23882
23883fi
23884echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23885echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23886 fi
23887
23888 CPPFLAGS="$save_CPPFLAGS"
23889 LDFLAGS="$save_LDFLAGS"
23890 LIBS="$save_LIBS"
23891 ;;
23892 esac
23893
23894 case $lt_cv_dlopen_self in
23895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23896 *) enable_dlopen_self=unknown ;;
23897 esac
23898
23899 case $lt_cv_dlopen_self_static in
23900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23901 *) enable_dlopen_self_static=unknown ;;
23902 esac
23903fi
23904
23905
23906# The else clause should only fire when bootstrapping the
23907# libtool distribution, otherwise you forgot to ship ltmain.sh
23908# with your package, and you will get complaints that there are
23909# no rules to generate ltmain.sh.
23910if test -f "$ltmain"; then
23911 # Now quote all the things that may contain metacharacters while being
23912 # careful not to overquote the AC_SUBSTed values. We take copies of the
23913 # variables and quote the copies for generation of the libtool script.
23914 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
23915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23917 deplibs_check_method reload_flag reload_cmds need_locks \
23918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23919 lt_cv_sys_global_symbol_to_c_name_address \
23920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23921 old_postinstall_cmds old_postuninstall_cmds \
23922 compiler_GCJ \
23923 CC_GCJ \
23924 LD_GCJ \
23925 lt_prog_compiler_wl_GCJ \
23926 lt_prog_compiler_pic_GCJ \
23927 lt_prog_compiler_static_GCJ \
23928 lt_prog_compiler_no_builtin_flag_GCJ \
23929 export_dynamic_flag_spec_GCJ \
23930 thread_safe_flag_spec_GCJ \
23931 whole_archive_flag_spec_GCJ \
23932 old_archive_cmds_GCJ \
23933 old_archive_from_new_cmds_GCJ \
23934 predep_objects_GCJ \
23935 postdep_objects_GCJ \
23936 predeps_GCJ \
23937 postdeps_GCJ \
23938 compiler_lib_search_path_GCJ \
23939 archive_cmds_GCJ \
23940 archive_expsym_cmds_GCJ \
23941 postinstall_cmds_GCJ \
23942 postuninstall_cmds_GCJ \
23943 old_archive_from_expsyms_cmds_GCJ \
23944 allow_undefined_flag_GCJ \
23945 no_undefined_flag_GCJ \
23946 export_symbols_cmds_GCJ \
23947 hardcode_libdir_flag_spec_GCJ \
23948 hardcode_libdir_separator_GCJ \
23949 lt_cv_prog_compiler_c_o_GCJ \
23950 exclude_expsyms_GCJ \
23951 include_expsyms_GCJ; do
23952
23953 case $var in
23954 old_archive_cmds_GCJ | \
23955 old_archive_from_new_cmds_GCJ | \
23956 archive_cmds_GCJ | \
23957 archive_expsym_cmds_GCJ | \
23958 old_archive_from_expsyms_cmds_GCJ | \
23959 export_symbols_cmds_GCJ | \
23960 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23961 postinstall_cmds | postuninstall_cmds | \
23962 old_postinstall_cmds | old_postuninstall_cmds | \
23963 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23964 # Double-quote double-evaled strings.
23965 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23966 ;;
23967 *)
23968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23969 ;;
23970 esac
23971 done
23972
23973 case $lt_echo in
23974 *'\$0 --fallback-echo"')
23975 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23976 ;;
23977 esac
23978
23979cfgfile="$ofile"
23980
23981 cat <<__EOF__ >> "$cfgfile"
23982# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23983
23984# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23985
23986# Shell to use when invoking shell scripts.
23987SHELL=$lt_SHELL
23988
23989# Whether or not to build shared libraries.
23990build_libtool_libs=$enable_shared
23991
23992# Whether or not to build static libraries.
23993build_old_libs=$enable_static
23994
23995# Whether or not to add -lc for building shared libraries.
23996build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23997
23998# Whether or not to optimize for fast installation.
23999fast_install=$enable_fast_install
24000
24001# The host system.
24002host_alias=$host_alias
24003host=$host
24004
24005# An echo program that does not interpret backslashes.
24006echo=$lt_echo
24007
24008# The archiver.
24009AR=$lt_AR
24010AR_FLAGS=$lt_AR_FLAGS
24011
24012# A C compiler.
24013LTCC=$lt_LTCC
24014
24015# A language-specific compiler.
24016CC=$lt_compiler_GCJ
24017
24018# Is the compiler the GNU C compiler?
24019with_gcc=$GCC_GCJ
24020
24021# The linker used to build libraries.
24022LD=$lt_LD_GCJ
24023
24024# Whether we need hard or soft links.
24025LN_S=$lt_LN_S
24026
24027# A BSD-compatible nm program.
24028NM=$lt_NM
24029
24030# A sed program that does not truncate output.
24031SED=$lt_SED
24032
24033# A symbol stripping program
24034STRIP=$STRIP
24035
24036# Used to examine libraries when file_magic_cmd begins "file"
24037MAGIC_CMD=$MAGIC_CMD
24038
24039# Used on cygwin: DLL creation program.
24040DLLTOOL="$DLLTOOL"
24041
24042# Used on cygwin: object dumper.
24043OBJDUMP="$OBJDUMP"
24044
24045# Used on cygwin: assembler.
24046AS="$AS"
24047
24048# The name of the directory that contains temporary libtool files.
24049objdir=$objdir
24050
24051# How to create reloadable object files.
24052reload_flag=$lt_reload_flag
24053reload_cmds=$lt_reload_cmds
24054
24055# How to pass a linker flag through the compiler.
24056wl=$lt_lt_prog_compiler_wl_GCJ
24057
24058# Object file suffix (normally "o").
24059objext="$ac_objext"
24060
24061# Old archive suffix (normally "a").
24062libext="$libext"
24063
24064# Executable file suffix (normally "").
24065exeext="$exeext"
24066
24067# Additional compiler flags for building library objects.
24068pic_flag=$lt_lt_prog_compiler_pic_GCJ
24069pic_mode=$pic_mode
24070
24071# What is the maximum length of a command?
24072max_cmd_len=$lt_cv_sys_max_cmd_len
24073
24074# Does compiler simultaneously support -c and -o options?
24075compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24076
24077# Must we lock files when doing compilation ?
24078need_locks=$lt_need_locks
24079
24080# Do we need the lib prefix for modules?
24081need_lib_prefix=$need_lib_prefix
24082
24083# Do we need a version for libraries?
24084need_version=$need_version
24085
24086# Whether dlopen is supported.
24087dlopen_support=$enable_dlopen
24088
24089# Whether dlopen of programs is supported.
24090dlopen_self=$enable_dlopen_self
24091
24092# Whether dlopen of statically linked programs is supported.
24093dlopen_self_static=$enable_dlopen_self_static
24094
24095# Compiler flag to prevent dynamic linking.
24096link_static_flag=$lt_lt_prog_compiler_static_GCJ
24097
24098# Compiler flag to turn off builtin functions.
24099no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24100
24101# Compiler flag to allow reflexive dlopens.
24102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24103
24104# Compiler flag to generate shared objects directly from archives.
24105whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24106
24107# Compiler flag to generate thread-safe objects.
24108thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24109
24110# Library versioning type.
24111version_type=$version_type
24112
24113# Format of library name prefix.
24114libname_spec=$lt_libname_spec
24115
24116# List of archive names. First name is the real one, the rest are links.
24117# The last name is the one that the linker finds with -lNAME.
24118library_names_spec=$lt_library_names_spec
24119
24120# The coded name of the library, if different from the real name.
24121soname_spec=$lt_soname_spec
24122
24123# Commands used to build and install an old-style archive.
24124RANLIB=$lt_RANLIB
24125old_archive_cmds=$lt_old_archive_cmds_GCJ
24126old_postinstall_cmds=$lt_old_postinstall_cmds
24127old_postuninstall_cmds=$lt_old_postuninstall_cmds
24128
24129# Create an old-style archive from a shared archive.
24130old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24131
24132# Create a temporary old-style archive to link instead of a shared archive.
24133old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24134
24135# Commands used to build and install a shared archive.
24136archive_cmds=$lt_archive_cmds_GCJ
24137archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24138postinstall_cmds=$lt_postinstall_cmds
24139postuninstall_cmds=$lt_postuninstall_cmds
24140
24141# Commands to strip libraries.
24142old_striplib=$lt_old_striplib
24143striplib=$lt_striplib
24144
24145# Dependencies to place before the objects being linked to create a
24146# shared library.
24147predep_objects=$lt_predep_objects_GCJ
24148
24149# Dependencies to place after the objects being linked to create a
24150# shared library.
24151postdep_objects=$lt_postdep_objects_GCJ
24152
24153# Dependencies to place before the objects being linked to create a
24154# shared library.
24155predeps=$lt_predeps_GCJ
24156
24157# Dependencies to place after the objects being linked to create a
24158# shared library.
24159postdeps=$lt_postdeps_GCJ
24160
24161# The library search path used internally by the compiler when linking
24162# a shared library.
24163compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24164
24165# Method to check whether dependent libraries are shared objects.
24166deplibs_check_method=$lt_deplibs_check_method
24167
24168# Command to use when deplibs_check_method == file_magic.
24169file_magic_cmd=$lt_file_magic_cmd
24170
24171# Flag that allows shared libraries with undefined symbols to be built.
24172allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24173
24174# Flag that forces no undefined symbols.
24175no_undefined_flag=$lt_no_undefined_flag_GCJ
24176
24177# Commands used to finish a libtool library installation in a directory.
24178finish_cmds=$lt_finish_cmds
24179
24180# Same as above, but a single script fragment to be evaled but not shown.
24181finish_eval=$lt_finish_eval
24182
24183# Take the output of nm and produce a listing of raw symbols and C names.
24184global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24185
24186# Transform the output of nm in a proper C declaration
24187global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24188
24189# Transform the output of nm in a C name address pair
24190global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24191
24192# This is the shared library runtime path variable.
24193runpath_var=$runpath_var
24194
24195# This is the shared library path variable.
24196shlibpath_var=$shlibpath_var
24197
24198# Is shlibpath searched before the hard-coded library search path?
24199shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24200
24201# How to hardcode a shared library path into an executable.
24202hardcode_action=$hardcode_action_GCJ
24203
24204# Whether we should hardcode library paths into libraries.
24205hardcode_into_libs=$hardcode_into_libs
24206
24207# Flag to hardcode \$libdir into a binary during linking.
24208# This must work even if \$libdir does not exist.
24209hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24210
24211# Whether we need a single -rpath flag with a separated argument.
24212hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24213
24214# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24215# resulting binary.
24216hardcode_direct=$hardcode_direct_GCJ
24217
24218# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24219# resulting binary.
24220hardcode_minus_L=$hardcode_minus_L_GCJ
24221
24222# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24223# the resulting binary.
24224hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24225
24226# Variables whose values should be saved in libtool wrapper scripts and
24227# restored at relink time.
24228variables_saved_for_relink="$variables_saved_for_relink"
24229
24230# Whether libtool must link a program against all its dependency libraries.
24231link_all_deplibs=$link_all_deplibs_GCJ
24232
24233# Compile-time system search path for libraries
24234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24235
24236# Run-time system search path for libraries
24237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24238
24239# Fix the shell variable \$srcfile for the compiler.
24240fix_srcfile_path="$fix_srcfile_path_GCJ"
24241
24242# Set to yes if exported symbols are required.
24243always_export_symbols=$always_export_symbols_GCJ
24244
24245# The commands to list exported symbols.
24246export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24247
24248# The commands to extract the exported symbol list from a shared archive.
24249extract_expsyms_cmds=$lt_extract_expsyms_cmds
24250
24251# Symbols that should not be listed in the preloaded symbols.
24252exclude_expsyms=$lt_exclude_expsyms_GCJ
24253
24254# Symbols that must always be exported.
24255include_expsyms=$lt_include_expsyms_GCJ
24256
24257# ### END LIBTOOL TAG CONFIG: $tagname
24258
24259__EOF__
24260
24261
24262else
24263 # If there is no Makefile yet, we rely on a make rule to execute
24264 # `config.status --recheck' to rerun these tests and create the
24265 # libtool script then.
24266 test -f Makefile && make "$ltmain"
24267fi
24268
24269
24270ac_ext=c
24271ac_cpp='$CPP $CPPFLAGS'
24272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24274ac_compiler_gnu=$ac_cv_c_compiler_gnu
24275
24276CC="$lt_save_CC"
24277
24278 ;;
24279
24280 RC)
24281
24282
24283
24284# Source file extension for RC test sources.
24285ac_ext=rc
24286
24287# Object file extension for compiled RC test sources.
24288objext=o
24289objext_RC=$objext
24290
24291# Code to be used in simple compile tests
24292lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
24293
24294# Code to be used in simple link tests
24295lt_simple_link_test_code="$lt_simple_compile_test_code"
24296
24297# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24298
24299# If no C compiler was specified, use CC.
24300LTCC=${LTCC-"$CC"}
24301
24302# Allow CC to be a program name with arguments.
24303set dummy $CC
24304compiler="$2"
24305
24306
24307# Allow CC to be a program name with arguments.
24308lt_save_CC="$CC"
24309CC=${RC-"windres"}
24310set dummy $CC
24311compiler="$2"
24312compiler_RC=$CC
24313lt_cv_prog_compiler_c_o_RC=yes
24314
24315# The else clause should only fire when bootstrapping the
24316# libtool distribution, otherwise you forgot to ship ltmain.sh
24317# with your package, and you will get complaints that there are
24318# no rules to generate ltmain.sh.
24319if test -f "$ltmain"; then
24320 # Now quote all the things that may contain metacharacters while being
24321 # careful not to overquote the AC_SUBSTed values. We take copies of the
24322 # variables and quote the copies for generation of the libtool script.
24323 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
24324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24326 deplibs_check_method reload_flag reload_cmds need_locks \
24327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24328 lt_cv_sys_global_symbol_to_c_name_address \
24329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24330 old_postinstall_cmds old_postuninstall_cmds \
24331 compiler_RC \
24332 CC_RC \
24333 LD_RC \
24334 lt_prog_compiler_wl_RC \
24335 lt_prog_compiler_pic_RC \
24336 lt_prog_compiler_static_RC \
24337 lt_prog_compiler_no_builtin_flag_RC \
24338 export_dynamic_flag_spec_RC \
24339 thread_safe_flag_spec_RC \
24340 whole_archive_flag_spec_RC \
24341 old_archive_cmds_RC \
24342 old_archive_from_new_cmds_RC \
24343 predep_objects_RC \
24344 postdep_objects_RC \
24345 predeps_RC \
24346 postdeps_RC \
24347 compiler_lib_search_path_RC \
24348 archive_cmds_RC \
24349 archive_expsym_cmds_RC \
24350 postinstall_cmds_RC \
24351 postuninstall_cmds_RC \
24352 old_archive_from_expsyms_cmds_RC \
24353 allow_undefined_flag_RC \
24354 no_undefined_flag_RC \
24355 export_symbols_cmds_RC \
24356 hardcode_libdir_flag_spec_RC \
24357 hardcode_libdir_separator_RC \
24358 lt_cv_prog_compiler_c_o_RC \
24359 exclude_expsyms_RC \
24360 include_expsyms_RC; do
24361
24362 case $var in
24363 old_archive_cmds_RC | \
24364 old_archive_from_new_cmds_RC | \
24365 archive_cmds_RC | \
24366 archive_expsym_cmds_RC | \
24367 old_archive_from_expsyms_cmds_RC | \
24368 export_symbols_cmds_RC | \
24369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24370 postinstall_cmds | postuninstall_cmds | \
24371 old_postinstall_cmds | old_postuninstall_cmds | \
24372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24373 # Double-quote double-evaled strings.
24374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24375 ;;
24376 *)
24377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24378 ;;
24379 esac
24380 done
24381
24382 case $lt_echo in
24383 *'\$0 --fallback-echo"')
24384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24385 ;;
24386 esac
24387
24388cfgfile="$ofile"
24389
24390 cat <<__EOF__ >> "$cfgfile"
24391# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24392
24393# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24394
24395# Shell to use when invoking shell scripts.
24396SHELL=$lt_SHELL
24397
24398# Whether or not to build shared libraries.
24399build_libtool_libs=$enable_shared
24400
24401# Whether or not to build static libraries.
24402build_old_libs=$enable_static
24403
24404# Whether or not to add -lc for building shared libraries.
24405build_libtool_need_lc=$archive_cmds_need_lc_RC
24406
24407# Whether or not to optimize for fast installation.
24408fast_install=$enable_fast_install
24409
24410# The host system.
24411host_alias=$host_alias
24412host=$host
24413
24414# An echo program that does not interpret backslashes.
24415echo=$lt_echo
24416
24417# The archiver.
24418AR=$lt_AR
24419AR_FLAGS=$lt_AR_FLAGS
24420
24421# A C compiler.
24422LTCC=$lt_LTCC
24423
24424# A language-specific compiler.
24425CC=$lt_compiler_RC
24426
24427# Is the compiler the GNU C compiler?
24428with_gcc=$GCC_RC
24429
24430# The linker used to build libraries.
24431LD=$lt_LD_RC
24432
24433# Whether we need hard or soft links.
24434LN_S=$lt_LN_S
24435
24436# A BSD-compatible nm program.
24437NM=$lt_NM
24438
24439# A sed program that does not truncate output.
24440SED=$lt_SED
24441
24442# A symbol stripping program
24443STRIP=$STRIP
24444
24445# Used to examine libraries when file_magic_cmd begins "file"
24446MAGIC_CMD=$MAGIC_CMD
24447
24448# Used on cygwin: DLL creation program.
24449DLLTOOL="$DLLTOOL"
24450
24451# Used on cygwin: object dumper.
24452OBJDUMP="$OBJDUMP"
24453
24454# Used on cygwin: assembler.
24455AS="$AS"
24456
24457# The name of the directory that contains temporary libtool files.
24458objdir=$objdir
24459
24460# How to create reloadable object files.
24461reload_flag=$lt_reload_flag
24462reload_cmds=$lt_reload_cmds
24463
24464# How to pass a linker flag through the compiler.
24465wl=$lt_lt_prog_compiler_wl_RC
24466
24467# Object file suffix (normally "o").
24468objext="$ac_objext"
24469
24470# Old archive suffix (normally "a").
24471libext="$libext"
24472
24473# Executable file suffix (normally "").
24474exeext="$exeext"
24475
24476# Additional compiler flags for building library objects.
24477pic_flag=$lt_lt_prog_compiler_pic_RC
24478pic_mode=$pic_mode
24479
24480# What is the maximum length of a command?
24481max_cmd_len=$lt_cv_sys_max_cmd_len
24482
24483# Does compiler simultaneously support -c and -o options?
24484compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24485
24486# Must we lock files when doing compilation ?
24487need_locks=$lt_need_locks
24488
24489# Do we need the lib prefix for modules?
24490need_lib_prefix=$need_lib_prefix
24491
24492# Do we need a version for libraries?
24493need_version=$need_version
24494
24495# Whether dlopen is supported.
24496dlopen_support=$enable_dlopen
24497
24498# Whether dlopen of programs is supported.
24499dlopen_self=$enable_dlopen_self
24500
24501# Whether dlopen of statically linked programs is supported.
24502dlopen_self_static=$enable_dlopen_self_static
24503
24504# Compiler flag to prevent dynamic linking.
24505link_static_flag=$lt_lt_prog_compiler_static_RC
24506
24507# Compiler flag to turn off builtin functions.
24508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24509
24510# Compiler flag to allow reflexive dlopens.
24511export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24512
24513# Compiler flag to generate shared objects directly from archives.
24514whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24515
24516# Compiler flag to generate thread-safe objects.
24517thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24518
24519# Library versioning type.
24520version_type=$version_type
24521
24522# Format of library name prefix.
24523libname_spec=$lt_libname_spec
24524
24525# List of archive names. First name is the real one, the rest are links.
24526# The last name is the one that the linker finds with -lNAME.
24527library_names_spec=$lt_library_names_spec
24528
24529# The coded name of the library, if different from the real name.
24530soname_spec=$lt_soname_spec
24531
24532# Commands used to build and install an old-style archive.
24533RANLIB=$lt_RANLIB
24534old_archive_cmds=$lt_old_archive_cmds_RC
24535old_postinstall_cmds=$lt_old_postinstall_cmds
24536old_postuninstall_cmds=$lt_old_postuninstall_cmds
24537
24538# Create an old-style archive from a shared archive.
24539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24540
24541# Create a temporary old-style archive to link instead of a shared archive.
24542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24543
24544# Commands used to build and install a shared archive.
24545archive_cmds=$lt_archive_cmds_RC
24546archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24547postinstall_cmds=$lt_postinstall_cmds
24548postuninstall_cmds=$lt_postuninstall_cmds
24549
24550# Commands to strip libraries.
24551old_striplib=$lt_old_striplib
24552striplib=$lt_striplib
24553
24554# Dependencies to place before the objects being linked to create a
24555# shared library.
24556predep_objects=$lt_predep_objects_RC
24557
24558# Dependencies to place after the objects being linked to create a
24559# shared library.
24560postdep_objects=$lt_postdep_objects_RC
24561
24562# Dependencies to place before the objects being linked to create a
24563# shared library.
24564predeps=$lt_predeps_RC
24565
24566# Dependencies to place after the objects being linked to create a
24567# shared library.
24568postdeps=$lt_postdeps_RC
24569
24570# The library search path used internally by the compiler when linking
24571# a shared library.
24572compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24573
24574# Method to check whether dependent libraries are shared objects.
24575deplibs_check_method=$lt_deplibs_check_method
24576
24577# Command to use when deplibs_check_method == file_magic.
24578file_magic_cmd=$lt_file_magic_cmd
24579
24580# Flag that allows shared libraries with undefined symbols to be built.
24581allow_undefined_flag=$lt_allow_undefined_flag_RC
24582
24583# Flag that forces no undefined symbols.
24584no_undefined_flag=$lt_no_undefined_flag_RC
24585
24586# Commands used to finish a libtool library installation in a directory.
24587finish_cmds=$lt_finish_cmds
24588
24589# Same as above, but a single script fragment to be evaled but not shown.
24590finish_eval=$lt_finish_eval
24591
24592# Take the output of nm and produce a listing of raw symbols and C names.
24593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24594
24595# Transform the output of nm in a proper C declaration
24596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24597
24598# Transform the output of nm in a C name address pair
24599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24600
24601# This is the shared library runtime path variable.
24602runpath_var=$runpath_var
24603
24604# This is the shared library path variable.
24605shlibpath_var=$shlibpath_var
24606
24607# Is shlibpath searched before the hard-coded library search path?
24608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24609
24610# How to hardcode a shared library path into an executable.
24611hardcode_action=$hardcode_action_RC
24612
24613# Whether we should hardcode library paths into libraries.
24614hardcode_into_libs=$hardcode_into_libs
24615
24616# Flag to hardcode \$libdir into a binary during linking.
24617# This must work even if \$libdir does not exist.
24618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24619
24620# Whether we need a single -rpath flag with a separated argument.
24621hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24622
24623# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24624# resulting binary.
24625hardcode_direct=$hardcode_direct_RC
24626
24627# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24628# resulting binary.
24629hardcode_minus_L=$hardcode_minus_L_RC
24630
24631# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24632# the resulting binary.
24633hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24634
24635# Variables whose values should be saved in libtool wrapper scripts and
24636# restored at relink time.
24637variables_saved_for_relink="$variables_saved_for_relink"
24638
24639# Whether libtool must link a program against all its dependency libraries.
24640link_all_deplibs=$link_all_deplibs_RC
24641
24642# Compile-time system search path for libraries
24643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24644
24645# Run-time system search path for libraries
24646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24647
24648# Fix the shell variable \$srcfile for the compiler.
24649fix_srcfile_path="$fix_srcfile_path_RC"
24650
24651# Set to yes if exported symbols are required.
24652always_export_symbols=$always_export_symbols_RC
24653
24654# The commands to list exported symbols.
24655export_symbols_cmds=$lt_export_symbols_cmds_RC
24656
24657# The commands to extract the exported symbol list from a shared archive.
24658extract_expsyms_cmds=$lt_extract_expsyms_cmds
24659
24660# Symbols that should not be listed in the preloaded symbols.
24661exclude_expsyms=$lt_exclude_expsyms_RC
24662
24663# Symbols that must always be exported.
24664include_expsyms=$lt_include_expsyms_RC
24665
24666# ### END LIBTOOL TAG CONFIG: $tagname
24667
24668__EOF__
24669
24670
24671else
24672 # If there is no Makefile yet, we rely on a make rule to execute
24673 # `config.status --recheck' to rerun these tests and create the
24674 # libtool script then.
24675 test -f Makefile && make "$ltmain"
24676fi
24677
24678
24679ac_ext=c
24680ac_cpp='$CPP $CPPFLAGS'
24681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24683ac_compiler_gnu=$ac_cv_c_compiler_gnu
24684
24685CC="$lt_save_CC"
24686
24687 ;;
24688
24689 *)
24690 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24691echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24692 { (exit 1); exit 1; }; }
24693 ;;
24694 esac
24695
24696 # Append the new tag name to the list of available tags.
24697 available_tags="$available_tags $tagname"
24698 fi
24699 done
24700 IFS="$lt_save_ifs"
24701
24702 # Now substitute the updated list of available tags.
24703 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24704 mv "${ofile}T" "$ofile"
24705 chmod +x "$ofile"
24706 else
24707 rm -f "${ofile}T"
24708 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24709echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24710 { (exit 1); exit 1; }; }
24711 fi
24712fi
24713
24714
24715
24716LIBTOOL_SHELL="/bin/sh ./libtool"
24717# LIBTOOL="$LIBTOOL --silent"
24718
24719
24720
24721
24722
24723all_libraries="$all_libraries $USER_LDFLAGS"
24724all_includes="$all_includes $USER_INCLUDES"
24725
24726
24727
24728
24729
24730
24731
24732DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
24733
24734if test ! -s $srcdir/subdirs; then
24735 TOPSUBDIRS=""
24736 files=`cd $srcdir && ls -1`
24737 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
24738 for i in $dirs; do
24739 echo $i >> $srcdir/subdirs
24740 done
24741fi
24742
24743if test -s $srcdir/inst-apps; then
24744 ac_topsubdirs="`cat $srcdir/inst-apps`"
24745else
24746 ac_topsubdirs="`cat $srcdir/subdirs`"
24747fi
24748
24749for i in $ac_topsubdirs; do
24750 echo "$as_me:$LINENO: checking if $i should be compiled" >&5
24751echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
24752 if test -d $srcdir/$i; then
24753 install_it="yes"
24754 for j in $DO_NOT_COMPILE; do
24755 if test $i = $j; then
24756 install_it="no"
24757 fi
24758 done
24759 else
24760 install_it="no"
24761 fi
24762 echo "$as_me:$LINENO: result: $install_it" >&5
24763echo "${ECHO_T}$install_it" >&6
24764 vari=`echo $i | sed -e 's,[-+.],_,g'`
24765 if test $install_it = "yes"; then
24766 TOPSUBDIRS="$TOPSUBDIRS $i"
24767 eval "$vari""_SUBDIR_included=yes"
24768 else
24769 eval "$vari""_SUBDIR_included=no"
24770 fi
24771done
24772
24773
24774
24775ac_config_files="$ac_config_files Makefile"
24776
24777ac_config_files="$ac_config_files ftdi/Makefile"
24778
24779cat >confcache <<\_ACEOF
24780# This file is a shell script that caches the results of configure
24781# tests run on this system so they can be shared between configure
24782# scripts and configure runs, see configure's option --config-cache.
24783# It is not useful on other systems. If it contains results you don't
24784# want to keep, you may remove or edit it.
24785#
24786# config.status only pays attention to the cache file if you give it
24787# the --recheck option to rerun configure.
24788#
24789# `ac_cv_env_foo' variables (set or unset) will be overriden when
24790# loading this file, other *unset* `ac_cv_foo' will be assigned the
24791# following values.
24792
24793_ACEOF
24794
24795# The following way of writing the cache mishandles newlines in values,
24796# but we know of no workaround that is simple, portable, and efficient.
24797# So, don't put newlines in cache variables' values.
24798# Ultrix sh set writes to stderr and can't be redirected directly,
24799# and sets the high bit in the cache file unless we assign to the vars.
24800{
24801 (set) 2>&1 |
24802 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24803 *ac_space=\ *)
24804 # `set' does not quote correctly, so add quotes (double-quote
24805 # substitution turns \\\\ into \\, and sed turns \\ into \).
24806 sed -n \
24807 "s/'/'\\\\''/g;
24808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24809 ;;
24810 *)
24811 # `set' quotes correctly as required by POSIX, so do not add quotes.
24812 sed -n \
24813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24814 ;;
24815 esac;
24816} |
24817 sed '
24818 t clear
24819 : clear
24820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24821 t end
24822 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24823 : end' >>confcache
24824if cmp -s $cache_file confcache; then :; else
24825 if test -w $cache_file; then
24826 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24827 cat confcache >$cache_file
24828 else
24829 echo "not updating unwritable cache $cache_file"
24830 fi
24831fi
24832rm -f confcache
24833
24834test "x$prefix" = xNONE && prefix=$ac_default_prefix
24835# Let make expand exec_prefix.
24836test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24837
24838# VPATH may cause trouble with some makes, so we remove $(srcdir),
24839# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24840# trailing colons and then remove the whole line if VPATH becomes empty
24841# (actually we leave an empty line to preserve line numbers).
24842if test "x$srcdir" = x.; then
24843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24844s/:*\$(srcdir):*/:/;
24845s/:*\${srcdir}:*/:/;
24846s/:*@srcdir@:*/:/;
24847s/^\([^=]*=[ ]*\):*/\1/;
24848s/:*$//;
24849s/^[^=]*=[ ]*$//;
24850}'
24851fi
24852
24853DEFS=-DHAVE_CONFIG_H
24854
24855
24856: ${CONFIG_STATUS=./config.status}
24857ac_clean_files_save=$ac_clean_files
24858ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24859{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24860echo "$as_me: creating $CONFIG_STATUS" >&6;}
24861cat >$CONFIG_STATUS <<_ACEOF
24862#! $SHELL
24863# Generated by $as_me.
24864# Run this file to recreate the current configuration.
24865# Compiler output produced by configure, useful for debugging
24866# configure, is in config.log if it exists.
24867
24868debug=false
24869SHELL=\${CONFIG_SHELL-$SHELL}
24870_ACEOF
24871
24872cat >>$CONFIG_STATUS <<\_ACEOF
24873
24874## --------------------- ##
24875## M4sh Initialization. ##
24876## --------------------- ##
24877
24878# Be Bourne compatible
24879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24880 emulate sh
24881 NULLCMD=:
24882elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24883 set -o posix
24884fi
24885
24886# NLS nuisances.
24887# Support unset when possible.
24888if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24889 as_unset=unset
24890else
24891 as_unset=false
24892fi
24893
24894(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24895 { $as_unset LANG || test "${LANG+set}" != set; } ||
24896 { LANG=C; export LANG; }
24897(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24898 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24899 { LC_ALL=C; export LC_ALL; }
24900(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24901 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24902 { LC_TIME=C; export LC_TIME; }
24903(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24904 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24905 { LC_CTYPE=C; export LC_CTYPE; }
24906(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24907 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24908 { LANGUAGE=C; export LANGUAGE; }
24909(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24910 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24911 { LC_COLLATE=C; export LC_COLLATE; }
24912(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24913 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24914 { LC_NUMERIC=C; export LC_NUMERIC; }
24915(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24916 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24917 { LC_MESSAGES=C; export LC_MESSAGES; }
24918
24919
24920# Name of the executable.
24921as_me=`(basename "$0") 2>/dev/null ||
24922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24923 X"$0" : 'X\(//\)$' \| \
24924 X"$0" : 'X\(/\)$' \| \
24925 . : '\(.\)' 2>/dev/null ||
24926echo X/"$0" |
24927 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24928 /^X\/\(\/\/\)$/{ s//\1/; q; }
24929 /^X\/\(\/\).*/{ s//\1/; q; }
24930 s/.*/./; q'`
24931
24932# PATH needs CR, and LINENO needs CR and PATH.
24933# Avoid depending upon Character Ranges.
24934as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24935as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24936as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24937as_cr_digits='0123456789'
24938as_cr_alnum=$as_cr_Letters$as_cr_digits
24939
24940# The user is always right.
24941if test "${PATH_SEPARATOR+set}" != set; then
24942 echo "#! /bin/sh" >conftest.sh
24943 echo "exit 0" >>conftest.sh
24944 chmod +x conftest.sh
24945 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24946 PATH_SEPARATOR=';'
24947 else
24948 PATH_SEPARATOR=:
24949 fi
24950 rm -f conftest.sh
24951fi
24952
24953
24954 as_lineno_1=$LINENO
24955 as_lineno_2=$LINENO
24956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24957 test "x$as_lineno_1" != "x$as_lineno_2" &&
24958 test "x$as_lineno_3" = "x$as_lineno_2" || {
24959 # Find who we are. Look in the path if we contain no path at all
24960 # relative or not.
24961 case $0 in
24962 *[\\/]* ) as_myself=$0 ;;
24963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24964for as_dir in $PATH
24965do
24966 IFS=$as_save_IFS
24967 test -z "$as_dir" && as_dir=.
24968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24969done
24970
24971 ;;
24972 esac
24973 # We did not find ourselves, most probably we were run as `sh COMMAND'
24974 # in which case we are not to be found in the path.
24975 if test "x$as_myself" = x; then
24976 as_myself=$0
24977 fi
24978 if test ! -f "$as_myself"; then
24979 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24980echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24981 { (exit 1); exit 1; }; }
24982 fi
24983 case $CONFIG_SHELL in
24984 '')
24985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24987do
24988 IFS=$as_save_IFS
24989 test -z "$as_dir" && as_dir=.
24990 for as_base in sh bash ksh sh5; do
24991 case $as_dir in
24992 /*)
24993 if ("$as_dir/$as_base" -c '
24994 as_lineno_1=$LINENO
24995 as_lineno_2=$LINENO
24996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24997 test "x$as_lineno_1" != "x$as_lineno_2" &&
24998 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24999 CONFIG_SHELL=$as_dir/$as_base
25000 export CONFIG_SHELL
25001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25002 fi;;
25003 esac
25004 done
25005done
25006;;
25007 esac
25008
25009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25010 # uniformly replaced by the line number. The first 'sed' inserts a
25011 # line-number line before each line; the second 'sed' does the real
25012 # work. The second script uses 'N' to pair each line-number line
25013 # with the numbered line, and appends trailing '-' during
25014 # substitution so that $LINENO is not a special case at line end.
25015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25017 sed '=' <$as_myself |
25018 sed '
25019 N
25020 s,$,-,
25021 : loop
25022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25023 t loop
25024 s,-$,,
25025 s,^['$as_cr_digits']*\n,,
25026 ' >$as_me.lineno &&
25027 chmod +x $as_me.lineno ||
25028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25029echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25030 { (exit 1); exit 1; }; }
25031
25032 # Don't try to exec as it changes $[0], causing all sort of problems
25033 # (the dirname of $[0] is not the place where we might find the
25034 # original and so on. Autoconf is especially sensible to this).
25035 . ./$as_me.lineno
25036 # Exit status is that of the last command.
25037 exit
25038}
25039
25040
25041case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25042 *c*,-n*) ECHO_N= ECHO_C='
25043' ECHO_T=' ' ;;
25044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25046esac
25047
25048if expr a : '\(a\)' >/dev/null 2>&1; then
25049 as_expr=expr
25050else
25051 as_expr=false
25052fi
25053
25054rm -f conf$$ conf$$.exe conf$$.file
25055echo >conf$$.file
25056if ln -s conf$$.file conf$$ 2>/dev/null; then
25057 # We could just check for DJGPP; but this test a) works b) is more generic
25058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25059 if test -f conf$$.exe; then
25060 # Don't use ln at all; we don't have any links
25061 as_ln_s='cp -p'
25062 else
25063 as_ln_s='ln -s'
25064 fi
25065elif ln conf$$.file conf$$ 2>/dev/null; then
25066 as_ln_s=ln
25067else
25068 as_ln_s='cp -p'
25069fi
25070rm -f conf$$ conf$$.exe conf$$.file
25071
25072as_executable_p="test -f"
25073
25074# Sed expression to map a string onto a valid CPP name.
25075as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25076
25077# Sed expression to map a string onto a valid variable name.
25078as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25079
25080
25081# IFS
25082# We need space, tab and new line, in precisely that order.
25083as_nl='
25084'
25085IFS=" $as_nl"
25086
25087# CDPATH.
25088$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
25089
25090exec 6>&1
25091
25092# Open the log real soon, to keep \$[0] and so on meaningful, and to
25093# report actual input values of CONFIG_FILES etc. instead of their
25094# values after options handling. Logging --version etc. is OK.
25095exec 5>>config.log
25096{
25097 echo
25098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25099## Running $as_me. ##
25100_ASBOX
25101} >&5
25102cat >&5 <<_CSEOF
25103
25104This file was extended by $as_me, which was
25105generated by GNU Autoconf 2.53. Invocation command line was
25106
25107 CONFIG_FILES = $CONFIG_FILES
25108 CONFIG_HEADERS = $CONFIG_HEADERS
25109 CONFIG_LINKS = $CONFIG_LINKS
25110 CONFIG_COMMANDS = $CONFIG_COMMANDS
25111 $ $0 $@
25112
25113_CSEOF
25114echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25115echo >&5
25116_ACEOF
25117
25118# Files that config.status was made for.
25119if test -n "$ac_config_files"; then
25120 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25121fi
25122
25123if test -n "$ac_config_headers"; then
25124 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25125fi
25126
25127if test -n "$ac_config_links"; then
25128 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25129fi
25130
25131if test -n "$ac_config_commands"; then
25132 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25133fi
25134
25135cat >>$CONFIG_STATUS <<\_ACEOF
25136
25137ac_cs_usage="\
25138\`$as_me' instantiates files from templates according to the
25139current configuration.
25140
25141Usage: $0 [OPTIONS] [FILE]...
25142
25143 -h, --help print this help, then exit
25144 -V, --version print version number, then exit
25145 -d, --debug don't remove temporary files
25146 --recheck update $as_me by reconfiguring in the same conditions
25147 --file=FILE[:TEMPLATE]
25148 instantiate the configuration file FILE
25149 --header=FILE[:TEMPLATE]
25150 instantiate the configuration header FILE
25151
25152Configuration files:
25153$config_files
25154
25155Configuration headers:
25156$config_headers
25157
25158Configuration commands:
25159$config_commands
25160
25161Report bugs to <bug-autoconf@gnu.org>."
25162_ACEOF
25163
25164cat >>$CONFIG_STATUS <<_ACEOF
25165ac_cs_version="\\
25166config.status
25167configured by $0, generated by GNU Autoconf 2.53,
25168 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25169
25170Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25171Free Software Foundation, Inc.
25172This config.status script is free software; the Free Software Foundation
25173gives unlimited permission to copy, distribute and modify it."
25174srcdir=$srcdir
25175INSTALL="$INSTALL"
25176_ACEOF
25177
25178cat >>$CONFIG_STATUS <<\_ACEOF
25179# If no file are specified by the user, then we need to provide default
25180# value. By we need to know if files were specified by the user.
25181ac_need_defaults=:
25182while test $# != 0
25183do
25184 case $1 in
25185 --*=*)
25186 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25188 shift
25189 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25190 shift
25191 ;;
25192 -*);;
25193 *) # This is not an option, so the user has probably given explicit
25194 # arguments.
25195 ac_need_defaults=false;;
25196 esac
25197
25198 case $1 in
25199 # Handling of the options.
25200_ACEOF
25201cat >>$CONFIG_STATUS <<_ACEOF
25202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25203 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25204 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25205_ACEOF
25206cat >>$CONFIG_STATUS <<\_ACEOF
25207 --version | --vers* | -V )
25208 echo "$ac_cs_version"; exit 0 ;;
25209 --he | --h)
25210 # Conflict between --help and --header
25211 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25212Try \`$0 --help' for more information." >&5
25213echo "$as_me: error: ambiguous option: $1
25214Try \`$0 --help' for more information." >&2;}
25215 { (exit 1); exit 1; }; };;
25216 --help | --hel | -h )
25217 echo "$ac_cs_usage"; exit 0 ;;
25218 --debug | --d* | -d )
25219 debug=: ;;
25220 --file | --fil | --fi | --f )
25221 shift
25222 CONFIG_FILES="$CONFIG_FILES $1"
25223 ac_need_defaults=false;;
25224 --header | --heade | --head | --hea )
25225 shift
25226 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25227 ac_need_defaults=false;;
25228
25229 # This is an error.
25230 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25231Try \`$0 --help' for more information." >&5
25232echo "$as_me: error: unrecognized option: $1
25233Try \`$0 --help' for more information." >&2;}
25234 { (exit 1); exit 1; }; } ;;
25235
25236 *) ac_config_targets="$ac_config_targets $1" ;;
25237
25238 esac
25239 shift
25240done
25241
25242_ACEOF
25243
25244cat >>$CONFIG_STATUS <<_ACEOF
25245#
25246# INIT-COMMANDS section.
25247#
25248
25249AMDEP_TRUE="$AMDEP_TRUE"
25250ac_aux_dir="$ac_aux_dir"
25251
25252_ACEOF
25253
25254
25255
25256cat >>$CONFIG_STATUS <<\_ACEOF
25257for ac_config_target in $ac_config_targets
25258do
25259 case "$ac_config_target" in
25260 # Handling of arguments.
25261 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25262 "ftdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi/Makefile" ;;
25263 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25264 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25266echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25267 { (exit 1); exit 1; }; };;
25268 esac
25269done
25270
25271# If the user did not use the arguments to specify the items to instantiate,
25272# then the envvar interface is used. Set only those that are not.
25273# We use the long form for the default assignment because of an extremely
25274# bizarre bug on SunOS 4.1.3.
25275if $ac_need_defaults; then
25276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25279fi
25280
25281# Create a temporary directory, and hook for its removal unless debugging.
25282$debug ||
25283{
25284 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25285 trap '{ (exit 1); exit 1; }' 1 2 13 15
25286}
25287
25288# Create a (secure) tmp directory for tmp files.
25289: ${TMPDIR=/tmp}
25290{
25291 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25292 test -n "$tmp" && test -d "$tmp"
25293} ||
25294{
25295 tmp=$TMPDIR/cs$$-$RANDOM
25296 (umask 077 && mkdir $tmp)
25297} ||
25298{
25299 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25300 { (exit 1); exit 1; }
25301}
25302
25303_ACEOF
25304
25305cat >>$CONFIG_STATUS <<_ACEOF
25306
25307#
25308# CONFIG_FILES section.
25309#
25310
25311# No need to generate the scripts if there are no CONFIG_FILES.
25312# This happens for instance when ./config.status config.h
25313if test -n "\$CONFIG_FILES"; then
25314 # Protect against being on the right side of a sed subst in config.status.
25315 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25316 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25317s,@SHELL@,$SHELL,;t t
25318s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25319s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25320s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25321s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25322s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25323s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25324s,@exec_prefix@,$exec_prefix,;t t
25325s,@prefix@,$prefix,;t t
25326s,@program_transform_name@,$program_transform_name,;t t
25327s,@bindir@,$bindir,;t t
25328s,@sbindir@,$sbindir,;t t
25329s,@libexecdir@,$libexecdir,;t t
25330s,@datadir@,$datadir,;t t
25331s,@sysconfdir@,$sysconfdir,;t t
25332s,@sharedstatedir@,$sharedstatedir,;t t
25333s,@localstatedir@,$localstatedir,;t t
25334s,@libdir@,$libdir,;t t
25335s,@includedir@,$includedir,;t t
25336s,@oldincludedir@,$oldincludedir,;t t
25337s,@infodir@,$infodir,;t t
25338s,@mandir@,$mandir,;t t
25339s,@build_alias@,$build_alias,;t t
25340s,@host_alias@,$host_alias,;t t
25341s,@target_alias@,$target_alias,;t t
25342s,@DEFS@,$DEFS,;t t
25343s,@ECHO_C@,$ECHO_C,;t t
25344s,@ECHO_N@,$ECHO_N,;t t
25345s,@ECHO_T@,$ECHO_T,;t t
25346s,@LIBS@,$LIBS,;t t
25347s,@build@,$build,;t t
25348s,@build_cpu@,$build_cpu,;t t
25349s,@build_vendor@,$build_vendor,;t t
25350s,@build_os@,$build_os,;t t
25351s,@host@,$host,;t t
25352s,@host_cpu@,$host_cpu,;t t
25353s,@host_vendor@,$host_vendor,;t t
25354s,@host_os@,$host_os,;t t
25355s,@target@,$target,;t t
25356s,@target_cpu@,$target_cpu,;t t
25357s,@target_vendor@,$target_vendor,;t t
25358s,@target_os@,$target_os,;t t
25359s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25360s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25361s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25362s,@PACKAGE@,$PACKAGE,;t t
25363s,@VERSION@,$VERSION,;t t
25364s,@EXEEXT@,$EXEEXT,;t t
25365s,@OBJEXT@,$OBJEXT,;t t
25366s,@ACLOCAL@,$ACLOCAL,;t t
25367s,@AUTOCONF@,$AUTOCONF,;t t
25368s,@AUTOMAKE@,$AUTOMAKE,;t t
25369s,@AUTOHEADER@,$AUTOHEADER,;t t
25370s,@MAKEINFO@,$MAKEINFO,;t t
25371s,@AMTAR@,$AMTAR,;t t
25372s,@install_sh@,$install_sh,;t t
25373s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25374s,@AWK@,$AWK,;t t
25375s,@SET_MAKE@,$SET_MAKE,;t t
25376s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25377s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25378s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25379s,@DEPDIR@,$DEPDIR,;t t
25380s,@CC@,$CC,;t t
25381s,@CFLAGS@,$CFLAGS,;t t
25382s,@LDFLAGS@,$LDFLAGS,;t t
25383s,@CPPFLAGS@,$CPPFLAGS,;t t
25384s,@ac_ct_CC@,$ac_ct_CC,;t t
25385s,@am__include@,$am__include,;t t
25386s,@am__quote@,$am__quote,;t t
25387s,@CCDEPMODE@,$CCDEPMODE,;t t
25388s,@CXX@,$CXX,;t t
25389s,@CXXFLAGS@,$CXXFLAGS,;t t
25390s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25391s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25392s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
25393s,@USE_RTTI@,$USE_RTTI,;t t
25394s,@CPP@,$CPP,;t t
25395s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
25396s,@REPO@,$REPO,;t t
25397s,@NOREPO@,$NOREPO,;t t
25398s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
25399s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
25400s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
25401s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
25402s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t
25403s,@LN_S@,$LN_S,;t t
25404s,@ECHO@,$ECHO,;t t
25405s,@RANLIB@,$RANLIB,;t t
25406s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25407s,@STRIP@,$STRIP,;t t
25408s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25409s,@CXXCPP@,$CXXCPP,;t t
25410s,@LIBTOOL@,$LIBTOOL,;t t
25411s,@all_includes@,$all_includes,;t t
25412s,@all_libraries@,$all_libraries,;t t
25413s,@AUTODIRS@,$AUTODIRS,;t t
25414s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
25415CEOF
25416
25417_ACEOF
25418
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420 # Split the substitutions into bite-sized pieces for seds with
25421 # small command number limits, like on Digital OSF/1 and HP-UX.
25422 ac_max_sed_lines=48
25423 ac_sed_frag=1 # Number of current file.
25424 ac_beg=1 # First line for current file.
25425 ac_end=$ac_max_sed_lines # Line after last line for current file.
25426 ac_more_lines=:
25427 ac_sed_cmds=
25428 while $ac_more_lines; do
25429 if test $ac_beg -gt 1; then
25430 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25431 else
25432 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25433 fi
25434 if test ! -s $tmp/subs.frag; then
25435 ac_more_lines=false
25436 else
25437 # The purpose of the label and of the branching condition is to
25438 # speed up the sed processing (if there are no `@' at all, there
25439 # is no need to browse any of the substitutions).
25440 # These are the two extra sed commands mentioned above.
25441 (echo ':t
25442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25443 if test -z "$ac_sed_cmds"; then
25444 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25445 else
25446 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25447 fi
25448 ac_sed_frag=`expr $ac_sed_frag + 1`
25449 ac_beg=$ac_end
25450 ac_end=`expr $ac_end + $ac_max_sed_lines`
25451 fi
25452 done
25453 if test -z "$ac_sed_cmds"; then
25454 ac_sed_cmds=cat
25455 fi
25456fi # test -n "$CONFIG_FILES"
25457
25458_ACEOF
25459cat >>$CONFIG_STATUS <<\_ACEOF
25460for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25462 case $ac_file in
25463 - | *:- | *:-:* ) # input from stdin
25464 cat >$tmp/stdin
25465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25469 * ) ac_file_in=$ac_file.in ;;
25470 esac
25471
25472 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25475 X"$ac_file" : 'X\(//\)[^/]' \| \
25476 X"$ac_file" : 'X\(//\)$' \| \
25477 X"$ac_file" : 'X\(/\)' \| \
25478 . : '\(.\)' 2>/dev/null ||
25479echo X"$ac_file" |
25480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25482 /^X\(\/\/\)$/{ s//\1/; q; }
25483 /^X\(\/\).*/{ s//\1/; q; }
25484 s/.*/./; q'`
25485 { case "$ac_dir" in
25486 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25487 *) as_incr_dir=.;;
25488esac
25489as_dummy="$ac_dir"
25490for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25491 case $as_mkdir_dir in
25492 # Skip DOS drivespec
25493 ?:) as_incr_dir=$as_mkdir_dir ;;
25494 *)
25495 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25496 test -d "$as_incr_dir" ||
25497 mkdir "$as_incr_dir" ||
25498 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25499echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25500 { (exit 1); exit 1; }; }
25501 ;;
25502 esac
25503done; }
25504
25505 ac_builddir=.
25506
25507if test "$ac_dir" != .; then
25508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25509 # A "../" for each directory in $ac_dir_suffix.
25510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25511else
25512 ac_dir_suffix= ac_top_builddir=
25513fi
25514
25515case $srcdir in
25516 .) # No --srcdir option. We are building in place.
25517 ac_srcdir=.
25518 if test -z "$ac_top_builddir"; then
25519 ac_top_srcdir=.
25520 else
25521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25522 fi ;;
25523 [\\/]* | ?:[\\/]* ) # Absolute path.
25524 ac_srcdir=$srcdir$ac_dir_suffix;
25525 ac_top_srcdir=$srcdir ;;
25526 *) # Relative path.
25527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25529esac
25530# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25531# absolute.
25532ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25533ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25534ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25535ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25536
25537
25538 case $INSTALL in
25539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25540 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25541 esac
25542
25543 if test x"$ac_file" != x-; then
25544 { echo "$as_me:$LINENO: creating $ac_file" >&5
25545echo "$as_me: creating $ac_file" >&6;}
25546 rm -f "$ac_file"
25547 fi
25548 # Let's still pretend it is `configure' which instantiates (i.e., don't
25549 # use $as_me), people would be surprised to read:
25550 # /* config.h. Generated by config.status. */
25551 if test x"$ac_file" = x-; then
25552 configure_input=
25553 else
25554 configure_input="$ac_file. "
25555 fi
25556 configure_input=$configure_input"Generated from `echo $ac_file_in |
25557 sed 's,.*/,,'` by configure."
25558
25559 # First look for the input files in the build tree, otherwise in the
25560 # src tree.
25561 ac_file_inputs=`IFS=:
25562 for f in $ac_file_in; do
25563 case $f in
25564 -) echo $tmp/stdin ;;
25565 [\\/$]*)
25566 # Absolute (can't be DOS-style, as IFS=:)
25567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25568echo "$as_me: error: cannot find input file: $f" >&2;}
25569 { (exit 1); exit 1; }; }
25570 echo $f;;
25571 *) # Relative
25572 if test -f "$f"; then
25573 # Build tree
25574 echo $f
25575 elif test -f "$srcdir/$f"; then
25576 # Source tree
25577 echo $srcdir/$f
25578 else
25579 # /dev/null tree
25580 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25581echo "$as_me: error: cannot find input file: $f" >&2;}
25582 { (exit 1); exit 1; }; }
25583 fi;;
25584 esac
25585 done` || { (exit 1); exit 1; }
25586_ACEOF
25587cat >>$CONFIG_STATUS <<_ACEOF
25588 sed "$ac_vpsub
25589$extrasub
25590_ACEOF
25591cat >>$CONFIG_STATUS <<\_ACEOF
25592:t
25593/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25594s,@configure_input@,$configure_input,;t t
25595s,@srcdir@,$ac_srcdir,;t t
25596s,@abs_srcdir@,$ac_abs_srcdir,;t t
25597s,@top_srcdir@,$ac_top_srcdir,;t t
25598s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25599s,@builddir@,$ac_builddir,;t t
25600s,@abs_builddir@,$ac_abs_builddir,;t t
25601s,@top_builddir@,$ac_top_builddir,;t t
25602s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25603s,@INSTALL@,$ac_INSTALL,;t t
25604" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25605 rm -f $tmp/stdin
25606 if test x"$ac_file" != x-; then
25607 mv $tmp/out $ac_file
25608 else
25609 cat $tmp/out
25610 rm -f $tmp/out
25611 fi
25612
25613done
25614_ACEOF
25615cat >>$CONFIG_STATUS <<\_ACEOF
25616
25617#
25618# CONFIG_HEADER section.
25619#
25620
25621# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25622# NAME is the cpp macro being defined and VALUE is the value it is being given.
25623#
25624# ac_d sets the value in "#define NAME VALUE" lines.
25625ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25626ac_dB='[ ].*$,\1#\2'
25627ac_dC=' '
25628ac_dD=',;t'
25629# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25630ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25631ac_uB='$,\1#\2define\3'
25632ac_uC=' '
25633ac_uD=',;t'
25634
25635for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25637 case $ac_file in
25638 - | *:- | *:-:* ) # input from stdin
25639 cat >$tmp/stdin
25640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25644 * ) ac_file_in=$ac_file.in ;;
25645 esac
25646
25647 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25648echo "$as_me: creating $ac_file" >&6;}
25649
25650 # First look for the input files in the build tree, otherwise in the
25651 # src tree.
25652 ac_file_inputs=`IFS=:
25653 for f in $ac_file_in; do
25654 case $f in
25655 -) echo $tmp/stdin ;;
25656 [\\/$]*)
25657 # Absolute (can't be DOS-style, as IFS=:)
25658 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25659echo "$as_me: error: cannot find input file: $f" >&2;}
25660 { (exit 1); exit 1; }; }
25661 echo $f;;
25662 *) # Relative
25663 if test -f "$f"; then
25664 # Build tree
25665 echo $f
25666 elif test -f "$srcdir/$f"; then
25667 # Source tree
25668 echo $srcdir/$f
25669 else
25670 # /dev/null tree
25671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25672echo "$as_me: error: cannot find input file: $f" >&2;}
25673 { (exit 1); exit 1; }; }
25674 fi;;
25675 esac
25676 done` || { (exit 1); exit 1; }
25677 # Remove the trailing spaces.
25678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25679
25680_ACEOF
25681
25682# Transform confdefs.h into two sed scripts, `conftest.defines' and
25683# `conftest.undefs', that substitutes the proper values into
25684# config.h.in to produce config.h. The first handles `#define'
25685# templates, and the second `#undef' templates.
25686# And first: Protect against being on the right side of a sed subst in
25687# config.status. Protect against being in an unquoted here document
25688# in config.status.
25689rm -f conftest.defines conftest.undefs
25690# Using a here document instead of a string reduces the quoting nightmare.
25691# Putting comments in sed scripts is not portable.
25692#
25693# `end' is used to avoid that the second main sed command (meant for
25694# 0-ary CPP macros) applies to n-ary macro definitions.
25695# See the Autoconf documentation for `clear'.
25696cat >confdef2sed.sed <<\_ACEOF
25697s/[\\&,]/\\&/g
25698s,[\\$`],\\&,g
25699t clear
25700: clear
25701s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25702t end
25703s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25704: end
25705_ACEOF
25706# If some macros were called several times there might be several times
25707# the same #defines, which is useless. Nevertheless, we may not want to
25708# sort them, since we want the *last* AC-DEFINE to be honored.
25709uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25710sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25711rm -f confdef2sed.sed
25712
25713# This sed command replaces #undef with comments. This is necessary, for
25714# example, in the case of _POSIX_SOURCE, which is predefined and required
25715# on some systems where configure will not decide to define it.
25716cat >>conftest.undefs <<\_ACEOF
25717s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25718_ACEOF
25719
25720# Break up conftest.defines because some shells have a limit on the size
25721# of here documents, and old seds have small limits too (100 cmds).
25722echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25723echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25724echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25725echo ' :' >>$CONFIG_STATUS
25726rm -f conftest.tail
25727while grep . conftest.defines >/dev/null
25728do
25729 # Write a limited-size here document to $tmp/defines.sed.
25730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25731 # Speed up: don't consider the non `#define' lines.
25732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25733 # Work around the forget-to-reset-the-flag bug.
25734 echo 't clr' >>$CONFIG_STATUS
25735 echo ': clr' >>$CONFIG_STATUS
25736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25737 echo 'CEOF
25738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25739 rm -f $tmp/in
25740 mv $tmp/out $tmp/in
25741' >>$CONFIG_STATUS
25742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25743 rm -f conftest.defines
25744 mv conftest.tail conftest.defines
25745done
25746rm -f conftest.defines
25747echo ' fi # egrep' >>$CONFIG_STATUS
25748echo >>$CONFIG_STATUS
25749
25750# Break up conftest.undefs because some shells have a limit on the size
25751# of here documents, and old seds have small limits too (100 cmds).
25752echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25753rm -f conftest.tail
25754while grep . conftest.undefs >/dev/null
25755do
25756 # Write a limited-size here document to $tmp/undefs.sed.
25757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25758 # Speed up: don't consider the non `#undef'
25759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25760 # Work around the forget-to-reset-the-flag bug.
25761 echo 't clr' >>$CONFIG_STATUS
25762 echo ': clr' >>$CONFIG_STATUS
25763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25764 echo 'CEOF
25765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25766 rm -f $tmp/in
25767 mv $tmp/out $tmp/in
25768' >>$CONFIG_STATUS
25769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25770 rm -f conftest.undefs
25771 mv conftest.tail conftest.undefs
25772done
25773rm -f conftest.undefs
25774
25775cat >>$CONFIG_STATUS <<\_ACEOF
25776 # Let's still pretend it is `configure' which instantiates (i.e., don't
25777 # use $as_me), people would be surprised to read:
25778 # /* config.h. Generated by config.status. */
25779 if test x"$ac_file" = x-; then
25780 echo "/* Generated by configure. */" >$tmp/config.h
25781 else
25782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25783 fi
25784 cat $tmp/in >>$tmp/config.h
25785 rm -f $tmp/in
25786 if test x"$ac_file" != x-; then
25787 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25789echo "$as_me: $ac_file is unchanged" >&6;}
25790 else
25791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25793 X"$ac_file" : 'X\(//\)[^/]' \| \
25794 X"$ac_file" : 'X\(//\)$' \| \
25795 X"$ac_file" : 'X\(/\)' \| \
25796 . : '\(.\)' 2>/dev/null ||
25797echo X"$ac_file" |
25798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25800 /^X\(\/\/\)$/{ s//\1/; q; }
25801 /^X\(\/\).*/{ s//\1/; q; }
25802 s/.*/./; q'`
25803 { case "$ac_dir" in
25804 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25805 *) as_incr_dir=.;;
25806esac
25807as_dummy="$ac_dir"
25808for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25809 case $as_mkdir_dir in
25810 # Skip DOS drivespec
25811 ?:) as_incr_dir=$as_mkdir_dir ;;
25812 *)
25813 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25814 test -d "$as_incr_dir" ||
25815 mkdir "$as_incr_dir" ||
25816 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25817echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25818 { (exit 1); exit 1; }; }
25819 ;;
25820 esac
25821done; }
25822
25823 rm -f $ac_file
25824 mv $tmp/config.h $ac_file
25825 fi
25826 else
25827 cat $tmp/config.h
25828 rm -f $tmp/config.h
25829 fi
25830 # Run the commands associated with the file.
25831 case $ac_file in
25832 config.h ) # update the timestamp
25833echo timestamp >"./stamp-h1"
25834 ;;
25835 esac
25836done
25837_ACEOF
25838cat >>$CONFIG_STATUS <<\_ACEOF
25839
25840#
25841# CONFIG_COMMANDS section.
25842#
25843for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25847$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25848 X"$ac_dest" : 'X\(//\)[^/]' \| \
25849 X"$ac_dest" : 'X\(//\)$' \| \
25850 X"$ac_dest" : 'X\(/\)' \| \
25851 . : '\(.\)' 2>/dev/null ||
25852echo X"$ac_dest" |
25853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25855 /^X\(\/\/\)$/{ s//\1/; q; }
25856 /^X\(\/\).*/{ s//\1/; q; }
25857 s/.*/./; q'`
25858 ac_builddir=.
25859
25860if test "$ac_dir" != .; then
25861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25862 # A "../" for each directory in $ac_dir_suffix.
25863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25864else
25865 ac_dir_suffix= ac_top_builddir=
25866fi
25867
25868case $srcdir in
25869 .) # No --srcdir option. We are building in place.
25870 ac_srcdir=.
25871 if test -z "$ac_top_builddir"; then
25872 ac_top_srcdir=.
25873 else
25874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25875 fi ;;
25876 [\\/]* | ?:[\\/]* ) # Absolute path.
25877 ac_srcdir=$srcdir$ac_dir_suffix;
25878 ac_top_srcdir=$srcdir ;;
25879 *) # Relative path.
25880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25882esac
25883# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25884# absolute.
25885ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25886ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25887ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25888ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25889
25890
25891 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25892echo "$as_me: executing $ac_dest commands" >&6;}
25893 case $ac_dest in
25894 default-1 )
25895test x"$AMDEP_TRUE" != x"" ||
25896for mf in $CONFIG_FILES; do
25897 case "$mf" in
25898 Makefile) dirpart=.;;
25899 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
25900 *) continue;;
25901 esac
25902 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25903 # Extract the definition of DEP_FILES from the Makefile without
25904 # running `make'.
25905 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25906 test -z "$DEPDIR" && continue
25907 # When using ansi2knr, U may be empty or an underscore; expand it
25908 U=`sed -n -e '/^U = / s///p' < "$mf"`
25909 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25910 # We invoke sed twice because it is the simplest approach to
25911 # changing $(DEPDIR) to its actual value in the expansion.
25912 for file in `sed -n -e '
25913 /^DEP_FILES = .*\\\\$/ {
25914 s/^DEP_FILES = //
25915 :loop
25916 s/\\\\$//
25917 p
25918 n
25919 /\\\\$/ b loop
25920 p
25921 }
25922 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25923 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25924 # Make sure the directory exists.
25925 test -f "$dirpart/$file" && continue
25926 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
25927 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
25928 # echo "creating $dirpart/$file"
25929 echo '# dummy' > "$dirpart/$file"
25930 done
25931done
25932 ;;
25933 esac
25934done
25935_ACEOF
25936
25937cat >>$CONFIG_STATUS <<\_ACEOF
25938
25939{ (exit 0); exit 0; }
25940_ACEOF
25941if test "x$with_fast_perl" = "xyes"; then
25942 perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
25943 || mv $CONFIG_STATUS.bak $CONFIG_STATUS
25944 rm -f $CONFIG_STATUS.bak
25945fi
25946chmod +x $CONFIG_STATUS
25947ac_clean_files=$ac_clean_files_save
25948
25949
25950# configure is writing to config.log, and then calls config.status.
25951# config.status does its own redirection, appending to config.log.
25952# Unfortunately, on DOS this fails, as config.log is still kept open
25953# by configure, so config.status won't be able to write to it; its
25954# output is simply discarded. So we exec the FD to /dev/null,
25955# effectively closing config.log, so it can be properly (re)opened and
25956# appended to by config.status. When coming back to configure, we
25957# need to make the FD available again.
25958if test "$no_create" != yes; then
25959 ac_cs_success=:
25960 exec 5>/dev/null
25961 $SHELL $CONFIG_STATUS || ac_cs_success=false
25962 exec 5>>config.log
25963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25964 # would make configure fail if this is the last instruction.
25965 $ac_cs_success || { (exit 1); exit 1; }
25966fi
25967
25968if test "$all_tests" = "bad"; then
25969 if test ! "$cache_file" = "/dev/null"; then
25970 echo ""
25971 echo "Please remove the file $cache_file after changing your setup"
25972 echo "so that configure will find the changes next time."
25973 echo ""
25974 fi
25975else
25976 echo ""
25977 echo "Good - your configure finished. Start make now"
25978 echo ""
25979fi